Commit Graph

49925 Commits

Author SHA1 Message Date
Brian Isganitis f8bb57f034 Show toolbar back button on subsettings pages am: 6afcfd7cbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14741513

Change-Id: I9cce39b604bf345bf6dabb3d9cca999c924cc876
2021-06-03 22:38:12 +00:00
Brian Isganitis 064404f5d2 Pad bottom of settings list view with bottom system insets am: ed49a7187d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738959

Change-Id: I4ea9acfc3fc621bfb53cfe276d4b7ba056d8f627
2021-06-03 22:38:11 +00:00
Brian Isganitis fc96a7d41e Pad bottom of settings list view with bottom system insets am: ed49a7187d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738959

Change-Id: I71a84336583875e70afbdce0e80a6df09da5f328
2021-06-03 22:38:11 +00:00
Jonathan Miranda 89e28303a3 Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev am: 3ed65ede16 am: 328a2bd5ef am: df3caf7274
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14823934

Change-Id: I2e3aca701d66fa911e744d21737ff57117d0c0e6
2021-06-03 21:11:54 +00:00
Brian Isganitis 6afcfd7cbd Show toolbar back button on subsettings pages
Test: Back button displayed and functional on subsettings
Bug: 187732263
Change-Id: I6a3679de3a00480f5a0861f966d178be25f001d4
2021-06-03 17:04:33 -04:00
Brian Isganitis ed49a7187d Pad bottom of settings list view with bottom system insets
This change allows for a transparent navigation bar in the settings Material next redesign.

Test: Bottom of settings not cut off by bottom navigation bar
Bug: 187732263
Change-Id: I237011003ca0c3760c0fbdbb2865ef90c19d7b81
2021-06-03 17:02:05 -04:00
Jonathan Miranda df3caf7274 Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev am: 3ed65ede16 am: 328a2bd5ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14823934

Change-Id: Id16a11d69a03051846aa52edcf2a4935e1bfc4b1
2021-06-03 20:58:39 +00:00
Jonathan Miranda 73886f379f Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev am: 3ed65ede16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14823934

Change-Id: Ica0d5b9d65dcaa32aae7978ffa36e3a63c172ce1
2021-06-03 20:43:24 +00:00
Jonathan Miranda 7a2587c5a2 Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev am: 3ed65ede16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14823934

Change-Id: I5f7a5bd4775e9350d63e69085574400a0b5ae43e
2021-06-03 20:41:41 +00:00
Jonathan Miranda 328a2bd5ef Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev am: 3ed65ede16
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14823934

Change-Id: I76ecb9bb0cf1bd6e768dca2c8c7ee4f1e835c4ab
2021-06-03 20:41:22 +00:00
Vinit Nayak 51ca609048 Check for taskbar 3 button flag when initializing RotationContextualButton
Fixes: 190063583
Change-Id: Ibc8ee6586cdf7316f61bae9fc5eff39b4b9992f1
2021-06-03 13:27:14 -07:00
Jonathan Miranda 3ed65ede16 Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev 2021-06-03 20:23:18 +00:00
Alex Chau f647016cce Merge "Make quick switch track finger 1:1" into sc-v2-dev 2021-06-03 19:44:55 +00:00
Bill Yi 157947b53b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8437f3203f1c49de30e075a3afef425a75b3a367
2021-06-03 19:04:31 +00:00
Bill Yi 06b9166f88 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9c3ef53a1d831f17490ee5b96c730ab10893223e
2021-06-03 19:03:31 +00:00
Bill Yi 3de111e392 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib375e57ffc23e1a08438794f564927c0e60a741a
2021-06-03 19:02:56 +00:00
Bill Yi 77811638c7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2aeaa7f42eb543dc89898042289ba5baf91da4ca
2021-06-03 19:02:15 +00:00
Jon Spivack e2a4140043 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90 am: ea61dfb098
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: I4f0764244178cc051b3f3ca4f521d7ce32ec0270
2021-06-03 19:00:55 +00:00
Bill Yi 1a01df7733 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icd923fe6ba24436415e6a65c25dda49ee50a6164
2021-06-03 19:00:53 +00:00
Bill Yi 5821abb3e5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I463274ac8154729157b0fd623b966dba8ce36711
2021-06-03 19:00:20 +00:00
Zak Cohen 02da8d0782 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919 am: 68df577307 am: 333fed77a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: I0deb90d2dba4a075c05ce76b94ea7de8edcb8451
2021-06-03 17:59:20 +00:00
Bill Lin a1221bcd53 2/ Notify adjust touch slop when one handed mode activated
When one handed mode activated, user swipe-up to exit usually
cross over the NavBar region, and then invoke TouchController
intercept touch event to trigger All Apps drawer on Home.

To enhanced the UX of gesture conflict of exit OHM & All Apps,
notify TouchController throught LauncherActivityInterface,
and Launcher dispatch onOneHandedModeStateChanged() event to
all mTouchControllers in DragLayer that touchController can
adjust the touch slop by it's SingleAxisSwipeDetector.

Test: manual trigger One handed mode and swipe-up to exit
Test: monitor minDisplacement of SingleAxisSwipeDetector
      OHM activated : touchSlop x multiplier
      OHM deactivated : touchSlop x 1
Test: check All Apps doesn't mis-trigger when exit one handed mode
Bug: 186235522
Change-Id: I7b9e6e7fa898231697d1866186a5f9b1717a9aa3
2021-06-04 01:44:51 +08:00
Bill Lin 945bb34b5e 1/ Provides feasibility to adjust touch slop in TouchController
There is a case when one handed mode triggered(Activated), all apps
drawer is very easy to trigger while user swipe up around NavBar
region to exit one handed mode. Since System Gesture monitor regsion
is small on screen bottom, swipe-up gesture usually cross over NavBar
monitor region and invoke launcher touch controller intercept touch
event and introduce unexpectedly trigger all apps drawer.

Adding onOneHandedModeStateChanged(boolean activated) for controller
be able to adjust the touch slop by multiplier, we can set a larger
multiplier when the visible window size translate become smaller
and make swipe gesture not too sensitive.

Test: manual swipe up to swich "home <-> all apps" and monitor
      minDisplacement of SingleAxisSwipeDetector
Test: Trigger one handed mode and swipe up to exit one handed mode
      check the minDisplacement of SingleAxisSwipeDetector
Bug: 186235522
Change-Id: I9729cd408d85b2b22582bf800e28d1471fc06980
2021-06-04 01:44:50 +08:00
Zak Cohen 333fed77a4 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919 am: 68df577307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: If649266bbe8ff16829ea54a63ee80a131c0015e0
2021-06-03 17:44:40 +00:00
Zak Cohen 3ec119cbf3 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: Ie7dd16e9beae174ab9967eccc79d50267298be7e
2021-06-03 17:26:58 +00:00
Zak Cohen 15eb8fef8e Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: I05fdec6d737ac56f178aa000eee39e8686dfb673
2021-06-03 17:25:22 +00:00
Zak Cohen 68df577307 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: Id0679baf604aa354dfe2013e5575193b389a07e5
2021-06-03 17:25:15 +00:00
Zak Cohen d7129fc919 Merge "RecentsView - reduce work in color tint animator" into sc-dev 2021-06-03 17:09:45 +00:00
Alex Chau 822acf4d25 Make quick switch track finger 1:1
- When calculating motion delta, it should consider the scale of pagedView
- Adjust significant threshold of tablet quick switch to 15% of page width (roughly 100dp)

Fixes: 188786242
Test: manual on quick switch
Change-Id: Idaa6c5b721decb573e97158c5fbcd67fa224f9d1
2021-06-03 18:07:52 +01:00
Jon Miranda 4981118478 Only inset widgets if workspaceTopPadding is greater than the widget padding.
This prevents widget from becoming too close to status bar.

Bug: 189724771
Test: manual
Change-Id: I86f83b6a35bd2802bdbdf175340a379b498f481d
2021-06-03 09:54:45 -07:00
Stevie Kideckel d7dc5702f6 Use scrollToPositionWithOffset in widget list and account for padding
Also, scroll after collapsing as well to preserve the header position.
LinearLayoutManager seems to not count/double count the top padding of
the RecyclerView when scrolling to the position. Scrolling with the
offset and deducting the top padding works around the issue.

There's still some occasional weirdness that needs to be investigated,
but this works well...most of the time.

Bug: 183378651
Test: locally
Change-Id: I0ba85fb65411991ef781f08a69faaa993a7d7fd0
2021-06-03 16:18:32 +00:00
Weilun Du 9be3a68192 Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc am: 25cd1c50f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: Id33dd7a3f3f8fc9732fc2caca3cf0060cd13f917
2021-06-03 15:39:53 +00:00
Stevie Kideckel b4e4e7da30 Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev am: f15214597e am: 9753e04102 am: c4c42616c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800533

Change-Id: I325d35ca637310070c1c38af27cd463b9d26f037
2021-06-03 15:07:57 +00:00
Stevie Kideckel c4c42616c5 Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev am: f15214597e am: 9753e04102
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800533

Change-Id: Ie8566f94997ebec0b2d3188fd6ed50f3b54e226e
2021-06-03 14:45:31 +00:00
Stevie Kideckel f94a93ad2c Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev am: f15214597e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800533

Change-Id: I1107db2070a28d7de9ae2450760c9ac38108ee59
2021-06-03 14:30:05 +00:00
Stevie Kideckel 42dbf75cfa Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev am: f15214597e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800533

Change-Id: If870fc11eda65ab06445240dbd83887b65267f16
2021-06-03 14:28:19 +00:00
Stevie Kideckel 9753e04102 Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev am: f15214597e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800533

Change-Id: Id2eb8a264a9ecf6e7c983d6d0f513bef12f3901e
2021-06-03 14:26:13 +00:00
Stevie Kideckel f15214597e Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev 2021-06-03 14:15:00 +00:00
TreeHugger Robot 13fe191bdf Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e am: b41c1ee1c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: Icd6601f895842048e0f2e85900fb825558a1b3a4
2021-06-03 13:57:38 +00:00
Shawn Lin 416bc494c8 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057 am: 05fb88806e am: c82756d9e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: I96e5cdef117beb7aea6875011f0f62d2aedb05de
2021-06-03 12:34:32 +00:00
Shawn Lin c82756d9e1 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057 am: 05fb88806e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Ia2dd12600eb40e5b72f289e083f548b0f9948d48
2021-06-03 12:20:01 +00:00
Shawn Lin b762b23227 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: I557e183ffd2b0fcc8d9893465e5e7c680b7c5818
2021-06-03 12:04:36 +00:00
Shawn Lin 38772ef664 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Id2b2cbbc78f9c6e0ca66f8a8498500d723de8683
2021-06-03 12:02:51 +00:00
Shawn Lin 05fb88806e Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Ie2d67370b1e55393ef1530de4485d9cf15c3f663
2021-06-03 12:01:31 +00:00
Shawn Lin cd0fe7b057 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev 2021-06-03 11:47:50 +00:00
Stevie Kideckel 48517a2217 Merge "Use the LayoutManager as the source of truth for visible positions" into sc-dev am: 5cc44eb73e am: f492620c7d am: 80d0956b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800536

Change-Id: I37b1f0f0c77f8a67f665aecb93471996afa8b5c4
2021-06-03 11:40:27 +00:00
Alina Zaidi 53ccbbeb83 Merge "Update scrim in widget pickers." into sc-dev am: c599c90eaa am: 2882bf5180 am: 435fe175e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14776603

Change-Id: I4f3b51ac54b1f6d1ff8b114dddb9bb05afb9c9eb
2021-06-03 11:40:04 +00:00
Stevie Kideckel 80d0956b75 Merge "Use the LayoutManager as the source of truth for visible positions" into sc-dev am: 5cc44eb73e am: f492620c7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800536

Change-Id: I7e3429c771529dc32ce4f646acf80b079dee1078
2021-06-03 11:26:11 +00:00
Alina Zaidi 435fe175e6 Merge "Update scrim in widget pickers." into sc-dev am: c599c90eaa am: 2882bf5180
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14776603

Change-Id: I6e1d10c7dbac9e8e062badad6b68e63dd709bd3e
2021-06-03 11:25:33 +00:00
Stevie Kideckel 3256647b03 Merge "Use the LayoutManager as the source of truth for visible positions" into sc-dev am: 5cc44eb73e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800536

Change-Id: Ic11f1bc2afc3a7430967b103faf7af56257f5dcd
2021-06-03 11:08:22 +00:00