Closed tatokis closed 1 month ago
Does this happen in both dark and light mode? Is it reproducible if Lineage OS dialer is not a system app?
I ended up debugging this further and figured it out. This has nothing to do with ColorBlendr and is a bug in Lineage's Dialer. I thought the Dialer at first was unable to get the theme colours for some reason, but it actually did get them successfully.
What happens is that the dialer uses -1 as a fallback value and then asserts that the colours it got from the theme are != -1.
The problem with that is that -1 is actually white (0xFFFFFFFF). https://developer.android.com/reference/android/graphics/Color#WHITE
I had set a bunch of shades to be fully white, which triggered this bug. Setting them to 0xFEFEFE instead made the crash go away.
Apologies for the noise, but hopefully this helps someone in the future.
On LineageOS 21 with ColorBlendr v1.5 (F-Droid) enabled, the Dialer app crashes when someone is calling:
Simply opening the Dialer app does not cause this. There needs to be an incoming call and the screen needs to be locked.
Relevant source line from the Dialer https://github.com/LineageOS/android_packages_apps_Dialer/blob/a03a34689dc9bf832854a1daa71260c0becf4a65/java/com/android/dialer/theme/base/impl/AospThemeImpl.java#L143
Turning off "ColorBlendr service" from the settings prevents the crash. Applying "Force per app theme" to the Dialer itself does not change anything.