File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android/src/main/java/io/wazo/callkeep Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1079,11 +1079,11 @@ private WritableMap storeSettings(ReadableMap options) {
10791079 }
10801080
10811081 protected static void fetchStoredSettings (@ Nullable Context fromContext ) {
1082- Context context = fromContext != null ? fromContext : instance .getAppContext ();
1083- if (instance == null && context == null ) {
1082+ if (instance == null && fromContext == null ) {
10841083 Log .w (TAG , "[RNCallKeepModule][fetchStoredSettings] no instance nor fromContext." );
10851084 return ;
10861085 }
1086+ Context context = fromContext != null ? fromContext : instance .getAppContext ();
10871087 _settings = new WritableNativeMap ();
10881088 if (context == null ) {
10891089 Log .w (TAG , "[RNCallKeepModule][fetchStoredSettings] no react context found." );
You can’t perform that action at this time.
0 commit comments