mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
Finish early when biometrics required
This commit is contained in:
parent
c356beede9
commit
e44ec21e2c
1 changed files with 7 additions and 6 deletions
|
@ -105,6 +105,13 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
|
||||
prefs.registerOnSharedPreferenceChangeListener(this);
|
||||
|
||||
if (!this.getClass().equals(ActivityMain.class) && Helper.shouldAuthenticate(this)) {
|
||||
finish();
|
||||
startActivity(
|
||||
new Intent(this, ActivityMain.class)
|
||||
.putExtra("intent", intent));
|
||||
}
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
|
@ -134,12 +141,6 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
Log.i("Contacts permission=" + contacts);
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
} else if (!this.getClass().equals(ActivityMain.class) && Helper.shouldAuthenticate(this)) {
|
||||
Intent intent = getIntent();
|
||||
finish();
|
||||
startActivity(
|
||||
new Intent(this, ActivityMain.class)
|
||||
.putExtra("intent", intent));
|
||||
}
|
||||
|
||||
super.onResume();
|
||||
|
|
Loading…
Reference in a new issue