Commit 48f287bd authored by SergChr's avatar SergChr

Syntax fixes

parent 39c84ac3
...@@ -217,14 +217,14 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> { ...@@ -217,14 +217,14 @@ public class SendNotificationTask extends AsyncTask<Void, Void, Void> {
for (int a = 0; a < actions.length; a++) { for (int a = 0; a < actions.length; a++) {
String actionValue = actions[a].trim(); String actionValue = actions[a].trim();
Intent actionIntent = new Intent(mContext, intentClass); Intent actionIntent = new Intent(mContext, intentClass);
actionIntent.setAction("com.evollu.react.fcm." + actions[a] + "_ACTION"); actionIntent.setAction("com.evollu.react.fcm." + actionValue + "_ACTIVE");
actionIntent.putExtras(bundle); actionIntent.putExtras(bundle);
actionIntent.putExtra("_actionIdentifier", actions[a]); actionIntent.putExtra("_actionIdentifier", actionValue);
actionIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); actionIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingActionIntent = PendingIntent.getActivity(mContext, notificationID, actionIntent, PendingIntent pendingActionIntent = PendingIntent.getActivity(mContext, notificationID, actionIntent,
PendingIntent.FLAG_UPDATE_CURRENT); PendingIntent.FLAG_UPDATE_CURRENT);
notification.addAction(1, actions[a], pendingActionIntent); notification.addAction(1, actionValue, pendingActionIntent);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment