Don't lock app on recreate

This commit is contained in:
MrLetsplay 2023-09-24 12:52:56 +02:00
parent 1f6d3d94ed
commit ff50e68e90
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -134,6 +134,7 @@ public class MainActivity extends BaseActivity {
private void launchApp() {
fullyLaunched = true;
lockOnPause = true;
binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
@ -308,6 +309,12 @@ public class MainActivity extends BaseActivity {
OTPDatabase.promptLoadDatabase(this, () -> {}, () -> {});
}
@Override
public void recreate() {
lockOnPause = false;
super.recreate();
}
@Override
protected void onStop() {
super.onStop();