diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-09 14:32:55 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-09 14:32:55 +0200 |
commit | 5cef45a888d72396ff51932eed86a04b0f4e2485 (patch) | |
tree | 9c8a9dd9ffe0b29a3f27d2995e607b33cde48c65 | |
parent | 31ef33091e5e401417b795abb9c703bc7c581345 (diff) |
hide the content of pgp decryption activity from the window manager
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 4 |
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); |