diff options
| author | 2024-03-25 15:36:35 +0100 | |
|---|---|---|
| committer | 2024-03-25 15:36:35 +0100 | |
| commit | ff7b1af20866d7418bc83c7e45795249d3baf9dc (patch) | |
| tree | c3fad465027621f79215456e39750139fd122727 | |
| parent | 69a62d57ba45b1528a72fdaff9f24375c77ad0d7 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java index f76de04c0c18..710cdcd5fcde 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/CentralSurfacesImpl.java @@ -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()); |