Commit Graph

18172 Commits

Author SHA1 Message Date
Tracy Zhou
202014db2f App icon transitions with app window in overview
Fixes: 123641382
Test: Swipe up and hold from app when SWIPE_HOME is enabled or swipe up from app when it's not
Change-Id: I1bd35b1b96d66a3996f9b24c9a7e896535fa1ca0
2019-03-06 11:55:01 -08:00
Tony Wickham
40e0693234 Merge "Revert "Temporarily make TouchInteractionService direct boot unaware"" into ub-launcher3-master 2019-03-06 17:43:15 +00:00
Tony Wickham
84062d4b5d Revert "Temporarily make TouchInteractionService direct boot unaware"
This reverts commit 3a4f503e5d.

Reason for revert: need TouchInteractionService to be direct boot aware for the merge

Change-Id: I5b3c651df77f8df1d5f07245b062f2384cd760a0
2019-03-06 17:31:40 +00:00
Tracy Zhou
74130d2cea Merge "Make task launching interpolators consistent" into ub-launcher3-master 2019-03-06 01:42:40 +00:00
TreeHugger Robot
c63e196ea1 Merge "Revert "Add launcher-log-proto-nano rule in Android.bp"" into ub-launcher3-master 2019-03-06 01:02:10 +00:00
TreeHugger Robot
6f74083520 Merge "Revert "Include Launcher3QuickstepLib for tapl"" into ub-launcher3-master 2019-03-06 01:02:08 +00:00
Vadim Tryshev
5b367af3ca Revert "Add launcher-log-proto-nano rule in Android.bp"
This reverts commit 0a13878b96.

Reason for revert: We decided to get launcher dimensions differently in the short-term

Change-Id: I875f0dab36922e7f85f4dff7af1ab1f22a9c4bd8
2019-03-06 00:52:00 +00:00
Vadim Tryshev
bcde95efec Revert "Include Launcher3QuickstepLib for tapl"
This reverts commit 494dd8da82.

Reason for revert: Breaks ub tests

Change-Id: I8f0d4a67e7a4cae21f5c9448abcc4d614f730fa4
2019-03-06 00:44:53 +00:00
Tracy Zhou
797210acad Make task launching interpolators consistent
Fixes: 127532177
Test: Manual

Change-Id: I36aba881cc34c3d99af1dc1dd095c6082e2ea815
2019-03-05 16:38:12 -08:00
Tony Wickham
7550c1227e Merge "Fix some issues with MotionPauseDetector" into ub-launcher3-master 2019-03-05 22:00:24 +00:00
TreeHugger Robot
cde9f450c4 Merge "Fixing some Launcher crashes because of using old model data even after launcher has reloaded" into ub-launcher3-master 2019-03-05 21:59:31 +00:00
Tony Wickham
eb6cb3b943 Merge "Don't allow swipe up for all apps above shelf" into ub-launcher3-master 2019-03-05 21:59:14 +00:00
TreeHugger Robot
55f6416748 Merge "Using a single array instead of a list of array for trcking events" into ub-launcher3-master 2019-03-05 21:44:11 +00:00
Winson Chung
e09f47cd1f Merge "Fix issue with flashing on overscroll" into ub-launcher3-master 2019-03-05 21:32:40 +00:00
TreeHugger Robot
111213b0f8 Merge "Fix app to folder icon animation." into ub-launcher3-master 2019-03-05 21:25:17 +00:00
Sunny Goyal
5654949bd0 Using a single array instead of a list of array for trcking events
In case events come out of order, the list is not properly initialized
which can lead to missing invalid states

Bug: 127282292
Change-Id: I3b4784b8e3eec890e80e62c2ea613e1ba84b6c95
2019-03-05 12:45:23 -08:00
Sunny Goyal
2db5342f04 Fixing some Launcher crashes because of using old model data even
after launcher has reloaded

Bug: 126289691
Bug: 124288578
Change-Id: Id7fb29716241a13f4e03ee0fc0e879523de4f878
2019-03-05 12:43:50 -08:00
Jon Miranda
69b35e0195 Fix app to folder icon animation.
- Needed to account for the preview bounds (similar to BubbleTextView icon
  bounds)
- Also needed to update the bitmap shift amount so that it is re-centered
- Moved ShiftedBitmapDrawable to its own class in graphics package

Bug: 123900446
Change-Id: Ifa9e3f688e55d017cf86a0285f5cdb1b014f01e6
2019-03-05 12:23:28 -08:00
Jonathan Miranda
78499e708d Merge "Fix bug caused by trying to set background to AdaptiveIconDrawable." into ub-launcher3-master 2019-03-05 19:22:17 +00:00
TreeHugger Robot
9cf493a735 Merge "Lint fix: Invalid vector path in horizontal_ellipsis" into ub-launcher3-master 2019-03-05 19:21:44 +00:00
TreeHugger Robot
b67ea2a0e9 Merge "Removing dependency on XmlResourceParser in default layout parsing" into ub-launcher3-master 2019-03-05 19:18:53 +00:00
TreeHugger Robot
36382cb4af Merge "Changed assistant debug flag to global" into ub-launcher3-master 2019-03-05 18:41:15 +00:00
Tobias Dubois
fb0544e512 Lint fix: Invalid vector path in horizontal_ellipsis
Use 0.9 instead of .9 in the vector drawable path to
avoid crashes on some devices.

Test: Manual
Change-Id: I9d5889fdf48fbb2f09995b75d4f20c47454ef591
2019-03-05 10:31:56 -08:00
Sunny Goyal
0d74231fec Removing dependency on XmlResourceParser in default layout parsing
This is allow support for generating and parsing default layout at
runtime by a different app.

Change-Id: Id3bfcf1d353417102429ab137402ccfedc4e6cc5
2019-03-05 10:22:57 -08:00
Jon Miranda
3145839f65 Fix bug caused by trying to set background to AdaptiveIconDrawable.
Solution is to flatten the drawable when useDrawableAsIs is true.

Bug: 123900446
Change-Id: I3b86db201ef4fccf10ac42ec367c0538573b7ad8
2019-03-04 20:54:53 -08:00
TreeHugger Robot
a4c3d066dd Merge "Switching to setting QS on and off via writing settings." into ub-launcher3-master 2019-03-05 01:26:51 +00:00
Vadim Tryshev
8675deee02 Switching to setting QS on and off via writing settings.
We can do this now because we hav all 6 devices in the lab.

Change-Id: I5d5fcd89086a3f945ed3fc204461cacbdde61a8a
2019-03-04 16:49:50 -08:00
TreeHugger Robot
34691cffe3 Merge "Drop target NPE due to wrong android:theme usage" into ub-launcher3-master 2019-03-04 23:42:28 +00:00
TreeHugger Robot
9f8ebbe70c Merge "Fix hotseat translated upwards when dragging from all apps" into ub-launcher3-master 2019-03-04 23:09:53 +00:00
Tony Wickham
57e489c8b5 Fix hotseat translated upwards when dragging from all apps
Before, we just didn't scale or translate when entering spring loaded
state. That worked when dragging from home, but when dragging from all
apps it meant that the hotseat kept its translation from the transition
to all apps. Now we always move the hotseat to scale 1 and translation 0
when going to spring loaded mode.

Change-Id: I0630d5bb899e37e2ab01516adfc1b7e6f8a9e42a
2019-03-04 14:57:07 -08:00
Hyunyoung Song
15f7de8332 Drop target NPE due to wrong android:theme usage
Bug: 127345257
Change-Id: I2774644b304b26f56e380f75d17790d05744def1
2019-03-04 14:46:39 -08:00
TreeHugger Robot
84eb812bcd Merge "Include Launcher3QuickstepLib for tapl" into ub-launcher3-master 2019-03-04 22:25:31 +00:00
Tony Wickham
c920b5986d Merge "Scale and translate hotseat with workspace instead of all apps" into ub-launcher3-master 2019-03-04 19:47:38 +00:00
Miranda Kephart
516bb587af Merge "Add AiAi overview chips to Launcher" into ub-launcher3-master 2019-03-04 19:07:50 +00:00
Hyunyoung Song
494dd8da82 Include Launcher3QuickstepLib for tapl
Bug: 123904290
Change-Id: I388061edcc5a2978d6c6f1102d92e09155678e34
2019-03-04 10:57:54 -08:00
TreeHugger Robot
ccf00ab063 Merge "Assign default adaptive icon background color" into ub-launcher3-master 2019-03-04 18:29:50 +00:00
Hyunyoung Song
de87a22773 Assign default adaptive icon background color
Bug: 126327184
Change-Id: I8c6db3cc0c2bf334862b60b0aa27aee4850039f1
2019-03-04 09:47:45 -08:00
Miranda Kephart
cd5beb3e62 Add AiAi overview chips to Launcher
Overview chips are constructed in AiAi and inserted into a Launcher
container (similar to what's done for the SuggestView). This CL
(and its sibling) remove the dependency on the NavBarHint plugin
for chip hint data, and instead obtain the information from AiAi.

BUG: 124390101
Change-Id: I07beb79dba2edaafb231b03e70b647ae211b5c1b
2019-03-04 11:51:53 -05:00
Tony
4bb4b89b9a Scale and translate hotseat with workspace instead of all apps
- Move the hotseat alongside workspace instead of on top of all apps in xml layout
- Set pivot point of hotseat to match the workspace's, and apply the same scale
- Translate the hotseat with the workspace instead of all apps
- SpringLoadedState does not scale or translate the hotseat

Change-Id: Ic45fe99f83f0e0012afa78073d9577e65da444e2
2019-03-03 15:43:50 -08:00
Hyunyoung Song
0a13878b96 Add launcher-log-proto-nano rule in Android.bp
Bug: 123904290
Test: m launcher-log-proto-nano

Change-Id: I71c749be60df20ad474a7b898c8668642a67a72f
(cherry picked from commit 46e1145ecc)
2019-03-02 08:03:27 +00:00
Tony Wickham
37d3a1ff41 Don't crash if there's no running task view when going home
Change-Id: Ib5e9ce961aa4dc6b15da34713967f6ad9dde2054
2019-03-01 16:34:59 -08:00
Matthew Ng
3ab13c9de1 Changed assistant debug flag to global
Bug: 112934365
Test: manual
Change-Id: Ibf5f02d41d879f35ba7ee011dc35e264606b751b
2019-03-01 16:21:32 -08:00
TreeHugger Robot
9db9d62b27 Merge "Removing the home button press check" into ub-launcher3-master 2019-03-01 23:07:18 +00:00
Sunny Goyal
9df474ab53 Removing the home button press check
When home key is pressed, we skip the schedular check as it comes
in onNewIntent (explicitIntent).

Bug: 118441555
Change-Id: I934bb14e4d188cf61faed0360c3f6d7cac8d2fed
2019-03-01 14:09:34 -08:00
TreeHugger Robot
6d2bb0b548 Merge "Added assistant gesture swipe up right side region on nav bar" into ub-launcher3-master 2019-03-01 22:02:23 +00:00
Matthew Ng
077c29e091 Added assistant gesture swipe up right side region on nav bar
Bug: 112934365
Test: manual
Change-Id: I467e71f13da4afba3a556fafb0bfdf01650ab4bf
2019-03-01 13:53:13 -08:00
Winson Chung
1942d5a54a Fix issue with flashing on overscroll
- Apply the bounded current scroll to the overscroll instead of assuming
  the max scroll (on the last tick, the overscroll amount can be zero,
  causing us to shift to the max scroll until the next draw)

Bug: 126767319
Change-Id: Ia60ecb0c3f18e68d0c91620aa79b21df72c213cf
2019-03-01 13:32:32 -08:00
TreeHugger Robot
dd79438ee9 Merge "Reapply the current state after onCreate" into ub-launcher3-master 2019-03-01 21:25:53 +00:00
Sunny Goyal
bbece869eb Reapply the current state after onCreate
In case of normal restart we were never applying the NORMAL state and
so various state properties didn't start with correct default values.
We generally get insets after start which reapplies the state and
fixes this issue but that is not always the case.

Bug: 126416861
Bug: 118441555
Change-Id: Iaa178556618f8a49197187d0820d8b8afdc73378
2019-03-01 13:16:29 -08:00
Jon Miranda
1a49fb5733 Transform closing window to icon on workspace using adaptive icons.
With adaptive icons, we can have FloatingIconView match the shape
and size of the closing window, regardless of the icon shape.

FloatingIconView starts off as a rounded rect (same corners as task view)
and then morphs into the icon shape using FolderShape#createRevealAnimator
in reverse.

Decided to add FeatureFlag.ADAPTIVE_ICON_WINDOW_ANIM since there are still
some issues with folders, badges, and a visible jump when swapping the
FloatingIconView with the original icon.

Bug: 123900446

Change-Id: I94969eea6d5f4b932a84a11eb403611276042b46
2019-03-01 12:48:25 -08:00