File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Branch-SDK/src/main/java/io/branch/referral Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments