mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-16 09:20:37 +03:00
Using android.R.color.transparent instead of empty drawable for the placeholder
- For some reason Android Auto displays a square with a white fill color where the empty space should be - Got rid of empty drawable
This commit is contained in:
parent
68567731ad
commit
a0b9e738a5
@ -276,7 +276,7 @@ class AutoMediaBrowserCallback : MediaLibraryService.MediaLibrarySession.Callbac
|
||||
|
||||
private fun getPlaceholderButton() = CommandButton.Builder()
|
||||
.setDisplayName("Placeholder")
|
||||
.setIconResId(R.drawable.empty)
|
||||
.setIconResId(android.R.color.transparent)
|
||||
.setSessionCommand(
|
||||
SessionCommand(
|
||||
PlaybackService.CUSTOM_COMMAND_PLACEHOLDER,
|
||||
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<size
|
||||
android:width="120dp"
|
||||
android:height="120dp"/>
|
||||
</shape>
|
Loading…
x
Reference in New Issue
Block a user