Merge pull request #1341 from vonovak/patch-1

simplify obtaining notification title and body
This commit is contained in:
Michael Diarmid 2018-07-25 09:03:57 +01:00 committed by GitHub
commit 0a714fe465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

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;
}
}