Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ public Drawable getDrawable(int resId){
trueDrawable = originDrawable;
}

//fix for Vivo mobile phones rom that don't throw NotFoundException when the resources not found
if(trueDrawable == null){
trueDrawable = originDrawable;
}

return trueDrawable;
}

Expand Down Expand Up @@ -323,4 +328,4 @@ public ColorStateList convertToColorStateList(int resId) {
int[][] states = new int[1][1];
return new ColorStateList(states, new int[] { context.getResources().getColor(resId) });
}
}
}