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

Commit cd66862b 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 mnc-dev

am: 8bffdc26

Change-Id: Ie06476c8e34cbf17f4538a477894b7bca1bdfcbd
parents 2bf72450 8bffdc26
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
            mDark = true;
        }
        super.onCreate(savedState);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
        boolean deviceLocked = getSystemService(KeyguardManager.class).isKeyguardLocked();
        if (deviceLocked && getIntent().getBooleanExtra(
                ConfirmDeviceCredentialBaseFragment.SHOW_WHEN_LOCKED, false)) {