replace anonymous new EncryptionFragment.EncryptionChangedCallback() with lambda
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
parent
57775918c0
commit
ad8504ef39
1 changed files with 1 additions and 6 deletions
|
@ -88,12 +88,7 @@ public class IntroScreenActivity extends IntroActivity {
|
|||
encryptionFragment = new EncryptionFragment();
|
||||
authenticationFragment = new AuthenticationFragment();
|
||||
|
||||
encryptionFragment.setEncryptionChangedCallback(new EncryptionFragment.EncryptionChangedCallback() {
|
||||
@Override
|
||||
public void onEncryptionChanged(Constants.EncryptionType newEncryptionType) {
|
||||
authenticationFragment.updateEncryptionType(newEncryptionType);
|
||||
}
|
||||
});
|
||||
encryptionFragment.setEncryptionChangedCallback(newEncryptionType -> authenticationFragment.updateEncryptionType(newEncryptionType));
|
||||
|
||||
setButtonBackFunction(BUTTON_BACK_FUNCTION_BACK);
|
||||
|
||||
|
|
Loading…
Reference in a new issue