Commit Graph

19 Commits

Author SHA1 Message Date
Jon Miranda
bb918b3532 Only reset search field when back key is hit if there is no query.
Bug: 31432372
Change-Id: I93c7ee661597f934402f464c4f0182a8fad38d39
2016-09-19 09:31:56 -07:00
Hyunyoung Song
c2fe1147f9 Show IME when search query != null after rotation
Change-Id: Ia35fba140a5addc21bf347cd63b72dc4e357421e
2016-09-09 15:02:20 -07:00
Winson
45a11dd9ee Prevent refreshing app search results with empty query.
- Any change to the TextView text will cause mQuery to be set,
  which will cause a new search next time refreshSearchResult
  is called.  We should also be checking there if it is a valid
  search query before starting a new search.

Bug: 30606307
Change-Id: I08640c56199211f2aeea2386fcf699810853ab58
2016-08-03 18:01:10 -07:00
Winson
a81f580fb7 Clearing search query after clearing input text.
Bug: 30435142
Change-Id: I3f00e1339aba46f4ab3cd092e59a94b506179dcf
2016-07-27 13:50:05 -07:00
Peter Schiller
35d96306ad Moved hide keyboard to its own method
Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
2016-07-26 17:34:05 -07:00
Hyunyoung Song
75df256cc1 Merge "Refresh the all apps container search result when apps are installed" into ub-launcher3-calgary 2016-07-25 21:28:23 +00:00
Hyunyoung Song
f66b680239 Refresh the all apps container search result when apps are installed
b/30102209

> After user comes back from the play store after installing
the app that didn't exist when searched, the app will now be
shown in the filtered search result list.

Change-Id: Ia5fe501596127a7401928e5db2d6f425ad753701
2016-07-25 14:24:08 -07:00
Sunny Goyal
ce3fffb5fb Updating the search hint to contain the icon as a span object.
This makes the icon part of the hint text, and removes any need for
custom focus event handling.
Also the icon will now appear at the start of the text  based on the
direction of the text and not the direction of the layout

Change-Id: I06c5cf99492d75b1005c69ec7c521cde0fdab010
2016-07-22 13:17:30 -07:00
Peter Schiller
637e40ad6f Centered typing in search field
Change-Id: Iae46722195d0d06ff88da52df4fa48ca7b157512
2016-07-19 17:30:44 -07:00
Hyunyoung Song
645764e3e5 Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented
namely in two classes. ScrollGestureDetector and AllAppsTransitionController.

FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and
not in the extending builds. This way, we can safely iterate without
turning it on the shipped ready version.
b/28917826

Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
2016-06-06 14:19:02 -07:00
Sunny Goyal
05c8c57fa7 Removing dependency on LauncherCallbacks for getting the search bounds
> Instead of handling insets in BaseContainerView, directly applying
  them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
  handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
2016-03-17 11:57:39 -07:00
Sunny Goyal
2494c3f168 Moving createMarketSearchIntent to search controller to allow it to be customizable
Change-Id: I3a05abf7c0357a2f92c8a3fa2dc223f9eacc221e
2016-03-03 11:36:38 -08:00
Sunny Goyal
9e3fee1427 Starting market search whenever the search key is pressed
Bug: 27365428
Change-Id: I508cb35cd1aaab1eac6cf60014fa6f80592365ef
(cherry picked from commit 992a5f566e)
2016-03-03 18:36:35 +00:00
Sunny Goyal
0ac7ede56a Merging search bar with all apps
Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
2016-02-08 14:55:22 -08:00
Winson Chung
1ae7a5018b Moving prediction icons back into recycler view.
- Fixes two accessibility issues with the prediction bar being
  separate from the rest of the list of icons related to scrolling
  and switch access.

Bug: 21725276
Change-Id: Ibc48e5028cace9a77000e6646b951f021910465d
2015-07-06 17:46:32 -07:00
Sunny Goyal
4919827990 Revert "Removing onInitialize method and creating searchManager in getView"
This reverts commit 6530017bb8.

Change-Id: I8ecfd21ec854cfe1774f16d2d50c7a0e45dd6865
2015-06-17 16:09:07 +00:00
Sunny Goyal
6530017bb8 Removing onInitialize method and creating searchManager in getView
Change-Id: I3e2620a7839dfd5e6ecb76f24b384eb50e820a94
2015-06-16 18:43:58 -07:00
Sunny Goyal
5183285847 Using component key for app search results
Change-Id: Idc610cde340331892a5fabfa8bf952d136675f81
2015-06-16 11:41:38 -07:00
Winson Chung
ef7f874a88 Refactoring all apps search to support external search bar.
- Adding support for an external search bar that can be used
  to search a container view.  This adds a new interface
  AllAppsSearchController which manages the external search
  bar.  Each controller will have its own search implementation
  which means that we no longer need a common AppSearchManager
  interface.
- Removing elevation controller as we no longer have a builtin
  search bar in all apps
- Refactoring container view insets so that they behave
  the same in all containers.
- Refactoring apps view to ensure that we only update the number
  of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
2015-06-15 14:22:47 -07:00