Skip to content

Commit 9b63cc8

Browse files
committed
fix(lifecycle): fix for two onResume come on Leanplum.start.
1 parent d45ddd9 commit 9b63cc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AndroidSDK/src/com/leanplum/Leanplum.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,16 +922,17 @@ static void pause() {
922922
Log.e("You cannot call pause before calling start");
923923
return;
924924
}
925-
LeanplumInternal.setIsPaused(true);
926925

927926
if (LeanplumInternal.issuedStart()) {
928927
pauseInternal();
928+
LeanplumInternal.setIsPaused(true);
929929
} else {
930930
LeanplumInternal.addStartIssuedHandler(new Runnable() {
931931
@Override
932932
public void run() {
933933
try {
934934
pauseInternal();
935+
LeanplumInternal.setIsPaused(true);
935936
} catch (Throwable t) {
936937
Util.handleException(t);
937938
}

0 commit comments

Comments
 (0)