Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b80540e authored by Arc Wang's avatar Arc Wang
Browse files

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
parent d2378be1
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -554,11 +554,18 @@ public class ManageApplications extends InstrumentedFragment
        super.onStart();
        updateView();
        if (mApplications != null) {
            mApplications.resume(mSortOrder);
            mApplications.updateLoading();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        if (mApplications != null) {
            mApplications.resume(mSortOrder);
        }
    }

    @Override
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
@@ -577,11 +584,16 @@ public class ManageApplications extends InstrumentedFragment
    }

    @Override
    public void onStop() {
        super.onStop();
    public void onPause() {
        super.onPause();
        if (mApplications != null) {
            mApplications.pause();
        }
    }

    @Override
    public void onStop() {
        super.onStop();
        if (mResetAppsHelper != null) {
            mResetAppsHelper.stop();
        }