Don't lock app on recreate
This commit is contained in:
parent
1f6d3d94ed
commit
ff50e68e90
@ -134,6 +134,7 @@ public class MainActivity extends BaseActivity {
|
|||||||
|
|
||||||
private void launchApp() {
|
private void launchApp() {
|
||||||
fullyLaunched = true;
|
fullyLaunched = true;
|
||||||
|
lockOnPause = true;
|
||||||
|
|
||||||
binding = ActivityMainBinding.inflate(getLayoutInflater());
|
binding = ActivityMainBinding.inflate(getLayoutInflater());
|
||||||
setContentView(binding.getRoot());
|
setContentView(binding.getRoot());
|
||||||
@ -308,6 +309,12 @@ public class MainActivity extends BaseActivity {
|
|||||||
OTPDatabase.promptLoadDatabase(this, () -> {}, () -> {});
|
OTPDatabase.promptLoadDatabase(this, () -> {}, () -> {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void recreate() {
|
||||||
|
lockOnPause = false;
|
||||||
|
super.recreate();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
super.onStop();
|
super.onStop();
|
||||||
|
Loading…
Reference in New Issue
Block a user