Fix nullable problem in ThemeUtils
This commit is contained in:
parent
17e2640248
commit
b82d304d7f
@ -83,11 +83,9 @@ public class ThemeUtils {
|
||||
return drawable;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@NonNull
|
||||
public static Drawable getLightThemedDrawable(@NonNull Context context, @DrawableRes int res) {
|
||||
final Drawable drawable = ContextCompat.getDrawable(context, res);
|
||||
if (drawable == null)
|
||||
return null;
|
||||
drawable.mutate();
|
||||
drawable.setColorFilter(getIconLightThemeColor(context), PorterDuff.Mode.SRC_IN);
|
||||
return drawable;
|
||||
|
Loading…
Reference in New Issue
Block a user