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>
This commit migrates the dock and drawer QSB to use Jetpack Compose. This should open up greater customization possibilities, and also simplify implementation of certain features.
* 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>
* fix: Font not updated to expressive variant
Change-Id: 6a36a1d751f327b639ae825d
Change-Summary: Font has not been updated to expressive variant in Launcher3
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* fix: Add this file to version control
Change-Id: 6a36a1d751f327b639ae825d
Change-Summary: Font has not been updated to expressive variant in Launcher3
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* chore: Apply suggestions
Change-Id: 6a36a1d751f327b639ae825d
Change-Summary: Font has not been updated to expressive variant in Launcher3
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
---------
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
Remove the automatic white background that gets added behind icons with
transparent areas, exposed via a Settings toggle. Relabels the existing
preference and ungates it from the themed-icons state.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.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(wallpaper): downsample carousel thumbnails and scope image loads to the view
The carousel decoded full-resolution wallpapers (often several MB each)
into small thumbnails, which can cause OutOfMemory with many/large
wallpapers. Decode with inSampleSize based on the thumbnail width, and
run the image-loading coroutines on a view-scoped CoroutineScope that is
cancelled in onDetachedFromWindow instead of leaking a new
CoroutineScope per image.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* refactor: extract bitmap downsampling to LawnchairUtils
Address review feedback: the inSampleSize calculation was duplicated by
the new carousel code and SearchTargetFactory.FilesTarget. Move it into
LawnchairUtils as calculateInSampleSize() plus a decodeSampledBitmapFromFile()
helper, and reuse it from both call sites.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(wallpaper): read view dimensions on the main thread before decoding
decodeSampledWallpaper accessed View properties (height, layoutParams)
from inside withContext(Dispatchers.IO). Capture the requested width and
height on the main thread in loadWallpaperImage and pass them in, so no
View property is read off the main thread.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>