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

Commit 8df970b5 authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

Check for null activity before calling getSetupBar

Change-Id: Ie6ac6457259012c2289a9ce46a9be659eb2498c6
REF: SAMBAR-285
(cherry picked from commit 698a3a92)
parent bfb9990d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -138,7 +138,12 @@ public class SetupEnrollFingerprint extends EnrollFingerprint
        @Override
        protected void updateStage(Stage stage) {
            super.updateStage(stage);
            final SetupWizardNavBar setupBar = getEnrollmentActivity().getSetupBar();
            final EnrollFingerprint enrollmentActivity = getEnrollmentActivity();
            if (enrollmentActivity == null) {
                // no activity so nothing to do here.
                return;
            }
            final SetupWizardNavBar setupBar = enrollmentActivity.getSetupBar();
            if (stage != Stage.EnrollmentFinished) {
                setupBar.getBackButton().setVisibility(View.VISIBLE);
            } else {