diff options
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index baf26abe322..f68f8a9ef62 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -1761,6 +1761,26 @@ handle_one_android_event (struct android_display_info *dpyinfo, | |||
| 1761 | free (event->dnd.uri_or_string); | 1761 | free (event->dnd.uri_or_string); |
| 1762 | goto OTHER; | 1762 | goto OTHER; |
| 1763 | 1763 | ||
| 1764 | case ANDROID_NOTIFICATION_DELETED: | ||
| 1765 | case ANDROID_NOTIFICATION_ACTION: | ||
| 1766 | |||
| 1767 | if (event->notification.type == ANDROID_NOTIFICATION_DELETED) | ||
| 1768 | android_notification_deleted (&event->notification, &inev.ie); | ||
| 1769 | else | ||
| 1770 | { | ||
| 1771 | Lisp_Object action; | ||
| 1772 | |||
| 1773 | action = android_decode_utf16 (event->notification.action, | ||
| 1774 | event->notification.length); | ||
| 1775 | android_notification_action (&event->notification, &inev.ie, | ||
| 1776 | action); | ||
| 1777 | } | ||
| 1778 | |||
| 1779 | /* Free dynamically allocated data. */ | ||
| 1780 | free (event->notification.tag); | ||
| 1781 | free (event->notification.action); | ||
| 1782 | goto OTHER; | ||
| 1783 | |||
| 1764 | default: | 1784 | default: |
| 1765 | goto OTHER; | 1785 | goto OTHER; |
| 1766 | } | 1786 | } |
| @@ -4740,7 +4760,7 @@ android_sync_edit (void) | |||
| 4740 | 4760 | ||
| 4741 | /* Return a copy of the specified Java string and its length in | 4761 | /* Return a copy of the specified Java string and its length in |
| 4742 | *LENGTH. Use the JNI environment ENV. Value is NULL if copying | 4762 | *LENGTH. Use the JNI environment ENV. Value is NULL if copying |
| 4743 | *the string fails. */ | 4763 | the string fails. */ |
| 4744 | 4764 | ||
| 4745 | static unsigned short * | 4765 | static unsigned short * |
| 4746 | android_copy_java_string (JNIEnv *env, jstring string, size_t *length) | 4766 | android_copy_java_string (JNIEnv *env, jstring string, size_t *length) |