Fix #2090 and #2088: Night mode issues with search and categories #2213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #2090 and fixes #2088
What changes did you make and why?
RecentSearchesFragment.java
andSearchActivity.java
. Wasn't necessary, and made it harder to track what was going on. Appearance related stuff should be kept in xml as much as possible.item_recent_searches.xml
to remove its white backgrounditem_recent_searches_dark_theme.xml
Was trying to fix #2095, ended up with something completely different. Fixes #2088 by accident, as
SearchCategoriesRenderer.java
also usesR.layout.item_recent_searches
which was the root cause for both issues. Sorry for taking over these issues.Note that this does not deal with the tabs issue, that is separate in #2186.
Tests performed
Tested
2.9.0-debug-master~493fa6b72
onGalaxy Nexus (emulator)
with API level28
Tested
2.9.0-debug-master~493fa6b72
onGalaxy Nexus (emulator)
with API level25
See screenshots for results below
Search - no recent searches
Search - recent searches
Search - media results
Search - no media results
Search - category results
Search - no category results
Category - media
Category - subcategories
Category - no subcategories
Category - parent categories