Skip to content

Commit f4ce0f7

Browse files
committed
[MOB-1227] Bug Fix - Remove redundant trackInboxSession
Adding Check to see if the fragment is destroyed for configuration changes.
1 parent 713aeed commit f4ce0f7

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

Lines changed: 3 additions & 1 deletion
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)