commit | 8861d33dec8341d445512ff0ea032f278fe3b770 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Nov 07 04:35:40 2018 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Nov 07 04:35:40 2018 +0000 |
tree | f46a95aebea37050b3488f4a071fbb914a8e89f8 | |
parent | 6d1eca3c851202efe52d2a68a0c1e4a8809198f0 [diff] | |
parent | 6eb868a5e56716f5abc23ea3495a86c43a2e7555 [diff] |
Merge "Fix the wrong number of icons in shelf for RTL" into pi-dev
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java index 5dee2a6..753cac5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java
@@ -536,7 +536,8 @@ return 0; } - int translation = (int) (mLastVisibleIconState.xTranslation + mIconSize); + int translation = (int) (isLayoutRtl() ? getWidth() - mLastVisibleIconState.xTranslation + : mLastVisibleIconState.xTranslation + mIconSize); // There's a chance that last translation goes beyond the edge maybe return Math.min(getWidth(), translation); }