Commit Graph

27664 Commits

Author SHA1 Message Date
thiruram aa823d103e Fixes missing folder label after launcher restarts. am: e148652075
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12003751

Change-Id: I4ffa9bc2cb5a838db0d69accb4aaf3797f389c7c
2020-06-26 18:29:02 +00:00
thiruram e148652075 Fixes missing folder label after launcher restarts.
Rootcause: FolderInfo was persisted into DB only when folder options are updated. Hence when folder was created (Folder option remains suggested) its title was not persisted into DB.

Fix: Persists folderInfo into DB always whenever title is updated

Bug: 159904890
Change-Id: If0d20b0d7fa6966dd7bb40a2c07bcb22bd0893e0
(cherry picked from commit 6ab4da8aa0)
2020-06-26 16:30:31 +00:00
Tracy Zhou f1c369589a Do preview grid migration in a worker thread am: 6b79a3767d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12002728

Change-Id: I4841e06d7bdbaf71f4d61f7c1da14b40b87fc6cb
2020-06-26 07:47:40 +00:00
Tracy Zhou 6b79a3767d Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
(cherry picked from commit 633a4bdf57)
2020-06-25 21:05:04 +00:00
TreeHugger Robot 6be2c6cb83 Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into rvc-dev am: ccf588d36b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11994586

Change-Id: If5bd4173783df2ffa89062dece3b0a6b1aa1ffe7
2020-06-25 16:49:17 +00:00
TreeHugger Robot ccf588d36b Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into rvc-dev 2020-06-25 16:38:47 +00:00
Andy Wickham 3fef2dd92d Updates Assistant gesture regions when no longer tracking multiple. am: d2731957ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11992046

Change-Id: Iacfc6d6f8d8eb7eda45137d7aef8941c9620cb39
2020-06-25 02:39:14 +00:00
Tony Wickham 9e84745e4b Pass isLikelyToStartNewTask to onGestureStarted()
This ensures we immediately setRecentsAttachedToAppWindow(). As
mentioned in the bug, there was an edge case where we would animate
the attached state if the first move event passed the touch slop,
causing the adjacent task view to lag behind during the gesture.

Fixes: 159742520
Change-Id: Ie47bb84fdd3dbd69e3b74ca504d487fb9aedb551
(cherry picked from commit c6a56ef7a2)
2020-06-25 02:11:04 +00:00
Andy Wickham d2731957ea Updates Assistant gesture regions when no longer tracking multiple.
This should prevent states where Assistant triggers from
the vertical-center of the screen in portrait (see bug).

Also fleshes out OrientationTouchTransformerTests and
adds some new ones that fail without this change:
 - enableMultipleRegions_assistantTriggersInMostRecent
 - enableMultipleRegions_assistantTriggersInCurrentOrientationAfterDisable

Fixes: 158686674
Change-Id: I6d045a485f62e4010e9e3d00805a50fdd953a2fc
(cherry picked from commit 4b531b972d)
2020-06-24 22:32:14 +00:00
TreeHugger Robot 3af603f240 Merge "Fixing NPE befre ActionsView first initialized." into rvc-dev am: ca493d1426
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11978215

Change-Id: I68378ceec09b495b25568571474f2f4b295388d2
2020-06-24 07:09:46 +00:00
TreeHugger Robot ca493d1426 Merge "Fixing NPE befre ActionsView first initialized." into rvc-dev 2020-06-24 06:52:16 +00:00
TreeHugger Robot e65a33134d Merge "Remove hotseat edu flag" into rvc-dev am: d6cd14d179
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11979630

Change-Id: I1d29e2f3c79905889aad361a149de4dba5b05274
2020-06-24 04:53:00 +00:00
TreeHugger Robot d6cd14d179 Merge "Remove hotseat edu flag" into rvc-dev 2020-06-24 04:43:52 +00:00
Zak Cohen c588af043c Merge "Fixing TaskMenu positioning." into rvc-dev am: b2b0d4d478
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11978354

Change-Id: Id698c09d31f1d6558bd634b4816c985c733a0bec
2020-06-24 04:12:49 +00:00
Sreyas 20024f4447 Fixing NPE befre ActionsView first initialized.
Bug: 159728260
Change-Id: I00e6f8fccf8057495f77873f2f0a1ab01e63ed23
(cherry picked from commit 88f1f2046c)
2020-06-24 04:11:05 +00:00
Zak Cohen b2b0d4d478 Merge "Fixing TaskMenu positioning." into rvc-dev 2020-06-24 03:58:19 +00:00
TreeHugger Robot f58ec22c1c Merge "Use isolated display context to get display info" into rvc-dev am: 7f5a670cc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11969858

Change-Id: I1a33b6fbdfa1f30031c6122fe0b20313e5f8987b
2020-06-24 03:51:04 +00:00
TreeHugger Robot 7f5a670cc3 Merge "Use isolated display context to get display info" into rvc-dev 2020-06-24 03:44:07 +00:00
TreeHugger Robot f7897465e3 Merge "Merging from ub-launcher3-rvc-dev @ build 6621659" into rvc-dev am: 738b1af342
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11975976

Change-Id: I170ce5d3e3d310b2c02f1ac24037aaef60e7dde9
2020-06-24 03:43:47 +00:00
TreeHugger Robot 738b1af342 Merge "Merging from ub-launcher3-rvc-dev @ build 6621659" into rvc-dev 2020-06-24 03:29:19 +00:00
Tracy Zhou 79e81dd799 Merge "Revert "Disable grid option feature in ThemePicker"" into rvc-d1-dev 2020-06-24 02:53:19 +00:00
Tracy Zhou 7afa69d438 Revert "Disable grid option feature in ThemePicker"
This reverts commit 0c88238966.

Reason for revert: Disable grid in rvc-dev, and revert this change in rvc-d1-dev.

Bug: 158790001

Change-Id: Id19579b87d0a83424be794cbac95b7df3fd67131
2020-06-24 02:53:05 +00:00
TreeHugger Robot 995cab35af Merge "Prevent premature resetting of quickswitch mode" into rvc-dev am: 1c90b51de6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11977176

Change-Id: I31e0e9cd12bc3bdeb9eecceb7d4db4aba20e91e9
2020-06-24 02:51:09 +00:00
TreeHugger Robot 1c90b51de6 Merge "Prevent premature resetting of quickswitch mode" into rvc-dev 2020-06-24 02:48:38 +00:00
Samuel Fufa 6293af5575 Remove hotseat edu flag
Launcher should not restrict user migration to a one time event if we want users to migrate their hotseat by enabling hotseat prediction from suggestion settings.

Test: Manual
Bug: 159731272
Change-Id: I0e42dd6b6cf6374928e5b399d121d17fe8024ae1
2020-06-24 02:01:07 +00:00
Sreyas 98ef53458d Fixing TaskMenu positioning.
Bug: 159728554
Change-Id: I4a666363f092b5416edecd0731a0f448916c8def
2020-06-24 00:14:21 +00:00
Sunny Goyal 315eb02012 Merging from ub-launcher3-rvc-dev @ build 6621659
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6621659.html

Change-Id: Id9689e3dfa641c0e004c9dc975e281358bed7ad7
2020-06-23 16:28:38 -07:00
Tracy Zhou 15816e2cb3 Merge "Disable grid option feature in ThemePicker" into rvc-dev am: cb2473cf3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972631

Change-Id: I88bc60255cf86535789046145035ea42645105c1
2020-06-23 23:21:19 +00:00
Tracy Zhou cb2473cf3f Merge "Disable grid option feature in ThemePicker" into rvc-dev 2020-06-23 23:09:09 +00:00
Tracy Zhou 0c88238966 Disable grid option feature in ThemePicker
Fixes: 158790001
Test: manual
Change-Id: I5419738d9b3be996cdcea0a7b5dc2d31ceff0055
2020-06-23 23:07:53 +00:00
Vinit Nayak d92946356e Prevent premature resetting of quickswitch mode
Previously, whenever a user returned to the same
rotation that they had started quickswitch in,
we were sending sysui the reset flag(-1) indicating
that quickstep was complete instead of sending
the rotation of the device the user was in.

This was intentional and it worked, however we now
always send the active rotation while the user
is in a quickswitch session because sysui needs
to show the fake home handle for immersive apps,
which can occur in any rotation. This state is
distinct from not being in quickswitch at all, in
which no fake handles are shown.

Fixes: 158677967

Change-Id: I910324abf781b4b30fe981139712bcb5b653c318
(cherry picked from commit f2daafcdf8)
2020-06-23 22:45:44 +00:00
TreeHugger Robot 359a28e934 Merge "Prevent premature resetting of quickswitch mode" into ub-launcher3-rvc-dev 2020-06-23 22:42:48 +00:00
TreeHugger Robot d0fcfe2bb7 Merge "Fix hotseat button alignment" into ub-launcher3-rvc-dev 2020-06-23 22:08:42 +00:00
Vinit Nayak f2daafcdf8 Prevent premature resetting of quickswitch mode
Previously, whenever a user returned to the same
rotation that they had started quickswitch in,
we were sending sysui the reset flag(-1) indicating
that quickstep was complete instead of sending
the rotation of the device the user was in.

This was intentional and it worked, however we now
always send the active rotation while the user
is in a quickswitch session because sysui needs
to show the fake home handle for immersive apps,
which can occur in any rotation. This state is
distinct from not being in quickswitch at all, in
which no fake handles are shown.

Fixes: 158677967

Change-Id: I910324abf781b4b30fe981139712bcb5b653c318
2020-06-23 15:07:22 -07:00
Tony Wickham fa5559ff64 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I8d0a8f74ee677e5063c6ff84288bc7bd8e7a517c
2020-06-23 21:02:51 +00:00
vadimt efa3acddba Making LauncherProvider think that clear-db request comes from Launcher
If it comes from the test process, the request won't be honored.

Bug: 159728364
Change-Id: I90029c1198634f1f1e94f61ba8ab9b41609d9ad5
2020-06-23 13:59:11 -07:00
Samuel Fufa a44c09d6c9 Fix hotseat button alignment
Screenshot: https://screenshot.googleplex.com/Vr9FXe3oN2t
Bug: 159731214
Change-Id: I9e413f5d9bf0144edd413cc5995e7f1fda152f28
2020-06-23 12:46:30 -07:00
Tony Wickham b47a99e3cc Store newGestureState before onConsumerAboutToBeSwitched clears it
Bug: 159659393
Change-Id: If98d54b7ca397ef56a5c6d50c0fd92f25a9494b4
(cherry picked from commit efb7e60edc)
2020-06-23 16:45:51 +00:00
Tracy Zhou b1e003c1fb Merge "Support having dup items in folder for migration" into ub-launcher3-rvc-dev 2020-06-23 16:12:25 +00:00
Riddle Hsu 8108009929 Use isolated display context to get display info
While display is in landscape, and the launcher is transformed to
portrait, the display rotation from activity or application context
will get the rotation in portrait.

In order to transform the input event when the orientations are
different, the actual device rotation is still needed. By creating
the display context from application context, the resources of
the new context won't be affected by the activity/application level
display info adjustments. That provides the actual device states.

Additionally, DefaultDisplay#INSTANCE should only be used for the
operations related to physical orientation/size because it won't
contain the override information from activity.

Bug: 157456493
Test: Use a device which may switch refresh rate.
      Open Maps and put device in landscape.
      Use gesture navigation to swipe up.
      The direction of movement should be consistent with UI.
Change-Id: I03108b1ab057e28727b6a6db3629d2c1c069e828
2020-06-23 17:09:33 +08:00
TreeHugger Robot 3309850150 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I1cb4a775fda0f70b0839398ac0f4b8e224c7880c
2020-06-23 07:47:36 +00:00
TreeHugger Robot a271085506 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev 2020-06-23 07:29:27 +00:00
Tracy Zhou 76773cd210 Support having dup items in folder for migration
Fixes: 159312066
Test: Have two dup items in a folder under one grid setting. Migrate. Make sure the folder is migrated correctly to the new grid setting.
Change-Id: Ic5aeb30a1c8acb382bccf744d7553913d8a8a320
2020-06-23 00:29:23 -07:00
TreeHugger Robot 7cb6d738c0 Merge "Eliminating messages that launcher activity is frozen" into ub-launcher3-rvc-dev 2020-06-23 06:09:26 +00:00
Hyunyoung Song 85d90a16bc Merging from ub-launcher3-rvc-dev @ build 6617269
Bug: 150504032
Test: manual, presubmit on the source branch
https://android-launcher.teams.x20web.corp.google.com/merge/ub-launcher3-rvc-dev_rvc-dev_6617269.html

Change-Id: I7a13230553f9c42d5f67164234c33cf77efa9cf2
Merged-In: I2a168bfa8e3979ade26ab1d3cddbbae84cf79590
2020-06-23 05:11:31 +00:00
TreeHugger Robot ea3edf1247 Merge "Log query_length & parent_container for actions on search results." into ub-launcher3-rvc-dev 2020-06-23 02:16:44 +00:00
TreeHugger Robot 7551b6191f Merge "Store newGestureState before onConsumerAboutToBeSwitched clears it" into ub-launcher3-rvc-dev 2020-06-23 01:33:55 +00:00
thiruram dbd61d4026 Log query_length & parent_container for actions on search results.
Bug: 154717227
Change-Id: I8e7d725014f60a2fd9a7fe13fce705acbc7623ad
2020-06-22 18:14:12 -07:00
Tony Wickham efb7e60edc Store newGestureState before onConsumerAboutToBeSwitched clears it
Bug: 159659393
Change-Id: If98d54b7ca397ef56a5c6d50c0fd92f25a9494b4
2020-06-22 17:37:07 -07:00
Rajeev Kumar 4a24d3635e Get rid of unused notification_badging_enabled configuration. am: e941d72380
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959139

Change-Id: I47aa235aae179f63519ede9f741f0560913ca378
2020-06-22 22:52:47 +00:00