mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-23 15:29:15 +00:00
Fix a bug where FLAG_SECURE was unnecessarily applied to dialogs
This commit is contained in:
parent
2ce259255d
commit
4967a572d4
1 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,7 @@ import javax.crypto.SecretKey;
|
|||
import androidx.annotation.StringRes;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
import me.impy.aegis.Preferences;
|
||||
import me.impy.aegis.R;
|
||||
import me.impy.aegis.crypto.KeyStoreHandle;
|
||||
import me.impy.aegis.crypto.KeyStoreHandleException;
|
||||
|
@ -45,7 +46,9 @@ public class Dialogs {
|
|||
}
|
||||
|
||||
public static void showSecureDialog(Dialog dialog) {
|
||||
secureDialog(dialog);
|
||||
if (new Preferences(dialog.getContext()).isSecureScreenEnabled()) {
|
||||
secureDialog(dialog);
|
||||
}
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue