Commit Graph

22614 Commits

Author SHA1 Message Date
Lucas Dupin 006adace4f Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev am: 20051e22e5
Change-Id: I0a8a74078276e1e00ecc3bffa9898392c650b742
2020-04-30 17:37:50 +00:00
Lucas Dupin 20051e22e5 Merge "Do not blur if all apps is fully visible" into ub-launcher3-rvc-dev 2020-04-30 17:11:53 +00:00
Sunny Goyal 3402f3da7d Generalizing LauncherState definition so that it can be used in RecentsActivity am: 8f96546e79
Change-Id: I1d51f79d9e3fc8eb1c194e895c03111c608fc8aa
2020-04-30 08:54:09 +00:00
Sunny Goyal b3fe564560 Allow synchronous modification of update listeners list am: d75c1da9c7
Change-Id: Iddd63e2f0f1cd09d3b81be1b9949c004a5dae84c
2020-04-30 08:20:13 +00:00
Sunny Goyal 8f96546e79 Generalizing LauncherState definition so that it can be used in RecentsActivity
> Removing 'Launcher' as parameter from state methods called by StateManager
> Converting state properties to methods for easier abstraction
> Moving state handling drom state definition to activity class

Change-Id: I997627df606a7e0bb3bf32688d045a942a47fc94
2020-04-30 01:01:51 -07:00
Sunny Goyal d75c1da9c7 Allow synchronous modification of update listeners list
We create a copy of the listeners before notifying update, so that
the original list can be changed

Bug: 154879110
Change-Id: If9de06682b189d199a40a9171d7d3cfb23eea062
2020-04-29 23:36:54 -07:00
TreeHugger Robot 734d102574 Merge "Various multi-window fixes" into ub-launcher3-rvc-dev am: 2d60935e1c
Change-Id: If002afd3a08fe25b203a6882e43f2df82385caa9
2020-04-29 23:59:57 +00:00
TreeHugger Robot 2d60935e1c Merge "Various multi-window fixes" into ub-launcher3-rvc-dev 2020-04-29 23:43:57 +00:00
TreeHugger Robot cb7f93757d Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev am: 875f381dbb
Change-Id: I8848ee8e4d3af64a6f6315c3f8753aba11f5f205
2020-04-29 20:00:06 +00:00
TreeHugger Robot 875f381dbb Merge "Dump RecentsOrientationState for bug reports" into ub-launcher3-rvc-dev 2020-04-29 19:56:54 +00:00
Vinit Nayak 67e7b8baee Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev am: 3aed7aeb67
Change-Id: Ie7a3eff5c67d124391b3cf20fdd9761f9d4641f5
2020-04-29 19:53:21 +00:00
Vinit Nayak 3aed7aeb67 Merge "Use appropriate start padding for clear all button" into ub-launcher3-rvc-dev 2020-04-29 19:31:38 +00:00
Vinit Nayak a5877307d1 Dump RecentsOrientationState for bug reports
Bug: 154951045
Test: New output shows up when running
"adb shell dumpsys activity
com.google.android.apps.nexuslauncher.NexusLauncherActivity
[--all]"

Change-Id: I5e9ace7d370eb0e9d278d7d9f7f9156674ca1a50
2020-04-29 12:19:49 -07:00
TreeHugger Robot 6d04b3e880 [automerger skipped] Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev am: a1925a28aa -s ours
am skip reason: subject contains skip directive

Change-Id: Idd851bc41999545ec76cf05ffad8f1869c90cf77
2020-04-29 19:08:49 +00:00
Sunny Goyal 0addbf0512 Various multi-window fixes
> Fixing scale up calculator for swipe-down
> Offsetting pivot so that the preview is aligned to bottom-right
> Allowing insets to be available in multi-window mode as well
> Offsetting taskViewSimulator appropriately in multi-window mode

Change-Id: I7da4c145efca72ef219a5ffcaf23d726812df270
2020-04-29 11:50:33 -07:00
TreeHugger Robot a1925a28aa Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-04-29 18:47:25 +00:00
Bill Yi 2d65e2202e Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie7e058e9ca81e402b0877d430badb4be25ba06b5
2020-04-29 11:12:27 -07:00
Lucas Dupin 264cb2ff68 Do not blur if all apps is fully visible
Fixes: 155093795
Fixes: 155203546
Test: manual
Change-Id: I30f4c027e5107a199791e908acbb7ffed94e6a77
2020-04-29 17:49:02 +00:00
Jonathan Miranda 6010f5c1d0 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev am: 0d9a9b9336
Change-Id: Ic73efd6442d55c6a674b7dffbdb28d868ccaa22d
2020-04-29 17:47:19 +00:00
Jonathan Miranda 0d9a9b9336 Merge "Fix floating icon view positioning when in multiwindow mode." into ub-launcher3-rvc-dev 2020-04-29 17:26:33 +00:00
Jonathan Miranda 05c9e830b9 Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev am: 7a79edd48a
Change-Id: Ib7c536821ad431be6cf7dcb769d6cf821a06723c
2020-04-29 16:50:08 +00:00
Jonathan Miranda 7a79edd48a Merge "Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended." into ub-launcher3-rvc-dev 2020-04-29 16:37:50 +00:00
TreeHugger Robot 29a23ee665 Merge "[Overview Actions] Fix the animation duration issue." into ub-launcher3-rvc-dev am: 606c5c4179
Change-Id: I7c953d2da6f177d536ec711ddfeef650ddff1417
2020-04-29 16:22:29 +00:00
TreeHugger Robot 606c5c4179 Merge "[Overview Actions] Fix the animation duration issue." into ub-launcher3-rvc-dev 2020-04-29 16:03:24 +00:00
Jon Miranda db02b11340 Ensure final values are set when StaggeredWorkspaceAnim is cancelled/ended.
Was able to repo the bug reliably when calling cancel() and
end() immediately after starting the StaggeredWorkspaceAnim.

Bug: 153584267
Change-Id: I954d38ad69e72a83535f4dd1ec21dba0f61a3cfb
2020-04-29 15:51:10 +00:00
TreeHugger Robot b90ad041f1 Merge "Change horizontal spring stiffness to 250." into ub-launcher3-rvc-dev am: 5111df54d3
Change-Id: Ib47602b345f9b890e5f09df38df7ae4fc9e941a8
2020-04-29 11:49:44 +00:00
TreeHugger Robot 5111df54d3 Merge "Change horizontal spring stiffness to 250." into ub-launcher3-rvc-dev 2020-04-29 11:39:06 +00:00
Jon Miranda f6225830d5 Fix floating icon view positioning when in multiwindow mode.
The rect we passed in was in screen space to match the window, but needs to be
be local to launcher.

Also updated code/comments to make it more readable.

Note that the bounds of the targets being off is a separate issue b/153581126

Bug: 135195169
Change-Id: I4a8c0aa2f504bdf69342a927725cd440fb324a36
2020-04-28 21:29:51 -07:00
thiruram a5341d377a Updates launcher_atom.proto to support consistent logging for launcher containers. am: acbd7ef70f
Change-Id: I857b5b6a3bfeeb269f867eb115f0dd9e8c937c1b
2020-04-29 02:18:58 +00:00
thiruram acbd7ef70f Updates launcher_atom.proto to support consistent logging for launcher containers.
* Updated default of some fields to invalid values. Because when these fields are not actually set on the client, the default values could lead to misinterpretations on the server side.
* Refactored container messages into a separate oneof message to use it on the client side as interface.

Test: Manual (make NexusLauncherDebug -j100)
Bug: 144124838

Change-Id: I2d2ea05e9d7d043682d8ca1a56a238d9d22174bb
2020-04-29 00:55:28 +00:00
Vinit Nayak 54c9bc2e89 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev am: e8269b3944
Change-Id: I677120f8ec5a9b23edc864d05417af982fe4abde
2020-04-29 00:30:32 +00:00
Becky Qiu 1f31915b5b [Overview Actions] Fix the animation duration issue.
Test: local
Bug: 155205932

Change-Id: Ic64762b0c7647a5c38d182c24a8cba4a354a9a83
2020-04-28 17:24:48 -07:00
Vinit Nayak e8269b3944 Merge "Enable edge back gesture on app launch" into ub-launcher3-rvc-dev 2020-04-29 00:18:22 +00:00
Tracy Zhou 19b2989869 Merge "Remove grid options pref key" into ub-launcher3-rvc-dev am: 42de4ddc83
Change-Id: I0ed74da6b6b18cd4594b9913bbba10f10da726c3
2020-04-28 23:47:42 +00:00
Tracy Zhou 42de4ddc83 Merge "Remove grid options pref key" into ub-launcher3-rvc-dev 2020-04-28 23:42:53 +00:00
TreeHugger Robot 272f15d845 Merge "Support for counting activity creations" into ub-launcher3-rvc-dev am: d4066f5876
Change-Id: I78149686009e73db17f9ea06fa4d6642400a6421
2020-04-28 23:41:00 +00:00
TreeHugger Robot d4066f5876 Merge "Support for counting activity creations" into ub-launcher3-rvc-dev 2020-04-28 23:26:37 +00:00
Tracy Zhou ad1d5d0739 Merge "Refactor usage of getting GRID_OPTIONS_PREFERENCE_KEY value into whether GridOptionsProvider is enabled" into ub-launcher3-rvc-dev am: df5d99f419
Change-Id: I1c57254a6f0b36d8a1c6d24fab18e9d3704ca399
2020-04-28 22:43:10 +00:00
Tracy Zhou 9dd8f411e5 Remove grid options pref key
Fixes: 154154093
Test: manual testing of the feature
Change-Id: I48fa2788c163ebfe4b925e05d1526c0c1f3e3926
2020-04-28 15:33:30 -07:00
Tracy Zhou df5d99f419 Merge "Refactor usage of getting GRID_OPTIONS_PREFERENCE_KEY value into whether GridOptionsProvider is enabled" into ub-launcher3-rvc-dev 2020-04-28 22:26:46 +00:00
Jon Miranda c2140bcadd Change horizontal spring stiffness to 250.
Change-Id: I453190b9c402aebdd723b23bcc08fea928da13c5
2020-04-28 14:38:54 -07:00
TreeHugger Robot 59dc8e2042 Merge "Optimization: reducing number of getNavigationModeMismatchError calls" into ub-launcher3-rvc-dev am: 18b2da5f07
Change-Id: I53416f40212ed06e890b3031dfa54184d6938178
2020-04-28 21:25:51 +00:00
TreeHugger Robot 18b2da5f07 Merge "Optimization: reducing number of getNavigationModeMismatchError calls" into ub-launcher3-rvc-dev 2020-04-28 21:11:43 +00:00
Tracy Zhou c6060e6e2a Refactor usage of getting GRID_OPTIONS_PREFERENCE_KEY value into whether GridOptionsProvider is enabled
Bug: 154154093
Test: manual testing of the feature
Change-Id: Ibe78a75b061aad20e8fa0e229589400b65016ff4
2020-04-28 14:02:49 -07:00
Vinit Nayak 3f3cc3e96e Enable edge back gesture on app launch
We don't clear state on EdgeBackGestureHandler
when we go to Recents or Home.
A more robust solution is in the works with
WM team and will probably be built on top of this.
Needs ag/11273364 to work.

Bug: 154580671
Test: Launch app directly in landscape,
should be able to swipe home on first try.

Change-Id: Ia4c685e16645d0237f278a611f6c61f252f3b79c
2020-04-28 13:51:43 -07:00
Vinit Nayak 48ea9e9502 Use appropriate start padding for clear all button
This still shows up a bit strange with
notched phones because we are using
RecentsView padding to give ClearAll the
right amount of spacing. However, we're only
adding padding to the left and right and not
the top/bottom.
That's captured here: b/154436527

Fixes: 150389833
Test: Tested landscape/portrait/seascape
launcher, w/ RTL as well

Change-Id: I49defd58048e609a1f7a821abb97374bcbb94b9f
2020-04-27 22:44:05 -07:00
Zak Cohen f1a51856c9 OverviewActions - Use launcher state to track modal state. am: a39544d562
Change-Id: Ib9e5358abd1d41e19f6186b84827729b2f345ccc
2020-04-28 00:58:26 +00:00
Zak Cohen a39544d562 OverviewActions - Use launcher state to track modal state.
Test:local

Change-Id: I44e25b95095b9a7aac4b4172c9c91fbfbf4d9ec7
2020-04-27 16:29:44 -07:00
Sreyas Rangaraju 0f12ee1138 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev am: 2f04a9d271
Change-Id: I9c640522e057c4b24e4494356000a1d53105402e
2020-04-27 21:47:41 +00:00
Sreyas Rangaraju 2f04a9d271 Merge "Assistive chip: Adding background scrim for chip." into ub-launcher3-rvc-dev 2020-04-27 21:43:49 +00:00