Apply last report config to updateDisabledForQuickstep

With mLastReportedConfig introduced, we should use mLastReportedConfig
rather than config from Resources in case of out of sync.

Bug: 235711424
Test: presubmit
Change-Id: Ia24b8eecb62b106218fc7f880f5197961c3c38b1
This commit is contained in:
Charles Chen
2022-07-14 09:50:16 +08:00
parent 7859ecee1e
commit ab28b8b82d

View File

@@ -132,7 +132,7 @@ public class EdgeBackGestureHandler extends CurrentUserTracker
@Override
public void onPrioritizedRotation(@Surface.Rotation int rotation) {
mStartingQuickstepRotation = rotation;
updateDisabledForQuickstep(mContext.getResources().getConfiguration());
updateDisabledForQuickstep(mLastReportedConfig);
}
};