Loading quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -267,7 +267,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT int setupSize = mControllers.taskbarActivityContext.getSetupWindowSize(); Point p = DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, resources, mContext.isPhoneMode()); mContext.isPhoneMode(), mContext.isGestureNav()); ViewGroup.LayoutParams navButtonsViewLayoutParams = mNavButtonsView.getLayoutParams(); navButtonsViewLayoutParams.width = p.x; if (!mContext.isUserSetupComplete()) { Loading quickstep/src/com/android/launcher3/taskbar/TaskbarDragLayerController.java +1 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa if (mActivity.isPhoneMode()) { Resources resources = mActivity.getResources(); Point taskbarDimensions = DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, resources, true /* isPhoneMode */); resources, true /* isPhoneMode */, mActivity.isGestureNav()); return taskbarDimensions.y == -1 ? deviceProfile.getDisplayInfo().currentSize.y : taskbarDimensions.y; Loading src/com/android/launcher3/util/DimensionUtils.kt +3 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,8 @@ object DimensionUtils { fun getTaskbarPhoneDimensions( deviceProfile: DeviceProfile, res: Resources, isPhoneMode: Boolean isPhoneMode: Boolean, isGestureNav: Boolean, ): Point { val p = Point() // Taskbar for large screen Loading @@ -42,7 +43,7 @@ object DimensionUtils { } // Taskbar on phone using gesture nav, it will always be stashed if (deviceProfile.isGestureMode) { if (isGestureNav) { p.x = ViewGroup.LayoutParams.MATCH_PARENT p.y = res.getDimensionPixelSize(R.dimen.taskbar_stashed_size) return p Loading Loading
quickstep/src/com/android/launcher3/taskbar/NavbarButtonsViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -267,7 +267,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT int setupSize = mControllers.taskbarActivityContext.getSetupWindowSize(); Point p = DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, resources, mContext.isPhoneMode()); mContext.isPhoneMode(), mContext.isGestureNav()); ViewGroup.LayoutParams navButtonsViewLayoutParams = mNavButtonsView.getLayoutParams(); navButtonsViewLayoutParams.width = p.x; if (!mContext.isUserSetupComplete()) { Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarDragLayerController.java +1 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,7 @@ public class TaskbarDragLayerController implements TaskbarControllers.LoggableTa if (mActivity.isPhoneMode()) { Resources resources = mActivity.getResources(); Point taskbarDimensions = DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, resources, true /* isPhoneMode */); resources, true /* isPhoneMode */, mActivity.isGestureNav()); return taskbarDimensions.y == -1 ? deviceProfile.getDisplayInfo().currentSize.y : taskbarDimensions.y; Loading
src/com/android/launcher3/util/DimensionUtils.kt +3 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,8 @@ object DimensionUtils { fun getTaskbarPhoneDimensions( deviceProfile: DeviceProfile, res: Resources, isPhoneMode: Boolean isPhoneMode: Boolean, isGestureNav: Boolean, ): Point { val p = Point() // Taskbar for large screen Loading @@ -42,7 +43,7 @@ object DimensionUtils { } // Taskbar on phone using gesture nav, it will always be stashed if (deviceProfile.isGestureMode) { if (isGestureNav) { p.x = ViewGroup.LayoutParams.MATCH_PARENT p.y = res.getDimensionPixelSize(R.dimen.taskbar_stashed_size) return p Loading