Commit Graph

58436 Commits

Author SHA1 Message Date
Jon Miranda b77878ebe3 Update folder preview and folder background colors.
Bug: 201332301
Test: light theme / dark theme
      open and close folder, ensure colors are accurate

Change-Id: I49198eb2faee03111be33051fd1cb08094844c77
2021-10-06 16:57:33 -07:00
Android Build Coastguard Worker 15a4bbeda9 Snap for 7798846 from 6ab0d1e7be to sc-v2-release
Change-Id: I82e13e0d5bb36ba07731d4f0c1f4dc852b97fdaf
2021-10-06 23:16:27 +00:00
Xin Li 02dd0ed8bc Merge Android 12
Bug: 202323961
Merged-In: I3958bd9fb5521d09fa7cae642128b9f5e11b8e2e
Change-Id: I5c1ce9f07b41e45ae38dc81f553c5e64a9abe8ff
2021-10-06 22:53:56 +00:00
Becky Qiu f11ecb7f59 [OneSearch] Log events with timestamp into logcat for debugging.
Bug: 199289915
Test: example log: https://paste.googleplex.com/5741834610409472
Change-Id: I24b2e68b36cb897ae3e6ccc38cf0561d38af6751
2021-10-06 15:20:47 -07:00
Bill Yi ae17b47a45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifc2c034f706e3c7afda44aaa1f76bad6571b5066
2021-10-06 21:36:48 +00:00
Bill Yi fe50f1b75f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I986cf944b203852b0f3ee6374711ba20448bb31a
2021-10-06 21:35:39 +00:00
Bill Yi 513a60cdc2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I40d86c2f147e60939fd428ff277a63c7a75f0e3c
2021-10-06 21:35:04 +00:00
Bill Yi c3b9e7cf6b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic59a97dcc0eaf13c3554d01ef4d6b094d893e7bd
2021-10-06 21:34:22 +00:00
Bill Yi d39c46fa36 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 39122b4f30 2p: e4e6d8a852
Blank merge reason: parent was merged -s ours

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

Change-Id: I29fd30cf15aa2fb31dfc76c38c74303374940a53
2021-10-06 21:33:57 +00:00
Bill Yi 90f1a4e085 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 39122b4f30
Blank merge reason: commit message contains skip directive

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

Change-Id: If745478a901821ee58e1598bebd3d0f7fbdd7333
2021-10-06 21:33:53 +00:00
Bill Yi e4e6d8a852 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 39122b4f30
Blank merge reason: commit message contains skip directive

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

Change-Id: Ib4163ec8bb18cbbabf55ea73870e1affda2cfa92
2021-10-06 21:33:52 +00:00
Bill Yi 7f19dccedc [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 39122b4f30
Blank merge reason: commit message contains skip directive

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

Change-Id: I6be47ca3cfb175423022626cad2d9073f50dee07
2021-10-06 21:33:52 +00:00
Bill Yi 39122b4f30 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9179a69632df6353981c85d3b7613211f4b7ab78
2021-10-06 21:33:38 +00:00
Bill Yi 3ec748654e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I86b517b1fa0abfc0f14c6ffc7edcd98c14552647
2021-10-06 21:31:18 +00:00
sfufa@google.com 01e0009b71 [Work profile] Fix flickering work mode switch
Since there is no system broadcast with Intent.ACTION_MANAGED_PROFILE_ADDED, UserCache's user list does not get updated when a new profile is installed until launcher is restarted. This change fixes that problem by getting the freshest list of users directly from UserManager.

This change also applies the proper padding to work apps recycler-view after work mode switch is attached.

Test: Manual
Bug: 201191227
Change-Id: I0f570eba44ebb845d0d6f8c5f14a63f9a8c18539
2021-10-06 14:27:55 -07:00
Sunny Goyal 0ecfb69596 Removing overscroll pluging support
Bug: 201677812
Test: Presubmit
Change-Id: Id8136e99746946ba840754ef8e71a4574f49938e
2021-10-06 11:23:46 -07:00
Tony Wickham c310a6f930 Merge "Fix issues with starting new recents animation before previous onRecentsAnimationStart" into sc-v2-dev am: f9d2082cf3 am: cdb2df88bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15988588

Change-Id: I761d29cd74d833e259da29f422dd0bc9e144ff0c
2021-10-06 17:59:03 +00:00
Tony Wickham cdb2df88bd Merge "Fix issues with starting new recents animation before previous onRecentsAnimationStart" into sc-v2-dev am: f9d2082cf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15988588

Change-Id: I2a2f4c65e2cfc2649d5c590e7aa855b79f1f4b28
2021-10-06 17:48:39 +00:00
Steven Ng 77940284eb Add a new string for widget configuration drop target
Test: manual. See screenshot in b/201286923
Fix: 201286923
Change-Id: I5be4f723523befe359b922273d11f57fb9f0b3fd
(cherry picked from commit 29f46c9628)
2021-10-06 17:38:03 +00:00
Tony Wickham f9d2082cf3 Merge "Fix issues with starting new recents animation before previous onRecentsAnimationStart" into sc-v2-dev 2021-10-06 17:36:45 +00:00
TreeHugger Robot 0e60eddf61 Merge "Remove workaround for unrotated gesture monitor (3/3)" 2021-10-06 17:18:05 +00:00
Alex Chau aea42dc43e Only adjust min/max scroll for split screen in landscape
- Portrait's split placeholder is at top/bottom and does not affect scroll

Bug: 200537659
Test: Split left and split right in portrait / landscape, check if min/max scroll is correct
Change-Id: Ib7eb09d3cc44c8e0d962920ad094c73abc5f0dbd
2021-10-06 12:31:10 +01:00
Android Build Coastguard Worker 9346b01706 Snap for 7796944 from 565c5ed6e2 to tm-release
Change-Id: I588f8a2fb5d06b1c9d3bdc9ed3e4abce098f3724
2021-10-06 03:08:30 +00:00
Vinit Nayak a85e762a62 Merge "Reset state after split launch animation finishes" into sc-v2-dev am: 6ab0d1e7be am: c8b7fef784
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15986152

Change-Id: I8e71fbbb5344205209065a5c94a215db4020ba2a
2021-10-06 01:24:27 +00:00
Tony Wickham 66ed0ff23e Fix issues with starting new recents animation before previous onRecentsAnimationStart
- Fix logic for canceling animation for continued quick switch, so that this case (starting a new gesture before onRecentsAnimationStart() of the previous gesture) instead goes to the STATE_FINISH_WITH_NO_END flow.
- Update the end target so that we go to that state instead of always overview state if swipe was past the halfway threshold when we call endLauncherTransitionController(). This is specifically so we don't use OverviewInputConsumer on the second gesture, given the first one was canceled and didn't actually go to overview.
- GestureState#isRecentsAnimationRunning() now checks for STATE_RECENTS_ANIMATION_STARTED rather than _INITIALIZED, to be consistent with its javadoc and TaskAnimationManager#isRecentsAnimationRunning(). This also ensures we can correctly calculate continued quick switch (see above).
- Call cleanUpRecentsAnimation() before creating a new one in TaskAnimationManager. This ensures that the previous listener doesn't immediately cleanup the new gesture when it gets onRecentsAnimationCanceled() due to the new recents animation starting.

Test: swipe to home twice from the app, locally ignoring the onRecentsAnimationStart() from the first one, and ensure the second one responds normally
Bug: 193851085
Change-Id: I76e27c96b54293805546c0d6c82e77f975c69d7a
2021-10-05 18:14:51 -07:00
Vinit Nayak c8b7fef784 Merge "Reset state after split launch animation finishes" into sc-v2-dev am: 6ab0d1e7be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15986152

Change-Id: Iac00a062f0f3531fa1d59cb2e2ade6b17e7cb73c
2021-10-06 01:14:28 +00:00
sfufa@google.com 1c5e607940 [Search] Scale up small search icons on drag start
Bug: 199341710
Test: manual
Change-Id: I243c3e84e3093d4a9c605b187a625c0580d9933f
2021-10-05 18:09:26 -07:00
Vinit Nayak 6ab0d1e7be Merge "Reset state after split launch animation finishes" into sc-v2-dev 2021-10-06 00:56:48 +00:00
TreeHugger Robot 565c5ed6e2 Merge "Add TAPL test that dismissing focused task causes next task to become focused." into sc-v2-dev am: 1bf753f7a6 am: e77cae7f0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15947750

Change-Id: I9c7cac5e73845ed4f08d2d518e661891188a0ce6
2021-10-06 00:45:44 +00:00
TreeHugger Robot e77cae7f0d Merge "Add TAPL test that dismissing focused task causes next task to become focused." into sc-v2-dev am: 1bf753f7a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15947750

Change-Id: Id67d2342b0715896faa6832e59116b6ea42fcf05
2021-10-06 00:26:54 +00:00
TreeHugger Robot 1bf753f7a6 Merge "Add TAPL test that dismissing focused task causes next task to become focused." into sc-v2-dev 2021-10-06 00:14:46 +00:00
TreeHugger Robot 1dab5fafb4 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours am: 88eca11997 -s ours am: 5a52ae1edc -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7f4a256aa95dc93898d77ffb606ee3db5134aac5
2021-10-05 23:40:17 +00:00
TreeHugger Robot 64be6a2e96 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours am: 5992971500 -s ours am: c99718ccac -s ours
am skip reason: subject contains skip directive

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

Change-Id: I075c9ee93e92033b0dada2372775d56fe90241ed
2021-10-05 23:39:08 +00:00
TreeHugger Robot 5a52ae1edc [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours am: 88eca11997 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4a442bd2fb293063f802faf7a1fc12889e5d5454
2021-10-05 23:28:50 +00:00
TreeHugger Robot c99718ccac [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours am: 5992971500 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Idbf1380cb4e9f45f11c66dce215439e967f87054
2021-10-05 23:28:14 +00:00
TreeHugger Robot 5992971500 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I5ffa865b4a08fe755ea0036d9d8fce6c79baface
2021-10-05 23:14:11 +00:00
TreeHugger Robot 88eca11997 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: ae6e81587c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0b5a4df2571878937bd5d72e5850d1489acdce4e
2021-10-05 23:14:08 +00:00
Android Build Coastguard Worker 3259e89097 Snap for 7795143 from 53ad5b1274 to sc-v2-release
Change-Id: I7a70794b7ca675699bab8887ffd7ee90a51557d0
2021-10-05 23:08:02 +00:00
TreeHugger Robot ae6e81587c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-05 22:58:32 +00:00
Vinit Nayak 0516737146 Reset state after split launch animation finishes
Previously we were clearing SplitSelectStateController
state too soon for fake landscape case where
as soon as the tasks launch the device does a rotation
animation since the new split tasks are in landscape.
Move restting state after animation finishes.

Fixes: 201980666

Change-Id: I23efd59fad444c47ae6c2048888a8570f22610fd
2021-10-05 15:29:24 -07:00
Vinit Nayak 1772a30c70 Merge "Set SurfaceTransactionApplier on non-stale RemoteAnimationTargets" into sc-v2-dev am: 0ff2ad6ff4 am: 9b79688147
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15956593

Change-Id: Ifb3b2498f5db96beadbb6edfe768d7b6762ab023
2021-10-05 22:03:37 +00:00
TreeHugger Robot 4778c11c6d Merge "Update logging to help debug b/200572078" into sc-v2-dev am: feeb788941 am: 96daf27101
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15971864

Change-Id: Ib9e64f2766ca8184fd363af78ffd0efe786783b9
2021-10-05 22:03:24 +00:00
Vinit Nayak 9b79688147 Merge "Set SurfaceTransactionApplier on non-stale RemoteAnimationTargets" into sc-v2-dev am: 0ff2ad6ff4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15956593

Change-Id: Ifc5c08374ce590e7c417be6355ae1abdfc36796b
2021-10-05 21:49:00 +00:00
TreeHugger Robot 96daf27101 Merge "Update logging to help debug b/200572078" into sc-v2-dev am: feeb788941
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15971864

Change-Id: Iebf07a1f12d4836d5f5a669a029d28f8c909bd5b
2021-10-05 21:48:54 +00:00
Vinit Nayak 0ff2ad6ff4 Merge "Set SurfaceTransactionApplier on non-stale RemoteAnimationTargets" into sc-v2-dev 2021-10-05 21:44:34 +00:00
TreeHugger Robot feeb788941 Merge "Update logging to help debug b/200572078" into sc-v2-dev 2021-10-05 21:33:55 +00:00
Vinit Nayak 95ee358269 Show split options when overview actions hidden for grid
* We hide split option in task menu for focused task
if the user hasn't scrolled at all in overview
* We show option when user has scrolled because then
the split option from overview actions will be hidden
* Mostly uses the same logic as
RecentsView#updateActionsViewFocusedScroll()

Bug: 201380373
Test: Manual
Change-Id: Ia8769a67cfbb2e4414cd4d8e816e62245fc4bd2c
2021-10-05 14:28:07 -07:00
Brian Isganitis 6a1b0a5824 Have PopContainerWithArrow require BaseDraggingActivity.
Fix: 201978182
Test: No
Change-Id: I3ed46c07cce88b939d1a085ab62d5413ca217e5a
2021-10-05 14:38:14 -04:00
Alex Chau b78753a73f Adjust min/max scroll according to mSplitPlaceholderSize am: 516584e648 am: 60818c3de0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15982847

Change-Id: I8cbf7c400b06c19b5dd37a1fff66007d414e9d61
2021-10-05 18:27:44 +00:00
Alex Chau 60818c3de0 Adjust min/max scroll according to mSplitPlaceholderSize am: 516584e648
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15982847

Change-Id: I8647b3135284dc504b3ac839f5191c26abf5d9b3
2021-10-05 18:13:46 +00:00