1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

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);

View File

@ -18,6 +18,7 @@
android:focusable="true"
android:focusableInTouchMode="true"
android:hint="@string/search"
android:textColor="@color/white"
android:imeOptions="actionSearch|flagNoFullscreen"
android:inputType="textFilter|textNoSuggestions"
android:maxLines="1"
@ -46,6 +47,7 @@
android:layout_gravity="center"
android:contentDescription="@string/search"
android:scaleType="fitCenter"
app:tint="@color/white"
app:srcCompat="@drawable/ic_close"
tools:ignore="RtlHardcoded" />
</FrameLayout>