Finish on screen off when using biometrics authentication

pull/157/head
M66B 6 years ago
parent ba699002b0
commit 21b66b165a

@ -147,7 +147,12 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
if (pm != null && !pm.isInteractive()) {
Log.i("Stop with screen off");
Helper.clearAuthentication(this);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean biometrics = prefs.getBoolean("biometrics", false);
if (biometrics) {
Helper.clearAuthentication(this);
finish();
}
}
}

Loading…
Cancel
Save