Commit Graph
49755 Commits
Author SHA1 Message Date
Schneider Victor-tulias b199e20acc Enable unpausing apps from the workspace.
Fixes: 188675002
Test: manual
Change-Id: I02715450016e9b91fff774525b5e32c337c74547
2021-05-24 21:44:29 +00:00
Andras Kloczl 55edfe55f7 Add two panel home support for page binding logic
There's a logic which prioritizes the binding for the
current page and defers the other pages' binding.
If two panel home is enabled, we want to bind both pages
together. LauncherPageRestoreHelper has been created to
contain the logic for persisting restoring and calculating
which pages to load immediately.

Test: manual + run LauncherPageRestoreHelperTest robo test
Bug: 174464691
Change-Id: I57ac3f7150303b95b272e922f44bda26f9d5ce2a
2021-05-24 23:22:06 +02:00
Alex Chau 7d964726d5 Ensure RecentsOrientedState.mRecentsRotation is up to date on swipe up
- Updates RecentsOrientedState.mRecentsRotation after launcher is started, as it's not updated when RecentsView is in foreground when device rotates e.g. inside another app
- No longer calls updateOrientationHandler in onConfigurationChanged, as updateOrientationHandler is already called in setInsets, which get called on rotation

Bug: 181550945
Test: Swipe up to enter overview, launch app, rotate, then swipe up again
Test: Swipe up to enter overview from landscape only app, while holding device in portrait
Change-Id: I268093617d51333678e510c910ed15275706f984
2021-05-24 19:10:49 +01:00
Alex Chau 960a2b2696 Always focus a task in overview
- Focus first task when applying load plan
- Focus the next task in shorter row when focused task is dismissed, scale the snapshot and translate the task into focused position
- Always show actions view as there is always a focused task. Update scroll alpha when toggling grid enabled
- In fallback recents, take into account that home task will be dismissed when determining rows for the grid, ensuring next focused task won't affect row balancing
- Bring back clearAllShortTotalCompensation as there isn't always a snappedTaskView (e.g. when snapped to ClearAllButton)
- Ensure that getFocusedTaskView is only used when showAsGrid is true

Bug: 187839470
Fixes: 188001858
Fixes: 189057812
Test: manual
Change-Id: I6f31ef469c58fda70d2dd8caa2ee7d8a80c7f03b
2021-05-24 18:13:04 +01:00
Steven Ng e90dddaaa0 Fix full widgets picker fast scroller height.
1. Fix the app title to one line.
2. Use the measured height of a header view to estimate the available
   fast scroll bar height.

Test: Open full widgets picker. Scroll to the bottom by scroll gesture.
      Observe the fast scroll bar indicator is correctly shown.
      Scroll back to top and then use the fast scroll bar to scroll to
      the end of the page. Observe the last app row is aligned to the
      bottom of the page.
Bug: 188914448
Change-Id: I57a2419d1fbfc8f946a932eebfefb67ae0c07eb6
2021-05-24 18:05:56 +01:00
Steven Ng f375e8bebc Fix ripple effect shown when tapping an app row in widgets picker
Test: Open the full widgets and tap an app. Ripple effect is applied
      to the entire row rather than just on the arrow.
Bug: 188873069
Change-Id: Id77b2055f6bc31c12bb19e695ea44aeaff36c4a6
2021-05-24 16:32:56 +01:00
Steven Ng f4afb6bc17 Remove all apps tabs elevation
Test: Set up a work profile. Open all apps and observe no shadow around
      tabs.
Bug: 188727345
Change-Id: I5b8594002dbd8155b45376103d44fbda12ebe001
2021-05-24 14:55:33 +01:00
Steven Ng ede641bd77 Adjust padding, margin of tabs in the WidgetsFullSheet
Also remove elevation set to tab to remove unwanted shadow.

Test: Set up a work profile. Then, open the full widgets picker.
      Observe padding & margin of the work / personal tabs.
Bug: 188221455
Change-Id: I761cb1c1410f87c80a5fdca3803fb8b099d499d6
2021-05-24 11:40:16 +01:00
android-build-team Robot f663d1cc2a Snap for 7390572 from f3649f5e98 to sc-v2-release
Change-Id: I52b905569ec97d2ba3a8d518ed0e614a6ec1b7f3
2021-05-22 23:08:34 +00:00
android-build-team Robot 561b9e048c Snap for 7390449 from 81f5ff3b3b to sc-release
Change-Id: I3a1b0b507daaf36030fdde1b90477a12aafe7d03
2021-05-22 23:08:27 +00:00
Bill Yi 8fb123cbe2 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-05-22 05:26:50 +00:00
Jonathan Miranda da21fc4ca6 Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b am: a4b834fe72 am: e9031274a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I23e6f893710e82e4b76d3cb3da965325deb1f333
2021-05-22 05:16:40 +00:00
Jonathan Miranda 736e7ef92e Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b am: f3649f5e98 am: 6f8bc6502f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I3c510212b7475f52fc345065ef7d928f61393604
2021-05-22 05:16:14 +00:00
Jonathan Miranda e9031274a2 Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b am: a4b834fe72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I7e74cd1602beb5a259f4cd9642e16f825a50ac17
2021-05-22 05:03:00 +00:00
Jonathan Miranda 6f8bc6502f Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b am: f3649f5e98
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I9c6c072b82ae8ef8f52f8ec80f0f71057d1ee787
2021-05-22 05:01:45 +00:00
Jonathan Miranda f3649f5e98 Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I4090adb746e959d66ac33940e1989ea30c97ee8f
2021-05-22 04:38:50 +00:00
Jonathan Miranda 0f57756e70 Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: I3ac95b881206b65bb73e7ff38a4f6a8cbd219382
2021-05-22 04:37:33 +00:00
Jonathan Miranda a4b834fe72 Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev am: 81f5ff3b3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14688336

Change-Id: Idf378e441611a5dc6f2c291c0ec5b0db8239a587
2021-05-22 04:37:31 +00:00
Jonathan Miranda 81f5ff3b3b Merge "Fix PathParser error when parsing app close interpolator in RTL languages." into sc-dev 2021-05-22 03:45:29 +00:00
android-build-team Robot 5044f23bbe Snap for 7387931 from cd72a7d265 to sc-v2-release
Change-Id: Ic4b0a0bd761c4af3563b01fb255066985997a9b2
2021-05-22 03:08:29 +00:00
android-build-team Robot 85ed4fc818 Snap for 7389169 from 576722164a to sc-release
Change-Id: I0c39cfe8dcf02ea20bd24ec6383fefd4a9636a30
2021-05-22 03:08:12 +00:00
Sunny Goyal 799c1ff09f Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e am: 12829aee27 am: d106111de3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: I427f8efcc65d884d89211565f96af6fdc4b4ff36
2021-05-22 03:01:06 +00:00
Sunny Goyal 259cc18632 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e am: 1b72c0ea35 am: 7796916a88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: I4dc7a3fc2ee26cfdaa802fed600ef9850ef87319
2021-05-22 03:00:45 +00:00
Sunny Goyal d106111de3 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e am: 12829aee27
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: I65b0e03a8786f209516ad1bcd99b504d246fe91a
2021-05-22 02:54:43 +00:00
Sunny Goyal 7796916a88 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e am: 1b72c0ea35
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: Id67c295d6a09ea99b39497654fd1eb7cfce34bf5
2021-05-22 02:46:58 +00:00
Sunny Goyal 12829aee27 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: Ic3aa579ebc2df7b3053f8df14bceebea0e2850aa
2021-05-22 02:32:40 +00:00
Sunny Goyal 7977a6f8b4 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: I3a834869b46697c1983bc8a2c40553d2970ef61f
2021-05-22 02:31:01 +00:00
Sunny Goyal 1b72c0ea35 Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev am: 2f0595e76e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14680570

Change-Id: I4668106ead95e6a58d3fe30d5c4e0da3d90e11c4
2021-05-22 02:29:23 +00:00
Sunny Goyal 2f0595e76e Merge "Renamin TaskbarContainerView to TaskbarDragLayer" into sc-dev 2021-05-22 02:16:34 +00:00
TreeHugger Robot cbc20bdebf Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79 am: 903141dbbc am: db94817163
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: Id21c5715f9504c5c8878ea603a15fb0741fd33ed
2021-05-22 02:02:18 +00:00
TreeHugger Robot d7ab544114 Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79 am: b841731a35 am: 55b8f873fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I9d17140c2245cd41731b963c94bef3c17311b191
2021-05-22 02:00:33 +00:00
TreeHugger Robot db94817163 Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79 am: 903141dbbc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I91a2697307ec737d11d385e6bd6f6ce47e86ec2f
2021-05-22 01:46:42 +00:00
TreeHugger Robot 55b8f873fa Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79 am: b841731a35
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I7663699b60fedfc0b4350899788a48a0004c99a2
2021-05-22 01:46:20 +00:00
TreeHugger Robot b841731a35 Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I3acf3f5c5a340b3686e41e67fb885b072de44ead
2021-05-22 01:25:26 +00:00
TreeHugger Robot 1978f8d51f Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I26a5b6d5a6464109bec3554c2d2caabe2c960013
2021-05-22 01:23:37 +00:00
TreeHugger Robot 903141dbbc Merge "Fixing missing unlinktoDeath" into sc-dev am: eb0a14ad79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14684233

Change-Id: I3a774cb468e187ff32bfdba045606d8baaa0f17d
2021-05-22 01:22:07 +00:00
TreeHugger Robot eb0a14ad79 Merge "Fixing missing unlinktoDeath" into sc-dev 2021-05-22 01:05:05 +00:00
Jon Miranda 7c9dca2df2 Fix PathParser error when parsing app close interpolator in RTL languages.
Setting locale to english so that the numbers don't get reverted

Bug: 188552618
Test: set language to arabic, swipe up to home
Change-Id: I736c83984b472d9ad09207927743c87b18637db4
2021-05-21 17:20:07 -07:00
Sunny Goyal b5596f72e4 Fixing missing unlinktoDeath
Bug: 186712316
Test: Manual
Change-Id: If06737403c346c5ccca533dec647e3a0691f1bfa
2021-05-21 15:29:33 -07:00
Sunny Goyal 5584513500 Renamin TaskbarContainerView to TaskbarDragLayer
Bug: 187353581
Test: Presubmit
Change-Id: I9164a956aaa896111f287ab4e97b091a7d4d30ee
2021-05-21 14:42:18 -07:00
Sunny Goyal 6755587219 Using icon color for dot and halo
Bug: 188839628
Test: Manual
Change-Id: I8a393cc7073d5a249619b4033ec860c55f17167a
2021-05-21 12:57:38 -07:00
Bill Yi 2c86c6d83e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I06e192ad4396655b3e84649193acfb4e8b8093e4
2021-05-21 19:42:31 +00:00
Sunny Goyal e9d27f137f Updating method for getting themed icon
Bug: 183641907
Test: Manual
Change-Id: I417886acea1b518c184d8e7c649367cae841a7e4
2021-05-21 12:29:15 -07:00
TreeHugger Robot e3b74d2602 Merge "Apply the current system window insets to launcher preview" into sc-dev am: 576722164a am: 4d87ea7298 am: b382cddd57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14646650

Change-Id: Iaeeddcc6ba3029b8f242ac5dc74f3d0a2d797f2e
2021-05-21 19:22:24 +00:00
TreeHugger Robot 012c4d5236 Merge "Avoid drawing tall header when scrolling search results" into sc-dev am: 3350508bb6 am: 25ac3bebc8 am: 4fb59e1434
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14661228

Change-Id: Iadce32ba83abf2a5d07b0885861347cf32f3031a
2021-05-21 19:21:53 +00:00
TreeHugger Robot 03e96f070e Merge "Apply the current system window insets to launcher preview" into sc-dev am: 576722164a am: bd966d6c12 am: 0c8751121d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14646650

Change-Id: I505061cfb98c121cc263b6094f0bdb316f5b5726
2021-05-21 19:20:30 +00:00
TreeHugger Robot fd9f5ea3b5 Merge "Avoid drawing tall header when scrolling search results" into sc-dev am: 3350508bb6 am: 02567591a5 am: 2f7f788304
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14661228

Change-Id: If88c81c4ab35ae6f6cb6b582c2a2cf4a93e555de
2021-05-21 19:19:09 +00:00
Vadim Tryshev 82e646aa9b Merge "Improving TAPL messaging" into sc-dev am: 9a6ba8cfa4 am: be275da816 am: 520094cec7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669955

Change-Id: I6f47df587eb9a59166013de8ad4019ae471df672
2021-05-21 19:18:49 +00:00
Vadim Tryshev b28f5ef655 Merge "Improving TAPL messaging" into sc-dev am: 9a6ba8cfa4 am: b815ff8546 am: ae537f6e89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669955

Change-Id: I68f5f12aa45781d7d003a510547db13e646012a6
2021-05-21 19:14:48 +00:00
TreeHugger Robot b382cddd57 Merge "Apply the current system window insets to launcher preview" into sc-dev am: 576722164a am: 4d87ea7298
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14646650

Change-Id: I75cd96996a5f8ff528a3327473885c869db1ce05
2021-05-21 18:33:51 +00:00