Merge "Protect UnlaunchableAppActivity against overlay attack" into tm-dev
This commit is contained in:
@@ -91,7 +91,12 @@ public class UnlaunchableAppActivity extends Activity
|
|||||||
} else {
|
} else {
|
||||||
builder.setPositiveButton(R.string.ok, null);
|
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() {
|
private String getDialogTitle() {
|
||||||
|
|||||||
Reference in New Issue
Block a user