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

Commit dba7f923 authored by Hao Dong's avatar Hao Dong
Browse files

Fix indicator text color

Flag: com.android.systemui.constraint_bp
Bug: 348669225
Test: manual test on test app
Change-Id: Ifef1811c82da246a61f277d51a6609b10357f746
parent a37884b2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -94,8 +94,16 @@ object BiometricViewBinder {

        val textColorError =
            view.resources.getColor(R.color.biometric_dialog_error, view.context.theme)

        val attributes =
            view.context.obtainStyledAttributes(
                R.style.TextAppearance_AuthCredential_Indicator,
                intArrayOf(android.R.attr.textColor)
            )
        val textColorHint =
            view.resources.getColor(R.color.biometric_dialog_gray, view.context.theme)
            if (constraintBp()) attributes.getColor(0, 0)
            else view.resources.getColor(R.color.biometric_dialog_gray, view.context.theme)
        attributes.recycle()

        val logoView = view.requireViewById<ImageView>(R.id.logo)
        val logoDescriptionView = view.requireViewById<TextView>(R.id.logo_description)