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:
Alex Katlein 2023-08-02 19:43:55 +02:00
parent 68567731ad
commit a0b9e738a5
No known key found for this signature in database
GPG Key ID: AC4D3B5840321774
2 changed files with 1 additions and 8 deletions

View File

@ -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,

View File

@ -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>