Skip to content

Commit

Permalink
block screenshots in the main list view. Fixes google#50
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Feb 19, 2020
1 parent 21fb5ab commit a030707
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.WindowManager;
import android.view.accessibility.AccessibilityEvent;
import android.widget.AbsListView;
import android.widget.AdapterView;
Expand Down Expand Up @@ -288,6 +289,10 @@ public void onCreate(Bundle savedInstanceState) {
totpCounter = otpProvider.getTotpCounter();
totpClock = otpProvider.getTotpClock();


// Block screenshots
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);

setContentView(R.layout.main);

toolbar = (Toolbar) findViewById(R.id.authenticator_toolbar);
Expand Down

0 comments on commit a030707

Please sign in to comment.