mirror of https://github.com/M66B/FairEmail.git
Finish on screen off when using biometrics authentication
This commit is contained in:
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…
Reference in New Issue