You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
NotificationManager: delete ongoing and MediaStyle notifications on exit
The XDG Portal API doesn't have a concept of ongoing notifications. MediaStyle notifications could be changed to MPRIS in the future.
This commit is contained in:
@@ -472,6 +472,7 @@ void init_cmd_parameters(GApplication *app, struct jni_callback_data *d)
|
||||
}
|
||||
|
||||
void init__r_debug();
|
||||
void remove_ongoing_notifications();
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -500,6 +501,7 @@ int main(int argc, char **argv)
|
||||
g_signal_connect(app, "open", G_CALLBACK (open), callback_data);
|
||||
status = g_application_run(G_APPLICATION(app), argc, argv);
|
||||
g_object_unref(app);
|
||||
remove_ongoing_notifications();
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user