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

Commit 0a0fe6f7 authored by Austin Delgado's avatar Austin Delgado
Browse files

Fix AuthContainerView crash

Bug: 433726166
Test: AuthContainerViewTest
Flag: android.hardware.biometrics.bp_fallback_options
Change-Id: I4d80b482d765f28e624bb86806a512617922e625
parent a8d0684b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -519,6 +519,10 @@ public class AuthContainerView extends LinearLayout

    @Override
    public void onAttachedToWindow() {
        if (Flags.bpFallbackOptions() || (mIsWatch && Flags.bpInitializeComposeWatch())) {
            ComposeInitializer.INSTANCE.onAttachedToWindow(this);
        }

        super.onAttachedToWindow();

        final WindowInsetsController insetsController = getWindowInsetsController();
@@ -534,10 +538,6 @@ public class AuthContainerView extends LinearLayout
            return;
        }

        if (Flags.bpFallbackOptions() || (mIsWatch && Flags.bpInitializeComposeWatch())) {
            ComposeInitializer.INSTANCE.onAttachedToWindow(this);
        }

        mWakefulnessLifecycle.addObserver(this);
        if (mConfig.mSkipIntro) {
            mContainerState = STATE_SHOWING;