protect MainActivity by biometrics

This commit is contained in:
Milos Kozak 2019-12-08 17:04:39 +01:00
parent 9d787505cf
commit 3c7454884d

View file

@ -169,6 +169,12 @@ public class MainActivity extends NoSplashAppCompatActivity {
disposable.clear(); disposable.clear();
} }
@Override
protected void onResume() {
super.onResume();
ProtectionCheck.INSTANCE.queryProtection(this, ProtectionCheck.Protection.APPLICATION, null, this::finish, this::finish);
}
private void setWakeLock() { private void setWakeLock() {
boolean keepScreenOn = SP.getBoolean(R.string.key_keep_screen_on, false); boolean keepScreenOn = SP.getBoolean(R.string.key_keep_screen_on, false);
if (keepScreenOn) if (keepScreenOn)