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

Commit e79c26a9 authored by Fan Zhang's avatar Fan Zhang Committed by android-build-merger
Browse files

Merge "Set device credential's Window flag to be SECURE." into nyc-dev

am: e69c4dcb

Change-Id: I30a0d2578343a7635da63a52cfc81f1427aab23b
parents d88820f3 e69c4dcb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
            mDark = true;
        }
        super.onCreate(savedState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
        mIsKeyguardLocked = savedState == null
                ? getSystemService(KeyguardManager.class).isKeyguardLocked()
                : savedState.getBoolean(STATE_IS_KEYGUARD_LOCKED, false);