Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59f5976e authored by Andres Morales's avatar Andres Morales
Browse files

Unbreak CC screen

Re-add logic in authenticationSucceeded

Change-Id: Iac1925f5e2f2f67dd5d7c7f5d454f32691d51b61
parent a928ff4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -90,11 +90,11 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends InstrumentedFr
    public void onAuthenticated() {
        // Check whether we are still active.
        if (getActivity() != null && getActivity().isResumed()) {
            authenticationSucceeded(null /* password */);
            authenticationSucceeded();
        }
    }

    protected abstract void authenticationSucceeded(@Nullable String password);
    protected abstract void authenticationSucceeded();

    @Override
    public void onFingerprintIconVisibilityChanged(boolean visible) {
+4 −2
Original line number Diff line number Diff line
@@ -169,8 +169,10 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
        }

        @Override
        protected void authenticationSucceeded(@Nullable String password) {
            // TODO: make this play nice with challenge
        protected void authenticationSucceeded() {
            Intent intent = new Intent();
            getActivity().setResult(RESULT_OK, intent);
            getActivity().finish();
        }

        private void handleNext() {
+4 −2
Original line number Diff line number Diff line
@@ -232,8 +232,10 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
        }

        @Override
        protected void authenticationSucceeded(@Nullable String password) {
            // TODO: make this play nice with challenge
        protected void authenticationSucceeded() {
            Intent intent = new Intent();
            getActivity().setResult(Activity.RESULT_OK, intent);
            getActivity().finish();
        }

        @Override