Kiwix-android: Search history suggestions are duplicated instead of reordered

Created on 27 Feb 2020  路  4Comments  路  Source: kiwix/kiwix-android

Describe the bug

Search history suggestions are duplicated instead of being moved to the top.

Expected behavior

To not see duplicate search suggestions.

Steps to reproduce the behavior:

  1. Tap on the search icon
  2. Type "wiki"
  3. Tap on "wiki"
  4. Repeat steps 1-3 for "kiwi"
  5. Tap on the search icon
  6. Tap on "wiki" (without typing anything)
  7. Repeat steps 5-6 10 times

Screenshots

Expected behavior as in 3.1.3 ("wiki" is at the top, followed by "kiwi"):

Screenshot_20200226-215905

Actual behavior (5 copies of "wiki" and no "kiwi"):

Screenshot_20200226-220514

Environment

  • Version of Kiwix Android : 3.2.0
  • Device : OnePlus 7 Pro
  • OS version : OxygenOS Beta 9
UI bug enhancement good first issue search

All 4 comments

Yea I feel that only unique searches should be shown to the users, and moved to the top if it's a duplicate search history. If this gets approved I'd like to work on this issue

Yes I confirm this is an issue. Unless @danielzgtg wants to work on this you are next in line @deborahlow97

Unless danielzgtg wants to work on this [鈥

No, I can't contribute code until May, so go ahead

You are assigned @deborahlow97

Was this page helpful?
0 / 5 - 0 ratings