Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -453,14 +453,15 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private String getIndexHint(LockscreenShortcutsHelper.Shortcuts shortcut) { private String getIndexHint(LockscreenShortcutsHelper.Shortcuts shortcut) { if (mShortcutHelper.isTargetCustom(shortcut)) { if (mShortcutHelper.isTargetCustom(shortcut)) { boolean isRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; String label = mShortcutHelper.getFriendlyNameForUri(shortcut); String label = mShortcutHelper.getFriendlyNameForUri(shortcut); int resId = 0; int resId = 0; switch (shortcut) { switch (shortcut) { case LEFT_SHORTCUT: case LEFT_SHORTCUT: resId = R.string.left_shortcut_hint; resId = isRtl ? R.string.right_shortcut_hint : R.string.left_shortcut_hint; break; break; case RIGHT_SHORTCUT: case RIGHT_SHORTCUT: resId = R.string.right_shortcut_hint; resId = isRtl ? R.string.left_shortcut_hint : R.string.right_shortcut_hint; break; break; } } return mContext.getString(resId, label); return mContext.getString(resId, label); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1231,8 +1231,8 @@ public class NotificationPanelView extends PanelView implements final float w = getMeasuredWidth(); final float w = getMeasuredWidth(); float region = (w * (1.f/3.f)); // TODO overlay region fraction? float region = (w * (1.f/3.f)); // TODO overlay region fraction? final boolean showQsOverride = isLayoutRtl() ? (x < region) : (w - region < x) boolean showQsOverride = isLayoutRtl() ? (x < region) : (w - region < x); && mStatusBarState == StatusBarState.SHADE; showQsOverride = showQsOverride && mStatusBarState == StatusBarState.SHADE; if (mQsExpanded) { if (mQsExpanded) { return onHeader || (mScrollView.isScrolledToBottom() && yDiff < 0) && isInQsArea(x, y); return onHeader || (mScrollView.isScrolledToBottom() && yDiff < 0) && isInQsArea(x, y); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -453,14 +453,15 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private String getIndexHint(LockscreenShortcutsHelper.Shortcuts shortcut) { private String getIndexHint(LockscreenShortcutsHelper.Shortcuts shortcut) { if (mShortcutHelper.isTargetCustom(shortcut)) { if (mShortcutHelper.isTargetCustom(shortcut)) { boolean isRtl = getLayoutDirection() == LAYOUT_DIRECTION_RTL; String label = mShortcutHelper.getFriendlyNameForUri(shortcut); String label = mShortcutHelper.getFriendlyNameForUri(shortcut); int resId = 0; int resId = 0; switch (shortcut) { switch (shortcut) { case LEFT_SHORTCUT: case LEFT_SHORTCUT: resId = R.string.left_shortcut_hint; resId = isRtl ? R.string.right_shortcut_hint : R.string.left_shortcut_hint; break; break; case RIGHT_SHORTCUT: case RIGHT_SHORTCUT: resId = R.string.right_shortcut_hint; resId = isRtl ? R.string.left_shortcut_hint : R.string.right_shortcut_hint; break; break; } } return mContext.getString(resId, label); return mContext.getString(resId, label); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1231,8 +1231,8 @@ public class NotificationPanelView extends PanelView implements final float w = getMeasuredWidth(); final float w = getMeasuredWidth(); float region = (w * (1.f/3.f)); // TODO overlay region fraction? float region = (w * (1.f/3.f)); // TODO overlay region fraction? final boolean showQsOverride = isLayoutRtl() ? (x < region) : (w - region < x) boolean showQsOverride = isLayoutRtl() ? (x < region) : (w - region < x); && mStatusBarState == StatusBarState.SHADE; showQsOverride = showQsOverride && mStatusBarState == StatusBarState.SHADE; if (mQsExpanded) { if (mQsExpanded) { return onHeader || (mScrollView.isScrolledToBottom() && yDiff < 0) && isInQsArea(x, y); return onHeader || (mScrollView.isScrolledToBottom() && yDiff < 0) && isInQsArea(x, y); Loading