Commit Graph

11803 Commits

Author SHA1 Message Date
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
Sunny Goyal bf547ff6f0 Adding TransformingTouchDelegate to allow transforming touch events before
sending to the delegate.

Change-Id: I1dfb727fe433bed05dd5ac3d0f779ede4ec1d292
2016-07-17 19:08:07 -07:00
Sunny Goyal 77ba6b9cad Merge "Fixing adjascent pages not visible when starting animation" into ub-launcher3-calgary 2016-07-15 18:05:15 +00:00
Sunny Goyal 879f3bcef5 Merge "Fixing page indicator being drawn at wrong position" into ub-launcher3-calgary 2016-07-15 18:04:57 +00:00
Sunny Goyal 9109973b71 Fixing page indicator being drawn at wrong position
Bug: 29640885
Change-Id: I935e22174554447ddcb5e0a8eb6e2c78a3d5fdfb
2016-07-15 09:45:57 -07:00
Sunny Goyal 6f02f2ffb4 Fixing adjascent pages not visible when starting animation
Bug: 30125058
Change-Id: I99167b7c169479d06408f441e23b804077487975
2016-07-15 08:38:42 -07:00
Sunny Goyal 19187cb9f5 Fixing accessibility description for apps search box
Change-Id: I9c6c85eeec5e54dd29867c58ead7ce43acdc7cb1
2016-07-15 08:11:01 -07:00
Peter Schiller 9413860349 Account for RTL with search animation
Change-Id: I869c285e7c0e7a3d14c1a897330d04b794390c76
2016-07-14 18:17:08 -07:00
Peter Schiller a30b51ceb2 Adding stateful caret drawable
Change-Id: Iba30da09f882297f789c405f932fef10617bba89
2016-07-14 17:22:49 -07:00
Peter Schiller c9dec56c27 Merge "Preventing unnecessary layouts on search focus change" into ub-launcher3-calgary 2016-07-14 23:40:40 +00:00
Sunny Goyal 5024503702 Preventing unnecessary layouts on search focus change
Instead of expanding the edittext, using a separate textview
which is shown/hidden as the hint text

Change-Id: Ib4cedeaed9291f972be2ee407c06f4944c983e27
2016-07-14 16:39:48 -07:00
Sunny Goyal 857bfcf324 Fixing some comments
Change-Id: I9e6eaaf9ee145e2f37dfb97a3259509a72cd73af
2016-07-14 15:30:39 -07:00
Sunny Goyal ff9155674d Merge "Adding a view to indicate space blocked by QSB when QSB is hidden" into ub-launcher3-calgary 2016-07-14 22:17:31 +00:00
Hyunyoung Song 60a406ff33 Merge "Format fixes on AllAppsTransitionController and VerticalPullDetector" into ub-launcher3-calgary 2016-07-14 22:12:48 +00:00
Sunny Goyal 01440c6e83 Adding a view to indicate space blocked by QSB when QSB is hidden
Change-Id: Ifc6b1f2a7312e7919582887ea67bfe900668b70f
2016-07-14 15:12:37 -07:00
Hyunyoung Song e8a2b8e1d9 Format fixes on AllAppsTransitionController and VerticalPullDetector
Change-Id: Id1570284da7b69a4d768fe41980ca0522433b6c2
2016-07-14 15:11:43 -07:00
TreeHugger Robot c22e626217 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-07-14 14:31:52 +00:00
Bill Yi 705a4e3ebb Import translations. DO NOT MERGE
Change-Id: I78d77deeed7278ec10507d588a6a979d845b02aa
Auto-generated-cl: translation import
2016-07-13 20:33:01 -07:00
Sunny Goyal c3dcc77b8e Merge "Fixing Virtual nodes getting wrong screen bounds, when dragging in spring loaded mode" into ub-launcher3-calgary 2016-07-14 03:31:09 +00:00
Tony Wickham 50f251bfc8 Merge "Use the shortcut's long label in the container, if it is available." into ub-launcher3-calgary 2016-07-14 01:10:56 +00:00
Hyunyoung Song dc2fd8b2da Merge "Remove hotseat flicker and all apps GPU overdraw" into ub-launcher3-calgary 2016-07-14 00:49:48 +00:00
Hyunyoung Song ad140515b8 Remove hotseat flicker and all apps GPU overdraw
> Short story: elevation + transparency caused both flicker and overdraw

b/29641308
b/29648104

Change-Id: I621ccd888fa4c7e9292336dac1371246115cd3bb
2016-07-13 17:46:31 -07:00
Tony Wickham db19730e87 Use the shortcut's long label in the container, if it is available.
Bug: 28980830
Change-Id: Iefea0a7ee4be5bf45af14ce47abdd597f4137f92
2016-07-13 17:46:26 -07:00
Sunny Goyal fcb81b978d Merge "Moving the QSB out of the cell layout to the Drag layer" into ub-launcher3-calgary 2016-07-14 00:41:42 +00:00
Sunny Goyal 10ad1b9761 Fixing Virtual nodes getting wrong screen bounds, when dragging in spring
loaded mode

Bug: 29582251
Change-Id: I614d387a9b12d812ebb84c7739e8d9ae1bc057b2
2016-07-13 16:45:22 -07:00
Tony Wickham 7b8f1eaba1 Address comments on original shortcuts UI CL (ag/1061538).
- Only add shortcut touch listener to APPLICATION item types, not SHORTCUT.
- Load shortcuts on LauncherModel worker thread instead of using AsyncTask.
- Avoid a couple of unnecessary object allocations.

Change-Id: I31b911b91df71335542545602fe137e270c745d7
2016-07-13 14:47:58 -07:00
Tony Wickham c7163ebd03 Merge "Close the shortcuts container in various places." into ub-launcher3-calgary 2016-07-13 19:47:13 +00:00
Sunny Goyal 6178f13e2d Moving the QSB out of the cell layout to the Drag layer
This allows better edge matching for the QSB. The QSB position
is kept synchronized with the page scroll and all-apps transition.
But its not visible in spring loaded and overview mode

Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
2016-07-13 12:37:08 -07:00
Tony Wickham 49c8d29fdd Close the shortcuts container in various places.
- Mostly everywhere folders are closed
- Implements DragListener so we can close the container when dragging
  the original icon or shortcuts from the container. We actually just
  hide the container in onDragStart() and really remove it in
  onDragEnd(). This avoids interfering with touch events and thus
  allows us to remove the hack of explicitly setting the DragLayer's
  controller when dragging shortcuts (since it will do it on intercept).

Bug: 30080537

Change-Id: Iccc2afba2a990a613bc588d57c4d8c1b7c65224b
2016-07-13 12:35:04 -07:00
Tony Wickham d82a39da1c Add status to DeepShortcutManager api calls.
This way we can handle SecurityExceptions differently. For instance,
if a SecurityException causes us to fail to get details for pinned
shortcuts, we keep the pinned shortcuts in the database so that they
will be loaded next time launcher has the correct permissions.

Change-Id: I1102fce612ade10ad7f577b44a99c8cf087d5ccd
2016-07-13 12:02:33 -07:00
Sunny Goyal f420438a0b Updating the content description of disabled icons
Bug: 27644457
Change-Id: I03aec29e0ea6017b51dcd7567967a067e478cefd
2016-07-13 10:46:34 -07:00
Sunny Goyal ba162aa7d2 Merge "Adding logic to pull in workspace data from another Launcher3 based provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package." into ub-launcher3-calgary 2016-07-13 16:02:18 +00:00
Winson Chung c6e5fdb7ac Merge "Fixing issue with content description not being updated." into ub-launcher3-calgary 2016-07-13 01:08:32 +00:00
Peter Schiller 2e22b5d2de Fixed header elevation shadow on rotate
Change-Id: I1a4b55cf9af67d93e56d84378036c0061b6e8104
2016-07-13 01:06:09 +00:00
Winson e8eaa9c94c Ensuring that fast scrolling to predictions scrolls list to the top
- Fixes a long standing issue with fast-scrolling to the predicted apps
  not quite scrolling the list to the top of the screen.
- Fixes an issue where we don’t scroll exactly to the fast scroll 
  position due to rounding
- Also fixes a small issue where the thumb would not update when the 
  fast scroll popup was no longer showing, even while dragging.

Bug: 30023608

Change-Id: I6b5080c6aea521ff03dca24317f0405c02725061
2016-07-13 01:04:56 +00:00
Winson Chung b029e9fd66 Merge "Cleaning up scrollbar logic to properly calculate stable extents." into ub-launcher3-calgary 2016-07-13 01:04:39 +00:00
Winson b93f34a8be Fixing issue with content description not being updated.
Bug: 30064868
Change-Id: I09a0576c3618c253c25a5e755081833816887698
2016-07-12 18:02:37 -07:00