Skip to content

Commit

Permalink
Android: Stop warning message for alert table
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrules44 committed Feb 1, 2023
1 parent 6898376 commit 451664d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified plugins/2020.3569/android/plugin.notifications.v2.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ public int invoke(final LuaState luaState) {
String key = luaState.toString(-2);
switch (key) {
case "alert":
if (luaState.type(-1) != LuaType.STRING) {
logMsg(ERROR_MSG, "options.alert (string) expected, got " + luaState.typeName(-1));
if (luaState.type(-1) != LuaType.STRING && luaState.type(-1) != LuaType.TABLE) {
logMsg(ERROR_MSG, "options.alert (string or table) expected, got " + luaState.typeName(-1));
}
break;
case "badge":
Expand Down

0 comments on commit 451664d

Please sign in to comment.