Use unthemed icon for drawer transition
This commit is contained in:
1 parent
f8b4fab0b8
commit
cbaf1bfddd
3 files changed
+17
-3
No files matched your search
@@ -702,6 +702,15 @@ public final class Utilities {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public static Drawable getFullDrawable(Context context, ItemInfo info, int width, int height,
|
||||
Object[] outObj, boolean useTheme) {
|
||||
Drawable icon = loadFullDrawableWithoutTheme(context, info, width, height, outObj);
|
||||
if (useTheme && icon instanceof BitmapInfo.Extender) {
|
||||
icon = ((BitmapInfo.Extender) icon).getThemedDrawable(context);
|
||||
}
|
||||
return icon;
|
||||
}
|
||||
|
||||
public static Drawable loadFullDrawableWithoutTheme(Context context, ItemInfo info,
|
||||
int width, int height, Object[] outObj) {
|
||||
ActivityContext activity = ActivityContext.lookupContext(context);
|
||||
|
||||
Reference in new issue
Block a user