mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Fix Search colors on KitKat
This commit is contained in:
		| @@ -486,6 +486,9 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I | |||||||
|                     + lastSearchedString); |                     + lastSearchedString); | ||||||
|         } |         } | ||||||
|         searchEditText.setText(searchString); |         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())) { |         if (TextUtils.isEmpty(searchString) || TextUtils.isEmpty(searchEditText.getText())) { | ||||||
|             searchToolbarContainer.setTranslationX(100); |             searchToolbarContainer.setTranslationX(100); | ||||||
|   | |||||||
| @@ -18,6 +18,7 @@ | |||||||
|         android:focusable="true" |         android:focusable="true" | ||||||
|         android:focusableInTouchMode="true" |         android:focusableInTouchMode="true" | ||||||
|         android:hint="@string/search" |         android:hint="@string/search" | ||||||
|  |         android:textColor="@color/white" | ||||||
|         android:imeOptions="actionSearch|flagNoFullscreen" |         android:imeOptions="actionSearch|flagNoFullscreen" | ||||||
|         android:inputType="textFilter|textNoSuggestions" |         android:inputType="textFilter|textNoSuggestions" | ||||||
|         android:maxLines="1" |         android:maxLines="1" | ||||||
| @@ -46,6 +47,7 @@ | |||||||
|             android:layout_gravity="center" |             android:layout_gravity="center" | ||||||
|             android:contentDescription="@string/search" |             android:contentDescription="@string/search" | ||||||
|             android:scaleType="fitCenter" |             android:scaleType="fitCenter" | ||||||
|  |             app:tint="@color/white" | ||||||
|             app:srcCompat="@drawable/ic_close" |             app:srcCompat="@drawable/ic_close" | ||||||
|             tools:ignore="RtlHardcoded" /> |             tools:ignore="RtlHardcoded" /> | ||||||
|     </FrameLayout> |     </FrameLayout> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 krlvm
					krlvm