Open heldderarbeit opened 2 years ago
Hi @heldderarbeit. I will have a look at this. Thanks.
Hi @heldderarbeit
I think your suggested solution to add setIconUri
to
CollectionHelper.kt is okay. I agree that having both setIconUri
and setIconBitmap
seems wasteful. But it seems like both are needed.
Describe the bug Hi, I'm not sure whether this is a bug or deliberate feature.
On F-Droid and Play Store, the following image is used to promote the app:
I'm on LineageOS 17.1 (Android 10) and can't get to display the radio image right next to the stop icon. That happens with both F-Droid and Play Store versions, and all radio stations I tried, not just some of them. It doesn't matter whether the images are automatically downloaded or manually set with the file browser, either. The color styling of the notification is absent, too. It just appears in a bland, barren manner. Only thing that seems to style is the background of the lockscreen.
Expected Lockscreen:
Actual Lockscreen:
Expected Notification:![3](https://user-images.githubusercontent.com/4840355/147832728-c0ffeb4c-1631-42e0-a0e1-4f5e5e24a3c7.png)
Actual Notification:
Expected Lockscreen:
Actual Lockscreen:
Expected Notification:![7](https://user-images.githubusercontent.com/4840355/147832745-0ee88580-9cc0-4cd4-abe4-e171c358a30e.png)
Actual Notification:
I tried older versions of the app and it seems like this is an issue since version 4.0.11. Versions 4.0.10 and older show the notifications correctly. The commit that introduces that change is most probably https://github.com/y20k/transistor/commit/7ea39179ef06400ff5db38062264b7d1c266467f (Implement PlayerNotificationManager and MediaSessionConnector) on Feb 19, 2021. Therefore the oldest working version must be https://github.com/y20k/transistor/commit/7e032eaf42a775257606722bac8762f3c26d5d2a (Translated using Weblate (Esperanto)) on Feb 15, 2021.
Seems like the problem is that
currentIconUri
is always null every time I entergetCurrentLargeIcon
ofDescriptionAdapter
inNotificationHelper.kt
in my case.Quick and Dirty Hack
There is a fix by adding a single line (setIconUri) in the CollectionHelper:
That makes the station images visible for me.