Skip to content

Commit 0b8d0fc

Browse files
Update Branch-SDK/src/main/java/io/branch/referral/Branch.java
Co-authored-by: matter-code-review[bot] <150888575+matter-code-review[bot]@users.noreply.github.com>
1 parent 6d60bde commit 0b8d0fc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Branch-SDK/src/main/java/io/branch/referral/Branch.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,13 @@ public void disableAdNetworkCallouts(boolean disabled) {
517517
*
518518
* @param expectDelayedInit A {@link Boolean} to set the expectation flag.
519519
*/
520-
public static void expectDelayedSessionInitialization(boolean expectDelayedInit) {
521-
disableAutoSessionInitialization = expectDelayedInit;
522-
if (Branch.getInstance() != null && expectDelayedInit) {
523-
Branch.getInstance().branchConfigurationController_.setDelayedSessionInitUsed(true);
524-
}
525-
}
520+
public static void expectDelayedSessionInitialization(boolean expectDelayedInit) {
521+
disableAutoSessionInitialization = expectDelayedInit;
522+
Branch instance = Branch.getInstance();
523+
if (instance != null && expectDelayedInit) {
524+
instance.branchConfigurationController_.setDelayedSessionInitUsed(true);
525+
}
526+
}
526527

527528
/**
528529
* <p>Sets a custom base URL for all calls to the Branch API. Requires https.</p>

0 commit comments

Comments
 (0)