Update RNFirebaseNotifications.java

This commit is contained in:
Vojtech Novak
2018-07-25 09:31:13 +02:00
committed by GitHub
parent 455de03f27
commit 3078bae754

View File

@@ -323,10 +323,8 @@ public class RNFirebaseNotifications extends ReactContextBaseJavaModule implemen
Context ctx = getReactApplicationContext();
int resId = getResId(ctx, bodyLocKey);
return ctx.getResources().getString(resId, (Object[]) bodyLocArgs);
} else if (body != null) {
return body;
} else {
return null;
return body;
}
}
@@ -338,10 +336,8 @@ public class RNFirebaseNotifications extends ReactContextBaseJavaModule implemen
Context ctx = getReactApplicationContext();
int resId = getResId(ctx, titleLocKey);
return ctx.getResources().getString(resId, (Object[]) titleLocArgs);
} else if (title != null) {
return title;
} else {
return null;
return title;
}
}