Skip to content

Commit

Permalink
Merge pull request #242 from eleme/fix_infinite_recursion
Browse files Browse the repository at this point in the history
fix MiUI weird crash closes #241, closes #239
  • Loading branch information
JackCho authored May 23, 2017
2 parents d9c37ce + e5e8a2f commit 93db72e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public static ActivityInfo getActivityInfoInNewApp(Context context, String activ
if (!activityInfo.name.equals(activityClassName)) {
continue;
}
//MiUI weird issue
if (activityClassName.equals(activityInfo.targetActivity)) {
return activityInfo;
}
boolean isAlias = !TextUtils.isEmpty(activityInfo.targetActivity);
if (!isAlias) {
return activityInfo;
Expand Down

0 comments on commit 93db72e

Please sign in to comment.