mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Add updated search hint text when filter is enabled.
This commit is contained in:
committed by
Greyson Parrelli
parent
54d0df9a05
commit
ec3ec969eb
@@ -7,6 +7,7 @@ import android.util.AttributeSet
|
||||
import android.view.View
|
||||
import android.view.ViewAnimationUtils
|
||||
import android.widget.EditText
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import androidx.core.animation.addListener
|
||||
import androidx.core.widget.addTextChangedListener
|
||||
@@ -49,6 +50,10 @@ class Material3SearchToolbar @JvmOverloads constructor(
|
||||
})
|
||||
}
|
||||
|
||||
fun setSearchInputHint(@StringRes hintStringRes: Int) {
|
||||
input.setHint(hintStringRes)
|
||||
}
|
||||
|
||||
fun display(x: Float, y: Float) {
|
||||
if (Build.VERSION.SDK_INT < 21) {
|
||||
visibility = VISIBLE
|
||||
|
||||
Reference in New Issue
Block a user