protect MainActivity by biometrics
This commit is contained in:
parent
9d787505cf
commit
3c7454884d
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue