Commit 817df9c7 authored by akwizgran's avatar akwizgran
Browse files

Merge branch '1247-flag-secure-warning' into 'master'

Add warning to FLAG_SECURE about app locking implications

Closes #1247

See merge request !922
parents 9476782c 74551545
......@@ -68,6 +68,11 @@ public abstract class BaseActivity extends AppCompatActivity
public void onCreate(@Nullable Bundle state) {
super.onCreate(state);
// WARNING: When removing this or making it possible to turn it off,
// we need a solution for the app lock feature.
// When the app is locked by a timeout and FLAG_SECURE is not
// set, the app content becomes visible briefly before the
// unlock screen is shown.
if (PREVENT_SCREENSHOTS) getWindow().addFlags(FLAG_SECURE);
AndroidComponent applicationComponent =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment