summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-05-09 14:32:55 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-05-09 14:32:55 +0200
commit5cef45a888d72396ff51932eed86a04b0f4e2485 (patch)
tree9c8a9dd9ffe0b29a3f27d2995e607b33cde48c65 /app/src/main/java
parent31ef33091e5e401417b795abb9c703bc7c581345 (diff)
hide the content of pgp decryption activity from the window manager
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java4
1 files changed, 4 insertions, 0 deletions
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);