summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-04-14 18:01:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-04-14 18:01:34 +0000
commit50ba921aa8c516754577eedc4017d1b7be95fb3c (patch)
tree5430aa441eefa238ceb6b085d21f9226374e38c4 /src
parent3741f8d9da4f59faedf6812efbcdd59429ab0217 (diff)
parentee82b035dbaf0cba73ffd856ddc97d092728dc34 (diff)
downloadandroid_packages_apps_Trebuchet-50ba921aa8c516754577eedc4017d1b7be95fb3c.tar.gz
android_packages_apps_Trebuchet-50ba921aa8c516754577eedc4017d1b7be95fb3c.tar.bz2
android_packages_apps_Trebuchet-50ba921aa8c516754577eedc4017d1b7be95fb3c.zip
Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/popup/PopupContainerWithArrow.java2
-rw-r--r--src/com/android/launcher3/shortcuts/ShortcutsItemView.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
index 99c7e754c..d2512def5 100644
--- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java
+++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java
@@ -193,7 +193,7 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra
: mShortcutsItemView.getDeepShortcutViews(reverseOrder);
List<View> systemShortcutViews = mShortcutsItemView == null
? Collections.EMPTY_LIST
- : mShortcutsItemView.getSystemShortcutViews(reverseOrder || true);
+ : mShortcutsItemView.getSystemShortcutViews(reverseOrder);
if (mNotificationItemView != null) {
BadgeInfo badgeInfo = mLauncher.getPopupDataProvider()
.getBadgeInfoForItem(originalItemInfo);
diff --git a/src/com/android/launcher3/shortcuts/ShortcutsItemView.java b/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
index ef6365b63..1f90bb023 100644
--- a/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
+++ b/src/com/android/launcher3/shortcuts/ShortcutsItemView.java
@@ -151,7 +151,9 @@ public class ShortcutsItemView extends PopupItemView implements View.OnLongClick
}
public List<View> getSystemShortcutViews(boolean reverseOrder) {
- if (reverseOrder) {
+ // Always reverse system shortcut icons (in the header)
+ // so they are in priority order from right to left.
+ if (reverseOrder || mSystemShortcutIcons != null) {
Collections.reverse(mSystemShortcutViews);
}
return mSystemShortcutViews;