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

Commit ed856dfe authored by Rubin Xu's avatar Rubin Xu Committed by Automerger Merge Worker
Browse files

Merge "Protect UnlaunchableAppActivity against overlay attack" into tm-dev am: 9c9916e4

parents 037a4f40 9c9916e4
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() {