Bill Lin and Automerger Merge Worker
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 and Android (Google) Code Review
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 and Automerger Merge Worker
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 and Automerger Merge Worker
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
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 and Automerger Merge Worker
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 and Android (Google) Code Review
3ed65ede16
Merge "Only inset widgets if workspaceTopPadding is greater than the widget padding." into sc-dev
2021-06-03 20:23:18 +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
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 and Automerger Merge Worker
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 and Android (Google) Code Review
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 and Automerger Merge Worker
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 and Automerger Merge Worker
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 and Android (Google) Code Review
5cc44eb73e
Merge "Use the LayoutManager as the source of truth for visible positions" into sc-dev
2021-06-03 11:00:32 +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
TreeHugger Robot and Automerger Merge Worker
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 and Android (Google) Code Review
f5af5ce11f
Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev
2021-06-01 23:39:39 +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 and Automerger Merge Worker
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
Steven Ng and Automerger Merge Worker
6ed0112871
Merge "Fix add extra empty screen logic" into sc-dev am: a45ea6cf33
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14717704
Change-Id: I69033f2b4ca9f3508ed31125bb9b74a09dd32829
2021-06-01 21:31:30 +00:00
TreeHugger Robot and Automerger Merge Worker
c3629c8e9c
Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev am: b13200c6b1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14735875
Change-Id: Icea54a23541cdd1791d9adc1c5dde67bbd6583c9
2021-06-01 21:31:25 +00:00
TreeHugger Robot and Automerger Merge Worker
d46e3b0322
Merge "Fixing deadlock when surface creation is waiting on surface destroy" into sc-dev am: 9ccd3c5e12
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773075
Change-Id: Ifbfcb12c653035489552644e3afe4f524ee69c23
2021-06-01 21:31:20 +00:00
Steven Ng and Android (Google) Code Review
c58b204926
Merge "Show app widget resize frame after launcher state change" into sc-dev
2021-06-01 21:11:01 +00:00
Steven Ng and Android (Google) Code Review
a45ea6cf33
Merge "Fix add extra empty screen logic" into sc-dev
2021-06-01 21:04:55 +00:00
TreeHugger Robot and Android (Google) Code Review
b13200c6b1
Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev
2021-06-01 21:02:29 +00:00
TreeHugger Robot and Android (Google) Code Review
9ccd3c5e12
Merge "Fixing deadlock when surface creation is waiting on surface destroy" into sc-dev
2021-06-01 21:00:19 +00:00
Brian Isganitis and Automerger Merge Worker
25bf26ff4d
Merge "Create settings activity layout with explicit toolbar" into sc-dev am: d9463fbfdd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738956
Change-Id: I26c09f9a1da137cc194a0215d085ffc4fa09a4f0
2021-06-01 20:36:26 +00:00
Brian Isganitis and Android (Google) Code Review
d9463fbfdd
Merge "Create settings activity layout with explicit toolbar" into sc-dev
2021-06-01 20:15:15 +00:00
Jonathan Miranda and Automerger Merge Worker
1676ef9700
Merge "Turn off app close flag, Revert back to R implementation." into sc-dev am: d8035e1821
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750661
Change-Id: Iee90e5897e98c8e06ea957c0b5f8418936c7d866
2021-06-01 19:52:01 +00:00
Jonathan Miranda and Automerger Merge Worker
2abc3933ed
Merge "Change folderFillColor to colorBackgroundFloating." into sc-dev am: dfde41cf1e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14754919
Change-Id: I7d4b2b8f1dbd68032677134a20b09b2a28fdb2b5
2021-06-01 19:51:40 +00:00
Alina Zaidi and Automerger Merge Worker
f14a4682b6
Merge "Add more education tips for widgets. (2/3)" into sc-dev am: 8a8c36cca9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14678271
Change-Id: I54f4236c54a56fa6c6945f2bd72f9530badccd00
2021-06-01 19:50:57 +00:00
Sunny Goyal
4c29af3a6d
Fixing deadlock when surface creation is waiting on surface destroy
...
Bug: 189049869
Test: Manual
Change-Id: I0f92d3666dab81bc381163d93530119d45c4fdbd
2021-06-01 12:36:38 -07:00
Jonathan Miranda and Android (Google) Code Review
d8035e1821
Merge "Turn off app close flag, Revert back to R implementation." into sc-dev
2021-06-01 18:18:38 +00:00
Jonathan Miranda and Android (Google) Code Review
dfde41cf1e
Merge "Change folderFillColor to colorBackgroundFloating." into sc-dev
2021-06-01 18:17:17 +00:00
Alina Zaidi and Android (Google) Code Review
8a8c36cca9
Merge "Add more education tips for widgets. (2/3)" into sc-dev
2021-06-01 17:34:18 +00:00
TreeHugger Robot and Automerger Merge Worker
23bb5e0bfc
Merge "Further adjust work profile tabs paddings in the widgets picker" into sc-dev am: 04ef35f854
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14748539
Change-Id: I606a60882b3635d3e67535ec5727e39a30eac876
2021-06-01 13:33:27 +00:00
TreeHugger Robot and Android (Google) Code Review
04ef35f854
Merge "Further adjust work profile tabs paddings in the widgets picker" into sc-dev
2021-06-01 13:13:03 +00:00
Alina Zaidi
f2c79dea0d
Add more education tips for widgets. (2/3)
...
Show education dialog on WidgetsFullSheet.
-Have a button in widget education dialog to intent into PixelTips apps.
-Make sure arrow tip view shows after dismissing education dialog on
WidgetsFullSheet if there is a widget to show it on.
-Update colors and layout for arrow tips.
Test: Tested manually
Bug: 185354491
Change-Id: I5cbdd02fc4f19a49a42dac4451b071e3d604747f
2021-06-01 13:58:18 +01:00
Steven Ng
7e3d96c620
Show app widget resize frame after launcher state change
...
When this bug occurs, the resize frame coordinate is incorrect because
the launcher state animation has not finished when the drag view
finishes animating back to its original position.
Test: Quickly long press and release a widget from the home screen.
Observe the resize frame is correctly shown around the widget.
Bug: 186370472
Change-Id: I6bfba2e85e3354a215c26203dd22df13db3b8b83
2021-06-01 12:20:32 +01:00
Steven Ng
a0d49dcfb4
Further adjust work profile tabs paddings in the widgets picker
...
Test: Open widgets picker and observe tabs paddings are correctly set.
Bug: 188872382
Change-Id: Ib6a735bf2b0710f86b8641533cadb27116049341
2021-06-01 11:40:36 +01:00
Steven Ng and Automerger Merge Worker
02045feb20
Merge "Don't dismiss keyboard after clicking X button on the widgets search bar" into sc-dev am: 755723403b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14748544
Change-Id: Id13572638904399f37f24ae3ff4c6f527128d972
2021-06-01 10:32:13 +00:00
Steven Ng and Android (Google) Code Review
755723403b
Merge "Don't dismiss keyboard after clicking X button on the widgets search bar" into sc-dev
2021-06-01 10:05:26 +00:00
Sunny Goyal and Automerger Merge Worker
52a82bac34
Merge "Enabling themed icon feature" into sc-dev am: 8a7f973264
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14738710
Change-Id: I65bbaa5b25d63dd1d0b4e1773fdb6dcd85f3b1d9
2021-05-28 19:20:29 +00:00
Sunny Goyal and Android (Google) Code Review
8a7f973264
Merge "Enabling themed icon feature" into sc-dev
2021-05-28 18:53:40 +00:00
Jon Miranda
de907805d1
Change folderFillColor to colorBackgroundFloating.
...
There seems to be some nuance that prevents me from defining it once in
the base theme, so just updated all of them individually to prevent
any edge case from slipping through.
Bug: 188095988
Test: manual
Change-Id: I1dea639f174fa4ec09bda93a6e2017993b2007a5
2021-05-28 01:21:21 +00:00
Brian Isganitis
08fdf4d269
Create settings activity layout with explicit toolbar
...
This layout will be overridden to have a collapsible toolbar on API 31.
Test: Settings layout unchanged
Bug: 187732263
Change-Id: I0c098dd0a09a1787a10035a3d3f35ecf461cfc20
2021-05-27 18:41:18 -04:00