OSDN Git Service

Update Search recents behavior
authorFabrice Di Meglio <fdimeglio@google.com>
Fri, 23 May 2014 23:03:43 +0000 (16:03 -0700)
committerFabrice Di Meglio <fdimeglio@google.com>
Fri, 23 May 2014 23:09:53 +0000 (16:09 -0700)
commit7e4855e8f644bdecf68ec65b8c1b7c08624a4876
treec514f2ef7245b32b09718d8fcd0793fd0f24353f
parent2416a3e071785241c15463b20d1d34001ba931af
Update Search recents behavior

- per UX request
- Search recents show now by defaults with the recent searches
when the SearchView is empty
- when we press on a Serach recent, we are showing the Search results
and the recents are disappearing
- when keying text in the SearchView, we hide the recents and start
showing the results
- we still save the Search query when hitting on a result

Change-Id: I6c2be21660a30f6973dea27d4852b2068a05963d
src/com/android/settings/SettingsActivity.java
src/com/android/settings/dashboard/SearchResultsSummary.java