From 5cef45a888d72396ff51932eed86a04b0f4e2485 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sat, 9 May 2015 14:32:55 +0200 Subject: hide the content of pgp decryption activity from the window manager --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java index 7cd76c4a..c3e96f21 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -19,6 +19,7 @@ import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.view.WindowManager; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.ProgressBar; @@ -74,6 +75,9 @@ public class PgpHandler extends ActionBarActivity implements OpenPgpServiceConne protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, + WindowManager.LayoutParams.FLAG_SECURE); + this.activity = this; this.clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); -- cgit v1.2.3