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

Commit ff7b1af2 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Fix sysui predictive back not working after navigation mode change

Bug: 329844155
Flag: ACONFIG com.android.systemui.predictive_back_sysui TEAMFOOD
Test: Manual, i.e. verifying that predictive back animations in SystemUI keep working after navigation mode changes
Change-Id: I7fdfd999b51c5ee7353ebd6825962c6c17e690af
parent 69a62d57
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -836,7 +836,6 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
        mLightRevealScrimViewModelLazy = lightRevealScrimViewModelLazy;
        mLightRevealScrim = lightRevealScrim;

        // Based on teamfood flag, turn predictive back dispatch on at runtime.
        if (predictiveBackSysui()) {
            mContext.getApplicationInfo().setEnableOnBackInvokedCallback(true);
        }
@@ -3060,6 +3059,9 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
        public void onConfigChanged(Configuration newConfig) {
            updateResources();
            updateDisplaySize(); // populates mDisplayMetrics
            if (predictiveBackSysui()) {
                mContext.getApplicationInfo().setEnableOnBackInvokedCallback(true);
            }

            if (DEBUG) {
                Log.v(TAG, "configuration changed: " + mContext.getResources().getConfiguration());