Commit Graph

13651 Commits

Author SHA1 Message Date
Alex Chau 2998307cd6 Use only current density to check isTablet
- Removed DeviceProfile.allowRotation and use DeviceProfile.isTablet instead, which only uses current density to calculate its value
- Reverted default allow_rotation preference handling to before ag/14234761

Fix: 203817448
Test: isTablet is set correctly in different screen sizes
Change-Id: Ic6c8dfc774e7787f62d489ad27720a7644c1e8c7
2021-11-19 15:27:01 +00:00
Alex Chau 6499e83c57 Consider launching task's position on screen in pivot calculation
- Instead of using RecentsViewScroll, put task's position offset versus current scroll as TaskRect calculation, so it's considered when calculating for putting task to full screen
- Revert back RecentsViewScroll to apply before RecentsViewScale
- Added new property in PagedOrientationHandler to apply both primary/secondary param without clearing the other, and renamed an existing method

Fix: 206972618
Test: Quick switching
Test: Launch task from grid, launch side task from carousel overview
Change-Id: I5977975ed1e930ad70b81d83513d8f3a00c0aed4
2021-11-19 14:42:20 +00:00
Fedor Kudasov dff1bee0cb Merge "Move FloatingTaskInit set up into init method" into sc-v2-dev am: 039501f41f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16279510

Change-Id: If7370a7be6941e51f6559d79e824838ce2e601ac
2021-11-19 10:40:30 +00:00
Fedor Kudasov 039501f41f Merge "Move FloatingTaskInit set up into init method" into sc-v2-dev 2021-11-19 10:26:46 +00:00
Vinit Nayak 93d37ee334 Launch GroupedTaskView from thumbnails am: 788821ec4e am: 0c567f0c41
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16288752

Change-Id: Ie39a68bfe04f40ea63070018b68dc7d97fe08274
2021-11-19 09:35:28 +00:00
Vinit Nayak 0c567f0c41 Launch GroupedTaskView from thumbnails am: 788821ec4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16288752

Change-Id: I8bb7d6df11a4eee0bd80ca4e73bbeb3f29ac69b8
2021-11-19 09:17:31 +00:00
Vinit Nayak f957244b88 Show multiple App Info A11y options for split app icons
* AccessibilityNode actions are required to have a
unique resourceId to show as an action in A11y dialog.
For now, only AppInfo option is shown for each app in split,
but moving forward we'll need to add resourceIDs for
each option that can show up for either app.

Fixes: 200609838
Test: Saw multiple options for App Info for each app
come up in talkback mode

Change-Id: I92b349347354ac639537021d775eea814c866a0e
2021-11-18 23:22:46 -08:00
Vinit Nayak 788821ec4e Launch GroupedTaskView from thumbnails
* Previously when starting the remote animation
we were relying on SplitPlaceholderViews to
animate into the proper place since we weren't
launching from the TaskView itself
* Now when launching from a GroupedTaskView,
we use the existing animation that handles that
animation in addition to showing the new split tasks

Fixes: 206608786
Test: Thumbnails animate from home -> overview -> launch
Change-Id: I1499ead7d90cd41e285ed0f4df66ea31f0dfbc95
2021-11-18 22:58:53 -08:00
TreeHugger Robot 4077d5a326 Merge "Reset split selection state when RecentsView resets" into sc-v2-dev am: 84b64d7910 am: 6b818deec1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16299751

Change-Id: I38d14c7e1b2d63a91dfba495d769e74067966720
2021-11-19 00:17:12 +00:00
TreeHugger Robot 6b818deec1 Merge "Reset split selection state when RecentsView resets" into sc-v2-dev am: 84b64d7910
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16299751

Change-Id: Id2bb37c56201df52da0be8749970b3ecd05eafdb
2021-11-19 00:04:16 +00:00
TreeHugger Robot 84b64d7910 Merge "Reset split selection state when RecentsView resets" into sc-v2-dev 2021-11-18 23:51:47 +00:00
Vinit Nayak 97f9bd575a Reset split selection state when RecentsView resets
* We weren't calling reset on the views
involved in split selection when recents view gets
a reset call (oops)
* Use device theme for split placeholder theme instead
of hardcoding to white

Fixes: 206155455
Change-Id: I3768fd574cb21eec9562d89c1a93eaa3f53d5ff1
2021-11-18 14:06:27 -08:00
TreeHugger Robot a55a23fdd6 Merge "Check if ThumbnailData's bitmap is null in TaskThumbnailCache" into sc-v2-dev am: 39aceb6dc7 am: cf2f085d23
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16282756

Change-Id: I02a126667b4efd487354db335c9f82482d7e7d17
2021-11-18 21:53:18 +00:00
TreeHugger Robot cf2f085d23 Merge "Check if ThumbnailData's bitmap is null in TaskThumbnailCache" into sc-v2-dev am: 39aceb6dc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16282756

Change-Id: I4d87bc4180dba56d48b14320711c5d69a59aaa78
2021-11-18 20:23:53 +00:00
TreeHugger Robot 39aceb6dc7 Merge "Check if ThumbnailData's bitmap is null in TaskThumbnailCache" into sc-v2-dev 2021-11-18 19:46:50 +00:00
Thales Lima 29df4a92de Merge "open grid task menu to the right of icon" into sc-v2-dev am: bd1aec6721 am: 86f23841c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16248618

Change-Id: Ic2fa8bd603abd46f1fcf5d9a1234f1e2ff798e61
2021-11-18 18:42:11 +00:00
Thales Lima 86f23841c2 Merge "open grid task menu to the right of icon" into sc-v2-dev am: bd1aec6721
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16248618

Change-Id: I5552cc4a7222a22191553f1b88ad23fc3ef3f25c
2021-11-18 18:26:40 +00:00
Thales Lima bd1aec6721 Merge "open grid task menu to the right of icon" into sc-v2-dev 2021-11-18 18:19:58 +00:00
Alex Chau 4670d37e55 Check if ThumbnailData's bitmap is null in TaskThumbnailCache
- This makes sure TaskThumbnailCache fetch for thumbnail when its Bitamp is null

Fix: 206959035
Test: See steps in b/206959035
Change-Id: I03b574b0f8cc7390a8cad618bd810f44f0dee279
2021-11-18 15:57:28 +00:00
Thales Lima 45f2306ce9 open grid task menu to the right of icon
This makes the TaskMenuViewWithArrow open to the right of the icon if
there is enough space, and to the left if not. It also works correctly
in RTL, inverting the side to open by default.

Bug: 193432925
Test: open Overview and tap the app icon
Change-Id: Ib1098f48ed28d2e0758fb0e3fb733e86271fa1a0
2021-11-18 12:01:16 -03:00
TreeHugger Robot 820c191397 Merge "Move live tile app to top when the task view is tapped" into sc-v2-dev am: 1edee616ae am: 09c784f071
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16286431

Change-Id: Id204fa1922e542fe02fbe9ada4fe2db07ae4eb83
2021-11-18 12:46:13 +00:00
TreeHugger Robot 09c784f071 Merge "Move live tile app to top when the task view is tapped" into sc-v2-dev am: 1edee616ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16286431

Change-Id: Ieb4ce8b4d9322391615cba715d3ab94448aa6864
2021-11-18 12:40:05 +00:00
Alex Chau 8f7d93e700 Refresh overlay when thumbnail was set for first time am: 60d5315e19 am: 031f292cd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16279507

Change-Id: If5c7b6c59e7ed335b3ae606dce76a1111c75422a
2021-11-18 12:39:36 +00:00
TreeHugger Robot 1edee616ae Merge "Move live tile app to top when the task view is tapped" into sc-v2-dev 2021-11-18 12:26:05 +00:00
Alex Chau 031f292cd3 Refresh overlay when thumbnail was set for first time am: 60d5315e19
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16279507

Change-Id: Ie7f068b1839ec461ec52c7a2e201342b41131569
2021-11-18 12:20:33 +00:00
Alex Chau 60d5315e19 Refresh overlay when thumbnail was set for first time
Bug: 202414125
Test: TaplTestsNexus.testOverviewActions && TaplTestsQuickstep.testOverviewActions
Change-Id: I2cc38df4c891fb21a8295d4f9c75e396c71449f2
2021-11-18 10:31:13 +00:00
My Name edd5f77c51 Sending broadcast message when home screen is ready.
There is a lag between Pixel/Phone is starting message is displayed and when the home screen is actually ready. The lag is visible in low-end devices like JioPhone Next. To solve that a broadcast message is sent from QuickstepLauncher class when the UI is ready.

Bug: 199120420
Test: manual - tested on the device

Change-Id: I18628552a1513454127ef2f8ad5acd711d9015e6
2021-11-18 05:29:47 +00:00
TreeHugger Robot 611327d58b Merge "Use split thumbnail width/height directly" into sc-v2-dev am: 5394db834f am: d5bb753fb0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16290750

Change-Id: I1af553df752b9ae143c1e25b22bf9c715acc9ebb
2021-11-18 05:11:07 +00:00
TreeHugger Robot d5bb753fb0 Merge "Use split thumbnail width/height directly" into sc-v2-dev am: 5394db834f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16290750

Change-Id: I4a95e767af6bc7b8c88b341b5b3a23e3400e6442
2021-11-18 05:00:26 +00:00
TreeHugger Robot 5394db834f Merge "Use split thumbnail width/height directly" into sc-v2-dev 2021-11-18 04:42:27 +00:00
Vinit Nayak be7ce023de Use split thumbnail width/height directly
* When swiping to QS from home, the
bounds for the rect on screen are incorrect
because it's technically off-screen when
it's being queried

Fixes: 206155441
Change-Id: Ibb17f2ac291f867b6de06041c980e434ce92cf27
2021-11-17 19:05:29 -08:00
TreeHugger Robot 3bd6388995 Merge "Add animated background to the suw all set page." into sc-v2-dev am: 010faef3a5 am: 61795cd45a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223698

Change-Id: I779e296c97cc6a6370fb3925a471f4392c058a40
2021-11-18 00:35:20 +00:00
TreeHugger Robot 7036f095df Merge "Use TOUCHABLE_INSETS_REGION when IME is visible" into sc-v2-dev am: ec2bd55047 am: 21ab217bf9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16286558

Change-Id: I58ba37b364d790e5548efac21a23465456e7d950
2021-11-18 00:29:52 +00:00
Tony Wickham 9ceae57095 Add support for dark tint on taskbar nav buttons
Tint the buttons when taskbar isn't drawing a background (either due to alpha or offset).

Test: Dark icons on a light wallpaper on home screen, dark icons when light IME is showing
Bug: 204256643
Change-Id: Iae634a1b604f50edc102905abd0d812a43c5346e
2021-11-17 16:28:21 -08:00
TreeHugger Robot 61795cd45a Merge "Add animated background to the suw all set page." into sc-v2-dev am: 010faef3a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223698

Change-Id: I9cadb5c6909ad68ca3ba1cadc9c72ba1b7a1716d
2021-11-18 00:23:49 +00:00
TreeHugger Robot 21ab217bf9 Merge "Use TOUCHABLE_INSETS_REGION when IME is visible" into sc-v2-dev am: ec2bd55047
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16286558

Change-Id: Ida331373a19c9c49013346dde8187f139eff4ed8
2021-11-18 00:11:43 +00:00
TreeHugger Robot 010faef3a5 Merge "Add animated background to the suw all set page." into sc-v2-dev 2021-11-18 00:07:35 +00:00
TreeHugger Robot ec2bd55047 Merge "Use TOUCHABLE_INSETS_REGION when IME is visible" into sc-v2-dev 2021-11-17 23:57:56 +00:00
Jason Chang 239baf3bf3 Merge "(5/n) Remove One-handed mode overlay mechanism from quickstep" 2021-11-17 23:38:01 +00:00
Vinit Nayak c1ec2d4260 Open taskMenu based on TaskIdAttributeContainer
* We were always passing in the same task no matter
which task icon was clicked.
* Use TaskIdAttributeContainer to associate
IconViews with their respective tasks

Fixes: 206154715
Test: Correct menu opens for split and fullscreen
tasks

Change-Id: I79a32541ea9ebae9ad78ad933f55212d0bc64b56
2021-11-17 15:29:42 -08:00
Fedor Kudasov c8f686710e Move FloatingTaskInit set up into init method
This makes the code more tidy and consistent with
other classes. Additionally, this allows for easier
annotation of the initialization code.

Bug: 205828770
Test: m LauncherGoResLib
Change-Id: Ib7ecf32cffd5c6af67a4c2095d7cb3e3a2f387e4
(cherry picked from commit f50acd3ed8)
2021-11-17 22:13:43 +00:00
Fedor Kudasov 2b2d5ba1c9 Merge "Move FloatingTaskInit set up into init method" 2021-11-17 22:13:26 +00:00
Tony Wickham bf4a91b0f1 Use TOUCHABLE_INSETS_REGION when IME is visible
This ensures the dismiss button is fully clickable even if taskbar is stashed.

Test: Stash taskbar, can dismiss keyboard by tapping anywhere on the back button
(Same with taskbar unstashed)
Fixes: 206851484

Change-Id: I06f86191e36b596a928c8db8d67a012be033daba
2021-11-17 14:04:25 -08:00
Tracy Zhou 5163574b7a Move live tile app to top when the task view is tapped
- transition animation for foldables need it

Bug: 205789573
Test: manual
Change-Id: Icf11d204968dbffa6bb9c930deaa57d35e2eff4a
2021-11-17 13:59:49 -08:00
Schneider Victor-tulias 1a332d85b2 Merge "Add notification dots and popup menu notification support to the taskbar." 2021-11-17 21:51:10 +00:00
Alex Chau a7adf882e1 Merge "Fix launch animation from bottom row and end of grid" into sc-v2-dev am: 7c9055fc6b am: 4cb9af12e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261572

Change-Id: I64cb2fbb7dfab422dbfca349a94a13f94064918c
2021-11-17 21:35:46 +00:00
Alex Chau 4cb9af12e9 Merge "Fix launch animation from bottom row and end of grid" into sc-v2-dev am: 7c9055fc6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261572

Change-Id: I1bff143ada51bc1de8d8981120fac8384980c4cc
2021-11-17 21:21:14 +00:00
Alex Chau 7c9055fc6b Merge "Fix launch animation from bottom row and end of grid" into sc-v2-dev 2021-11-17 21:02:16 +00:00
Fedor Kudasov f50acd3ed8 Move FloatingTaskInit set up into init method
This makes the code more tidy and consistent with
other classes. Additionally, this allows for easier
annotation of the initialization code.

Bug: 205828770
Test: m LauncherGoResLib
Change-Id: Ib7ecf32cffd5c6af67a4c2095d7cb3e3a2f387e4
2021-11-17 20:36:42 +00:00
Tracy Zhou 9193dd1ef5 Merge "Refine when to move live tile app below recents view" into sc-v2-dev am: a37f8baa1d am: aba6c9296e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16280383

Change-Id: I825f8baddb7d4ea4dd9e05b22a831360b33b19a5
2021-11-17 20:22:48 +00:00