mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-20 07:44:39 +08:00
cast to (Object[])
This commit is contained in:
@@ -323,7 +323,7 @@ public class RNFirebaseNotifications extends ReactContextBaseJavaModule implemen
|
||||
String[] titleLocArgs = notification.getTitleLocalizationArgs();
|
||||
Context ctx = getReactApplicationContext();
|
||||
int resId = getResId(ctx, titleLocKey);
|
||||
return ctx.getResources().getString(resId, titleLocArgs);
|
||||
return ctx.getResources().getString(resId, (Object[]) titleLocArgs);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -337,7 +337,7 @@ public class RNFirebaseNotifications extends ReactContextBaseJavaModule implemen
|
||||
String[] bodyLocArgs = notification.getBodyLocalizationArgs();
|
||||
Context ctx = getReactApplicationContext();
|
||||
int resId = getResId(ctx, bodyLocKey);
|
||||
return ctx.getResources().getString(resId, bodyLocArgs);
|
||||
return ctx.getResources().getString(resId, (Object[]) bodyLocArgs);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user