Added option to disable auto lock

This commit is contained in:
M66B
2021-10-16 07:50:13 +02:00
parent 4878d97344
commit a0a97a69ba
8 changed files with 52 additions and 3 deletions

View File

@@ -281,7 +281,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean biometrics = prefs.getBoolean("biometrics", false);
String pin = prefs.getString("pin", null);
if (biometrics || !TextUtils.isEmpty(pin)) {
boolean autolock = prefs.getBoolean("autolock", true);
if (autolock && (biometrics || !TextUtils.isEmpty(pin))) {
Helper.clearAuthentication(this);
finish();
}