We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39aea01 + d784305 commit 1908a4dCopy full SHA for 1908a4d
1 file changed
android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java
@@ -1079,11 +1079,11 @@ private WritableMap storeSettings(ReadableMap options) {
1079
}
1080
1081
protected static void fetchStoredSettings(@Nullable Context fromContext) {
1082
- Context context = fromContext != null ? fromContext : instance.getAppContext();
1083
- if (instance == null && context == null) {
+ if (instance == null && fromContext == null) {
1084
Log.w(TAG, "[RNCallKeepModule][fetchStoredSettings] no instance nor fromContext.");
1085
return;
1086
+ Context context = fromContext != null ? fromContext : instance.getAppContext();
1087
_settings = new WritableNativeMap();
1088
if (context == null) {
1089
Log.w(TAG, "[RNCallKeepModule][fetchStoredSettings] no react context found.");
0 commit comments