kopia lustrzana https://github.com/ryukoposting/Signal-Android
Reduce opacity of text story hint text.
rodzic
e00a3730b4
commit
aae888f5af
|
@ -121,12 +121,14 @@ class TextStoryPostTextEntryFragment : KeyboardEntryDialogFragment(
|
||||||
|
|
||||||
private fun presentHint() {
|
private fun presentHint() {
|
||||||
if (TextUtils.isEmpty(input.text)) {
|
if (TextUtils.isEmpty(input.text)) {
|
||||||
|
input.alpha = 0.6f
|
||||||
if (input.filters.contains(allCapsFilter)) {
|
if (input.filters.contains(allCapsFilter)) {
|
||||||
input.hint = getString(R.string.TextStoryPostTextEntryFragment__add_text).toUpperCase(Locale.getDefault())
|
input.hint = getString(R.string.TextStoryPostTextEntryFragment__add_text).toUpperCase(Locale.getDefault())
|
||||||
} else {
|
} else {
|
||||||
input.setHint(R.string.TextStoryPostTextEntryFragment__add_text)
|
input.setHint(R.string.TextStoryPostTextEntryFragment__add_text)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
input.alpha = 1f
|
||||||
input.hint = ""
|
input.hint = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue