Skip to content

Commit cf05cc0

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BranchConfigurationController {
5151
* @return Boolean indicating if test mode is enabled
5252
*/
5353
private fun isTestModeEnabled(): Boolean {
54-
return Branch.getInstance().prefHelper_.getBool("bnc_test_mode")
54+
return Branch.getInstance()?.prefHelper_?.getBool(PrefHelper.KEY_TEST_MODE) ?: false
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)