Loading packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.recents; package com.android.systemui.recents; import static com.android.systemui.shared.recents.utilities.Utilities.isTablet; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; Loading Loading @@ -249,7 +250,7 @@ public class ScreenPinningRequest implements View.OnClickListener, View buttons = mLayout.findViewById(R.id.screen_pinning_buttons); View buttons = mLayout.findViewById(R.id.screen_pinning_buttons); WindowManagerWrapper wm = WindowManagerWrapper.getInstance(); WindowManagerWrapper wm = WindowManagerWrapper.getInstance(); if (!QuickStepContract.isGesturalMode(mNavBarMode) if (!QuickStepContract.isGesturalMode(mNavBarMode) && wm.hasSoftNavigationBar(mContext.getDisplayId())) { && wm.hasSoftNavigationBar(mContext.getDisplayId()) && !isTablet(mContext)) { buttons.setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE); buttons.setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE); swapChildrenIfRtlAndVertical(buttons); swapChildrenIfRtlAndVertical(buttons); } else { } else { Loading Loading
packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.recents; package com.android.systemui.recents; import static com.android.systemui.shared.recents.utilities.Utilities.isTablet; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE; Loading Loading @@ -249,7 +250,7 @@ public class ScreenPinningRequest implements View.OnClickListener, View buttons = mLayout.findViewById(R.id.screen_pinning_buttons); View buttons = mLayout.findViewById(R.id.screen_pinning_buttons); WindowManagerWrapper wm = WindowManagerWrapper.getInstance(); WindowManagerWrapper wm = WindowManagerWrapper.getInstance(); if (!QuickStepContract.isGesturalMode(mNavBarMode) if (!QuickStepContract.isGesturalMode(mNavBarMode) && wm.hasSoftNavigationBar(mContext.getDisplayId())) { && wm.hasSoftNavigationBar(mContext.getDisplayId()) && !isTablet(mContext)) { buttons.setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE); buttons.setLayoutDirection(View.LAYOUT_DIRECTION_LOCALE); swapChildrenIfRtlAndVertical(buttons); swapChildrenIfRtlAndVertical(buttons); } else { } else { Loading