Commit Graph

12217 Commits

Author SHA1 Message Date
Stevie Kideckel 1bea2c48bd Merge "Load widget preview images before adding the rows to the adapter" into sc-dev am: dd19a24769 am: 5b01623cf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14965044

Change-Id: Ibf97d3d7926b4c4516c206bfdf112f06c3740cb1
2021-06-18 23:02:51 +00:00
Jonathan Miranda 73aa247744 Merge "Fix bug where ripple extends out of bounds in pop up container." into sc-dev am: 576179199a am: 3ce7d1a97c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15019204

Change-Id: Ic48911e1660ec59ab186e8c23b3d49e2d07e3d97
2021-06-18 23:02:43 +00:00
Stevie Kideckel dd19a24769 Merge "Load widget preview images before adding the rows to the adapter" into sc-dev 2021-06-18 22:37:32 +00:00
Jonathan Miranda 576179199a Merge "Fix bug where ripple extends out of bounds in pop up container." into sc-dev 2021-06-18 22:27:45 +00:00
Brian Isganitis cc5516464f Load widgets in wallpaper app launcher preview am: c79d577f18 am: d960cc40d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15020113

Change-Id: Ia2586e10e8e51d48969a1a0df0ca97af13ac37e8
2021-06-18 22:27:10 +00:00
Jon Miranda f13ddbd333 Fix bug where ripple extends out of bounds in pop up container.
Bug: 186820908
Test: test apps with diff. pop up container arrangements
      test prefs in all apps

Change-Id: I4d3e26871416835ab2a851fcc6fe2c4f70235b62
2021-06-18 20:58:14 +00:00
Brian Isganitis c79d577f18 Load widgets in wallpaper app launcher preview
Test: Widgets in wallpaper app launcher preview rendered
Bug: 185306338
Change-Id: I38569d2ff0b64ba55eb188afa42fba4100aae7ff
2021-06-18 15:47:56 -04:00
Stevie Kideckel a093523299 Load widget preview images before adding the rows to the adapter
This allows for smooth animations as the items will have their full
height resolved

Bug: 190892517
Test: verified locally
Test: CachingWidgetPreviewLoaderTest
Change-Id: I86afc6951a4cc82ae45e63795791d259a3bb3cda
2021-06-18 19:18:29 +00:00
Samuel Fufa 32e9b09849 Merge "Allow AllApps to restore current selected tab on activity recreate" into sc-dev am: f44a9ca6f0 am: 8db962e88a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15014304

Change-Id: I8377b1cb71d9184201da1471a0df59e5222fe228
2021-06-18 18:27:18 +00:00
Samuel Fufa 485796e814 Merge "Allow AllApps to restore current selected tab on activity recreate" into sc-dev am: f44a9ca6f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15014304

Change-Id: Ifbedb11e2c42d66e04093f0ddc7dd983ab27c1b7
2021-06-18 18:12:59 +00:00
Samuel Fufa f44a9ca6f0 Merge "Allow AllApps to restore current selected tab on activity recreate" into sc-dev 2021-06-18 17:57:08 +00:00
TreeHugger Robot 18188fa72c Merge "Revert "Deduct padding from widget size only if padding has been inset"" into sc-dev am: 2af9d27116 am: 412630895b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15026671

Change-Id: Iec8c5821e179518ed6f8d9840af62dd9eb2fbe88
2021-06-18 11:31:53 +00:00
TreeHugger Robot d352253c2d Merge "Revert "Deduct padding from widget size only if padding has been inset"" into sc-dev am: 2af9d27116
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15026671

Change-Id: Ifd10e8688d2f5e3c67be615b03e8a403de26a02d
2021-06-18 11:21:07 +00:00
TreeHugger Robot 2af9d27116 Merge "Revert "Deduct padding from widget size only if padding has been inset"" into sc-dev 2021-06-18 11:11:20 +00:00
Steven Ng dfa03154ac Merge "Log widget dimensions before deleting a widget violating min size" into sc-dev am: 21780405ac am: cc10348e8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15015050

Change-Id: I158145f8d75b106ba7b673b621b8e5cfdd690905
2021-06-18 10:51:18 +00:00
Steven Ng 2c1fb29d26 Merge "Log widget dimensions before deleting a widget violating min size" into sc-dev am: 21780405ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15015050

Change-Id: I8e2b4160bef59aa17f131a384642975eb0bfbd2c
2021-06-18 10:38:35 +00:00
Steven Ng 21780405ac Merge "Log widget dimensions before deleting a widget violating min size" into sc-dev 2021-06-18 10:21:32 +00:00
Steven Ng 54b5424548 Revert "Deduct padding from widget size only if padding has been inset"
This reverts commit 71cefb593f.

Reason for revert: The default padding is added by the framework not the launcher. We really need to subtract padding from the size.

Bug: 190498032
Change-Id: If7f164da34aec3d8e022ef2c752b72292cca0489
2021-06-18 09:37:44 +00:00
Steven Ng 23222d529a Merge "Use relative bounds for app widget color extraction" into sc-dev am: be397e85e8 am: d50c07ea41
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15016211

Change-Id: Iec3ebc8ef2fae7a81ae41650e1a419b0bc75c848
2021-06-18 09:26:49 +00:00
Steven Ng cbec62d33c Merge "Use relative bounds for app widget color extraction" into sc-dev am: be397e85e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15016211

Change-Id: I0aad84636553bd80252613c7df269448b094727e
2021-06-18 09:17:53 +00:00
Steven Ng be397e85e8 Merge "Use relative bounds for app widget color extraction" into sc-dev 2021-06-18 09:01:25 +00:00
Steven Ng 058308098b Use relative bounds for app widget color extraction
Fix 2 bugs in this CL
1. Before this CL, getBoundsForViewInDragLayer returns absolute bounds
   for widgets. What we want is the bounds of a widget when it is
   visible in the drag layer. ViewGroupFocusHelper#viewToRect has
   taken PagedView into account. This makes it a prefect candidate to
   calculate relative bounds of a widget.
2. requestLayout at the end of endDrag is problematic due to the drop
   animation. If the drop animation is still in progress when onLayout
   is called, the bounds of the widget isn't final. Since the color of
   app widget right before is already the final color. We don't really
   need to update the color extraction.

Test: Set the wallpaper and clock widget according to the bug. Then,
      reboot the device. The clock widget color shown right after
      reboot is the expected color. Long pressing the widget doesn't
      cause a color change.
Fix: 191114337
Change-Id: I466c8102dba0e5b207b3768e0935472cbd523235
2021-06-17 23:25:57 +01:00
Samuel Fufa e79b469986 Allow AllApps to restore current selected tab on activity recreate
This CL also fixes:

- Wrong tab selection on RTL
- Fixes header protection hydraulic scroll issue
- Work toggle button text background contrast

Bug: 186005219
Bug: 191250799
Bug: 191227662
Bug: 191349226
Test: Manual
Change-Id: I3777474c954ed0d542ac38ff552367904be147d3
2021-06-17 16:59:56 -05:00
Steven Ng b50d747d20 Log widget dimensions before deleting a widget violating min size
Test: N/A
Bug: 191223844
Change-Id: Id909ee19be1a1c7d70a09643422d9ed62a2d82a9
2021-06-17 21:13:17 +01:00
Samuel Fufa 51ebd238ef Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev am: efa5df380c am: 4f597a42ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002979

Change-Id: Ic5d41653f4d176ab3847a30093d3e7db382c41ad
2021-06-17 19:02:33 +00:00
Samuel Fufa ab4fb243b7 Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev am: efa5df380c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002979

Change-Id: I71867324537972713cb4660a70f20a4d06b5a012
2021-06-17 18:50:23 +00:00
Samuel Fufa efa5df380c Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev 2021-06-17 18:48:49 +00:00
Stevie Kideckel 4ea67c79d1 Merge "Refresh widgets in the model when packages change" into sc-dev am: 10d4edade1 am: f12eca67b2 am: 9810f61bd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15012535

Change-Id: I22d3f094ec467321e3a24effb04cca5f82fbadf0
2021-06-17 15:46:13 +00:00
Stevie Kideckel f12eca67b2 Merge "Refresh widgets in the model when packages change" into sc-dev am: 10d4edade1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15012535

Change-Id: I5167f8507164897fb4df07c98c8b49fdd5c41152
2021-06-17 15:19:11 +00:00
Stevie Kideckel 10d4edade1 Merge "Refresh widgets in the model when packages change" into sc-dev 2021-06-17 15:04:01 +00:00
Stevie Kideckel 69af278f8a Refresh widgets in the model when packages change
Fix: 191163748
Test: local sample app
Change-Id: Ic09ad11cabf6efa471fb6e685cb255c4a17493ee
2021-06-17 13:08:53 +00:00
Steven Ng 7fcd91b313 Merge "Deduct padding from widget size only if padding has been inset" into sc-dev am: 6ce6922c14 am: 8b8de4ccab am: 767f756eee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002454

Change-Id: I089eeceee3a198ae08d59c82f9162107d77d8e89
2021-06-17 11:51:03 +00:00
Steven Ng 8b8de4ccab Merge "Deduct padding from widget size only if padding has been inset" into sc-dev am: 6ce6922c14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002454

Change-Id: Ia896edc6e95a0c61f228159e9e45d164cb3b97a5
2021-06-17 11:12:59 +00:00
Steven Ng 6ce6922c14 Merge "Deduct padding from widget size only if padding has been inset" into sc-dev 2021-06-17 11:00:33 +00:00
Yogisha Dixit fcd94bfc5e Merge "Center drop target icons in landscape mode." into sc-dev am: 3287dd9fa7 am: d417d36615 am: b75ab0890a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980961

Change-Id: Idb48fdd39fa66d7a7813bcd61477cb0de10399cc
2021-06-17 10:12:41 +00:00
Yogisha Dixit d417d36615 Merge "Center drop target icons in landscape mode." into sc-dev am: 3287dd9fa7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980961

Change-Id: Id3f175c250acc0a40b9662c20c28c73c9fd35c13
2021-06-17 09:45:50 +00:00
Steven Ng 898dd8f0ee Merge "Modify AT_LEAST_S check to include SDK int" into sc-dev am: 1184a03b08 am: b33e38242f am: e2ae682815
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002455

Change-Id: I0514d4d22c528945b71f27028ddf2fb331e4efca
2021-06-17 09:45:45 +00:00
Steven Ng 76af6b7a60 Merge "Fix PendingWidgetHostView overlapping UI" into sc-dev am: e8772c1659 am: 595c7ced57 am: 920614b41b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980850

Change-Id: I1b30ac9f1f6eaca607ec8028c4b8153812105a63
2021-06-17 09:45:04 +00:00
Yogisha Dixit 3287dd9fa7 Merge "Center drop target icons in landscape mode." into sc-dev 2021-06-17 09:34:42 +00:00
Steven Ng b33e38242f Merge "Modify AT_LEAST_S check to include SDK int" into sc-dev am: 1184a03b08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002455

Change-Id: I9a2ed9eb320f6b8ce469d1c4fca96fb8218953fd
2021-06-17 09:19:45 +00:00
Steven Ng 595c7ced57 Merge "Fix PendingWidgetHostView overlapping UI" into sc-dev am: e8772c1659
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980850

Change-Id: I462b605d109dcb9799bbf76f1c5adee0d283eccf
2021-06-17 09:19:40 +00:00
Steven Ng 1184a03b08 Merge "Modify AT_LEAST_S check to include SDK int" into sc-dev 2021-06-17 09:09:21 +00:00
Steven Ng e8772c1659 Merge "Fix PendingWidgetHostView overlapping UI" into sc-dev 2021-06-17 09:08:15 +00:00
TreeHugger Robot 1f8c7e2d0b Merge "Fixes duplicate logging for LAUNCHER_ALLAPPS_KEYBOARD_CLOSED events." into sc-dev am: ea95f88361 am: 1789b00e50 am: c0d6c45fce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14986815

Change-Id: I254be29ccfaa563b2b27681a415634f69c6ce192
2021-06-17 06:46:54 +00:00
TreeHugger Robot 1789b00e50 Merge "Fixes duplicate logging for LAUNCHER_ALLAPPS_KEYBOARD_CLOSED events." into sc-dev am: ea95f88361
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14986815

Change-Id: Ib480d52bb674ecf341aecd70ed3d13d52940d510
2021-06-17 06:19:36 +00:00
TreeHugger Robot ea95f88361 Merge "Fixes duplicate logging for LAUNCHER_ALLAPPS_KEYBOARD_CLOSED events." into sc-dev 2021-06-17 06:08:09 +00:00
TreeHugger Robot 1e0535bdcc Merge "Add logging for tapped on 'Turn on/off work apps' button in all apps" into sc-dev am: 4f257655bd am: 6e89620c79 am: d155e46c79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14989654

Change-Id: I3a068d92ace13e29ba85c442eadd4104064e5da8
2021-06-17 06:06:06 +00:00
TreeHugger Robot 6e89620c79 Merge "Add logging for tapped on 'Turn on/off work apps' button in all apps" into sc-dev am: 4f257655bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14989654

Change-Id: I5a2d2b0e81ffc7545640808aac19d468fd16a1db
2021-06-17 05:41:03 +00:00
TreeHugger Robot 4f257655bd Merge "Add logging for tapped on 'Turn on/off work apps' button in all apps" into sc-dev 2021-06-17 05:25:49 +00:00
Sunny Goyal a3dffd57aa Merge "Fixing widget not laid-out properly in preview" into sc-v2-dev am: f3fa2da436 am: fcfc284d29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15003922

Change-Id: I89b92788d8dcf86931d932e15927c0dcd4fe990f
2021-06-17 02:16:53 +00:00