Skip to content

Commit

Permalink
fix: Resources$NotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
ximsfei committed May 22, 2020
1 parent ba243f5 commit 0bbf8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ private ColorStateList getSkinColorStateList(Context context, int resId) {
if (!isDefaultSkin) {
int targetResId = getTargetResId(context, resId);
if (targetResId != 0) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
return mResources.getColorStateList(targetResId, context.getTheme());
} else {
return mResources.getColorStateList(targetResId);
}
return mResources.getColorStateList(targetResId);
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ private ColorStateList getSkinColorStateList(Context context, int resId) {
if (!isDefaultSkin) {
int targetResId = getTargetResId(context, resId);
if (targetResId != 0) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
return mResources.getColorStateList(targetResId, context.getTheme());
} else {
return mResources.getColorStateList(targetResId);
}
return mResources.getColorStateList(targetResId);
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
Expand Down

0 comments on commit 0bbf8c5

Please sign in to comment.