Skip to content

Commit abe22b6

Browse files
committed
Code cleanup refactor
1 parent 98d24c2 commit abe22b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ public static IterableApi sharedInstanceWithApiKey(Context currentContext, Strin
9292

9393
if (currentContext instanceof Activity) {
9494
Activity currentActivity = (Activity) currentContext;
95-
Intent calledIntent = currentActivity.getIntent();
96-
if (isIterableIntent(calledIntent)) {
97-
sharedInstance.setPayloadData(calledIntent);
98-
sharedInstance.tryTrackNotifOpen(calledIntent);
99-
}
95+
onNewIntent(currentActivity.getIntent());
10096
} else {
10197
IterableLogger.w(TAG, "Notification Opens will not be tracked: "+
10298
"sharedInstanceWithApiKey called with a Context that is not an instance of Activity. " +

0 commit comments

Comments
 (0)