Commit Graph

11904 Commits

Author SHA1 Message Date
Alex Chau 426a14bbfc Merge "Make quick switch track finger 1:1" into sc-v2-dev am: f647016cce am: 9dee4f3b2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14817819

Change-Id: If34cc66acdbce5f504773b7cec3bf901c7bbe87b
2021-06-04 02:54:00 +00:00
Pat Manning bfedd5e4a1 Merge "Prevent clearing home between display size changes." into sc-v2-dev am: de40c75730 am: 8e8ea10974
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14734950

Change-Id: I6901f56b03cf4ff055de7c4222eb543cf6564b69
2021-06-04 02:15:19 +00:00
Bill Lin 1cf3039c1e Merge changes I7b9e6e7f,I9729cd40 into sc-dev am: 51b35256d2 am: ae054d8584 am: b61a3850b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800258

Change-Id: Ib18d6c070199ec49afb96a69c5dac299f030e20f
2021-06-04 02:14:12 +00:00
Alex Chau 9dee4f3b2a Merge "Make quick switch track finger 1:1" into sc-v2-dev am: f647016cce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14817819

Change-Id: I7aa8796856e3f98041e0508005a07b5df756da85
2021-06-04 02:03:48 +00:00
Pat Manning 8e8ea10974 Merge "Prevent clearing home between display size changes." into sc-v2-dev am: de40c75730
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14734950

Change-Id: I800de65fd5fa8b776a6699318632e9f042227608
2021-06-04 01:37:32 +00:00
Bill Lin b61a3850b2 Merge changes I7b9e6e7f,I9729cd40 into sc-dev am: 51b35256d2 am: ae054d8584
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800258

Change-Id: I775c0edcfe403c854a7c87104fa9aba78761f18d
2021-06-04 00:49:48 +00:00
Bill Lin 51b35256d2 Merge changes I7b9e6e7f,I9729cd40 into sc-dev
* changes:
  2/ Notify adjust touch slop when one handed mode activated
  1/ Provides feasibility to adjust touch slop in TouchController
2021-06-04 00:16:12 +00:00
Brian Isganitis 13cafefc0f Show toolbar back button on subsettings pages am: 6afcfd7cbd am: d2ad24f763 am: f8bf0c6307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14741513

Change-Id: Ifdbe2a1efb2fad5bf60df8714353bab55d2c8bd5
2021-06-03 23:15:13 +00:00
Brian Isganitis 03a28f2471 Pad bottom of settings list view with bottom system insets am: ed49a7187d am: fc96a7d41e am: bd9f4db7de
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738959

Change-Id: If1bdbe48e6af2b033904f34a1bc93517d7889c59
2021-06-03 23:15:11 +00:00
Brian Isganitis f8bf0c6307 Show toolbar back button on subsettings pages am: 6afcfd7cbd am: d2ad24f763
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14741513

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

Change-Id: Ie8c7a86a9a1ff66090cf67e6a36a51ed3672abe1
2021-06-03 23:01:57 +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 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 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
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 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 f15214597e Merge "Scroll to the selected widget picker row after headers are clicked" into sc-dev 2021-06-03 14:15:00 +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
Alina Zaidi e57ae67013 Merge "Update scrim in widget pickers." into sc-dev am: c599c90eaa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14776603

Change-Id: Idbdeab5c1af6a57b8779ed6a1ac7b8ab70b077ed
2021-06-03 11:08:18 +00:00
Stevie Kideckel 5cc44eb73e Merge "Use the LayoutManager as the source of truth for visible positions" into sc-dev 2021-06-03 11:00:32 +00:00
Pat Manning de40c75730 Merge "Prevent clearing home between display size changes." into sc-v2-dev 2021-06-03 10:47:57 +00:00
Stevie Kideckel eb367e471b Scroll to the selected widget picker row after headers are clicked
This keeps the row in view. Currently, this will scroll the row to the
centre-bottom of the screen due to the top padding being double counted,
but that will remedied in a future CL.

This also resolves the issue where the last row's widgets aren't visible
by handling that case specially

Fix: 188665456
Bug: 183378651
Test: verified locally
Change-Id: I9acb9087a8cdaf130ac5955c810c96462b368f36
2021-06-03 09:48:21 +00:00
Stevie Kideckel abd33b38e2 Use the LayoutManager as the source of truth for visible positions
During animations, the view group child may not correspond to the
visible views that appear at the top.

The previous logic is kept in the case that the layout manager returns
null for any reason, which can happen before layout has occurred for the
position.

Fix: 189588014
Test: verified locally
Change-Id: Ie8b5dcef50287e9e90a21f86e30a1ebcbbcba30f
2021-06-03 09:36:22 +00:00
Alina Zaidi 8796707172 Update scrim in widget pickers.
Also adjust padding in pin widget bottom sheet.

Test: Tested manually
Bug: 189802334
Change-Id: Ic25547ab1519139afdbf07aaefeb9168cf3501ff
2021-06-02 20:39:28 +01:00
Pat Manning 67094bfdfb Prevent clearing home between display size changes.
Split display support was previously based on the sizes of supported device profiles. If a device supporting split display increased display size too much, it could trigger a grid migration (due to number of hotseat icons displayed vs in the DB changing as it was no longer seen as split display). The migration would not run however, as the grid had not actually changed, but would still have cleard the DB in preparation of the migration.

By counting the number of supported profiles instead, we can estimate the number of screens invariant of display size changes and avoid undesired grid migrations.

Test: manual
Fix: 187689871
Bug: 187689871
Change-Id: If740c501cab0e80ef6144356ec5618ee30134ed7
2021-06-02 16:18:55 +00:00
TreeHugger Robot f7b4699451 Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev am: f5af5ce11f am: da91a85359 am: 8a6cfe1c15
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14793398

Change-Id: Ia1ea2f49fb1c792ed7b30c8ea4d29b5775205b3e
2021-06-02 00:24:03 +00:00
TreeHugger Robot da91a85359 Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev am: f5af5ce11f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14793398

Change-Id: Ic5a7e1fc9f5ac07f84b10496b1f3ece2bf8e8b8f
2021-06-01 23:41:10 +00:00
TreeHugger Robot f5af5ce11f Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev 2021-06-01 23:39:39 +00:00
Steven Ng ada789ddbc Merge "Show app widget resize frame after launcher state change" into sc-dev am: c58b204926 am: 8e133e45cf am: 4bbcb3623a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14733440

Change-Id: I263e8aca2c65d14f975589d872573bc7a62bd9e8
2021-06-01 22:26:23 +00:00
Steven Ng 8e58ec5f75 Merge "Fix add extra empty screen logic" into sc-dev am: a45ea6cf33 am: f573435d2c am: 29adf88bba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14717704

Change-Id: Ib97706e0a8dcb70259876da8af5a6b71ae579735
2021-06-01 22:26:09 +00:00
TreeHugger Robot 6b5e04157f Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev am: b13200c6b1 am: 0bd5f8fd6d am: 7214078ed6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14735875

Change-Id: I7a7f8cb174653518894c53923e10d30ff75e8c72
2021-06-01 22:25:54 +00:00
TreeHugger Robot 9d3af45f3a Merge "Fixing deadlock when surface creation is waiting on surface destroy" into sc-dev am: 9ccd3c5e12 am: 2db8cbebfa am: 52ed5d4013
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773075

Change-Id: I0da464cd387fba9b228cc603f9a149df1c68b8a9
2021-06-01 22:25:22 +00:00
Wale Ogunwale 0e25d2eba8 Revert "Add haptic feedback to Launcher recent apps scrolling"
This reverts commit b1ef5e5c55.

Reason for revert: b/182382085#comment4

Change-Id: I001944da64dc05324b14cc9dd3db5921faf8806c
Bug: 182382085
2021-06-01 22:10:18 +00:00
Steven Ng 4bbcb3623a Merge "Show app widget resize frame after launcher state change" into sc-dev am: c58b204926 am: 8e133e45cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14733440

Change-Id: I0e96ad43f4347931a7920a7e2478c13986c5486e
2021-06-01 21:55:23 +00:00
Steven Ng 29adf88bba Merge "Fix add extra empty screen logic" into sc-dev am: a45ea6cf33 am: f573435d2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14717704

Change-Id: I23571c1c8bfa27bb1d7290e5529526cf9ffcbc03
2021-06-01 21:55:17 +00:00
TreeHugger Robot 7214078ed6 Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev am: b13200c6b1 am: 0bd5f8fd6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14735875

Change-Id: Icb7706462cec52fff086dce5adecb550d41a293b
2021-06-01 21:55:08 +00:00
TreeHugger Robot 52ed5d4013 Merge "Fixing deadlock when surface creation is waiting on surface destroy" into sc-dev am: 9ccd3c5e12 am: 2db8cbebfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773075

Change-Id: I2b0ac053dc6de7b30c47f9f99b657c2076212c71
2021-06-01 21:54:51 +00:00
Steven Ng 8e74a1f2a7 Merge "Show app widget resize frame after launcher state change" into sc-dev am: c58b204926
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14733440

Change-Id: I347e1fae2221f478cc7cab478e3924ea8a131eb8
2021-06-01 21:31:34 +00:00