mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Apply selected state to custom boost field instead of relying on focus.
This commit is contained in:
committed by
Cody Henthorne
parent
3feb73789d
commit
7385112115
@@ -170,6 +170,7 @@ data class Boost(
|
||||
custom.setText("")
|
||||
}
|
||||
|
||||
custom.isSelected = model.isCustomAmountFocused
|
||||
custom.setOnFocusChangeListener { _, hasFocus ->
|
||||
model.onCustomAmountFocusChanged(hasFocus)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/rounded_outline_accent_38dp" android:state_focused="true" />
|
||||
<item android:drawable="@drawable/rounded_outline_accent_38dp" android:state_selected="true" />
|
||||
<item android:drawable="@drawable/rounded_outline_38dp" />
|
||||
</selector>
|
||||
Reference in New Issue
Block a user