notification action

This commit is contained in:
2022-01-10 23:00:36 +01:00
parent 9b8ae2271b
commit 246a02371a
9 changed files with 616 additions and 5 deletions

View File

@ -45,6 +45,7 @@ public class Action
playSound,
vibrate,
createNotification,
closeNotification,
sendTextMessage;
public String getFullName(Context context)
@ -243,6 +244,9 @@ public class Action
case createNotification:
returnString.append(Miscellaneous.getAnyContext().getResources().getString(R.string.createNotification));
break;
case closeNotification:
returnString.append(Miscellaneous.getAnyContext().getResources().getString(R.string.closeNotifications));
break;
default:
returnString.append(action.toString());
}
@ -460,6 +464,9 @@ public class Action
case createNotification:
Actions.createNotification(this);
break;
case closeNotification:
Actions.closeNotification(this);
break;
default:
Miscellaneous.logEvent("w", "Action", context.getResources().getString(R.string.unknownActionSpecified), 3);
break;