Commit Graph

39730 Commits

Author SHA1 Message Date
Presubmit Automerger Backend 21e44c56bb [automerge] Prevent lingering divider animators in AbsSwipeUpHandler 2p: 7faaffa56a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16693066

Bug: 213403679
Change-Id: I628b14fb01461a103dd0cdd7168835197a28f1c5
Merged-In: I078a7d0f22c2ef2ba847796ec79e740c789ce1ae
2022-02-16 17:13:58 +00:00
Winson Chung 7faaffa56a Prevent lingering divider animators in AbsSwipeUpHandler
- Refactor the util method to create the animator and track the existing
  animation in AbsSwipeUpHandler to be able to cancel it if another call
  to change the visbility comes in.  Note that this doesn't address
  the case where the launch animation overlaps with swipe up (though that
  hopefully shouldn't happen in normal usage)

Bug: 213403679
Test: Tap in the gesture space while split
Change-Id: I078a7d0f22c2ef2ba847796ec79e740c789ce1ae
Merged-In: I078a7d0f22c2ef2ba847796ec79e740c789ce1ae
2022-02-16 17:13:48 +00:00
TreeHugger Robot 949f9763bb Merge "Add null check for mRemoteTargetHandles for side task launch" into sc-v2-dev am: a6c2e3f263
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16828915

Change-Id: Ibec0c5987cecc92827896f41031f2359010955dd
2022-02-15 22:33:08 +00:00
TreeHugger Robot a6c2e3f263 Merge "Add null check for mRemoteTargetHandles for side task launch" into sc-v2-dev 2022-02-15 22:12:28 +00:00
TreeHugger Robot 3a6a78f7b0 Merge changes from topic "presubmit-am-cc24ad26c93446a690f8a34ffde58aa3" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Add null check for mRemoteTargetHandles for side task launch 2p: 90e0fe3923
  Add null check for mRemoteTargetHandles for side task launch
2022-02-15 22:12:27 +00:00
Xin Li 2f4f77fdbc [automerger skipped] Merge SP2A.220305.012 am: 11a0454879 -s ours
am skip reason: Merged-In I51cb81718a489ad7568c5e05ace0b3dbc6ca5443 with SHA-1 0077caa15d is already in history

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

Change-Id: Ife61a6188c19b497fda7df645caa549e4d90835a
2022-02-15 00:14:51 +00:00
Xin Li 11a0454879 Merge SP2A.220305.012
Bug: 219523960
Merged-In: I51cb81718a489ad7568c5e05ace0b3dbc6ca5443
Change-Id: Icf0cc432ab3a97614b27efcf6fc9d18ea423a743
2022-02-14 20:06:39 +00:00
Xin Li 75cf4399c8 [automerger skipped] Merge sc-v2-dev-plus-aosp-without-vendor@8084891 am: bbd9e79bf2 -s ours
am skip reason: Merged-In Iec90538bf8dd18fede035d7f548a71b757d2356c with SHA-1 88c671ee71 is already in history

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

Change-Id: I37bb26275648a1835ef15bfb2b9175c60df6e504
2022-02-14 18:03:27 +00:00
Xin Li bbd9e79bf2 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Iec90538bf8dd18fede035d7f548a71b757d2356c
Change-Id: Icfcc0dcab0a30472a6faff67e67e364386b98d41
2022-02-11 07:28:32 +00:00
TreeHugger Robot 5cf55827da Merge "Adding ripple effect to the "All Apps tab" buttons." into sc-v2-dev am: 3ba95852f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16359044

Change-Id: I01ee5a75a82798c002798d91538ecee0d455277b
2022-02-11 02:25:05 +00:00
TreeHugger Robot 3ba95852f3 Merge "Adding ripple effect to the "All Apps tab" buttons." into sc-v2-dev 2022-02-11 02:11:50 +00:00
Vinit Nayak 5c6173a8b9 [automerge] Add null check for mRemoteTargetHandles for side task launch 2p: 90e0fe3923
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16828915

Change-Id: I8d41d76a5178c15beca5028291fc0a314a580de3
2022-02-09 23:31:57 +00:00
Vinit Nayak 90e0fe3923 Add null check for mRemoteTargetHandles for side task launch
* Other checks haven't changed, only pulled them out into
separate block

Fixes: 215699962
Test: Unable to repro the crash, I tried ending the
activity and starting via adb shell, but I was never
able to get into the original if-block that triggered the NPE

Change-Id: I83320634f1d059de610176f9031682ca287bd589
2022-02-09 15:30:19 -08:00
Treehugger Robot bc4b55f97d [automerger skipped] Merge "Fix licenses and license texts." am: 55ce0a918c am: e91aa3abf2 am: d04232931b -s ours
am skip reason: Merged-In I1d76cab983a7d1f9078c0e2f1252f5409692f300 with SHA-1 478abd32c3 is already in history

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

Change-Id: I452669183267f207f7112481554d96800efd9918
2022-02-02 17:34:19 +00:00
Treehugger Robot d04232931b Merge "Fix licenses and license texts." am: 55ce0a918c am: e91aa3abf2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1964700

Change-Id: Id8b68a3951d1bbed8116536ad7286f11d7795b2c
2022-02-02 17:19:27 +00:00
Treehugger Robot e91aa3abf2 Merge "Fix licenses and license texts." am: 55ce0a918c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1964700

Change-Id: Ifd75b6b1c77fb40c42eb3209933d77a4b3a3289b
2022-02-02 17:04:22 +00:00
Treehugger Robot 55ce0a918c Merge "Fix licenses and license texts." 2022-02-02 16:48:44 +00:00
Bob Badour 596ebbc9fb Fix licenses and license texts.
Entire project is 1p.

Bug: 210912771

Test: m nothing

Change-Id: I1d76cab983a7d1f9078c0e2f1252f5409692f300
Merged-in: Id941d93786882aca78f214ac692433a353b84ed3
Merged-in: I1d76cab983a7d1f9078c0e2f1252f5409692f300
2022-02-02 03:02:50 +00:00
Bob Badour 478abd32c3 Fix licenses and license texts.
Entire project is 1p.

Bug: 210912771

Test: m nothing

Change-Id: I1d76cab983a7d1f9078c0e2f1252f5409692f300
Merged-in: Id941d93786882aca78f214ac692433a353b84ed3
Merged-in: I1d76cab983a7d1f9078c0e2f1252f5409692f300
2022-02-01 18:53:38 -08:00
TreeHugger Robot 0702c25340 Merge "Fix taskbar icon dragging issues" into sc-v2-dev am: 9f0d54ebe3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16738495

Change-Id: If129ddc48e5432bdb5c26280bc7ea20926518fac
2022-02-01 20:08:59 +00:00
TreeHugger Robot 9f0d54ebe3 Merge "Fix taskbar icon dragging issues" into sc-v2-dev 2022-02-01 19:53:13 +00:00
Schneider Victor-tulias a8dae26d39 Fix taskbar icon dragging issues
- Fixed icons disappearing when initiating dragging
- Fixed incorrect icon location when initiating dragging after rotating the screen to an orientation other than what launcher started in

Fixes: 215418478
Fixes: 214025075
Fixes: 210460544
Test: dragged icons from the workspace and taskbar
Change-Id: I848138af28802f7d806708c77c25b8de307c70d8
(cherry picked from commit 312b68fde4)
Merged-In: I848138af28802f7d806708c77c25b8de307c70d8
2022-02-01 18:27:59 +00:00
Andy Wickham d0f7f13f5d Merge "Utilities.trim never returns null." into sc-v2-dev am: 0af55bbc0c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16741586

Change-Id: Id09ef46d8e534da0a165c3b1df3ee0b5803db1df
2022-01-31 23:25:41 +00:00
Andy Wickham 0af55bbc0c Merge "Utilities.trim never returns null." into sc-v2-dev 2022-01-31 23:13:14 +00:00
Andy Wickham 30b3369ac9 Merge changes from topic "presubmit-am-54c71514c6e64d9595298afeee5d4938" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Utilities.trim never returns null. 2p: 5f0a5eb877
  Utilities.trim never returns null.
2022-01-31 23:13:14 +00:00
Jon Miranda 63dd1ab86c [automerger skipped] Merge "Fix bug where back swipe to icon in All Apps search result." into sc-v2-dev am: b2e30bd4e9 -s ours
am skip reason: Merged-In Iaec77d15c9533edccd9c82164143af8fa522158f with SHA-1 db767aa575 is already in history

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

Change-Id: I52ec25408aa0c763712a443dd34710e107c4551f
2022-01-29 00:19:04 +00:00
Jon Miranda b2e30bd4e9 Merge "Fix bug where back swipe to icon in All Apps search result." into sc-v2-dev 2022-01-29 00:07:23 +00:00
Jon Miranda ce048f07cc Merge changes from topic "presubmit-am-afa98d56a10a42f4b953a23b9b07db3b" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Fix bug where back swipe to icon in All Apps search result. 2p: db767aa575
  Fix bug where back swipe to icon in All Apps search result.
2022-01-29 00:07:23 +00:00
Andy Wickham 38257ad086 [automerge] Utilities.trim never returns null. 2p: 5f0a5eb877
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16741586

Bug: 213931730
Change-Id: If167edb9f9d56ffdb6e94eee2f660c47dc331d94
2022-01-28 00:56:13 +00:00
Andy Wickham 5f0a5eb877 Utilities.trim never returns null.
This fixes a crash loop I was seeing on my device and also
preemptively fixes similar NullPointerExceptions.

Bug: 213931730
Test: Manually verified crash loop stopped with this change.
Change-Id: I8d2fc8475d42ac60b7fdc9219421a8c9733c7b9f
(cherry picked from commit 56be73be80)
2022-01-28 00:56:08 +00:00
TreeHugger Robot 09a91f3e53 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev am: fea22ae7e9 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I47ed9919f5f588a2133c91abecbb3442c68fa574
2022-01-27 12:21:31 +00:00
TreeHugger Robot fea22ae7e9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-27 12:07:13 +00:00
TreeHugger Robot 5c8132970e Merge changes from topic "presubmit-am-6bd3c47be92a487ca1fb9007131b59ff" into sc-v2-dev-plus-aosp
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d97da07a54
  Import translations. DO NOT MERGE ANYWHERE
2022-01-27 12:07:13 +00:00
TreeHugger Robot dbfb75806e [automerger skipped] Merge "Update taskbar resume alignment anim if launcher state changes in the middle" into sc-v2-dev am: a9a7d9b5d9 -s ours
am skip reason: Merged-In Ie0c6140e14186e41c7e4748dc745f87349b084fe with SHA-1 cd6abc19a8 is already in history

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

Change-Id: I3a79196f66bfcdbd83129ebc31171311f757de55
2022-01-25 18:35:50 +00:00
TreeHugger Robot a9a7d9b5d9 Merge "Update taskbar resume alignment anim if launcher state changes in the middle" into sc-v2-dev 2022-01-25 18:31:32 +00:00
TreeHugger Robot 1d3b256eff Merge changes from topic "presubmit-am-7ba50c92d19c455d8266daf2c96ec31b" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Update taskbar resume alignment anim if launcher state changes in the middle 2p: cd6abc19a8
  Update taskbar resume alignment anim if launcher state changes in the middle
2022-01-25 18:31:32 +00:00
Bill Yi 2ffffeca0a [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d97da07a54
Blank merge reason: commit message contains skip directive

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

Change-Id: I65c034c9766fbe9f8b1133d8099c5eff3f9f1ba2
2022-01-25 18:09:46 +00:00
Bill Yi d97da07a54 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9829ed62bfe1ab6f6cdaf011e8b1c75d43b68625
2022-01-25 18:09:35 +00:00
Presubmit Automerger Backend 714c0bf1d6 [automerge] Update taskbar resume alignment anim if launcher state changes in the middle 2p: cd6abc19a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16693156

Change-Id: I5fe6e2e1492df3467ae3bc6880ff308e03a401dd
Merged-In: Ie0c6140e14186e41c7e4748dc745f87349b084fe
2022-01-24 23:25:36 +00:00
Presubmit Automerger Backend acbd4852b9 [automerge] Add fallback for missing remote animation callbacks 2p: bb530e9058
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16688543

Bug: 194011186
Change-Id: I975ca18ca54c2ee061b0e8259e4091dc5b999e21
Merged-In: I1b1296fab316b979f441ebb474d1475e3fa68f95
2022-01-24 22:25:30 +00:00
Winson Chung bb530e9058 Add fallback for missing remote animation callbacks
- In some cases WM won't callback the remote animation callbacks (neither
  start nor cancel) and Launcher never finishes executing the pending
  command (preventing the subsequent commands from running).  For the time
  being, just cancel the current state to allow the commands to be
  processed.

Bug: 194011186
Test: Mash on overview and home buttons with a 3p launcher

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: I1b1296fab316b979f441ebb474d1475e3fa68f95
Merged-In: I1b1296fab316b979f441ebb474d1475e3fa68f95
2022-01-24 20:11:04 +00:00
Tony Wickham cd6abc19a8 Update taskbar resume alignment anim if launcher state changes in the middle
One way to reproduce this issue is to run `adb shell input keyevent KEYCODE_HOME`, which happens to pause and immediately resume launcher. For example, let's say we run this while in All Apps. Because the isResumed=true comes before the state transition to Normal, we behave as if we are still going to All Apps, specifically goingToUnstashedState = false (since we stash in All Apps). To fix this, we now listen to state changes while the resume alignment animation is playing, and update it if necessary.

Also did the same correction for the gesture alignment animation, though I don't have a specific repo for that.

Finally, because there are now more triggers for alignment animations to play, we add a check to only play them if it's not animating to the same value it's already animating towards. One notable experience this improves is swiping down from All Apps to home; if you do it quick enough, the state animation ends before the taskbar unstash animation, and thus the unstash animation would cancel and start again with the full duration, making it look laggy/disjointed (this behavior existed before this change as well).

Test: TaplTestsQuickstep
Test: Go to All Apps, run `adb shell input keyevent KEYCODE_HOME`, open an app and ensure taskbar icons are visible
Test: Quick switch from home when taskbar is present in apps, but instead go to overview; ensure no jump when taskbar stashes
Test: Swipe down quickly from All Apps, ensure taskbar unstashing doesn't slow down when reaching the end of the state transition
Fixes: 214562370
Change-Id: Ie0c6140e14186e41c7e4748dc745f87349b084fe
Merged-In: Ie0c6140e14186e41c7e4748dc745f87349b084fe
(cherry picked from commit 5fa2ed27bf)
2022-01-24 16:56:12 +00:00
Android Build Coastguard Worker af3034c3ce Merge cherrypicks of [16591950] into sc-v2-release.
Change-Id: I637b089db1894fd8da178028ba4ad582cc94e513
2022-01-23 20:57:08 +00:00
Tracy Zhou 684b2b77cf End live tile when notification panel is pulled down for the first time in Overview.
Fixes: 211556489
Test: Go to overview with live tile. Turn on dark theme. Pull the panel back up. Make sure everything looks fine (live tile is ended).

Change-Id: I51cb81718a489ad7568c5e05ace0b3dbc6ca5443
(cherry picked from commit 0077caa15d)
Merged-In:I51cb81718a489ad7568c5e05ace0b3dbc6ca5443
2022-01-23 20:56:32 +00:00
Winson Chung 4d548bbf6f Merge "Dispatch hover events through the input consumer proxy" into sc-v2-dev am: a84f86f254
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16685428

Change-Id: Ie2133958457a088f53b4e32c76fc03463023e37d
2022-01-21 22:49:20 +00:00
Winson Chung a84f86f254 Merge "Dispatch hover events through the input consumer proxy" into sc-v2-dev 2022-01-21 22:29:43 +00:00
Winson Chung b7225856ad Merge changes from topic "presubmit-am-cf03cdfdc7444d7faac91b866c05eae8" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Dispatch hover events through the input consumer proxy 2p: eff9a120c6
  Dispatch hover events through the input consumer proxy
2022-01-21 22:29:43 +00:00
Winson Chung e8e9906ec0 Merge "Skip animation if there are no targets" into sc-v2-dev am: cda2b35971
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16683595

Change-Id: I98e4a9b18513fa7731a077b28a8ff231623fafdd
2022-01-21 20:33:52 +00:00
Winson Chung cda2b35971 Merge "Skip animation if there are no targets" into sc-v2-dev 2022-01-21 20:04:04 +00:00
Winson Chung 4f9711c182 Merge changes from topic "presubmit-am-eb42a70960e740e988dfbddc552edcae" into sc-v2-dev-plus-aosp
* changes:
  [automerge] Skip animation if there are no targets 2p: 6751202328
  Skip animation if there are no targets
2022-01-21 20:04:04 +00:00