Commit Graph
87505 Commits
Author SHA1 Message Date
Andy Wickham adb3bf5a8d Notify StateManager of workspace reveal animations.
This way any subsequent state changes during the animation will
cancel it. Previously swiping up to All Apps immediately after
going home would cause the 2 depth animations to interleave,
ending with a depth of 0, for example. Now the workspace depth is
cancelled and the All Apps depth is correctly applied.

Demo: https://drive.google.com/file/d/1R1BwYAsxj31FDgAeIZqZdJbuSz7s9PZy/view?usp=sharing&resourcekey=0-4UyZfAMxecSHWAyqyeNZmg

Fix: 405836159
Test: Manual (swipe home and immediately to all apps)
Flag: EXEMPT bugfix
Change-Id: Iac32f2a03a5cbbb297c71ebd9cfedc8ee6e8cae7
2025-03-24 11:07:28 +00:00
Treehugger Robot 69461b2d75 Merge "Add "change aspect ratio" to Recents/Overview" into main 2025-03-24 01:04:31 -07:00
Robin Lee 116eafb95c Add "change aspect ratio" to Recents/Overview
This shows up if the launcher is in a sw600dp-or-greater configuration.

Test: AspectRatioSystemShortcutTests
Test: OverviewMenuImageTest
Test: Manual check on phone, tablet, and inner/outer fold screens.
Flag: com.android.window.flags.universal_resizable_by_default
Bug: 357141415
Change-Id: I1bcbf9299d28ce68cccd636d92ed7195d64736eb
2025-03-24 06:56:05 +01:00
Wei Sheng Shih 7e4fa0f833 Merge "Revert^2 "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"" into main 2025-03-23 21:51:51 -07:00
Android Build Coastguard Worker ccfaf03ebd Snap for 13259233 from 88b2f23a83 to 25Q3-release
Change-Id: I6b847470f96fb335d53c229e161c64f3609b7b14
2025-03-23 17:03:16 -07:00
Lawnchair BotandCrowdin Bot 2ad8bad382 New Crowdin translations by GitHub Action (#5359)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-23 03:57:10 +03:30
Treehugger Robot 88b2f23a83 Merge changes from topic "ttt-refactor" into main
* changes:
  Migrate to TopTaskTracker.getPlaceholderGroupedTaskInfo
  Introduce TopTaskTracker.getPlaceholderGroupedTaskInfo
2025-03-22 08:35:44 -07:00
Treehugger Robot ee872972dc Merge "Adding support for custom layouts in Preview" into main 2025-03-22 02:42:04 -07:00
Zongle Wang 06d6be2f7e Get rid of Java toolchain (#5357) 2025-03-22 07:53:51 +00:00
Treehugger Robot 43b4273e91 Merge "[Memory Leak] Avoid spamming DragLayer's run queue" into main 2025-03-21 22:54:24 -07:00
minch 13e1445773 Migrate to TopTaskTracker.getPlaceholderGroupedTaskInfo
Migrate all the call sites of `TopTaskTracker.getPlaceholderTasks`
and `getSplitPlaceholderTask`s to the new API
`getPlaceholderGroupedTaskInfo`

Bug: 401582344
Flag: EXEMPT refactor
Test: m
Change-Id: I0d71508f4dd9633fea025ed842c4c048d0e70462
2025-03-22 05:23:06 +00:00
minch fba9726258 Introduce TopTaskTracker.getPlaceholderGroupedTaskInfo
This CL just introduces an API inside TopTaskTracker to return
a GroupedTaskInfo, no existing logic being migrated to it yet.

It will be used to replace `getPlaceholderTasks` and
`getSplitPlaceholderTasks` in the follow-up cls.

Bug: 401582344
Flag: EXEMPT, introduce a new API without usage
Test: m
Change-Id: Ic12003833605582d191c4abfd4a0878c266dd30f
2025-03-22 05:22:05 +00:00
Treehugger Robot 0eb0360146 Merge "Fix Pinning Animation" into main 2025-03-21 19:48:28 -07:00
Sukesh Ram 54f23ff654 Fix Pinning Animation
Fix Pinning Animation.

Flag: EXEMPT not adding new behavior
Bug: 405469510
Test: m
Change-Id: Iabc580031495f39902cb4d718ab12a7362c07d13
2025-03-21 17:18:45 -07:00
Shamali P 4ec89fbc63 Add ViewStubs for DWB layouts to avoid duplicate views in refactor
This CL just moves existing code to use view stubs. The refactor CLs
will use the flag to conditionally inflate these views.

Bug: 405359346
Fix: 405359346
Flag: EXEMPT refactor
Test: Existing screenshot tests and manual demo
Change-Id: Ib023d5f3538a0959a5965704a4ff18d769f8aa94
2025-03-21 16:26:07 -07:00
Shamali Patwa 1065e89e6e Update font weights for the text in widget list header's selected states
Bug: 398765355
Flag: EXEMPT a11y bug
Test: Screenshot test
Change-Id: Idf20650b8cca70af8d9025197452d457f5dc66ae
2025-03-21 15:33:10 -07:00
Fengjiang Li 8c7805b67a [Memory Leak] Avoid spamming DragLayer's run queue
Avoid adding duplicated ViewTreeObserver#addOnDrawListener from DepthController

Fix: 405158421
Flag: NONE - released code
Test: manual - presubmit
Change-Id: Ib59c130667c5c0a012de3205d11c8de1d6de3903
2025-03-21 13:40:17 -07:00
Charlie Anderson ca9a920fa9 Make sure loading icons from db for archived apps only happens once after restore.
- This is to enable users to theme and shape archived apps

Bug: 402303619
Flag: com.android.launcher3.restore_archived_app_icons_from_db
Test: performing restore and toggling themed icons on/off
Change-Id: I5883f703c3b0c8df5ee303ea4d99b0c02743faa4
2025-03-21 13:29:14 -07:00
Treehugger Robot 500698152c Merge "Hide scroll arrows from Alt+Tab UI" into main 2025-03-21 11:41:55 -07:00
Saumya Prakash cfe62a68d2 Merge "Ensure back button shows up in Simple View for SUW" into main 2025-03-21 10:41:59 -07:00
Liran Binyamin 6fb96f4fac Merge "Remove flaky test from BubbleBarViewAnimatorTest" into main 2025-03-21 10:40:14 -07:00
Sunny Goyal 31b4d2bd32 Adding support for custom layouts in Preview
Also fixing folder items not getting loaded when using sandbox

Bug: 381897614
Test: Verified manually
Flag: com.android.launcher3.extendible_theme_manager
Change-Id: I57232dcb4112c9e4d9dd08f02fc1b720a5adb0e2
2025-03-21 10:32:38 -07:00
Saumya Prakash 91a081f26c Merge "Shift to using SUW System property flag for expressive theme" into main 2025-03-21 09:10:33 -07:00
Sebastián Franco f33242b9e6 Merge "Return correct QSB bottom padding when QSB is inline" into main 2025-03-21 09:09:09 -07:00
Sebastián Franco 49f7acf7a4 Merge "Swap hotseat padding when LTR and in Fixed Landscape" into main 2025-03-21 09:09:09 -07:00
Liran Binyamin 386212e7aa Remove flaky test from BubbleBarViewAnimatorTest
This test is flaky in robolectric but does not repro locally.
Looking at the test it verifies that the animation doesn't get
canceled immediately after it starts. So the scenario here is an
edge case for something that shouldn't happen generally because
the animation is controlled in this class, although theoretically
other classes could obtain a reference to the physics animator and
cancel it directly. But since the test flakes badly, we're better
off without it until it can be fixed.

Bug: 404773413
Flag: EXEMPT test only
Test: atest BubbleBarViewAnimatorTest
Change-Id: I24493b71842a2fe859ffe40b6f375ade7ee8535d
2025-03-21 07:00:53 -07:00
Alex Chau df6dc455a7 Merge changes from topic "revert_task_content_view" into main
* changes:
  Revert "Add TaskContentView parent to TaskThumbnailViewHeader and TTV"
  Revert "Remove redundant FrameLayout from task_header_view.xml"
2025-03-21 04:14:36 -07:00
Wei Sheng Shih 1354a8e084 Revert^2 "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"
This would create another SurfaceControl object through IPC, which is
unnecessary because the animation should run through
BackAnimationRunner.

Flag: com.android.window.flags.remove_depart_target_from_motion
Bug: 395035430
Test: execute back-to-home transition several times, verify no
predict_back animation leash left in offscreen layer.

Change-Id: Ib54380411438fc7169a37740bf09d7d83344f916
2025-03-21 07:43:20 +00:00
Treehugger Robot cb724aeb2b Merge changes I0ad8d5c2,I04815313 into main
* changes:
  Do not defer All Apps updates with async inflation.
  Add logs for the app binding flow.
2025-03-20 23:14:03 -07:00
Bill Yi 5e6577f830 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ied884cebd90cb664df4b5f3f334205042e1a4b84
2025-03-21 05:55:13 +00:00
Bill Yi ce919b4cda Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8f0b708b27ae14e4f8f7fd8e1b3be445d1409e61
2025-03-21 05:54:09 +00:00
Andy Wickham c966dd4ef6 Do not defer All Apps updates with async inflation.
With enableWorkspaceInflation, onCompleteSignal can be executed
minutes after the initial bind, leaving All Apps in a stale empty
state. And the async approach removes the need for this deferred
rendering anyway.

Bug: 393406722
Test: Wipe, add personal account in SUW, add work account.
Flag: EXEMPT bugfix
Change-Id: I0ad8d5c26f4b982403aead5cbd190482fcc42dfe
2025-03-21 03:56:41 +00:00
renovate[bot]andGoooler 5bdc808664 Licensee 1.13.0 (#5356)
* chore(deps): update plugin app.cash.licensee to v1.13.0

* Enable bundleAndroidAsset

https://github.com/cashapp/licensee/releases/tag/1.13.0

* Use type-safe SpdxId

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Goooler <wangzongler@gmail.com>
2025-03-21 09:53:07 +08:00
renovate[bot] 19ba6493ce fix(deps): update dependency com.airbnb.android:lottie to v6.6.4 (#5351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 09:19:17 +08:00
Treehugger Robot eb39bf2543 Merge "Fixes folder changing size when going from ClipIconView to FolderIcon on closing app to folder" into main 2025-03-20 17:19:47 -07:00
Treehugger Robot a75e779ee8 Merge "[CD Taskbar] Bypass binder calls for TaskbarManager#getDefaultDisplayId()" into main 2025-03-20 16:25:34 -07:00
Treehugger Robot fe15021226 Merge "Fix back button not reacting to accessibility actions (2)" into main 2025-03-20 15:43:52 -07:00
Yasan Ghaffarian 16747b5bda Fallback to the default version of LiveInformation on decode failure 2025-03-20 23:13:43 +01:00
Yasan Ghaffarian d912b54254 Remove LiveInformation.default 2025-03-20 23:11:11 +01:00
Anoni 9bcd9595da Fixing a Bug in Which Lawnchair crashes due to features value not set. Fix #5337 (#5347)
* Fixing a Bug in Which Lawnchair crashes due to features value not set.

Bug Description
Error:
hf.c: Field 'features' is required for type [...] but it was missing from Issues #5337
Cause:
The LiveInformation class expects a non-null features field during deserialization, but the incoming data (e.g., from cached preferences or an API response) lacks this field. This crashes the app when parsing older data formats or incomplete responses.

Fix
Root Issue:
Kotlinx Serialization requires fields marked as non-optional (no default value) to be present in the input data. The features and announcements fields were missing defaults, causing deserialization failures.

Solution:
Add default values to the LiveInformation data class to ensure backward compatibility with legacy data:


@Serializable
data class LiveInformation(
    private val version: Int = 2,
    val announcements: List<Announcement> = emptyList(), // Default empty list
    val features: Map<String, String?> = emptyMap(),     // Default empty map
) {
    companion object {
        val default = LiveInformation() // Simplified
    }
}

* Fomat Fix and old way of initializing object
2025-03-20 23:09:17 +01:00
Charlie Anderson 5290d4895a Fixes folder changing size when going from ClipIconView to FolderIcon on closing app to folder
Bug: 398080005
Test: manually closing apps to folder
Flag: EXEMPT bug fix
Change-Id: Ie0b087b71483833c2152d8a3c39b73a05fa3dd35
2025-03-20 17:56:11 -04:00
Sebastian Franco 82385f0b6a Return correct QSB bottom padding when QSB is inline
Bug: 403273334
Test: HomeScreenImageTests
Flag: com.android.launcher3.one_grid_specs
Change-Id: I42433f72313668f1c620b18e7a82d385269c13d0
2025-03-20 14:30:21 -07:00
Li Lin ce62f1d47a Merge "Add action performers for Growth Framework." into main 2025-03-20 14:13:14 -07:00
Sukesh Ram 602874bb51 [CD Taskbar] Bypass binder calls for TaskbarManager#getDefaultDisplayId()
Calls to TaskbarManager#getDefaultDisplay() were making binder calls each time, which caused a crash in cases where binder is blocked. Now, I cache the default displayId avoid these calls.

Flag: EXEMPT not adding new behavior
Bug: 400606685
Test: m
Change-Id: I4a0c0d0c99efb137119b2299d3259541379a6bb6
2025-03-20 13:57:35 -07:00
Jagrut Desai bda2a6fb10 Merge "Fix 3-button nav diplacement on lockscreen" into main 2025-03-20 13:49:54 -07:00
Mykola Podolian c12d67c4e0 Merge "Drag and drop from the search view on the overview screen." into main 2025-03-20 13:40:29 -07:00
Treehugger Robot 0d58891187 Merge "Reset IconAppChipView drawables when TaskContainer is destroyed" into main 2025-03-20 13:34:27 -07:00
Randy Pfohl ccab1b83e8 Merge "Small refactor to displayDecor listeners" into main 2025-03-20 13:31:08 -07:00
Treehugger Robot 00310cd372 Merge "Get top task per display from TopTaskTracker" into main 2025-03-20 12:19:06 -07:00
Saumya Prakash 850ee61de6 Ensure back button shows up in Simple View for SUW
This change adds support for the dynamic changing of navigation modes in
SUW such that the back button will be visible in both states. Previously
there was no way to switch navigation modes during Setup Wizard, before the
introduction of Simple View. The buttons were not being drawn correctly
(or at all).

Fix: 381016997
Fix: 381363853
Test: Rerun SUW, enable simple view and ensure that the back buttons
works in both orientations and that the SUW buttons are unaffected
Flag: EXEMPT bugfix

Change-Id: Ifbdf0c9cd06f1347e6c2c9a943711cefbf6bff2c
2025-03-20 19:17:32 +00:00