summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/shortcuts
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-29 23:14:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-07-29 23:14:51 +0000
commit66d17ca32db7114e7bff1811d3e5c6669eb49c71 (patch)
tree06cb0a8d24c999343a2d0318923c6617d765e82c /src/com/android/launcher3/shortcuts
parentc39edf54e6bda1c5187ea61c358b6af81266c21f (diff)
parent79cf718fcdf39d0e60743b32c6611fbb971ff38c (diff)
downloadandroid_packages_apps_Trebuchet-66d17ca32db7114e7bff1811d3e5c6669eb49c71.tar.gz
android_packages_apps_Trebuchet-66d17ca32db7114e7bff1811d3e5c6669eb49c71.tar.bz2
android_packages_apps_Trebuchet-66d17ca32db7114e7bff1811d3e5c6669eb49c71.zip
Merge "Badging shortcuts with app icons" into ub-launcher3-calgary
Diffstat (limited to 'src/com/android/launcher3/shortcuts')
-rw-r--r--src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java6
-rw-r--r--src/com/android/launcher3/shortcuts/ShortcutInfoCompat.java6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
index 7b24c2676..8bb0e081f 100644
--- a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
+++ b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
@@ -47,6 +47,7 @@ import com.android.launcher3.AppInfo;
import com.android.launcher3.BubbleTextView;
import com.android.launcher3.DragSource;
import com.android.launcher3.DropTarget;
+import com.android.launcher3.IconCache;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAnimUtils;
@@ -748,8 +749,9 @@ public class DeepShortcutsContainer extends LinearLayout implements View.OnLongC
}
@Override
- protected Bitmap getBadgedIcon(Drawable unbadgedIcon, Context context) {
- return Utilities.createScaledBitmapWithoutShadow(unbadgedIcon, context);
+ protected Bitmap getBadgedIcon(Bitmap unbadgedBitmap, ShortcutInfoCompat shortcutInfo,
+ IconCache cache, Context context) {
+ return unbadgedBitmap;
}
}
}
diff --git a/src/com/android/launcher3/shortcuts/ShortcutInfoCompat.java b/src/com/android/launcher3/shortcuts/ShortcutInfoCompat.java
index d7fcda6b7..410693ada 100644
--- a/src/com/android/launcher3/shortcuts/ShortcutInfoCompat.java
+++ b/src/com/android/launcher3/shortcuts/ShortcutInfoCompat.java
@@ -24,6 +24,8 @@ import android.content.pm.ShortcutInfo;
import android.os.Build;
import com.android.launcher3.ItemInfo;
+import com.android.launcher3.compat.DeferredLauncherActivityInfo;
+import com.android.launcher3.compat.LauncherActivityInfoCompat;
import com.android.launcher3.compat.UserHandleCompat;
import com.android.launcher3.compat.UserManagerCompat;
@@ -116,4 +118,8 @@ public class ShortcutInfoCompat {
public String toString() {
return mShortcutInfo.toString();
}
+
+ public LauncherActivityInfoCompat getActivityInfo(Context context) {
+ return new DeferredLauncherActivityInfo(getActivity(), getUserHandle(), context);
+ }
}