Fix bug where app list says "No app" in multi-window mode

Move updateUi logic from onPause/onResume to onStop/onStart.

Change-Id: Iebe38d201d531058472cd033a0408239d36d32e4
Fix: 36305836
Test: instrumentation test
This commit is contained in:
Fan Zhang
2017-05-18 14:09:19 -07:00
parent 867c68e76c
commit 462d852808
3 changed files with 69 additions and 15 deletions

View File

@@ -506,10 +506,9 @@ public class ManageApplications extends InstrumentedPreferenceFragment
}
@Override
public void onResume() {
super.onResume();
public void onStart() {
super.onStart();
updateView();
updateOptionsMenu();
if (mApplications != null) {
mApplications.resume(mSortOrder);
mApplications.updateLoading();
@@ -527,16 +526,11 @@ public class ManageApplications extends InstrumentedPreferenceFragment
}
@Override
public void onPause() {
super.onPause();
public void onStop() {
super.onStop();
if (mApplications != null) {
mApplications.pause();
}
}
@Override
public void onStop() {
super.onStop();
mResetAppsHelper.stop();
}