Skip to content

Commit fe616c1

Browse files
authored
Merge pull request #208 from Iterable/MOB-1227-TrackInbox-Session-redundant-call
[MOB-1227] Bug Fix - Remove redundant trackInboxSession
2 parents 7a5e69b + f4ce0f7 commit fe616c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iterableapi-ui/src/main/java/com/iterable/iterableapi/ui/inbox/IterableInboxFragment.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,10 @@ public void onPause() {
181181
@Override
182182
public void onDestroy() {
183183
super.onDestroy();
184-
stopSession();
185184
IterableActivityMonitor.getInstance().removeCallback(appStateCallback);
185+
if (this.getActivity() != null && !this.getActivity().isChangingConfigurations()) {
186+
stopSession();
187+
}
186188
}
187189

188190
private final IterableActivityMonitor.AppStateCallback appStateCallback = new IterableActivityMonitor.AppStateCallback() {

0 commit comments

Comments
 (0)