Commit Graph

5566 Commits

Author SHA1 Message Date
Winson d96fa13369 Fixing RTL wallpaper scrolling.
- Ensure that we map the scroll offsets to the full wallpaper offset 
  range
- Default to either edge of the wallpaper (depending on RTL) to match
  the default system wallpaper behavior (ag/1265418)

Bug: 28795125
Bug: 29398681
Change-Id: I36c316095057912d2dda0beb43bd1e6aaeac3fdc
2016-07-28 16:05:47 -07:00
Tony Wickham 71538da6e2 Merge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher3-calgary 2016-07-28 00:29:45 +00:00
Sunny Goyal e117f53f36 Merge "Fade QSB with the workspace as the overlay enters" into ub-launcher3-calgary 2016-07-28 00:23:04 +00:00
Hyunyoung Song d7380e210e Merge "Remove two redundant layout pass in AllAppsTransitionController." into ub-launcher3-calgary 2016-07-28 00:09:12 +00:00
Hyunyoung Song dd60ce41b3 Remove two redundant layout pass in AllAppsTransitionController.
Change-Id: I48d043820db962c58e97a09d7888303c1d5bf4ad
2016-07-27 17:08:38 -07:00
Adam Cohen 2a82afd6f6 Fade QSB with the workspace as the overlay enters
Change-Id: Iadab9d9f051a85f6772a5d54d38534fcf1b029d7
2016-07-27 17:00:20 -07:00
Tony Wickham b9da46275b Cleanup deferred drag when closing deep shortcuts container.
This fixes those states where a drag view dangles on the screen
forever until launcher restarts. For instance, long press
Settings and press home before letting go.

Bug: 30291280

Change-Id: Ib8c403a02a17f35ba170c21f78f41bdc3b48d096
2016-07-27 23:44:53 +00:00
Winson a81f580fb7 Clearing search query after clearing input text.
Bug: 30435142
Change-Id: I3f00e1339aba46f4ab3cd092e59a94b506179dcf
2016-07-27 13:50:05 -07:00
Hyunyoung Song e3876e8dd0 Change default animation duration for all apps open and close.
> Also set different interpolator for all apps opening clicking the caret

Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
2016-07-27 11:54:02 -07:00
Hyunyoung Song 0dc7e91d5c Merge "AllAppsTransitionController always use LauncherStateTransitionAnimation b/30375760" into ub-launcher3-calgary 2016-07-27 18:03:52 +00:00
Hyunyoung Song 9dcf0a3ef7 AllAppsTransitionController always use LauncherStateTransitionAnimation
b/30375760

Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
2016-07-27 10:55:51 -07:00
Sunny Goyal cdef9dd35d Merge "Match updated redlines for shortcuts." into ub-launcher3-calgary 2016-07-27 03:05:48 +00:00
Peter Schiller 2ee96c86bc Merge "Moved hide keyboard to its own method" into ub-launcher3-calgary 2016-07-27 02:31:46 +00:00
Tony 780c926db5 Match updated redlines for shortcuts.
- Align shortcut icons with original icon.
- Drag handle is lighter and smaller.
- Shortcut pills are slightly wider to accommodate long text.

Bug: 28980830
Change-Id: I8e9709e3cbdb9df86a805a4b63a696975c61df5a
2016-07-26 17:54:02 -07:00
Peter Schiller 35d96306ad Moved hide keyboard to its own method
Change-Id: I3f5877965a2b8f92d48e2fecef54f400b6e455d2
2016-07-26 17:34:05 -07:00
Tony Wickham 10717bfcae Merge "Remove DisallowIntercept runnable from ShortcutsContainerListener." into ub-launcher3-calgary 2016-07-27 00:16:56 +00:00
Tony eec1f9a839 Add arrow view to deep shortcuts container.
- We create a trangular path, which we use as the view's
  outline (for the shadow) and as its PathShape background.
- We scale up the arrow as the container opens.

Bug: 28980830
Change-Id: I71e566552f063dfdb69067bb7e3cee659988f934
2016-07-26 17:10:05 -07:00
Tony Wickham 47c5a49579 Remove DisallowIntercept runnable from ShortcutsContainerListener.
This was copied from ForwardingListener, which was used to prevent
scrollable parents from intercepting swipe gestures. We only use
long press, so we don't want to do this.

Bug: 30230790
Change-Id: Icbb692c1b46ad8287af2942baa452f3578fee679
2016-07-26 16:54:31 -07:00
Tony Wickham e9381d60cc Merge "Remove hover-to-launch gesture for shortcuts." into ub-launcher3-calgary 2016-07-26 23:11:08 +00:00
Tony Wickham bf0ee9a305 Remove hover-to-launch gesture for shortcuts.
- You can no longer long press and drag over shortcuts before
  lifting to launch them.
- Dragging in any direction past a threshold enters spring-loaded mode.

Bug: 28980830
Change-Id: I36bfc379cc983017456a3ef0314faa1ac9691c36
2016-07-26 15:55:11 -07:00
Sunny Goyal 984c260a98 Merge "Removing shadow and badging from the icon which is shown in the menu These are added as soon as the icon is added to the workspace" into ub-launcher3-calgary 2016-07-26 22:15:09 +00:00
Sunny Goyal 10923b30a2 Removing shadow and badging from the icon which is shown in the menu
These are added as soon as the icon is added to the workspace

Bug: 28980830
Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
2016-07-26 14:18:09 -07:00
Sunny Goyal 8c06310b06 Merge "Adding TransformingTouchDelegate to allow transforming touch events before sending to the delegate." into ub-launcher3-calgary 2016-07-26 17:55:58 +00:00
Sunny Goyal c664f24de2 Merge "Fixing regression where the source icon becomes visible while dragging" into ub-launcher3-calgary 2016-07-26 17:20:25 +00:00
Winson Chung 2f88ef34fb Merge "Ensure that we update the preview layout rule when not animating." into ub-launcher3-calgary 2016-07-26 16:47:50 +00:00
Sunny Goyal 6f155340b9 Merge "Added custom actions for showing the shortcuts menu and adding a quick action on the home screen" into ub-launcher3-calgary 2016-07-26 00:39:51 +00:00
Sunny Goyal 3ffa64df36 Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen

Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
2016-07-25 17:39:34 -07:00
Sunny Goyal 8f8f398941 Adjusting the text shadows
Bug: 30192204
Change-Id: I4a12246521c41146b801f326a3d37e88aa49b727
2016-07-25 17:34:09 -07:00
Winson 8f288aac99 Ensure that we update the preview layout rule when not animating.
Bug: 28166173
Change-Id: Ibf0245f2dd667216ccabb23a1b279b1801d60cac
2016-07-25 17:12:32 -07:00
Sunny Goyal e6fd19b19f Fixing regression where the source icon becomes visible while dragging
Bug: 30291280
Change-Id: I5687e00371315a318e8ff93dd3de4c5f437a6971
2016-07-25 15:22:27 -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 b0e80bcee7 Fixing missed events during motion interaction
> Only ignoring touch events during the start of the motion events
> Handling action_cancel

Bug: 30291280
Change-Id: I4aa791b30c65ebaff90bb2f232d77de62ab6a033
2016-07-25 13:33:44 -07:00
Winson Chung 76acffce3d Merge "Ensure we still build the hw layers when pulling up all apps." into ub-launcher3-calgary 2016-07-25 18:32:06 +00:00
Sunny Goyal 9b6e6ce381 Merge "Updating the search hint to contain the icon as a span object." into ub-launcher3-calgary 2016-07-25 16:39:24 +00:00
Winson fadbe8ffbd Fixing regression in folder positioning.
- When we had the search bar, the workspace padding always 
  accounted for the search bar (and therefor drop target bar) height
  when the folder opened.  Now that there is no padding on the top, we
  should offset the bar whenever possible to ensure that the drop target
  bar is visible.

Bug: 30110595
Change-Id: Ia9a8581981c777f2507b6bd880994a3dcfd52c39
2016-07-23 01:15:08 +00:00
Winson 61d9e78f23 Ensure we still build the hw layers when pulling up all apps.
Bug: 30310330
Change-Id: I0d9f2fe01230bdb333c098b5515fc196ac2da2dc
2016-07-22 15:07:23 -07:00
Hyunyoung Song 68f98ac102 Long press on the caret should start search on all apps container
Change-Id: I87e6b8a9b43bf8a84bcf4d39302bc5c6f6a5f3fd
2016-07-22 14:26:14 -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
Sunny Goyal 58368b1515 Merge "Increasing the size of the drag icon when a shortcut is dragged" into ub-launcher3-calgary 2016-07-22 17:47:50 +00:00
Hyunyoung Song 7122cb8e2b Merge "Animate discovery bounce for all apps pull up interaction b/30221381" into ub-launcher3-calgary 2016-07-22 00:33:13 +00:00
Hyunyoung Song c001cf5620 Animate discovery bounce for all apps pull up interaction
b/30221381

> Will not support landscape case. If the user knows how to enable
rotation, it's very unlikely they don't know how to bring up apps drawer
> If unlocked using finger unlock immediately after screen is turned
off, bounce is not shown due to delay in ACTION_SCREEN_OFF broadcast

Change-Id: Ia8b7e572eaa4aeab8b1add1e5660fee3a63ba21c
2016-07-21 17:32:43 -07:00
Tony Wickham 9d6df217af Merge "Fix deep shortcuts RTL issues." into ub-launcher3-calgary 2016-07-21 22:26:56 +00:00
Sunny Goyal 157793dda4 Increasing the size of the drag icon when a shortcut is dragged
Change-Id: I7d768657300d3229e05d1eb18aec3720a9098ffc
2016-07-21 15:18:24 -07:00
Tony Wickham 3e97622d16 Fix deep shortcuts RTL issues.
- Container was shifted off screen.
- Touch down x coordinate was incorrect, causing the deferred
  drag to start immediately upon moving the original icon.

Bug: 30075428
Change-Id: I148b6f4f7945ecbcf67b52ba26a2af0065d8f538
2016-07-21 15:13:25 -07:00
Hyunyoung Song 1ce0e30451 Fix NPE on clicking the all apps caret.
Change-Id: I2623e7470ffe711bce375699b9579803ded6c02f
2016-07-21 12:47:28 -07:00
Sunny Goyal 4a44b6e59f Merge "Optimizing open shortcuts container lookep" into ub-launcher3-calgary 2016-07-21 18:57:21 +00:00
Hyunyoung Song 5aa2714959 Add user event log for deep shortcuts and all apps opening interaction.
b/30114798

Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
2016-07-21 11:48:37 -07:00
Winson Chung 06580312ed Merge changes I09bce218,Id5716a34 into ub-launcher3-calgary
* changes:
  Matching hotseat to spec.
  Fixing issue with shadow drawing over search bar.
2016-07-21 16:58:42 +00:00
Sunny Goyal 71b3d1c38e Optimizing open shortcuts container lookep
findviewById does a DFS, inseat only looking at the first level children

Change-Id: Idc028a56648ca026c6022425e3a6e7453fa91986
2016-07-20 17:42:58 -07:00