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

Commit 9c9916e4 authored by Rubin Xu's avatar Rubin Xu Committed by Android (Google) Code Review
Browse files

Merge "Protect UnlaunchableAppActivity against overlay attack" into tm-dev

parents 56043e3d 61a66051
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -91,7 +91,12 @@ public class UnlaunchableAppActivity extends Activity
        } else {
            builder.setPositiveButton(R.string.ok, null);
        }
        builder.show();
        final AlertDialog dialog = builder.create();
        dialog.create();
        // Prevents screen overlay attack.
        getWindow().setHideOverlayWindows(true);
        dialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true);
        dialog.show();
    }

    private String getDialogTitle() {