Badging shortcuts with app icons
Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
This commit is contained in:
1 parent
a2454ad2d8
commit
79cf718fcd
5 files changed
+143
-27
No files matched your search
@@ -46,6 +46,7 @@ import android.widget.LinearLayout;
|
||||
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;
|
||||
@@ -761,8 +762,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user