Skip to content

Commit 05fbaec

Browse files
committed
fix hash keys
1 parent cb1a2b8 commit 05fbaec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/src/main/java/com/onesignal/flutter/OneSignalSerializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ static List<HashMap<String, Object>> convertActionButtonsToMap(List<IActionButto
8585
List<HashMap<String, Object>> convertedList = new ArrayList<HashMap<String, Object>>();
8686
for (IActionButton actionButton : actionButtons) {
8787
HashMap<String, Object> hash = new HashMap<>();
88-
hash.put("i", actionButton.getId());
89-
hash.put("n", actionButton.getText());
90-
hash.put("icon_type", actionButton.getIcon());
88+
hash.put("id", actionButton.getId());
89+
hash.put("text", actionButton.getText());
90+
hash.put("icon", actionButton.getIcon());
9191
convertedList.add(hash);
9292
}
9393
return convertedList;

0 commit comments

Comments
 (0)