mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-23 15:29:15 +00:00
Make ProgressDialog adhere to the "Secure screen" setting
This commit is contained in:
parent
8d3b2e2c9d
commit
f32ac0e8ab
1 changed files with 4 additions and 4 deletions
|
@ -56,13 +56,13 @@ public class Dialogs {
|
|||
}
|
||||
|
||||
public static void secureDialog(Dialog dialog) {
|
||||
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
|
||||
if (new Preferences(dialog.getContext()).isSecureScreenEnabled()) {
|
||||
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
|
||||
}
|
||||
}
|
||||
|
||||
public static void showSecureDialog(Dialog dialog) {
|
||||
if (new Preferences(dialog.getContext()).isSecureScreenEnabled()) {
|
||||
secureDialog(dialog);
|
||||
}
|
||||
secureDialog(dialog);
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue