This commit reimplements support for app predictions without root.
---------
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
Co-authored-by: TheSuperDragon <70206496+SuperDragonXD@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit improves the app drawer search state system to do the following things to match Pixel Launcher:
* Activate zero state only if these conditions are met:
- The drawer search bar is tapped
- The dock search bar is tapped, and matchHotseatQsbStyle is on or AppSearch is the current provider
- The query is cleared
* Improves the search bar animation state to only remove the background and padding when the search bar has focus or has query
* Fixes the search bar end icon animation on tap
* Adds a back state handler in LawnchairLauncher so when back button is pressed, it exits search instead of exiting the app drawer, matching the intention of shouldBackExitSearch.
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>
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>
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>
When the workspace/hotseat grid changes, the migration re-flowed every item
from the top-left and shrank widgets to their min span. This keeps the user's
layout intact:
- Items are deferred to their original screen instead of being packed onto the
earliest screens.
- Each item stays at its original cell and size when it still fits in the new
grid and the spot is free.
- Only items that no longer fit fall back to automatic placement.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* feat: Show clone profile app on allapps
Change-Id: 6a37d0c8b05c9e9fe912401e
Change-Summary: Show cloned app in launcher
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* chore: Add Lawnchair comment to AOSP file
Change-Id: 6a37d0c8b05c9e9fe912401e
Change-Summary: Show cloned app in launcher
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* chore: Apply suggestions
Change-Id: 6a37d0c8b05c9e9fe912401e
Change-Summary: Show cloned app in launcher
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
---------
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
Adds user-configurable spacing controls (similar to Nova Launcher):
- Workspace padding: horizontal & vertical sliders (Home screen > Layout).
Horizontal factor is applied to the source margin so cells fill the
freed space; vertical factor preserves the dock reservation so the last
row never overlaps the hotseat.
- Widget padding: slider (Home screen > Widgets), 0% removes the forced
padding, up to 200%.
- App drawer top padding slider (App drawer > Grid).
- Widget resize: respect the overridden resize mode so force/unlimited
resize shows handles even for widgets whose provider limits resizing.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* fix: Reimplement and only handle touch target on configured app
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* feat: Promote to stable
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* fix: Prevent app icons from conflicting with edit mode state
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* fix: Address reviewer
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* refactor: Make icon swipe settings enable by mandatory default
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
---------
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>