From 6dcffc04d21a612842191f058968315468ac8226 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 7 Oct 2022 19:56:11 +0530 Subject: fix: protect `PasswordDialog` window --- app/src/main/java/app/passwordstore/ui/crypto/PasswordDialog.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main') 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 } -- cgit v1.2.3