diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java index d4eac138..dd18ce8e 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/IntroScreenActivity.java @@ -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);