Telegram-Android/TMessagesProj
Aaron Labiaga b8f17ead8f
Notification shortcut update
Remove notification shortcuts after notification is sent as per 3rd item under https://github.com/android/user-interface-samples/tree/master/People#shortcuts, to allow shortcuts to be cached.

Q: Will my shortcuts appear in the long press app launcher context menu?
A: They can depending on their rank, but if you prefer not having shortcuts appear on launcher you can remove the shortcut with ShortcutManager#removeDynamicShortcuts() or #removeAllDynamicShortcuts() after sending the notification. You can also rank other app shortcuts with higher ranking, so only those dynamic shortcuts appear on launcher.

Thanks for all your great work on this. I will push for making the API better for this. Thanks again and note that this pull request can be a throwaway and I just wanted to show at what point the shortcuts can be removed. I checked out the codebase, made these changes and was able to get this working on a flashed Android 11 device. Thanks again.
2020-08-09 05:06:56 -04:00
..
config Update to 5.13.0 (1818) 2019-12-31 16:08:08 +03:00
jni Update to 6.3.0 (2042) 2020-07-27 00:11:01 +03:00
libs Update to 5.13.0 (1818) 2019-12-31 16:08:08 +03:00
src/main Notification shortcut update 2020-08-09 05:06:56 -04:00
build.gradle Update to 6.3.0 (2042) 2020-07-27 00:11:01 +03:00
google-services.json Update to 6.1.0 (1938) 2020-04-24 12:21:58 +03:00
proguard-rules.pro Update to 6.3.0 (2040) 2020-07-26 11:03:38 +03:00