Skip to content

Fix #2090 and #2088: Night mode issues with search and categories #2213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2019
Merged

Fix #2090 and #2088: Night mode issues with search and categories #2213

merged 1 commit into from
Jan 1, 2019

Conversation

domdomegg
Copy link
Member

Description

Fixes #2090 and fixes #2088

What changes did you make and why?

  • Removed theme dependent code from RecentSearchesFragment.java and SearchActivity.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.
  • Updated item_recent_searches.xml to remove its white background
  • Deleted now unused item_recent_searches_dark_theme.xml

Was trying to fix #2095, ended up with something completely different. Fixes #2088 by accident, as SearchCategoriesRenderer.java also uses R.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 on Galaxy Nexus (emulator) with API level 28
Tested 2.9.0-debug-master~493fa6b72 on Galaxy Nexus (emulator) with API level 25

See screenshots for results below

Search - no recent searches

Light Dark
screenshot_1545434280 screenshot_1545434272

Search - recent searches

Light Dark
screenshot_1545434403 screenshot_1545434390

Search - media results

Light Dark
screenshot_1545434421 screenshot_1545434451

Search - no media results

Light Dark
screenshot_1545434530 screenshot_1545434518

Search - category results

Light Dark
screenshot_1545434535 screenshot_1545434547

Search - no category results

Light Dark
screenshot_1545434531 screenshot_1545434520

Category - media

Light Dark
screenshot_1545434694 screenshot_1545434671

Category - subcategories

Light Dark
screenshot_1545434695 screenshot_1545434673

Category - no subcategories

Light Dark
screenshot_1545435134 screenshot_1545434679

Category - parent categories

Light Dark
screenshot_1545434696 screenshot_1545434674

@codecov-io
Copy link

Codecov Report

Merging #2213 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2213      +/-   ##
=========================================
+ Coverage    5.87%   5.88%   +<.01%     
=========================================
  Files         231     231              
  Lines       11587   11572      -15     
  Branches     1078    1077       -1     
=========================================
  Hits          681     681              
+ Misses      10849   10834      -15     
  Partials       57      57
Impacted Files Coverage Δ
...va/fr/free/nrw/commons/explore/SearchActivity.java 0% <ø> (ø) ⬆️
...explore/recentsearches/RecentSearchesFragment.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 493fa6b...39a6f1d. Read the comment docs.

@maskaravivek maskaravivek merged commit 5317063 into commons-app:master Jan 1, 2019
@domdomegg domdomegg deleted the fix-night-search-categories branch January 1, 2019 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Night mode: Search activity Night mode: Category pages
3 participants