Overwrite shouldDestroyOnScreeenOff in MainActivity

This commit is contained in:
Jakob Nixdorf 2021-02-05 06:40:05 +01:00
parent edb01d819f
commit 7bf6cda6ed
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC
2 changed files with 6 additions and 1 deletions

View file

@ -67,7 +67,7 @@ public abstract class BaseActivity extends ThemedActivity {
}
protected boolean shouldDestroyOnScreenOff() {
return getClass() != MainActivity.class;
return true;
}
interface BroadcastReceivedCallback {

View file

@ -951,4 +951,9 @@ public class MainActivity extends BaseActivity
emptyListView.setVisibility(itemCount > 0 ? View.GONE : View.VISIBLE);
}
@Override
protected boolean shouldDestroyOnScreenOff() {
return false;
}
}