Commit Graph

14731 Commits

Author SHA1 Message Date
Alex Chau 19c6eca5c5 Use overview_actions_height from Resources to calculate OverviewActionsView alignment
- startActionView.getHeight() isn't ready when updatePaddingAndTranslations is called, so use overview_actions_height from Resources through DeviceProfile instead.

Fix: 218442870
Test: Restart launcher, go to overveiw from app, rotate and rotate back, overview actions stays in same position
Change-Id: Ia5e234f73100a2f418c17222145a8f993cbfab8a
2022-03-10 20:16:59 +00:00
Brian Isganitis a2f26954a0 Set taskbar touchable region to empty when all apps is open.
Fix: 223653710
Test: Manual
Change-Id: Ia78831028b67aa425d5bd5ae61ae460d3caabbb7
2022-03-10 11:21:27 -08:00
Jon Miranda 5df3ca4cae Merge "Never look for matching view in All Apps when swiping up to go home." into tm-dev am: 7db484396a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128401

Change-Id: I862e97d22bbd7f7211fe4046bb84d4d04ae6d74b
2022-03-10 19:16:32 +00:00
Jon Miranda 2c1adb6e39 Merge "Never look for matching view in All Apps when swiping up to go home." into tm-dev am: 7db484396a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128401

Change-Id: I6b433224d25b0b3ec7146bfd0a92318ac5568a25
2022-03-10 19:16:26 +00:00
Jon Miranda 7db484396a Merge "Never look for matching view in All Apps when swiping up to go home." into tm-dev 2022-03-10 18:46:51 +00:00
Schneider Victor-tulias b282446dac Fix gesture navigation tutorial colors to match SUW colors.
- Updated the gesture nav tutorial to use the system accent color for buttons and the feedback animations

Fixes: 222269039
Test: built change, flashed and factory reset device
Change-Id: I4e515aef0ccdab98f1d3900007f6006b1975b41b
2022-03-10 10:33:06 -08:00
Brian Isganitis cea2480cac Properly center all apps divider.
Fix: 223837782
Test: Manual on large and small screens in portrait and landscape.
Change-Id: Ie4d609ce6524cc739d00bec5a8d26ec4c4152633
2022-03-10 18:29:34 +00:00
Jon Miranda efca5c8655 Revert "Sync hotseat/taskbar handoff"
This reverts commit ede8718e63.

Reason for revert: causing ANR b/223789074

Bug: 223789074
Bug: 223443781
Bug: 202507555

Change-Id: Ibd76939a345f54e8945cdd97e652f5e06e40edcb
2022-03-10 18:27:36 +00:00
TreeHugger Robot 9685efe3e3 Merge "Sync hotseat/taskbar handoff" into tm-dev am: b873662734
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17141808

Change-Id: Ie2ea0b095938733890aa1a8d9d1f2297586933f0
2022-03-10 10:03:58 +00:00
TreeHugger Robot 4f05662c74 Merge "Sync hotseat/taskbar handoff" into tm-dev am: b873662734
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17141808

Change-Id: Ifcd0353bcd27a221f0cab9bf50945c5fd964b8e9
2022-03-10 10:03:50 +00:00
TreeHugger Robot b873662734 Merge "Sync hotseat/taskbar handoff" into tm-dev 2022-03-10 09:22:21 +00:00
Tracy Zhou 3ef2682fb9 Merge "Support launching an intent and a task from the same app as multi-instance" into tm-dev am: 6416cea0e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17076088

Change-Id: I829e202f21f02be8c8cf0be7cb72d3c593c959c5
2022-03-10 02:12:14 +00:00
Tracy Zhou eaee10b6c4 Merge "Support launching an intent and a task from the same app as multi-instance" into tm-dev am: 6416cea0e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17076088

Change-Id: I439589d84b0a1c16faafaa884b98a66f0949d4b5
2022-03-10 02:11:59 +00:00
Tracy Zhou a2ed734178 Merge "Fix wrong initial staged split position" into tm-dev am: fec75c5a0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17144691

Change-Id: Id2b33c405bddd4cbdaa48ef8a877ab261a9c6153
2022-03-10 02:11:57 +00:00
Tracy Zhou 4689a255a0 Merge "Fix wrong initial staged split position" into tm-dev am: fec75c5a0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17144691

Change-Id: Id7106484cbad6ba03a84074eba68fb0bdd656a61
2022-03-10 02:11:39 +00:00
Tracy Zhou 6416cea0e5 Merge "Support launching an intent and a task from the same app as multi-instance" into tm-dev 2022-03-10 02:09:53 +00:00
Tracy Zhou fec75c5a0e Merge "Fix wrong initial staged split position" into tm-dev 2022-03-10 01:47:53 +00:00
Abhilasha Chahal fa71aec80a Merge "Revert "Revert "Extract out common adapter logic to support diff..."" into tm-dev am: c7115ec833
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17133627

Change-Id: Ia1550660d2c29c707a383b57c6c5d481e2c1f9ba
2022-03-10 00:39:47 +00:00
Abhilasha Chahal d2f7839069 Merge "Revert "Revert "Extract out common adapter logic to support diff..."" into tm-dev am: c7115ec833
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17133627

Change-Id: I17ff403417ae9fb2ed93f333a7d018f7996bfb81
2022-03-10 00:39:29 +00:00
Abhilasha Chahal c7115ec833 Merge "Revert "Revert "Extract out common adapter logic to support diff..."" into tm-dev 2022-03-10 00:18:07 +00:00
Thiru Ramasamy 6e71694737 Merge "[OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event." into tm-dev am: fe72583a86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128393

Change-Id: I59a8612d5e91eff38bcfcc0e28b2e2c606fdb843
2022-03-09 23:28:05 +00:00
Thiru Ramasamy aeadd1e729 Merge "[OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event." into tm-dev am: fe72583a86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17128393

Change-Id: Ic6d8605d6ae50fbd56ee3836a83ccfdb1358e6d0
2022-03-09 23:28:03 +00:00
Tracy Zhou d9cb8cfa0d Support launching an intent and a task from the same app as multi-instance
Similar to ag/16820166, add FLAG_ACTIVITY_MULTIPLE_TASK to the fillInIntent

Fixes: 222583964
Fixes: 217965464
Fixes: 221415250
Test: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/7606236a-3350-49d6-bfad-9e6a609413d1
Change-Id: I676358ef1cbff8317995430de961a0a3242c0cbf
2022-03-09 15:21:45 -08:00
Thiru Ramasamy fe72583a86 Merge "[OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event." into tm-dev 2022-03-09 23:11:16 +00:00
Tracy Zhou dd2bea9e70 Fix wrong initial staged split position
This is caused by having set a wrong animation duration in the 3 button case. Before this change we have a fixed duration of 370ms which happens to be almost match the Overview transtion duration in gesture nav. However the transition duration in 3-button is set to 250ms. After the transition duration, any unfinished animation is cancelled including this one, resulting in the wrong staged split position. Instead this change pulls the transition duration of toState from the caller = RecentsViewStateController.

Fixes: 222210349
Test: manual
Change-Id: Ie2f3dbe38bb6df33961e2ee78b8a55d0e925501f
2022-03-09 14:44:35 -08:00
Tony Wickham 65d26c5f20 Merge "Keep reporting > 0 insets on home screen" into tm-dev am: 808b6c2fed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17084127

Change-Id: I2c7136fd125da0bee3af21cb8ff440af03b11073
2022-03-09 22:39:00 +00:00
Tony Wickham 34ef5b416a Merge "Keep reporting > 0 insets on home screen" into tm-dev am: 808b6c2fed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17084127

Change-Id: Ia8209ca860ad9bb0080bf77ef8a3a352ec1b0461
2022-03-09 22:38:37 +00:00
TreeHugger Robot 8ccc2bbf43 Merge "Updating window manager estimation logic:" into tm-dev am: d586e1948b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17070486

Change-Id: I02864003cf66b733a420afec69756edade427cc4
2022-03-09 22:38:35 +00:00
TreeHugger Robot 6ed2ec5532 Merge "Updating window manager estimation logic:" into tm-dev am: d586e1948b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17070486

Change-Id: I7c02941e25b99f4ac42c03a15ef323939f65edab
2022-03-09 22:38:29 +00:00
TreeHugger Robot f60c42c4bc Merge "Remove stale log statement for b/195430732" into tm-dev am: 94a54982b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17125713

Change-Id: I893b4036e02803ef129fd93b1ce664536d2acbbb
2022-03-09 22:38:22 +00:00
TreeHugger Robot 5e862806ad Merge "Remove stale log statement for b/195430732" into tm-dev am: 94a54982b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17125713

Change-Id: Ida11bbefeb5ec90c3ce578add4b0a53af1cb7925
2022-03-09 22:38:11 +00:00
Tony Wickham 808b6c2fed Merge "Keep reporting > 0 insets on home screen" into tm-dev 2022-03-09 22:37:13 +00:00
TreeHugger Robot d586e1948b Merge "Updating window manager estimation logic:" into tm-dev 2022-03-09 22:24:12 +00:00
TreeHugger Robot 94a54982b9 Merge "Remove stale log statement for b/195430732" into tm-dev 2022-03-09 22:22:15 +00:00
Brian Isganitis 6c620ac5c9 Merge "Close Taskbar AFVs when locking screen." into tm-dev am: 3f7ac842e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17114550

Change-Id: Ibb43f1f95df77b30df86b3c7a95df5fdcf81cc03
2022-03-09 22:15:08 +00:00
Brian Isganitis 4f6da077ca Merge "Close Taskbar AFVs when locking screen." into tm-dev am: 3f7ac842e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17114550

Change-Id: I0a9315f715d3e266f057697ae1383702632d4ea9
2022-03-09 22:15:02 +00:00
Brian Isganitis 3f7ac842e0 Merge "Close Taskbar AFVs when locking screen." into tm-dev 2022-03-09 21:47:55 +00:00
Schneider Victor-tulias f7a6b04ad0 Merge "Update gesture nav tutorial with updated phone landscape layouts" into tm-dev am: 18bc66e365
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17126576

Change-Id: I483ca8b2d7cf7b79f1d8376d632ad36c2703e711
2022-03-09 21:05:52 +00:00
TreeHugger Robot 95cbde4ae3 Merge "Play fallback animation if there are multiple closing targets." into tm-dev am: 441a7d76ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17127939

Change-Id: I0f927b2f59bfb5a38187731b22f798ac92877b8a
2022-03-09 21:05:44 +00:00
Schneider Victor-tulias 2ab75e9489 Merge "Update gesture nav tutorial with updated phone landscape layouts" into tm-dev am: 18bc66e365
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17126576

Change-Id: I3b57c080a828872076f28864efaea705ef090089
2022-03-09 21:05:43 +00:00
TreeHugger Robot 3d46d030b6 Merge "Play fallback animation if there are multiple closing targets." into tm-dev am: 441a7d76ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17127939

Change-Id: Icff8c50b7e000b999f2c423ea62ccbd7d33962d0
2022-03-09 21:05:34 +00:00
Schneider Victor-tulias 18bc66e365 Merge "Update gesture nav tutorial with updated phone landscape layouts" into tm-dev 2022-03-09 21:04:24 +00:00
TreeHugger Robot 441a7d76ef Merge "Play fallback animation if there are multiple closing targets." into tm-dev 2022-03-09 20:44:18 +00:00
TreeHugger Robot 064cd357ba Merge "Restrict the area for the input to unsatsh the taskbar" into tm-dev am: df022bd4c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17016891

Change-Id: Icf79f043a286f31ae1062d4f60166d44932cc0d3
2022-03-09 19:18:26 +00:00
TreeHugger Robot bd20c78803 Merge "Restrict the area for the input to unsatsh the taskbar" into tm-dev am: df022bd4c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17016891

Change-Id: I31b51fc6b808819c18cfb362aaaf4edd98e83817
2022-03-09 19:18:22 +00:00
Sunny Goyal 187b16cb91 Updating window manager estimation logic:
> Moving the code from ApiWrapper to Resource overlays for better maintainability
> Accounting for display cutouts in insets estimation
> Using same logic in display controller and view inset dispatching

Test: Verified on device
Bug: 221961069
Change-Id: I78466353563692ce3f7512b0146ef8b61ef14bc0
2022-03-09 11:15:58 -08:00
TreeHugger Robot 50ec0e897f Small improvement for ag/17016891 (unstash taskbar input area size)
Get the device width form DeviceProfile instead of context for efficiency.

Bug: 204166104
Test: Unstash and stash taskbar, done in both orientations.
Change-Id: I14c3593552939f3be78f3e5c1193020873555d37
2022-03-09 19:15:51 +00:00
TreeHugger Robot df022bd4c9 Merge "Restrict the area for the input to unsatsh the taskbar" into tm-dev 2022-03-09 18:51:36 +00:00
Jon Miranda ede8718e63 Sync hotseat/taskbar handoff
+ Do not allow sync during tests

Bug: 223443781
Bug: 202507555
Test: open/close apps in hotseat/taskbar
Change-Id: I2f434d440a26999219e785b8671768e27d0dcad3
2022-03-09 10:06:47 -08:00
Sam Dubey 523fc8afcf Merge "Revert "Extract out common adapter logic to support different Al..."" into tm-dev am: a57dc7d402
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17141723

Change-Id: Ifb7d6af1e3c61fbd85518043c3c6d57dacefb358
2022-03-09 18:00:34 +00:00