Dominant color is part of icon cache
> Calculating extracted color during icon generation and storing it in model and DB > Removing unused logic avoid various types of badge rendering > Icons are badged with extracted colors, while folder is badged with theme color Bug: 35428783 Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
This commit is contained in:
1 parent
8c3c9d2634
commit
179249d804
37 files changed
+392
-533
No files matched your search
@@ -31,7 +31,7 @@ import android.support.annotation.UiThread;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Log;
|
||||
import com.android.launcher3.FastBitmapDrawable;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.ItemInfoWithIcon;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.allapps.AllAppsBackgroundDrawable;
|
||||
@@ -64,18 +64,18 @@ public class DrawableFactory {
|
||||
/**
|
||||
* Returns a FastBitmapDrawable with the icon.
|
||||
*/
|
||||
public FastBitmapDrawable newIcon(Bitmap icon, ItemInfo info) {
|
||||
return new FastBitmapDrawable(icon);
|
||||
public FastBitmapDrawable newIcon(ItemInfoWithIcon info) {
|
||||
return new FastBitmapDrawable(info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a FastBitmapDrawable with the icon.
|
||||
*/
|
||||
public PreloadIconDrawable newPendingIcon(Bitmap icon, Context context) {
|
||||
public PreloadIconDrawable newPendingIcon(ItemInfoWithIcon info, Context context) {
|
||||
if (mPreloadProgressPath == null) {
|
||||
mPreloadProgressPath = getPreloadProgressPath(context);
|
||||
}
|
||||
return new PreloadIconDrawable(icon, mPreloadProgressPath, context);
|
||||
return new PreloadIconDrawable(info, mPreloadProgressPath, context);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user