Overwrite shouldDestroyOnScreeenOff in MainActivity
This commit is contained in:
parent
edb01d819f
commit
7bf6cda6ed
2 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,7 @@ public abstract class BaseActivity extends ThemedActivity {
|
|||
}
|
||||
|
||||
protected boolean shouldDestroyOnScreenOff() {
|
||||
return getClass() != MainActivity.class;
|
||||
return true;
|
||||
}
|
||||
|
||||
interface BroadcastReceivedCallback {
|
||||
|
|
|
@ -951,4 +951,9 @@ public class MainActivity extends BaseActivity
|
|||
emptyListView.setVisibility(itemCount > 0 ? View.GONE : View.VISIBLE);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean shouldDestroyOnScreenOff() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue