Commit Graph
58436 Commits
Author SHA1 Message Date
Tony Wickham 5db5ed7bee Initiate Hotseat drag from long pressing corresponding Taskbar item am: 39938cbc94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13779849

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic868dd60dcc326be6aae7c531a0aeb8ed2e7d09e
2021-03-10 12:09:58 +00:00
TreeHugger Robot dfcf0f72bc Merge "Moving data sanitization before bind" into sc-dev am: 3ca4b0d88f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13741856

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6d3581a6697537657cccfd5abe9044f02520a4e
2021-03-10 12:09:53 +00:00
TreeHugger Robot c50bcb490b Merge "Nullify taskbar hotseatView tag when the cell is empty" into sc-dev am: 5e88032461
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13787772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9bf2ce4802ca9617b1e18447d14796f97245f2a2
2021-03-10 12:09:49 +00:00
Winson Chung 27db3e5339 Merge "Removing old logs" into sc-dev am: b72be3e27c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13690095

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2ba3bff9a2c896e670ccb11b4721a7e746db2d5d
2021-03-10 12:09:45 +00:00
TreeHugger Robot 2d7e5ed626 Merge "Correct Launcher3 for new sizes in App Widgets." into sc-dev am: bcadf1457c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13732707

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0301ca387a3cdc935b8e19945f14fe07cae680eb
2021-03-10 11:32:13 +00:00
Sunny Goyal b5181c8c39 Revert "Revert "Removing insets controller animation as part of ..."
Revert "Revert "Moving insets animation to StateHandler so that ..."

Revert submission 13823490-revert-13810332-insetcontroller-CLXXLCZAUM

Reason for revert: Fixed original error in ag/13823726
Reverted Changes:
Ie19a3fd90:Revert "Moving insets animation to StateHandler so...
I4eb33772a:Revert "Removing insets controller animation as pa...

Change-Id: I7fb395c51ea99081913bc99515257e98c0a32754
2021-03-10 07:39:12 +00:00
Pasty Chang 344e31d1c2 Merge "Revert "Removing insets controller animation as part of all-apps..."" into sc-dev am: ea39d1603f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13823491

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I40f03bc071fd1a832451c6ff0d965be354224fed
2021-03-10 07:25:36 +00:00
Pasty Chang ea39d1603f Merge "Revert "Removing insets controller animation as part of all-apps..."" into sc-dev 2021-03-10 07:01:25 +00:00
Pasty Chang 13358f65ab Revert "Removing insets controller animation as part of all-apps..."
Revert "Moving insets animation to StateHandler so that it can b..."

Revert submission 13810332-insetcontroller

Reason for revert: QsbLayout#getEditText() return object is changed, but extended class HotseatQsbWidget wasn't updated.

https://android-build.googleplex.com/builds/submitted/7197042/aosp_crosshatch-userdebug/latest/view/logs/build_error.log

Reverted Changes:
If6a088d14:Removing insets controller animation as part of al...
I296415604:Moving insets animation to StateHandler so that it...

Change-Id: I4eb33772acd887d6e1d92a9ecde41cf1e0687896
2021-03-10 06:58:51 +00:00
android-build-team Robot bfe58f2902 Snap for 7196743 from 41475b58e8 to tm-release
Change-Id: I7ff6c30ea7d8ca2c1c6e3d1faa9dbc965afb96af
2021-03-10 04:07:39 +00:00
Sunny Goyal 4ed92a2714 Merge "Removing insets controller animation as part of all-apps opening" into sc-dev am: c668a2a5bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13810332

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I71fd5b62eedeea701ea1936b51301b4c9c6f9210
2021-03-10 02:34:22 +00:00
android-build-team Robot f18e412f94 Snap for 7196551 from ded87e6505 to sc-release
Change-Id: I261ec7adeb16c2726e71bb0f76c8e691cccda226
2021-03-10 02:08:34 +00:00
android-build-team Robot 589e8ec201 Snap for 7196551 from ded87e6505 to sc-v2-release
Change-Id: Ifcac331151fafb997ea3748d9f4fca237f1e3189
2021-03-10 02:08:01 +00:00
Sunny Goyal c668a2a5bb Merge "Removing insets controller animation as part of all-apps opening" into sc-dev 2021-03-10 01:58:06 +00:00
Sunny Goyal 41475b58e8 Merge "Removing unused keyboard handling code" into sc-dev am: de18647f91
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13438583

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7fe473b5106d04e7988d93f2d4d4f16e4bd27949
2021-03-10 00:48:40 +00:00
Sunny Goyal de18647f91 Merge "Removing unused keyboard handling code" into sc-dev 2021-03-10 00:13:27 +00:00
android-build-team Robot 9e3e3c3f22 Merge cherrypicks of [13818081, 13818892] into tm-release
Change-Id: Icdde6a477b945348eea5576f87b158a4df6ff5f1
2021-03-09 23:51:05 +00:00
Chris Fries 0d79f03ac3 Revert "[Search] Support flexible results-per-row in AllApps"
Revert "[Search] Support flexible results-per-row in AllApps"

Revert submission 13786530-grid_adapter

Bug: 182236647
Reason for revert: b/182236647 [TP1A][SP1A] Launcher crashing on opening Quick search bar from home screen
Reverted Changes:
I36882e12b:[Search] Support flexible results-per-row in AllAp...
Idc3d24daf:[Search] Support flexible results-per-row in AllAp...

Change-Id: Ief3888e63f4946fec43217ce66a1f0a3fb5ff64f
(cherry picked from commit 0cf925dc542309e21c2407a9ad47975302944a1d)
2021-03-09 23:50:55 +00:00
TreeHugger Robot 667de8038a Merge "Avoid mis-trigger when motion do not endup within system gesture region" into sc-dev am: ded87e6505
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13803767

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2aebcc762b584685512af90a5ac101908ad9e69c
2021-03-09 23:45:51 +00:00
TreeHugger Robot ded87e6505 Merge "Avoid mis-trigger when motion do not endup within system gesture region" into sc-dev 2021-03-09 23:26:16 +00:00
TreeHugger Robot d93a0dd802 Merge "End any running taskbar animation in cleanup()" into sc-dev am: 43e516227e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13806903

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3cc760e1e2cc6e6631404de7b5a8fc1bfb43e2cb
2021-03-09 23:24:08 +00:00
Samuel Fufa 55b8f426de Fix QSB tap crash am: dc016f37a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13817052

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia9fde39b0122eabb9231d570727431e46733aebc
2021-03-09 23:23:44 +00:00
TreeHugger Robot 43e516227e Merge "End any running taskbar animation in cleanup()" into sc-dev 2021-03-09 22:58:39 +00:00
android-build-team Robot f868e833b9 Merge cherrypicks of [13819126, 13819127, 13818519] into sc-v2-release
Change-Id: I65404e7a41ca69478fad83d00045349db7e29a34
2021-03-09 22:31:37 +00:00
Chris Fries 97e0f62049 Revert "[Search] Support flexible results-per-row in AllApps"
Revert "[Search] Support flexible results-per-row in AllApps"

Revert submission 13786530-grid_adapter

Bug: 182236647
Reason for revert: b/182236647 [TP1A][SP1A] Launcher crashing on opening Quick search bar from home screen
Reverted Changes:
I36882e12b:[Search] Support flexible results-per-row in AllAp...
Idc3d24daf:[Search] Support flexible results-per-row in AllAp...

Change-Id: Ief3888e63f4946fec43217ce66a1f0a3fb5ff64f
(cherry picked from commit 0cf925dc542309e21c2407a9ad47975302944a1d)
2021-03-09 22:31:28 +00:00
android-build-team Robot 84c152da40 Merge cherrypicks of [13818843, 13818844, 13818518] into sc-release
Change-Id: I82cfa3001c81e7c31f843ddcbe5ac8b9c420a0cf
2021-03-09 22:30:59 +00:00
Chris Fries ca535d9403 Revert "[Search] Support flexible results-per-row in AllApps"
Revert "[Search] Support flexible results-per-row in AllApps"

Revert submission 13786530-grid_adapter

Bug: 182236647
Reason for revert: b/182236647 [TP1A][SP1A] Launcher crashing on opening Quick search bar from home screen
Reverted Changes:
I36882e12b:[Search] Support flexible results-per-row in AllAp...
Idc3d24daf:[Search] Support flexible results-per-row in AllAp...

Change-Id: Ief3888e63f4946fec43217ce66a1f0a3fb5ff64f
(cherry picked from commit 0cf925dc542309e21c2407a9ad47975302944a1d)
2021-03-09 22:30:51 +00:00
Tony Wickham 30d6971812 Allow touches through Taskbar when dragging to home screen
Setting visibleInsets to (almost) empty ensures the drag
events get sent to launcher.

Test: Drag a taskbar item on home, ensure it moves when
events are within the taskbar insets

Bug: 182079330
Bug: 171917176
Change-Id: Ida6a4a94a3fd2927d18245f45ed3e8d1701b9833
2021-03-09 14:01:59 -08:00
Tony Wickham bc08503e0b Ensure taskbar hotseat array index is in bounds
Test: switch from 5x5 grid to 4x4 grid, ensure no crash
Fixes: 181981906
Change-Id: Ic23e3d5f1debcfd2307e48c6aaac38d143fd95c3
2021-03-09 11:01:02 -08:00
Tony Wickham 90351c208e Create a new DragOptions for every drag operation
Previously we were reusing the same DragOptions which led to some
bad states.

Test: Drag items around, ensure nothing disappears from Workspace
Bug: 182079330
Change-Id: I8d6027bc984db8c770841bb560735604689ad0ff
2021-03-09 18:52:44 +00:00
Samuel Fufa dc016f37a2 Fix QSB tap crash
Launcher should use LCM of supported getSupportedItemsPerRowArray instead of product.

Bug: 182236647
Test: Manual
Change-Id: Ia0ad1158a841068c29ed09bf7f598f14c410092f
2021-03-09 10:00:05 -06:00
Hyunyoung Song eac1adb4f1 Merge "Instrumenting flinging all apps for jank" into sc-dev am: c2b750797c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13566474

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I62784b2265ca475aa21fcbc5d6f436b4438c7f40
2021-03-09 14:24:23 +00:00
Hyunyoung Song c2b750797c Merge "Instrumenting flinging all apps for jank" into sc-dev 2021-03-09 13:55:02 +00:00
TreeHugger Robot a8a86b7ed1 Merge "Use ACCEL_DEACCEL when swiping up to enter grid" into sc-dev am: 505b4b2d8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13790518

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9d511674e8911d75b8890da3d1ad3bb8fb558493
2021-03-09 12:27:10 +00:00
TreeHugger Robot 505b4b2d8f Merge "Use ACCEL_DEACCEL when swiping up to enter grid" into sc-dev 2021-03-09 11:56:28 +00:00
Steven Ng 1e19888b71 Merge "Widgets recommendation backend" into sc-dev am: 3c08f580c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13731979

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie5802bcfc0d8ae679c744434381c274783efe0ad
2021-03-09 10:45:26 +00:00
Steven Ng 3c08f580c3 Merge "Widgets recommendation backend" into sc-dev 2021-03-09 10:05:55 +00:00
TreeHugger Robot c19bc47e0c Merge "Pause onAppsUpdate when AllApps is converted to tabs." into sc-dev am: 146bbcd5c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13809446

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib813f98ec02d134c48085ca13bd9c9073eed14f6
2021-03-09 07:30:24 +00:00
TreeHugger Robot 146bbcd5c9 Merge "Pause onAppsUpdate when AllApps is converted to tabs." into sc-dev 2021-03-09 06:51:09 +00:00
android-build-team Robot 8e18d02026 Snap for 7194211 from ae6b34811b to sc-v2-release
Change-Id: I81bd9413cd91ef8d7610a336e5b655e95446dab1
2021-03-09 04:43:55 +00:00
Hyunyoung Song 34c0262778 Instrumenting flinging all apps for jank
Bug: 178656812
Test: manual

Change-Id: I56bf19709784ac081a4f7068dedb8814eb6f3d0b
2021-03-08 20:40:39 -08:00
android-build-team Robot d9c3bcdc51 Snap for 7194171 from ae6b34811b to sc-release
Change-Id: I6e9d4d96b55c7e79a887049925e61d512d286aab
2021-03-09 04:34:12 +00:00
android-build-team Robot da08a5f03e Snap for 7193587 from 69f154889f to tm-release
Change-Id: I43c9f2fabd3b82819de8b78e1c1ada3f50b7fc5a
2021-03-09 04:07:38 +00:00
Samuel Fufa d0bb42bf2e Pause onAppsUpdate when AllApps is converted to tabs.
To avoid onAppsUpdated conflicting with WorkTabEdu, this change pauses callback updates when AllApps is first converted to tabs. This should  avoid the need for additional  extended timeouts.

Bug: 159671700
Test: Presubmit
Change-Id: I0959629f47ae6d824e5886b2cf917635f5bfdf0e
2021-03-09 02:48:08 +00:00
Sunny Goyal 0724113b3d Removing insets controller animation as part of all-apps opening
Adding support for easier extension of StateHandlers

Bug: 180143210
Test: Verified on device
Change-Id: If6a088d1482c9b268b21786c4694f6e0927be0c3
2021-03-08 18:38:25 -08:00
Steven Ng 857d91e6f9 WidgetCell & LiveWidgetPreview cleanup am: ae6b34811b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13790508

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f8304fcc662286b6e61a4646cfd2e0bc22e9016
2021-03-09 01:15:30 +00:00
Steven Ng 3a8353256a Widgets recommendation backend
Add a widgets recommendation mechanism based on AiAI app predication
ranking with the following changes:

1. Only one widget is picked from one app.
2. Widgets that are already added to the workspace are excluded from
   the recommendation.

Test: run PredicationUpdateTaskTest

Bug: 179797520
Change-Id: Ia697bc6df0bae75969e68b7b3de32d57901f7461
2021-03-08 23:37:51 +00:00
Steven Ng ae6b34811b WidgetCell & LiveWidgetPreview cleanup
The fixes are:
1. For widgets shown in TableRow, aligns them center vertically.
   This is useful when widgets of different height are shown in
   the same row.
2. Remove background color from WidgetCell
3. Re-enable swipe in FullWidgetsSheet
4. Use the WidgetCell image as the single & long press area because
   1. Previews are now scaled to their default size. The touch area
      should already be larger for widgets that are bigger than 2.4
      cells
   2. WidgetCells also render description. If the user long press the
      description area, the drag view will not align in the middle of
      the user touch / drag area.

Test: Drag-n-drop widgets from FullWidgetsSheet, BottomWidgetsSheet
      and pin widget flow.
      In FullWidgetsSheet, swipe left and right to switch work /
      personal tab.

Video: https://drive.google.com/file/d/1Ur7PwF1a7iwGGRTZczfc0BSVu-Ta6-Vm/view?usp=sharing

Bug: 179797520
Change-Id: I6fe4bc88d1e1b35b1819d8d7f046105f5ed27043
2021-03-08 21:22:08 +00:00
TreeHugger Robot 69f154889f Merge "Prevent NPE inside AllAppsTransitionController" into sc-dev am: d60299e19f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13756046

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I409e9c7927007a0e93b7abdd3f91b22a10e48122
2021-03-08 20:46:53 +00:00
Samuel Fufa dcc8930158 Merge "[Search] Support flexible results-per-row in AllApps" into sc-dev am: 3b61fb2b01
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13786390

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie3ab9ede975adfbb5a79dd9b207734051684fc79
2021-03-08 20:46:27 +00:00