Commit Graph

11688 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot e8af8a65bc Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-07-25 16:45:38 +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
Bill Yi 87c235f2e4 Import translations. DO NOT MERGE
Change-Id: Ibe25b8c09e10130238dc0e9e73503825baaf604d
Auto-generated-cl: translation import
2016-07-25 08:58:38 -07: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
Tony Wickham 35a754bade Change shortcut background to #FFFFFF, as per spec.
Bug: 28980830
Change-Id: Ie05ce97267cdeaebeb48691a948c61961d2a39d2
2016-07-20 17:40:48 -07:00
Tony Wickham f3c911cb10 Merge "Add drag handle to shortcuts." into ub-launcher3-calgary 2016-07-21 00:38:35 +00:00
Hyunyoung Song 852974375d Merge "Centered all apps search text" into ub-launcher3-calgary 2016-07-21 00:35:05 +00:00
Tony Wickham 377ed3f63e Add drag handle to shortcuts.
Also use short text if long text is ellipsized.

Bug: 30212144
Bug: 28980830
Change-Id: I213766bca0561d284d1da883ca37b0a42d886129
2016-07-20 17:28:34 -07:00
Winson 6231ede10c Matching hotseat to spec.
- Fixing regression in hottest folder background getting clipped
- Ensuring that the padding is correctly applied in vertical bar layout
  to match workspace

Bug: 30021487
Change-Id: I09bce21829867f4bd4e50646e565959421e4984c
2016-07-20 17:21:55 -07:00
Winson be9798b6a2 Fixing issue with shadow drawing over search bar.
- Adding notion of clip-against view for click shadow alignment.

Bug: 30255227
Change-Id: Id5716a3484051a55690025d61f709e3d96cbe024
2016-07-20 16:21:24 -07:00
Sunny Goyal 2eeae10e98 Merge "Fixing missing user check when updating shortcuts for an app" into ub-launcher3-calgary 2016-07-20 22:13:58 +00:00
Winson 11439c5854 Fixing small regressions from layout tweaks
- Ensure that the caret is the right height
- Ensure that the workspace page spacing matches the workspace padding,
  but just offscreen

Bug: 30021487
Change-Id: Iaf4b33db0f6456b74986638fb6b6af78fc6e1859
2016-07-20 22:09:57 +00:00
Sunny Goyal 860538df1d Fixing missing user check when updating shortcuts for an app
Change-Id: I889c555d3402fd71098af29b78eb6d959a071080
2016-07-20 15:04:23 -07:00
Peter Schiller 03340309e2 Caret background protection
Change-Id: I5f902a3977677e7848932a6a60992a62f1638e39
2016-07-20 14:27:23 -07:00
Sunny Goyal 1f418d2361 Merge "Adding support for dynamically adding shadows to the icon" into ub-launcher3-calgary 2016-07-20 19:15:09 +00:00
Sunny Goyal cb6287aedc Merge "Using the same clip animation for wallpaper button as using for app icons" into ub-launcher3-calgary 2016-07-20 19:01:50 +00:00
Sunny Goyal 5bc04e67f7 Merge "Protecting QSB scroll while transition animation is running." into ub-launcher3-calgary 2016-07-20 18:59:20 +00:00
Sunny Goyal 0eca4e2b95 Using the same clip animation for wallpaper button as using for app icons
Bug: 30222414
Change-Id: I12ea7be255abe572c29102b6e93c4d2cdfce0aff
2016-07-20 11:56:54 -07:00
Winson Chung c80a024fb0 Merge "Initial changes to tweak layout." into ub-launcher3-calgary 2016-07-20 18:51:23 +00:00
Sunny Goyal 4a464794f2 Adding support for dynamically adding shadows to the icon
Change-Id: I94d98750aea1faef8879e25990aa5c41a4894708
2016-07-20 11:26:22 -07:00
Sunny Goyal c553c33ae6 Protecting QSB scroll while transition animation is running.
During transition animation the qorkspace scroll changes while the actual
workspace UI is mostly stable. This causes the QSB to animate while the
pages are not changing.
Bug: 30229069

Change-Id: I66ec41276c0e26164d20da6a5e0e251975390428
2016-07-20 11:20:37 -07:00
Winson 1f06427266 Initial changes to tweak layout.
- Adding DeviceProfile callback for when the launcher layout changes due
  to insets.  This is necessary since there are now different layouts
  depending on which side the navigation bar is on
- Consolidating hotseat and other layout into the device profile 
  launcher layout logic
- Making the all apps icons match the workspace icon height
- Tweaking caret drawable to draw to the bounds specified to simplify
  layout in each orientation
- Fixing minor issue with page indicator shifting in landscape
- Centering overview buttons to the workspace page

Bug: 30021487
Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
2016-07-20 10:17:08 -07:00
Sunny Goyal 4dcb831382 Merge "Fixing accessibility description for apps search box" into ub-launcher3-calgary 2016-07-20 01:49:15 +00:00
Peter Schiller 5b3ace8e56 Merge "Centered typing in search field" into ub-launcher3-calgary 2016-07-20 00:31:23 +00:00
Peter Schiller 637e40ad6f Centered typing in search field
Change-Id: Iae46722195d0d06ff88da52df4fa48ca7b157512
2016-07-19 17:30:44 -07:00
Tony Wickham 8f58e61d02 Update shortcut animations.
- Open animation: shortcuts reveal using modified circular reveal
  (so that it reveals in the pill shape instead of a circle);
  slight translation away from the original icon; scale icon and text.
- Hover animation: scale the shortcut pill and translate others away.

Bug: 28980830
Bug: 30127368
Change-Id: I8ed05c7a082f2c2a3f6c663da7259f6cd33e394f
2016-07-19 13:58:51 -07:00
Tony Wickham 1e3d490e08 Merge "Implement ranking for shortcuts." into ub-launcher3-calgary 2016-07-19 20:54:18 +00:00
Tony Wickham 2c99d2ceeb Implement ranking for shortcuts.
- Manifest shortcuts are closest to the original icon, in rank order,
  followed by dynamic shortcuts in rank order.
- Also prevent pinned shortcuts from showing in container if they
  aren't also dynamic (only manifest and dynamic show in container).

Bug: 29822383
Bug: 29946657
Change-Id: I5cdb2ef3700daedca01987f64c245beb3f4aa5ee
2016-07-19 13:53:26 -07:00
Peter Schiller bbff2926f8 Remove caret in overview mode
Bug: 30162951
Change-Id: I71f585e4ae6dfba9dc1d18cd00e45d081cabd4b3
2016-07-19 12:35:16 -07:00
Peter Schiller a92447a7fd Centered all apps search text
Change-Id: I21aaec56cd2202cea284880a28d9513435877368
2016-07-19 12:21:10 -07:00
TreeHugger Robot 2f3b0b7e3b Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-07-19 09:43:53 +00:00
Bill Yi e2b883b40c Import translations. DO NOT MERGE
Change-Id: Iec88a83798bed88e16a66cae50829a4b1bd5a852
Auto-generated-cl: translation import
2016-07-19 01:06:21 -07:00
Hyunyoung Song e4be3b3fdb Support gray hotseat background in all apps transition
b/30201515

Change-Id: Ie4b8442ac804b4df94e9673608129e6ffc0c3360
2016-07-18 16:35:10 -07:00