Merge pull request #909 from robotal/patch-1
Update RNFirebaseNotificationManager.java
This commit is contained in:
commit
57c64668b9
|
@ -352,12 +352,14 @@ public class RNFirebaseNotificationManager {
|
||||||
nb = nb.setUsesChronometer(android.getBoolean("usesChronometer"));
|
nb = nb.setUsesChronometer(android.getBoolean("usesChronometer"));
|
||||||
}
|
}
|
||||||
if (android.containsKey("vibrate")) {
|
if (android.containsKey("vibrate")) {
|
||||||
double[] vibrate = android.getDoubleArray("vibrate");
|
ArrayList<Integer> vibrate = android.getIntegerArrayList("vibrate");
|
||||||
long[] vibrateArray = new long[vibrate.length];
|
if(vibrate != null) {
|
||||||
for (int i = 0; i < vibrate.length; i++) {
|
long[] vibrateArray = new long[vibrate.size()];
|
||||||
vibrateArray[i] = ((Double)vibrate[i]).longValue();
|
for (int i = 0; i < vibrate.size(); i++) {
|
||||||
|
vibrateArray[i] = (vibrate.get(i).longValue();
|
||||||
|
}
|
||||||
|
nb = nb.setVibrate(vibrateArray);
|
||||||
}
|
}
|
||||||
nb = nb.setVibrate(vibrateArray);
|
|
||||||
}
|
}
|
||||||
if (android.containsKey("visibility")) {
|
if (android.containsKey("visibility")) {
|
||||||
Double visibility = android.getDouble("visibility");
|
Double visibility = android.getDouble("visibility");
|
||||||
|
|
Loading…
Reference in New Issue