Skip to content

Commit

Permalink
[tinker] Bugfix: do the Miui resource fixing tricks on all systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
tys282000 committed Jan 13, 2017
1 parent 8cd5282 commit 853bb9e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,11 @@ public static void monkeyPatchExistingResources(Context context, String external
* MiuiResource change TypedArray to MiuiTypedArray, but it get string block from offset instead of assetManager
*/
private static void fixMiuiTypedArrayIssue(Resources resources) {
if (!isMiuiSystem) {
return;
}
// Perform this trick not only in Miui system since we can't predict if any other
// manufacturer would do the same modification to Android.
// if (!isMiuiSystem) {
// return;
// }
Log.w(TAG, "Miui system found, try to clear MiuiTypedArray cache!");
// Clear typedArray cache.
try {
Expand Down

0 comments on commit 853bb9e

Please sign in to comment.