replace anonymous new EncryptionFragment.EncryptionChangedCallback() with lambda

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
Daniel Ziegenberg 2020-06-09 17:35:21 +02:00
parent 57775918c0
commit ad8504ef39

View file

@ -88,12 +88,7 @@ public class IntroScreenActivity extends IntroActivity {
encryptionFragment = new EncryptionFragment(); encryptionFragment = new EncryptionFragment();
authenticationFragment = new AuthenticationFragment(); authenticationFragment = new AuthenticationFragment();
encryptionFragment.setEncryptionChangedCallback(new EncryptionFragment.EncryptionChangedCallback() { encryptionFragment.setEncryptionChangedCallback(newEncryptionType -> authenticationFragment.updateEncryptionType(newEncryptionType));
@Override
public void onEncryptionChanged(Constants.EncryptionType newEncryptionType) {
authenticationFragment.updateEncryptionType(newEncryptionType);
}
});
setButtonBackFunction(BUTTON_BACK_FUNCTION_BACK); setButtonBackFunction(BUTTON_BACK_FUNCTION_BACK);