Fix app lock
This commit is contained in:
parent
81e8870507
commit
e1c2db0300
@ -48,6 +48,8 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
private QRScanner qrScanner;
|
||||
|
||||
private boolean fullyLaunched;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@ -126,6 +128,8 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
private void launchApp() {
|
||||
fullyLaunched = true;
|
||||
|
||||
binding = ActivityMainBinding.inflate(getLayoutInflater());
|
||||
setContentView(binding.getRoot());
|
||||
|
||||
@ -306,7 +310,7 @@ public class MainActivity extends BaseActivity {
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
OTPDatabase.promptLoadDatabase(this, () -> {}, () -> {});
|
||||
if(fullyLaunched) OTPDatabase.promptLoadDatabase(this, null, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user