Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c23d6d81 authored by Jiaming Cheng's avatar Jiaming Cheng
Browse files

[QSDetailedView] Revamp the cast list text style

Bug: 378513588
Flag: com.android.systemui.qs_tile_detailed_view
Test: Only change the text style. Existing unit tests still pass.
Change-Id: I132169158781689032a1fe0e4777fd51e518ce92
parent 2655d8b0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.ListAdapter
import android.widget.ListView
import android.widget.TextView
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
@@ -179,6 +180,15 @@ private fun customizeView(listView: ListView) {
                        else -> entryBackgroundMiddle
                    }
                setPadding(context, child)

                val titleTextView = entry.requireViewById<TextView>(R.id.text1)
                titleTextView.setTextAppearance(
                    SystemUiR.style.TextAppearance_TileDetailsEntryTitle
                )
                val subTitleTextView = entry.requireViewById<TextView>(R.id.text2)
                subTitleTextView.setTextAppearance(
                    SystemUiR.style.TextAppearance_TileDetailsEntrySubTitle
                )
            }
        }
    }