hide the content of pgp decryption activity from the window manager

This commit is contained in:
Mohamed Zenadi 2015-05-09 14:32:55 +02:00
parent 31ef33091e
commit 5cef45a888

View File

@ -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);