Commit Graph

16518 Commits

Author SHA1 Message Date
Sunny Goyal 6c8d57d8b5 Merge "Fixing icon cache thrashing due to an unsupported icon" into udc-dev 2023-06-01 01:31:26 +00:00
Vadim Tryshev 5fe61d4ff7 Merge "Fixing a flake when workspace loading never finishes." into udc-dev 2023-06-01 00:50:25 +00:00
Sunny Goyal 41737b3e8b Fixing icon cache thrashing due to an unsupported icon
Bug: 284032965
Test: Verified by reproducing the use case
Flag: N/A
Change-Id: I835dd545a01eb2fd7990e0fd5ad51bac0e4b1f33
2023-05-31 23:21:13 +00:00
Schneider Victor-tulias 2b06cbc748 Merge "Fix flaky null pointer in LauncherWidgetHolder" into udc-dev 2023-05-31 22:07:57 +00:00
Jagrut Desai e208e02aba Merge "Fixing Toast Hiding behind Taskbar - Part 2" into udc-dev 2023-05-31 20:45:37 +00:00
vadimt 9c102e5634 Fixing a flake when workspace loading never finishes.
The flake was caused by the fact that addOnDrawListener(), the redraw is not guaranteed. This ultimately results to the workspace loading never finishing.
Forcing the redraw.

Bug: 267200150
Test: atest Launcher3Tests:com.android.launcher3.celllayout.ReorderWidgets#simpleReorder --rerun-until-failure
Flag: N/A
Change-Id: I47683425150a07ab2632e2bebdeca4d304e30d1b
2023-05-31 10:59:25 -07:00
Jagrut Desai 84e959a72a Fixing Toast Hiding behind Taskbar - Part 2
Test: Visual, Manual
Bug: 282964229
Flag: not needed
Change-Id: If2373d8f0bc44a555844c78d20877e9636a7e176
2023-05-31 10:41:16 -07:00
Nick Chameyev 0bb67d4c2c Merge "[Unfold animation] Disable preemptive launcher animation" into udc-dev 2023-05-31 10:03:03 +00:00
TreeHugger Robot f7d08912fa Merge "Add LAUNCHER_APP_LAUNCH_PENDING_INTENT where an app is launched through pending intent." into udc-dev 2023-05-31 06:13:38 +00:00
TreeHugger Robot 7dabd57f2d Merge "Possibly fix the widget restoration bug" into udc-dev 2023-05-31 01:32:53 +00:00
Anushree Ganjam cfbbf8510c Add LAUNCHER_APP_LAUNCH_PENDING_INTENT where an app is launched through
pending intent.

Bug: Bug: 282236269
Test: Manual
Flag: NA
Change-Id: I6fb15a77f32ce5914f9632f5fb77f340acd3cfda
Merged-In: I6fb15a77f32ce5914f9632f5fb77f340acd3cfda
2023-05-30 23:47:22 +00:00
Treehugger Robot 6c3c6b3ae6 Merge "Fix widget picker crash" into udc-dev 2023-05-30 22:53:34 +00:00
Sihua Ma 48465319f6 Possibly fix the widget restoration bug
The update will always be considered as failed because we always return 0 for all the commits.

Test: N/A
Bug: 234700507
Change-Id: I33ee8af996cef62dbc14349f9a7dd3cb72836ab6
2023-05-30 15:12:00 -07:00
Treehugger Robot 3b7f4eb675 Merge "Fix invalid outline after widget resizing" into udc-dev 2023-05-30 22:06:10 +00:00
Fengjiang Li a640098439 Merge "Clip folder chidren during folder open/close animation" into udc-dev 2023-05-30 20:10:48 +00:00
Sihua Ma 734da5c1eb Fix invalid outline after widget resizing
Fix: 283778989
Test: Manual
Change-Id: I8821658a1db333159684562ba79f30fd92291fad
2023-05-30 13:03:08 -07:00
fbaron bbab64e00c Fix widget picker crash
It looks like if shouldClearVisibleEntries() evaluates to true and we clear mVisibleEntries, we get an Inconsistency IndexOutOfBounds error, the same as the one reported in the crash.

Bug: 276766307
Test: Verify that with these changes the widgets still update correctly when changing languages
Change-Id: I9f92e61d967aab2c8297cfc2fb4b04193df67650
2023-05-30 18:46:55 +00:00
TreeHugger Robot 78b6e76486 Merge "Add logs to see if launcher model isn't loaded when work profile app is added" into udc-dev 2023-05-30 17:26:53 +00:00
Nick Chameyev 0873afd7fa [Unfold animation] Disable preemptive launcher animation
Disables preemptive unfold animation by default.

Bug: 281821523
Test: unfold on launcher
Change-Id: I767f25cf0414a91c82a33cf86ca16db2e4dcfa22
2023-05-30 18:10:08 +01:00
Vinit Nayak 2c353f29a2 Add logs to see if launcher model isn't loaded when work profile app is added
* Add helper method to avoid checking sDebugTracing when
logging for tests

Bug: 243688989
Flag: None
Change-Id: Id6cc3b286171eb598e593c5a8aaea6f2466aad60
2023-05-26 15:45:42 -07:00
Schneider Victor-tulias fb2affac5f Fix flaky null pointer in LauncherWidgetHolder
- LauncherWidgetHolder.startListening is called before Launcher.setupView, so it's possible for getWorkspace() to be called as part of the appWidgetRemovedCallback. Reordered these calls to fix this null pointer

Flag: not needed
Fixes: 283850341
Test: Screenshot tests
Change-Id: Ied1f23647721fc4199eab2a5a79def1e306b00f3
2023-05-26 15:09:41 -07:00
Vadim Tryshev 8cf338148b Merge "Adding tracing for workspace loading that never finishes" into udc-dev 2023-05-25 17:17:50 +00:00
Alex Chau 4f1602796a Merge "Add additional logs when DisplayController detects unexpected bounds" into udc-dev 2023-05-25 12:30:50 +00:00
Brandon Dayauon fe3d513650 Merge "Update work tab colors and fab background color" into udc-dev 2023-05-25 03:07:59 +00:00
vadimt 80bb8a12da Adding tracing for workspace loading that never finishes
Test: presubmit
Bug: 267200150
Flag: N/A
Change-Id: I6cfe6be101412e9d8d9498fc06c70d1d14561441
2023-05-24 10:25:15 -07:00
Brandon Dayauon adcc16cf56 Update work tab colors and fab background color
Spec: https://screenshot.googleplex.com/6mKVuFNNNQfXpbD

bug: 283120562
test:
manually Launcher3 build var:
worktab lt: https://screenshot.googleplex.com/B8v44jm77o5Jyc7
widgetpicker tab lt: https://screenshot.googleplex.com/48WjAB8fKpZSEQ7
sharesheet tab lt: https://screenshot.googleplex.com/9rfSBeNALXbG7NL
worktab dt: https://screenshot.googleplex.com/332jCxde9vDW7hd
widgetpicker tab dt: https://screenshot.googleplex.com/3PGtrvQ2jLhQD4k
sharesheet tab dt: https://screenshot.googleplex.com/3jr4GPzRc3rzMA6

NexusLauncher:
worktab lt: https://screenshot.googleplex.com/BH2SFMXfQ4dtBeh
sharesheet lt: https://screenshot.googleplex.com/5axg34QgTt87iSL
widget picker tab lt: https://screenshot.googleplex.com/928kWFJ5mTun9py
worktab dt: https://screenshot.googleplex.com/7KWKLH4kt6nJpXT
sharesheet dt: https://screenshot.googleplex.com/778UoyhYrhimSAz
widgetpicker tab dt: https://screenshot.googleplex.com/FFFxBLqsATNXj8v

Change-Id: I78f20b2863a04d23e8a8880fc1d6a3ac0cfeb82a
2023-05-24 09:10:03 -07:00
Alex Chau ff2a8382fc Add additional logs when DisplayController detects unexpected bounds
Bug: 283944974
Test: manual
Change-Id: I8f50c79e00be0a4be812634678e9e05a80343a07
Merged-In: I8f50c79e00be0a4be812634678e9e05a80343a07
2023-05-24 15:24:03 +00:00
Treehugger Robot b430b1355a Merge "Add additional logs for widget restoration" into udc-dev 2023-05-23 23:02:08 +00:00
Fengjiang Li a72c216829 Clip folder chidren during folder open/close animation
Test: close folder and verify app icons are not clipped
Fix: 283527491
Change-Id: Ia2aed207d07fc210cd04f05fd2e319f393209396
2023-05-23 15:15:31 -07:00
Sihua Ma 59077254cd Add additional logs for widget restoration
Test: N/A
Bug: 234700507
Change-Id: I693d6f5f239502c1bea191806c8c0ea18141f8f9
2023-05-23 10:44:09 -07:00
Anushree Ganjam a2de64b8e7 Merge "Add AGA_SESSION_SUMMARY_LOG for session summary log debugging." into udc-dev 2023-05-22 19:53:19 +00:00
Anushree Ganjam 0f54a897bb Add AGA_SESSION_SUMMARY_LOG for session summary log debugging.
adb shell setprop log.tag.AGASessionSummaryLog V

Bug: 283829335
Test: Manual
Flag: NA
Change-Id: I90da76f1db1a103e49171bbc7499cd79606d3fcf
2023-05-22 19:48:43 +00:00
Stefan Andonian 6597d5ec3c Merge "Fix NPE in FolderPagedView" into udc-dev 2023-05-19 20:45:31 +00:00
Treehugger Robot 7b01dbd811 Merge "Add seam space for performReorder in MultipageCellLayout" into udc-dev 2023-05-18 23:20:40 +00:00
Fengjiang Li 0d07a85299 Merge "Fix NPE of FolderPagedView#setFocusOnFirstChild" into udc-dev 2023-05-18 22:42:47 +00:00
Sebastian Franco 96c46e7fba Add seam space for performReorder in MultipageCellLayout
In the other method createAreaForResize we add 1 to the cellX
to account for the seam in the Multipace CellLayout but we don't
account for that on performReorder and we need to add a cellWidth

Also, some methods are not running when the seam is added so their
result are wrong. Now all methods are being accounted for.

Fix: 277709417
Test: atest ReorderAlgorithm
Test: atest MulticellReorderAlgorithm
Change-Id: I7a4ca55f7b9cd7cf94481c880fe152e0a3bb3cf3
2023-05-18 14:47:47 -07:00
Federico Baron 3eba77ca4b Merge "Update colors for popup menus" into udc-dev 2023-05-18 21:03:19 +00:00
Stefan Andonian 324b6e0ff5 Fix NPE in FolderPagedView
Bug: 282945356
Test: Compilation worked properly.
Change-Id: Ice59274ec0979550388c5d8a8f17f6e912d7ccb3
2023-05-17 20:22:12 +00:00
Thales Lima d282d5956e Merge "Calculate sizes for responsive grid" into udc-dev 2023-05-17 14:12:50 +00:00
Thales Lima c98b7815c6 Calculate sizes for responsive grid
This shouldn't change anything in the grids, only calculate the sizes of the grid.

Bug: 277064708
Test: CalculatedWorkspaceSpecTest
Test: WorkspaceSpecsTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: Id1f90ef44f5b869113d063bad17589e7e88d1d20
2023-05-17 10:33:36 +00:00
Himanshu Gupta 8ef1845c3d Revert "Do not display clone apps in launcher work tab."
This reverts commit 45ef9b6c01.

Reason for revert: As promised, sysUi changes introduced in Launcher for AppCloning are being reverted. (This is the only CL that was merged)

Change-Id: I9fc72c333d48ca51558578d0d79038b49b3ebb5b
Test: Manual by building sysUi
2023-05-16 23:43:22 +01:00
fbaron 1a76d5c72d Update colors for popup menus
Bug: 268521231
Test: Verify that popup menu colors match the figma attached in the bug
Change-Id: I24025576a789775dfcf17694d16c0d5f6ee844fd
2023-05-16 15:07:30 -07:00
Fengjiang Li 106d91d04c Merge changes I1136ede4,I5f0877fe into udc-dev
* changes:
  [Folder] Fix bug where folder name and page indicator is visible when cancelling folder open animation
  Fix bug where quickly ending folder animation with back swipe caused icons not clipped to folder
2023-05-16 21:20:09 +00:00
Charlie Anderson afb447ee0d Merge "Adding a new Edit Mode LauncherState" into udc-dev 2023-05-16 18:42:34 +00:00
Stefan Andonian 7158f9c427 Merge "Fix NPE in LauncherPreviewRenderer." into udc-dev 2023-05-16 18:33:43 +00:00
Vinit Nayak a6e7a4b574 Merge "Don't throw exception for SafeCloseable objects" into udc-dev 2023-05-16 17:52:54 +00:00
Fengjiang Li 533275683b [Folder] Fix bug where folder name and page indicator is visible when cancelling folder open animation
We should resgiter all AnimatorListeners before starting folder open animation.

Fix: 282158620
Test: https://b.corp.google.com/issues/282822254#comment2
Change-Id: I1136ede464f37c174296921594ef887d90844eb5
2023-05-16 10:51:51 -07:00
Fengjiang Li c80d0221be Fix bug where quickly ending folder animation with back swipe caused icons not clipped to folder
1. Fix a race condition that the new animation is reading stale UI state which should have been reset in previous animation.
2. Don't set clipChildren=true on folder page view during open folder animation

Fix: 282158620
Test: open folder and quickly back swipe, verify app icons are still clipped
Change-Id: I5f0877fe4157533563df922ba50a6ad540c9ba6e
2023-05-16 10:51:31 -07:00
Hyunyoung Song deec0f628b Merge "Revert "[Toast] Enable background drawables by default in Teamfood."" into udc-dev 2023-05-16 06:41:20 +00:00
Fengjiang Li 47d72ffccb Fix NPE of FolderPagedView#setFocusOnFirstChild
Test: open and close folder with swipe back quickly
Fix: 282814528
Change-Id: I163c2f9d54b48684738f8104be8c085f26b52ceb
2023-05-15 21:52:19 -07:00