Commit Graph

18291 Commits

Author SHA1 Message Date
TreeHugger Robot 5f094590f2 Merge "Add task thumbnails to the Recents Go loader." into ub-launcher3-master 2019-03-09 00:41:56 +00:00
Jon Miranda e6f3fa47d6 Fix bug where folder items preview remain in low res state.
- We update the ranks of all folder items after loading, to ensure there are
  no gaps caused by removed folder items. This also ensures that we load
  the high resolution icons for all preview items.
- FolderIconPreviewVerifier#setFolderInfo was not always called
- Init mGridSize with [1, 1] to prevent divide by zero error in case
  setFolderInfo is not called

Bug: 126268196
Change-Id: I856489968665a39303e2922c78cf90f2b3ee6ebb
2019-03-08 12:43:09 -08:00
Kevin b9ebd812a4 Add task thumbnails to the Recents Go loader.
This CL adds thumbnails to the content loading for Recents Go so that
they are fully loaded before recents show. We utilize the underlying
recents model thumbnail cache to make the loading faster.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: Ib21f617e83d307621364c2eeb6fef84aad49814b
2019-03-08 12:07:01 -08:00
Jon Miranda 2ca0aa7076 Fix testChangeDefaultColumnTest.
I split testMigrateProfileId into two tests: one testing the migration
and one testing changing the default column test.

Since testChangeDefaultColumnTest does not migrate any profile ids, the
correct answer is indeed 1 and not 6. Next time I will be sure to run the
tests first :).

Change-Id: I7557e198072ed134c8b42d6187afcb93d388c5a1
2019-03-08 10:58:52 -08:00
TreeHugger Robot 652b9ab5c9 Merge "Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""" into ub-launcher3-master 2019-03-08 16:47:02 +00:00
Jon Miranda 2bc6b934ac Add launcher support for restoring work profile items onto workspace.
Bug: 111301511
Change-Id: I40decf4c763401c97afcc2bfa7954a1f3a03f536
2019-03-07 18:55:16 -08:00
Vadim Tryshev b2b6fbbe66 Merge "Logging switching Quickstep on and off for tests" into ub-launcher3-master 2019-03-07 01:21:41 +00:00
vadimt 7977961f73 Logging switching Quickstep on and off for tests
Change-Id: I9ff70850a86542715b5ef88c1f2a492bd3797ab1
2019-03-06 17:08:13 -08:00
Tony Wickham 1c22a2c7a2 Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""
This reverts commit 84062d4b5d.

Reason for revert: We want TouchInteractionService to be direct boot unaware until engineers can flash to a build where sysui expects it to be direct boot aware (sorry for the churn...).

Change-Id: I27c00257819751af52df40467d5a63dc106e1917
2019-03-07 00:34:01 +00:00
vadimt 28b1988289 Attempt to disable assistant and seeing if this helps with lab tests
Change-Id: I4950eeee06555ca199208f678f670c3406b38d5a
2019-03-06 16:22:47 -08:00
Sunny Goyal 371ea051d1 Fixing launcher UI not reapplied properly when IDP changed as a result of display changes
> Removing unnecessary check when binding model data as its safe to bind old data,
  we should just not persist it (that check is already there in model writer)
> Adding additional check in model bind to skip old bind if there are multiple binds

Bug: 126259547
Bug: 118441555
Change-Id: Ic250d2af13797d3e70c6e1fc70da65ebe6ab8d70
2019-03-06 15:41:29 -08:00
Sunny Goyal 826405d095 Merge "Using the new contract for some systemUI constants" into ub-launcher3-master 2019-03-06 21:40:12 +00:00
TreeHugger Robot 5ac7eb1e37 Merge "Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag." into ub-launcher3-master 2019-03-06 21:34:44 +00:00
Jon Miranda 4334874f1f Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag.
- getFirstMatchForAppClose now only looks at the current page, since switching
  pages is disruptive and the animation for app closing to an icon on a
  different page is unclear.
- Searches for package name and user id (in case of work profile app)
  instead of component name to handle shortcuts and trampoline activities.

- Adaptive icon background drawable is now always centered

- Fix crash that occurs when ADAPTIVE_ICON_WINDOW_ANIM is off. We were trying
  to set FolderAdaptiveIcon as the background drawable. Simplest solution is
  to not use folder as a search criteria when the flag is off.

- Similar to DragView, FloatingIconView now uses BubbleTextView icon when
  adaptive icon support is not available. This handles legacy-treated apps.

Bug: 123900446
Change-Id: Idaf292bb39d78db511cf2ee04a16b191454846b3
2019-03-06 13:25:22 -08:00
Sunny Goyal b7dafa6a04 Using the new contract for some systemUI constants
Change-Id: I1a0351bc9b1ac5b8fe866a92c1bda93126189543
2019-03-06 12:32:24 -08:00
TreeHugger Robot f520c6ca8e Merge "Do not consume motion events when there is no assistant available" into ub-launcher3-master 2019-03-06 20:17:07 +00:00
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
Matthew Ng 04d58e841f Do not consume motion events when there is no assistant available
Bug: 112934365
Test: manual
Change-Id: If9254d974a34772357ce32d5ba2734db5a173f6b
2019-03-06 19:43:29 +00:00
Vadim Tryshev cd3df17d80 Merge "Slowing down gestures to get rid of flakiness" into ub-launcher3-master 2019-03-06 19:42:14 +00:00
vadimt 6cd7e864aa Slowing down gestures to get rid of flakiness
Change-Id: If36476e21629fba1a0cf26fb9d2c172097a9c0b5
2019-03-06 11:25:33 -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