Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +5 −7 Original line number Diff line number Diff line Loading @@ -274,11 +274,8 @@ public class BubbleController implements ConfigurationChangeListener, private final DragAndDropController mDragAndDropController; /** Used to send bubble events to launcher. */ private Bubbles.BubbleStateListener mBubbleStateListener; /** * Used to track previous navigation mode to detect switch to buttons navigation. Set to * true to switch the bubble bar to the opposite side for 3 nav buttons mode on device boot. */ private boolean mIsPrevNavModeGestures = true; /** Used to track previous navigation mode to detect switch to buttons navigation. */ private boolean mIsPrevNavModeGestures; /** Used to send updates to the views from {@link #mBubbleDataListener}. */ private BubbleViewCallback mBubbleViewCallback; Loading Loading @@ -360,6 +357,7 @@ public class BubbleController implements ConfigurationChangeListener, } }; mExpandedViewManager = BubbleExpandedViewManager.fromBubbleController(this); mIsPrevNavModeGestures = ContextUtils.isGestureNavigationMode(mContext); } private void registerOneHandedState(OneHandedController oneHanded) { Loading Loading @@ -595,9 +593,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mBubbleStateListener != null) { boolean isCurrentNavModeGestures = ContextUtils.isGestureNavigationMode(mContext); if (mIsPrevNavModeGestures && !isCurrentNavModeGestures) { BubbleBarLocation bubbleBarLocation = ContextUtils.isRtl(mContext) BubbleBarLocation navButtonsLocation = ContextUtils.isRtl(mContext) ? BubbleBarLocation.RIGHT : BubbleBarLocation.LEFT; mBubblePositioner.setBubbleBarLocation(bubbleBarLocation); mBubblePositioner.setBubbleBarLocation(navButtonsLocation); } mIsPrevNavModeGestures = isCurrentNavModeGestures; BubbleBarUpdate update = mBubbleData.getInitialStateForBubbleBar(); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +5 −7 Original line number Diff line number Diff line Loading @@ -274,11 +274,8 @@ public class BubbleController implements ConfigurationChangeListener, private final DragAndDropController mDragAndDropController; /** Used to send bubble events to launcher. */ private Bubbles.BubbleStateListener mBubbleStateListener; /** * Used to track previous navigation mode to detect switch to buttons navigation. Set to * true to switch the bubble bar to the opposite side for 3 nav buttons mode on device boot. */ private boolean mIsPrevNavModeGestures = true; /** Used to track previous navigation mode to detect switch to buttons navigation. */ private boolean mIsPrevNavModeGestures; /** Used to send updates to the views from {@link #mBubbleDataListener}. */ private BubbleViewCallback mBubbleViewCallback; Loading Loading @@ -360,6 +357,7 @@ public class BubbleController implements ConfigurationChangeListener, } }; mExpandedViewManager = BubbleExpandedViewManager.fromBubbleController(this); mIsPrevNavModeGestures = ContextUtils.isGestureNavigationMode(mContext); } private void registerOneHandedState(OneHandedController oneHanded) { Loading Loading @@ -595,9 +593,9 @@ public class BubbleController implements ConfigurationChangeListener, if (mBubbleStateListener != null) { boolean isCurrentNavModeGestures = ContextUtils.isGestureNavigationMode(mContext); if (mIsPrevNavModeGestures && !isCurrentNavModeGestures) { BubbleBarLocation bubbleBarLocation = ContextUtils.isRtl(mContext) BubbleBarLocation navButtonsLocation = ContextUtils.isRtl(mContext) ? BubbleBarLocation.RIGHT : BubbleBarLocation.LEFT; mBubblePositioner.setBubbleBarLocation(bubbleBarLocation); mBubblePositioner.setBubbleBarLocation(navButtonsLocation); } mIsPrevNavModeGestures = isCurrentNavModeGestures; BubbleBarUpdate update = mBubbleData.getInitialStateForBubbleBar(); Loading