This commit rewrites PositionalReorder to PositionalList, and changes the implementation to be state based. This should improve maintainability and pave way for this component to be used by other items.
Tapping the upper edge of the All Apps bottom sheet goes to NORMAL
without FLAG_CLOSE_POPUPS, so folders opened from the drawer stayed
visible on the workspace.
Co-authored-by: Cursor <cursoragent@cursor.com>
Depth blur could leave RenderEffect on workspace/hotseat when SurfaceControl apply returned early, then setDepth(0) skipped re-apply. Always sync view blur with depth and force re-apply when settling to NORMAL; also clear leftover effects on folder dismiss.
blurWorkspaceDepthTargets can run on API 30; setRenderEffect and
createBlurEffect require API 31 and would throw on R.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Tab switches call resetSearch -> hideKeyboard, which requested focus on appsView and landed back on the focused-by-default search field.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit aims to improve the loading performance of `AppDrawerFoldersPreference` and `SelectAppsForDrawerFolder` via the following changes:
- Use a new data class `FolderEntry` to not rely unnecessarily on Launcher3's heavy models
- Remove unnecessary state duplication
- Simplify state management for the details screen: actually use the nav argument on the destination screen rather than managing a state variable in the viewmodel.
- Simplify the CRUD system of the viewmodel and DAO to improve maintainability and performance
- Simplify `SelectAppsForDrawerFolder` to use callbacks and delegate on the viewmodel when possible
Expressive folder animations ignored folderColor and always used the theme charcoal background. Resolve preview/open colors from prefs in both animation paths, and return after applying a custom color.
Reveal the first-page preview before showing the folder icon again, instead of sliding page previews for ~400ms after close.
Address CodeRabbit nit: the field was never populated after dropping the post-close slide animation.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Pick light or dark selected-tab text from background luminance so
custom tab colors stay readable without a separate text-color setting.
Co-authored-by: Cursor <cursoragent@cursor.com>
User badges are redundant when the Work tab or Private Space section
already establishes the profile context. Keep badges on home and search.
Guard skipUserBadge with hasSearchResults() so work/private badges
remain visible when search results are shown.
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the double status-bar inset and leftover AOSP header padding so
search, personal/work tabs, and the app grid sit at even gaps. Also
collapse reserved space when the drawer search bar is hidden.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: Apply icon packs to work/private profile apps
Resolve components via ActivityInfo/LauncherApps instead of
getLaunchIntentForPackage, and harden icon customization for
non-current users. Also restore work badges when themed icons are off.
Fixes#5202Fixes#4988
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor: Cache getActivityList result in SelectIconPreference
Avoid a redundant LauncherApps IPC when resolving work/private app labels.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit updates the UX of AppGesturePreference to launch LawnchairShortcutActivity instead of a dynamic expanding UI. This should improve consistency when configuring gesture-specific options.