Skip to content

Feature/reader search toolbar#4085

Merged
daniloercoli merged 65 commits intofeature/reader-search-masterfrom
feature/reader-search-toolbar
May 12, 2016
Merged

Feature/reader search toolbar#4085
daniloercoli merged 65 commits intofeature/reader-search-masterfrom
feature/reader-search-toolbar

Conversation

@nbradbury
Copy link
Copy Markdown
Contributor

This is the first of several PRs which will implement WordPress.com search in the Android reader. This PR doesn't perform any search yet - it simply adds a basic search UI to the reader, which includes:

  • Modifying FilteredRecyclerView to allow for a menu to be inflated in the toolbar
  • Adding a search icon in the reader toolbar which expands to show a standard Android SearchView
  • Remembering previous searches and using them as suggestions when typing a new search query

Note that the wording used in this PR isn't final - it's simply a placeholder until a later design review.

daniloercoli and others added 30 commits April 10, 2016 22:30
…e user could have cancelled them on the PlayStore).

Re-synch purchases when the user buys a subscription from the store.
Add comments.
…an subscription, and redirect the user to support.

We're not going to enable upgrades whitin the apps.
…ss-Android into feature/plans-integrate-store-step-one

# Conflicts:
#	WordPress/src/main/res/values/strings.xml
@daniloercoli
Copy link
Copy Markdown
Contributor

Seems that the back button is highlighted in the result screen. See the GIF below:

reader-search

@daniloercoli
Copy link
Copy Markdown
Contributor

daniloercoli commented May 12, 2016

I see the DB field query_string declared as nocase query_string TEXT NOT NULL COLLATE NOCASE PRIMARY KEY, but the suggestions UI seems to remember the case.

Nevermind: I got now how nocase works.

screen shot 2016-05-12 at 12 18 48

Should we call a toLowercase() on the string before inserting it in the DB?

@nbradbury
Copy link
Copy Markdown
Contributor Author

Seems that the back button is highlighted in the result screen.

I see this quite often in the emulator, not just with this PR but with others. I don't see this on a real device, though - are you also only seeing it in the emulator?

@nbradbury
Copy link
Copy Markdown
Contributor Author

Should we call a toLowercase() on the string before inserting it in the DB?

I'm not sure if you wanted me to ignore this, but just in case you didn't: I don't think we need to lowercase the string. I think the user would expect to see it remembered using the same casing they used when they entered the query.

@nbradbury
Copy link
Copy Markdown
Contributor Author

I found a small UI issue if you tap the Search icon while a tag is loading from remote

Good catch! Fixed in 62317a9.

@daniloercoli
Copy link
Copy Markdown
Contributor

Noticed that with the "Search interface" on the screen the back button closes the app, instead of returning you to the main Reader interface.

@daniloercoli
Copy link
Copy Markdown
Contributor

Seems that the back button is highlighted in the result screen.

I see this quite often in the emulator, not just with this PR but with others. I don't see this on a real device, though - are you also only seeing it in the emulator?

Seeing it on emulators only. Sorry for the false alarm, usually emulators don't have this kind of issue.

@daniloercoli
Copy link
Copy Markdown
Contributor

I found a small UI issue if you tap the Search icon while a tag is loading from remote

Good catch! Fixed in 62317a9.

I see a similar behavior if you start tapping something in the "search field" and then rotate the device.
The string just typed is remembered, but the main UI shows the previous topic items.

@nbradbury
Copy link
Copy Markdown
Contributor Author

the "Search interface" on the screen the back button closes the app

Glad you found that one - fixed in 6279f18.

@nbradbury
Copy link
Copy Markdown
Contributor Author

I see a similar behavior if you start tapping something in the "search field" and then rotate the device.
The string just typed is remembered, but the main UI shows the previous topic items.

That turned out to be a nasty one to fix, but it's taken care of now. So, ready for another round. Thanks!

nbradbury and others added 2 commits May 12, 2016 15:27
…e-store-step-one

[Plans] Integrate Google Store calls, and synch IAP with backend - step one
@daniloercoli
Copy link
Copy Markdown
Contributor

daniloercoli commented May 12, 2016

That turned out to be a nasty one to fix, but it's taken care of now. So, ready for another round. Thanks!

Sorry @nbradbury, it seems to partially fix the issue. he main text is not visible when I turn the device to landscape.

Nevermind it was a design decision.

@daniloercoli
Copy link
Copy Markdown
Contributor

@aerych - I've done with the review. If you want to take a look at this PR you're welcome.
Otherwise, this is ready to be merged.

@aerych
Copy link
Copy Markdown
Contributor

aerych commented May 12, 2016

Otherwise, this is ready to be merged.

Merge away :) No need to wait for me

@daniloercoli
Copy link
Copy Markdown
Contributor

:shipit:

@daniloercoli daniloercoli merged commit 6e3335b into feature/reader-search-master May 12, 2016
@daniloercoli daniloercoli deleted the feature/reader-search-toolbar branch May 12, 2016 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants