Fix flickering before transition animation of app search
ApplicationState.Session must be aware of ManageApplications lifecycle to correctly activate/deactivate. Bug: 245877468 Test: manual visual Settings -> Apps -> All apps -> search -> click search item Change-Id: Ia4e6da0c4e43dcd53f6b4ea3e2fa6ffec059b880
This commit is contained in:
@@ -554,11 +554,18 @@ public class ManageApplications extends InstrumentedFragment
|
|||||||
super.onStart();
|
super.onStart();
|
||||||
updateView();
|
updateView();
|
||||||
if (mApplications != null) {
|
if (mApplications != null) {
|
||||||
mApplications.resume(mSortOrder);
|
|
||||||
mApplications.updateLoading();
|
mApplications.updateLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
if (mApplications != null) {
|
||||||
|
mApplications.resume(mSortOrder);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(Bundle outState) {
|
public void onSaveInstanceState(Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
@@ -577,11 +584,16 @@ public class ManageApplications extends InstrumentedFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStop() {
|
public void onPause() {
|
||||||
super.onStop();
|
super.onPause();
|
||||||
if (mApplications != null) {
|
if (mApplications != null) {
|
||||||
mApplications.pause();
|
mApplications.pause();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStop() {
|
||||||
|
super.onStop();
|
||||||
if (mResetAppsHelper != null) {
|
if (mResetAppsHelper != null) {
|
||||||
mResetAppsHelper.stop();
|
mResetAppsHelper.stop();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user