Skip to content

Commit

Permalink
Update ConfigurationChecker.java (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
argenisf authored and Sergio Alonso Fernández committed Apr 24, 2017
1 parent cefcce5 commit e210714
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public static boolean checkTakeoverInAppActivityAvailable(Context context) {
if (Build.VERSION.SDK_INT < MPConfig.UI_FEATURES_MIN_API) {
// No need to log, TakeoverInAppActivity doesn't work on this platform.
mTakeoverActivityAvailable = false;
return mTakeoverActivityAvailable;
}

final Intent takeoverInAppIntent = new Intent(context, TakeoverInAppActivity.class);
Expand All @@ -196,6 +197,7 @@ public static boolean checkTakeoverInAppActivityAvailable(Context context) {
MPLog.w(LOGTAG, TakeoverInAppActivity.class.getName() + " is not registered as an activity in your application, so takeover in-apps can't be shown.");
MPLog.i(LOGTAG, "Please add the child tag <activity android:name=\"com.mixpanel.android.takeoverinapp.TakeoverInAppActivity\" /> to your <application> tag.");
mTakeoverActivityAvailable = false;
return mTakeoverActivityAvailable;
}

mTakeoverActivityAvailable = true;
Expand Down

0 comments on commit e210714

Please sign in to comment.