-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How change the icons from lockscreen? #6544
Comments
For my pixel device with Q the lock screen shows the notification in the same way as it is displayed in the notification drawer. So you can enable/disable buttons like documented in the class level JavaDoc of the To change the icons you can override the drawables used by the To for instance have your own play button you can create a drawable with name |
Yes, in my Moto Z Play the same thing that you reported happens. The lock screen shows the notification in the same way as it is displayed in the notification drawer. However, testing on A8 appears these icons also as shown in the image. View resolving code So these "extra icons" no longer appear on the lock screen. |
In case you are using the media session for lock screen only, you can try to disable the previous/next playback actions. You can disable previous/next actions of the media session by _not_using a |
How could I disable the media session next action? |
The
You can override |
This works to disable or enable features. What I wanted was not to show the next and previous buttons. But it didn't go away with your suggestion. |
Are you are saying that both, removing the ACTION_SKIP_ actions in the For which device does it work and for which does it not work? |
In fact what is happening:
Below are images as it appears on A8 and as it appears in notifications: |
I got my hand on a Samsung device to test. You are correct, there is no way to remove the buttons for navigating to the next/previous item. According to my testing, that's a bug in the implementation of Samsung:
Even when doing all the above at the same time the buttons are still visible. They are disabled but still there. That's exactly what you observed as well. So even when we advise clients of the media session, that we are not having a queue or don't want them to navigate, the Samsung lock screen is showing the navigation buttons. I don't think there is much we can do about it then. You probably want to file a bug against Samsung implementation of the lock screen. I don't have experience with that but I think you can do this here: https://developer.samsung.com/home.do Up to you, you can link to this issue here, so it should be not much work explaining. I'm happy to answer Samsung engineer's questions here in case. |
Thank you so much for your answer. I solved my problem like this (for now): This is because in versions above 8.0 mediaSession is automatically activated. In the versions below it is necessary to activate. With this the lock screen problem does not happen. |
I want to change or disable the player icons on the lock screen, as shown below. How can I do this?
The text was updated successfully, but these errors were encountered: