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

Commit 828fe0b9 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by android-build-team Robot
Browse files

Protect GrantCredentialsPermissionActivity against overlay.

Bug: 169763814
Test: manual
Change-Id: I15dd22791fcc61ef02b06ad51d9e4409d11c0181
(cherry picked from commit f45dcfe1)
parent 90cfe176
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ public class GrantCredentialsPermissionActivity extends Activity implements View

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addSystemFlags(
                android.view.WindowManager.LayoutParams
                        .SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        setContentView(R.layout.grant_credentials_permission);
        setTitle(R.string.grant_permissions_header_text);