-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No menu entry to add shortcut to home screen #4423
Comments
The app is checking here the returned value of isRequestPinShortcutSupported() before displaying this action item. |
which version of android 7 is the device running? from my understanding android added shortcut support in 7.1.1, so if this device is running 7.0 then unfortunately we won't be able to add shortcuts https://developer.android.com/reference/android/content/pm/ShortcutManager.html (Api 25) |
Version 7.1.1. As said above, the other apps have working shortcuts and have |
@bmarty this might actually be a simple case of using the By default the system version seems to support android 8.0+ but the compat version can go lower
|
Yes, this is the current imple : https://github.com/vector-im/element-android/blob/main/vector/src/main/java/im/vector/app/features/home/ShortcutCreator.kt#L57. Is there something else you are thinking about? |
ah 🤦 I confused the |
The |
nope, only needed to confirm the exact android 7 version, have removed |
Ok. I have not experience in Android development, but where do the |
ideally the permission should come through via the I'm also able to reproduce the issue on a 7.1.1 emulator and fix it by manually adding the
For some reason the shortcut permission is being commented by the ShortcutBadger library out during the manifest merging process |
it seems the workaround is to long press the element icon from the launcher which will show shortcut options and then long press those to add to the homescreen |
How? When I long-press the Element icon on the home (Samsung builtin home screen), I have |
It was commented 7 years ago... Maybe just add <uses-permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
android:maxSdkVersion="25" /> in our Manifest as a workaround, WDYT @ouchadam ? |
I see, this must be launcher dependant, using the Pixel launcher on 7.1.1 I'm able to long press the launcher icon which reveals the launcher shortcuts which I can then long press to add to the home screen
sounds reasonable to me |
Steps to reproduce
On my phone, the room settings screen and the app's long-tap context menu have no option to add a shortcut on the home screen. Shortcuts do work in other apps on the same phone.
Intended result and actual result
What did you expect?
To see options to add a shortcut to the home.
What happened instead?
There are no options to add a shortcut to the home.
Your phone model
Samsung
Operating system version
Android 7
Application version and app store
Element Android 1.3.3 (40103030) from F-Droid
Homeserver
matrix.org
Will you send logs?
No
The text was updated successfully, but these errors were encountered: