From ad8504ef393038f0533f8433b8af272e497d097a Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Tue, 9 Jun 2020 17:35:21 +0200 Subject: [PATCH] replace anonymous new EncryptionFragment.EncryptionChangedCallback() with lambda Signed-off-by: Daniel Ziegenberg --- .../flocke/andotp/Activities/IntroScreenActivity.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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);