Commit Graph

49925 Commits

Author SHA1 Message Date
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 9cbd6cdf14 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: I1b23513a08ba8bf7dc8cd605098148517fefea41
2021-06-03 11:06:46 +00:00
Alina Zaidi db5080363b 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: Idd91f061ccd5b814a8bce72089b897d3fa3427c9
2021-06-03 11:06:41 +00:00
Stevie Kideckel f492620c7d 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: I1a83d512bcf6c4778c63f672c1044613d01f9183
2021-06-03 11:05:48 +00:00
Alina Zaidi 2882bf5180 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: I3f491a8dabbdb9c086349f1db2fab8942c8c38a9
2021-06-03 11:05:43 +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
Alina Zaidi c599c90eaa Merge "Update scrim in widget pickers." into sc-dev 2021-06-03 10:42:29 +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
Jon Spivack 05e828c896 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: I9ad397ba4d51955f6bbac27e1435180e9175df67
2021-06-03 07:37:52 +00:00
Weilun Du fcec6c6b15 Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: I2e11130c883782dfc4e9edc755c7ea05bee9ea02
2021-06-03 07:34:00 +00:00
TreeHugger Robot f40d4452d8 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I1198b2ee9548ead52dbe1915c8fc6eeb7bac96ab
2021-06-03 07:30:53 +00:00
Pat Manning 668d10d6c4 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I93c5b7dc6bd6cabb3560334102fae46553b39506
2021-06-03 07:29:24 +00:00
TreeHugger Robot e14cb20a6c Merge "Remove elevation from the full widgets picker container" into sc-dev am: 23cf59bfd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14793490

Change-Id: I8cc82526aeadd3489144faa798f65e5f4ec74f39
2021-06-03 07:21:35 +00:00
Wei Sheng Shih e909a01164 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: I7e9b8813fea7d2ed9cdef8c163f65875c9f026c1
2021-06-03 06:49:47 +00:00
Brian Isganitis aa6aa7bb69 Merge "Update preferences to Material Next styling" into sc-dev am: b177133e7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14740617

Change-Id: I591b173c7c0bfdb595daea64da2f5e9e7d2c23f1
2021-06-03 06:49:14 +00:00
Pat Manning 9f796d768c End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5 am: 8839849a54
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I5190eccd2d1bb9c8bf151d3c7bf85599f4913761
2021-06-03 05:19:23 +00:00
shawnlin 2b006fb27b Detach the nav once the endTarget is determined as HOME
Bug: 189900722
Test: manual - swipe up to home from an app and observe the nav
Change-Id: I421de17fe4d8413deaf9ebd63166a6d2d00d096e
2021-06-03 13:06:42 +08:00
Jon Spivack 10242f7378 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90 am: 47229933c7 am: 9fb00f09bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: Ida9ec2f681a63ec1967970d06c45963809d3e130
2021-06-03 03:09:44 +00:00
Jon Spivack 9fb00f09bf Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90 am: 47229933c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: I6a22b27f5d28fd2660d175b8c39d2376a5d2a32b
2021-06-03 02:52:36 +00:00
Jon Spivack ea61dfb098 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: Idf82c8d5d5d7ffb646fbaeb0403bf9ac42c7b1ce
2021-06-03 02:33:16 +00:00
Jon Spivack 47229933c7 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev am: b7cecf8a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803962

Change-Id: Ie7c8791e8a57003b176a09909a78a9474e7edd95
2021-06-03 02:33:06 +00:00
Jon Spivack b7cecf8a90 Merge "TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester" into sc-dev 2021-06-03 02:20:26 +00:00
android-build-team Robot 5f60ea74b2 Snap for 7418083 from 161027dc3e to sc-v2-release
Change-Id: If1c6b288a7719b6d1e55d65901c27be5953f8312
2021-06-03 01:09:26 +00:00
android-build-team Robot 23f902a32d Snap for 7419753 from 971d7fddcc to sc-release
Change-Id: I64a4d6ee3974c6de0a793d303deec7b7ff09c936
2021-06-03 01:09:21 +00:00
Weilun Du 4ce107417b Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc am: 83e5591f21 am: 916db72512
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: Ide81a4dc6e555da25f9a12119d9ecd77b055f473
2021-06-03 01:02:30 +00:00
Weilun Du 916db72512 Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc am: 83e5591f21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: I09bf6aea8afc196ac7c624008853bb7187e12fbf
2021-06-03 00:42:16 +00:00
Weilun Du 83e5591f21 Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: I0b491f758466125349f0a589bc76cf0a995fbfef
2021-06-03 00:25:04 +00:00
Weilun Du 25cd1c50f8 Merge "Revert "Update preferences to Material Next styling"" into sc-dev am: 971d7fddcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805276

Change-Id: Ic84b3a609b9e760d88e97fca15e8c7bc4c8ae1a3
2021-06-03 00:24:54 +00:00
Weilun Du 971d7fddcc Merge "Revert "Update preferences to Material Next styling"" into sc-dev 2021-06-03 00:04:49 +00:00
Xin Li a37e1c945e Merge "Skip sc-mainline-prod translations." 2021-06-02 23:58:21 +00:00
Jon Spivack 1bd7ccd90b TaskOverlayFactoryGo: Keep persistent instance of AssistContentRequester
Holding a reference to AssistContentRequester prevents it from being deleted by the garbage collector while it is still in use.

Bug: 189985872
Test: Manual (Pixel 3A)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I204aab907175a171c496c3bd146a8b23d2bbcf16
2021-06-02 16:40:09 -07:00
zakcohen da08cb2639 RecentsView - reduce work in color tint animator
Don't allocate animators when there is no animation to do. The work was
not required.

Bug: 189492167
Test: Local build, run and trace analysis
Change-Id: I111768b055ed636aa92d5d9d6b799f316a568380
2021-06-02 15:46:46 -07:00
Weilun Du 19d623d921 Revert "Update preferences to Material Next styling"
Revert "Add dependency for settings activity collapsing toolbar"

Revert submission 14740617-collapse3

Reason for revert: Build breakage
Reverted Changes:
I5ef658979:Add dependency for settings activity collapsing to...
I0ca55eecb:Update preferences to Material Next styling

Bug: 189919452
Change-Id: I4aa0bfc473334266a951d84064b4e8e406fff0a4
2021-06-02 22:04:44 +00:00
Xin Li 4e8053f5d7 Skip sc-mainline-prod translations.
Bug: 189946434
Change-Id: I98febca7802db50c9001e7003db51666882539ab
2021-06-02 21:40:59 +00:00
TreeHugger Robot 19b47c7b07 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e am: dde88a739e am: 1eeb4c9586
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I6c5bd9da04c5efade33a839b783961c5bc007f6e
2021-06-02 21:15:48 +00:00
Pat Manning 6c2aca7a25 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5 am: 765b8dc7c2 am: 2d39dfa747
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I4861e78b87e21499d9bc27756a02befc99472a8b
2021-06-02 21:15:07 +00:00
vadimt 09f1d8f9b7 Postponing CUJ_QUICK_SWITCH and CUJ_APP_CLOSE_TO_HOME
Now starting at the first drawn frame.

Test: perfetto
Bug: 188645726
Change-Id: I035f225f5afe64cf6eafa9ba40cffffce0a9d8cc
2021-06-02 14:09:08 -07:00
TreeHugger Robot 1eeb4c9586 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e am: dde88a739e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I6f9f5b23bd07ef54de6f00273a3de03a8c1e327b
2021-06-02 20:59:47 +00:00
Pat Manning 2d39dfa747 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5 am: 765b8dc7c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: Ic13d8803b5a5a9ad7fd52edf431cb26db89338db
2021-06-02 20:59:42 +00:00
TreeHugger Robot b41c1ee1c2 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I933e2e77b266577ce2fcbddaf2c5f1813e6e664b
2021-06-02 20:39:56 +00:00
Pat Manning 8839849a54 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: Ic5e00180f93416ce9a83cb3ffeeea604d20f89a9
2021-06-02 20:39:52 +00:00
TreeHugger Robot dde88a739e Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I08dbfabda7b1c233a39618536d95acbeb53ccbcd
2021-06-02 20:39:50 +00:00
Pat Manning 765b8dc7c2 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I176a2014bbddf096b25130be4f5d9348c58c1b4c
2021-06-02 20:39:32 +00:00
TreeHugger Robot 8c46bba98e Merge "AssistContentRequester move binder call to background thread." into sc-dev 2021-06-02 20:31:53 +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
zakcohen 243fbd3e5d AssistContentRequester move binder call to background thread.
The call into system server is synchronous, so make the call off the main
thread to avoid jank.

Bug: 189251291
Test: Local with flag enabled
Change-Id: I1787a0ad68488755bf19e813ecfe9fc079cfaed8
2021-06-02 10:33:31 -07:00
Pat Manning 49cb49b1f5 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss)
Test: manual
Fix: 188618115
Bug: 188618115
Change-Id: I51d157e224eaeee34ed131e4945bb92d6baf18cd
2021-06-02 16:28:25 +00: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