summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-04-13 08:20:03 -0700
committerTony Wickham <twickham@google.com>2017-04-13 12:24:42 -0700
commitc66c3e2ba4876c9d383c1d7deddeee474f1c4859 (patch)
tree5aa7687a74a3c50de30a976541849e3d3e42806b /src
parent98978d67f3f3911bafabf60444adf5e5dda4455c (diff)
downloadandroid_packages_apps_Trebuchet-c66c3e2ba4876c9d383c1d7deddeee474f1c4859.tar.gz
android_packages_apps_Trebuchet-c66c3e2ba4876c9d383c1d7deddeee474f1c4859.tar.bz2
android_packages_apps_Trebuchet-c66c3e2ba4876c9d383c1d7deddeee474f1c4859.zip
Fix build - move system shortcut icon colors to theme
Change-Id: Iae248e5fdd57310adeb898305deee4c0eaee5318
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/popup/PopupPopulator.java6
-rw-r--r--src/com/android/launcher3/popup/SystemShortcut.java6
2 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/launcher3/popup/PopupPopulator.java b/src/com/android/launcher3/popup/PopupPopulator.java
index 112889474..3ba4ebafd 100644
--- a/src/com/android/launcher3/popup/PopupPopulator.java
+++ b/src/com/android/launcher3/popup/PopupPopulator.java
@@ -297,14 +297,12 @@ public class PopupPopulator {
if (mSystemShortcutChild instanceof DeepShortcutView) {
// Expanded system shortcut, with both icon and text shown on white background.
final DeepShortcutView shortcutView = (DeepShortcutView) mSystemShortcutChild;
- shortcutView.getIconView().setBackground(mSystemShortcutInfo.getIcon(context,
- android.R.attr.textColorTertiary));
+ shortcutView.getIconView().setBackground(mSystemShortcutInfo.getIcon(context));
shortcutView.getBubbleText().setText(mSystemShortcutInfo.getLabel(context));
} else if (mSystemShortcutChild instanceof ImageView) {
// Only the system shortcut icon shows on a gray background header.
final ImageView shortcutIcon = (ImageView) mSystemShortcutChild;
- shortcutIcon.setImageDrawable(mSystemShortcutInfo.getIcon(context,
- android.R.attr.textColorHint));
+ shortcutIcon.setImageDrawable(mSystemShortcutInfo.getIcon(context));
shortcutIcon.setContentDescription(mSystemShortcutInfo.getLabel(context));
}
if (!(mSystemShortcutInfo instanceof SystemShortcut.Widgets)) {
diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java
index d08f876d7..889fc5278 100644
--- a/src/com/android/launcher3/popup/SystemShortcut.java
+++ b/src/com/android/launcher3/popup/SystemShortcut.java
@@ -30,10 +30,8 @@ public abstract class SystemShortcut {
mLabelResId = labelResId;
}
- public Drawable getIcon(Context context, int colorAttr) {
- Drawable icon = context.getResources().getDrawable(mIconResId);
- icon.setTint(Themes.getAttrColor(context, colorAttr));
- return icon;
+ public Drawable getIcon(Context context) {
+ return context.getResources().getDrawable(mIconResId, context.getTheme());
}
public String getLabel(Context context) {