evilcorpltd / aTox

Reasonable Tox client for Android
GNU General Public License v3.0
370 stars 59 forks source link

Support shortcuts for chats #944

Open roihershberg opened 2 years ago

roihershberg commented 2 years ago

Support adding shortcuts for chats in the phone's launcher.

robinlinden commented 2 years ago

This is part of #651.

roihershberg commented 2 years ago

Does the issue you referenced will support 4 shortcut chats that will be displayed when long-pressing the app's icon in the launcher as well as creating a shortcut from the widgets screen in which it will launch a special activity for choosing the desired contact as well as a menu item like "Add to homescreen" from the chat fragment? That's at least what I'm planning to implement. Or you meant that some of the functionality of what I described also exists in the bubbles implementation?

robinlinden commented 2 years ago

Does the issue you referenced will support 4 shortcut chats that will be displayed when long-pressing the app's icon in the launcher as well as creating a shortcut from the widgets screen in which it will launch a special activity for choosing the desired contact as well as a menu item [...]

I've implemented shortcuts bringing you straight to chats with specific contacts that appear when long-pressing the app's icon. It's a requirement for chat bubbles.

roihershberg commented 2 years ago

Ah nice! Then maybe after the bubbles we can expand the functionality to a special activity that will be launched by dragging and dropping a 1x1 widget from the classic Android Widgets section and it will allow you to choose any contact you want to create a shortcut for. Also a "Add to homescreen" menu item in chat fragment would be nice.

robinlinden commented 2 years ago

Yeah, I guess this can be expanded a bit. :P I've only set up the ShortcutManager things I needed for the chat bubbles to work, so the widget and shortcuts in the app can be done in this issue.

robinlinden commented 2 years ago

I'll finish the ShortcutManager bits of the chat bubbles and unassign myself from this issue once they're in, and you can add the other bits you wanted if you want!

roihershberg commented 2 years ago

Nice!