aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-10-07 19:56:11 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-10-07 19:56:11 +0530
commit6dcffc04d21a612842191f058968315468ac8226 (patch)
tree3eb4d62d675902e436919bb5d99c789c21fb3356 /app/src/main
parentd68958c3e145b8f0591098db5e50adc6e2a8d0c6 (diff)
fix: protect `PasswordDialog` window
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt b/app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt
index 958ce0c1..1ae90da3 100644
--- a/app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt
+++ b/app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt
@@ -48,6 +48,10 @@ class PasswordDialog : DialogFragment() {
false
}
}
+ dialog.window?.setFlags(
+ WindowManager.LayoutParams.FLAG_SECURE,
+ WindowManager.LayoutParams.FLAG_SECURE,
+ )
return dialog
}