Fix Search colors on KitKat

This commit is contained in:
krlvm 2021-03-28 14:55:54 +03:00
parent f477ab84d5
commit 01e8654fbd
No known key found for this signature in database
GPG key ID: B8552A91FD265536
2 changed files with 5 additions and 0 deletions

View file

@ -486,6 +486,9 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I
+ lastSearchedString);
}
searchEditText.setText(searchString);
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
searchEditText.setHintTextColor(searchEditText.getTextColors().withAlpha(128));
}
if (TextUtils.isEmpty(searchString) || TextUtils.isEmpty(searchEditText.getText())) {
searchToolbarContainer.setTranslationX(100);