[accents] fix crash on theme switching

This commit is contained in:
aliveoutside
2022-07-28 17:06:36 +03:00
parent 2717fd5736
commit 237be0cc88
@@ -84,7 +84,10 @@ public class ThemesCore {
}
public static boolean hasThemedAttr(Context context, int attrID) {
Log.d(TAG, "Requesting color by attr " + context.getResources().getResourceName(attrID));
try {
Log.d(TAG, "Requesting color by attr " + context.getResources().getResourceName(attrID));
} catch (Exception e) { }
return (themedColors.get(attrID) != null);
}