Commit Graph

48336 Commits

Author SHA1 Message Date
Bill Yi dd771ddacf [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 6f01bd7532 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19246429

Change-Id: Id38c6e58b7c454556b4766dc9bf00efc31f97132
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-12 05:29:35 +00:00
Bill Yi 6f01bd7532 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I31fe2d40b83c2fda9017ba9f8dcbf47c4b88812c
2022-07-11 16:21:41 -07:00
Chilun Huang ac57ddeb4c Workaround to return 1/3 of the position
Some devices in portrait mode have the same symptoms as b/234322284.
Simply return 1/3 of the position like the X axis to solve the problem.

Bug: 238202110
Test: atest Launcher3Tests:TaplTestsLauncher3#testAddDeleteShortcutOnHotseat
Change-Id: Ic7d3756cfbda6673a62b266c6093745b8311e6ac
2022-07-11 15:19:16 +08:00
Hongwei Wang 46f79bda0c Merge "Adjust the auto-pip app bounds for TaskBar" into tm-qpr-dev 2022-07-08 21:31:48 +00:00
Bill Yi 6819c89c53 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev am: f09f6bae58 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19166417

Change-Id: I06df9c7c338b8f8d531ca2450dc9c570ba75e44d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:42:01 +00:00
Bill Yi 055a11e3f5 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 53cadeca3b -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19166417

Change-Id: If591a3abb6d208967074ac67712cf928c24f038f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:41:44 +00:00
Bill Yi 33053ee192 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: f1575e527c -s ours am: 2554fa8abf -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19166415

Change-Id: Ie4e8ca64a59629613a16b1523206b262552aa09e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:33:17 +00:00
TreeHugger Robot b95fb20fa3 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 8ae4e43732 -s ours am: 3eaaecaa9e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118362

Change-Id: I2cfc3f89124475a921f1a1f5dd7fa79ba2fb80ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:28:13 +00:00
Bill Yi 37256ab2af [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ec17e24889 -s ours am: 9976faf55a -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118362

Change-Id: I8895e003db2c9eb43b08f5f7a3cb74dbe1565f94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:27:58 +00:00
Hongwei Wang 2501f228bd Merge "Ensure sendUserLeaveHint be false when split from Overview" into tm-qpr-dev 2022-07-08 17:02:58 +00:00
Sunny Goyal 251ee0a066 Merge "Removing tabWidth calculation and using DeviceProfile directly" into tm-qpr-dev 2022-07-08 15:39:30 +00:00
Brandon Dayauon ed46b45910 Merge "Add ripple effect to work toggle button and "turn on work apps" button" into tm-qpr-dev 2022-07-08 14:55:07 +00:00
Alex Chau 1eb730a69c Merge "Always return portrait orientation handler when Recents activity can rotate" into tm-qpr-dev 2022-07-08 10:52:01 +00:00
Alex Chau 653cad4ec6 Merge "Use taskbarSize to calculate clippedInsets" into tm-qpr-dev 2022-07-08 10:51:51 +00:00
Alex Chau 2446d706dc Merge "Enable overlay for all fully visible tasks" into tm-qpr-dev 2022-07-08 09:34:53 +00:00
Hongwei Wang a9f258cb12 Adjust the auto-pip app bounds for TaskBar
When on tablet / large-screen devices where TaskBar is present, the
bounds of the recents animation leash would be cut by TaskBar height,
therefore we need to adjust the app bounds for auto-pip accordingly.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fmMql9z3gYIu98ntQYklQU
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hvoqi4bBWyPMgwzEXXrnnC
Bug: 201824622
Test: Enter PiP from GMM on tablet and unfolded foldables, both \
      landscape and portrait, with TaskBar stashed and unstashed.
Change-Id: Id91190b8f0045db4af0f2a3f1993149dc34457ab
2022-07-07 10:41:37 -07:00
Becky Qiu 5672b0991e Merge "[Toast] Add a feature flag to use local overrides for search timeout." into tm-qpr-dev 2022-07-07 17:16:21 +00:00
Brandon Dayauon 96f0bc582d Add ripple effect to work toggle button and "turn on work apps" button
Created new drawable xml specifically for the turn on work apps button because
the dismiss button (x) icon on the EDU card shares this drawable. This way I don't
cause collateral damage for the (x) icon dismiss button.

Changed shape -> ripple in work_apps_toggle background

bug: 229385255
test: Manually on oriole and video in bug thread
Change-Id: Id01bfb04c07a724687b0322339b12c8fc9130dfa
2022-07-07 10:14:07 -07:00
Alex Chau fb790ea6c7 Enable overlay for all fully visible tasks
Fix: 238310277
Test: In tablet, all fully visible tasks have overlay enabled
Test: In handheld, only current and not adjacent tasks have overlay enabled
Test: No overlay in groupedTaskView
Change-Id: I59b8bebc4e701d3042217f9af222db0b5337ea16
2022-07-07 15:59:44 +01:00
TreeHugger Robot eb54e25967 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev am: 3603663168 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118364

Change-Id: I9a0997eb7349d2c95a99a9a1dc1fbdc802f4cc79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07 01:02:48 +00:00
Bill Yi 3abe85b36c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 01d3a78ec3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118364

Change-Id: Ia44b5559c39af5cbdcdcdfa313c8d6c5ecd2217c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-07 01:02:34 +00:00
Hongwei Wang 81dde0d3fb Ensure sendUserLeaveHint be false when split from Overview
This is to ensure that we do not enter PiP when the user intention is to
create split-screen.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gSDHKaYxyTEQ6665rr4lt9
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hTmOVfZDExC14JaJ5fXAZf
Bug: 234070451
Test: Split from menu option when in Overview in both folded and \
      unfolded states, see also videos
Change-Id: Id0a2470f9b37cae2e0897d0570f68909c995f8e0
2022-07-06 16:18:46 -07:00
Pat Manning 6501379fcc Merge "Hide action buttons instead of whole overview actions view in order to show share target." into tm-qpr-dev 2022-07-06 20:05:03 +00:00
Becky Qiu da6a8fab1b [Toast] Add a feature flag to use local overrides for search timeout.
Bug: 229038631
Test: manual
Change-Id: I131ee7fc9bd7d09d7a4d4ee3f4577110ed75c0d4
2022-07-06 11:16:00 -07:00
Alex Chau 420ab0a45b Merge "Clean up DisplayController logs" into tm-qpr-dev 2022-07-06 17:27:29 +00:00
Tony Wickham 4b2bf90f2c Merge "Proper fix for gesture nav flicker using runOnPageScrollsInitialized()" into tm-qpr-dev 2022-07-06 16:30:01 +00:00
Tony Wickham ca6480341e Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev 2022-07-06 16:27:14 +00:00
Tony Wickham 0c8ceda6e7 Merge "Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly" into tm-qpr-dev 2022-07-06 16:25:03 +00:00
Pat Manning 7ab2ff0007 Hide action buttons instead of whole overview actions view in order to show share target.
Test: manual.
Fix: 234606068
Change-Id: I1b7115a6faffd1dcb00528220fe6607f8035c4fe
2022-07-06 14:50:00 +01:00
Bill Yi f09f6bae58 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev 2022-07-06 05:06:38 +00:00
Thales Lima b8c0595d42 Add new hotseat bottom margin options
This changes how the hotseat height is calculated and by consequence how spaces are distributed in the workspace as well. This is the first of a series of changes that will improve and streamline workspace calculations.

Bug: 228998463
Fix: 234023782
Fix: 230191631
Fix: 232914299
Fix: 236238226
Test: manual, HSV and comparing to mocks
Change-Id: If021e8ba2c7c24c0bf9f27a1aa7aa946792ed04f
2022-07-05 15:33:47 +01:00
Pat Manning 0f8bbef729 Merge "Simplify vertical bar hotseat bottom calculation for spring loaded state." into tm-qpr-dev 2022-07-05 10:28:10 +00:00
Bill Yi 2554fa8abf [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: f1575e527c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19166415

Change-Id: Ic3afed3e79df2ef091ee11fc2df4f566699fa63b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-05 01:51:51 +00:00
Alex Chau b00a9fca79 Use taskbarSize to calculate clippedInsets
- Instead of calculating clippedInsets from thumbnail dimension, always use taskbarSize
- Clean up clippedInsets code as only bottom inset is ever present

Fix: 235328056
Test: With taskbar hidden, out of orientation thumbnail has proper size in quickswitch and overview
Change-Id: I3d7fc7899f04862c3401935b10f475e9ab74685a
2022-07-04 18:49:11 +01:00
Bill Yi 53cadeca3b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3b3fc688090a49a9e0f0ec583701196a3353fa96
2022-07-04 07:42:27 -07:00
Bill Yi 627855c427 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I93ed2146665afdb84d3085451cc338e73bb45922
2022-07-04 07:41:36 -07:00
Bill Yi f1575e527c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I58d1c05bc3c6968381959949d141cb87311d22ae
2022-07-04 07:40:42 -07:00
Alex Chau 0adc36623d Clean up DisplayController logs
- Moved debug logs under DEBUG flag which defaults to false
- Moved info+ logs to permanent log tags

Fix: 198965093
Test: manual
Change-Id: Iea99f053da08e921542a8f532a9837997e10de5e
2022-07-04 13:13:44 +01:00
Pat Manning a7335bccdc Simplify vertical bar hotseat bottom calculation for spring loaded state.
Fix: 236941743
Test: manual.
Change-Id: I7f110fea48eb88e7f941a64c17a65feec14531f3
2022-07-04 12:45:40 +01:00
Tony Wickham ce563b6b44 Add null check on mRecentsView in the InputConsumerProxy
Test: N/A
Fixes: 237217685
Change-Id: I45352f180e3df3298039b183eee743e5a246f543
2022-07-01 16:52:06 -07:00
Jeremy Sim e19aab9010 Merge "Allows Launcher to recover gracefully into OverviewSplitSelect state" into tm-qpr-dev 2022-07-01 21:40:34 +00:00
TreeHugger Robot 3eaaecaa9e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev am: 8ae4e43732 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118362

Change-Id: If0604d67caf2f4ded4402bc4e8062cf7840b8243
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 15:58:58 +00:00
Bill Yi 9976faf55a [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ec17e24889 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118362

Change-Id: If2f5fc1cb12365113ba0b6aac91856e5e3d41db1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 15:58:40 +00:00
TreeHugger Robot 8ae4e43732 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-07-01 15:38:52 +00:00
Alex Chau 2f8e69ea96 Always return portrait orientation handler when Recents activity can rotate
Fix: 232164817
Test: In tablet, launch app in landscape, rotate to portrait, swipe up and RecentsView should be in correct orientation
Test: In phone, swipe up to potrait home from landscape only apps
Change-Id: Ia7cbd841decc4370aaf3de1f865e5abb9f5f6bf0
2022-07-01 15:06:13 +01:00
TreeHugger Robot 84f9f74c5f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-07-01 11:31:00 +00:00
TreeHugger Robot 3603663168 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev 2022-07-01 06:48:07 +00:00
Jeremy Sim c94f4b779b Allows Launcher to recover gracefully into OverviewSplitSelect state
When Launcher restarts (as the result of a UiModeChange or something else), it attempts to recover its previous state. However, the OverviewSplitSelect state is unique because it requires some additional information to recover properly (the taskId of the staged task and so on). This change makes it so that the relevant information is passed forward in the recovery bundle. Launcher will now restart in the base Overview state, and then immediately apply the saved data to recover the OverviewSplitSelect state.

Fixes: 233019928
Test: Manual
Change-Id: Ie6123ef9c374be000268f82857b696c49213c541
Merged-In: Ie6123ef9c374be000268f82857b696c49213c541
2022-07-01 00:07:54 +00:00
Bill Yi dbda4a9043 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd6dd7d908 -s ours am: 39c6c0fbbc -s ours am: 679bdcafac -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118359

Change-Id: I2016a734c8b6e06d647f95942d5930e988694b77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 23:07:29 +00:00
Bill Yi 679bdcafac [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd6dd7d908 -s ours am: 39c6c0fbbc -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118359

Change-Id: I72a52ca55e4537c7eb1007fe92484574841e590f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 22:39:17 +00:00