Commit Graph
20805 Commits
Author SHA1 Message Date
TMCandClaude Fable 5.2 4e48615b5a Show an app's latest notification under its name in the drawer list
PRD AD-11, the last buildable row of M4.

- FlexeraNotificationPreview keeps the text of the notifications that currently show a
  dot, fed by Launcher3's NotificationListener on its worker thread, and sets a second,
  smaller and dimmer line on a drawer row whenever the row's dot state is applied.
- It uses what the dots already use: the same notification access and the same filter
  for which notifications count. Without notification access nothing changes.
- PopupDataProvider now refreshes an app's icons on every posted notification, so a
  notification updated in place brings its new text to the row.
- Only rows of the drawer list take the second line (marked with a view tag); search
  result icons share the "all apps" display type but stay as they were.
- New setting under Settings > App drawer: Notification previews, on by default.

Checked on the Android 17 emulator (debug build): a test SMS showed under Messages,
a second one replaced it while the drawer was open, removing the notification put the
plain name back, and the setting switches the line off and on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 00:05:08 +01:00
TMCandClaude Fable 5.2 c9744a1994 Add scrub from home, fix the work profile layout, and let swipe up and hold work with three buttons
Scrub from home (PRD AD-10)
- New setting, off by default: a vertical slide along the alphabet's edge of the home
  screen opens the drawer and scrubs it in the same touch (FlexeraEdgeScrubController).
  It claims a touch only once it has clearly moved up or down, and never during an item
  drag. Nothing is drawn on the home screen.

Work profile (PRD AD-14)
- The Personal and Work tabs and the work info card were one icon wide, because their
  width came from grid maths that assumes several columns. In the one-column list they
  now line up with the search bar.
- The info card's own scroller section no longer shows up as a letter in the alphabet.

Navigation modes (PRD SI-2, AD-17)
- With three-button navigation, the controller that carries swipe up and hold stood aside
  completely, so a hold did nothing there. It now takes the ordinary swipe up from the
  home screen in that mode too.

Wave alphabet
- The list darkens under the wave where the letters cross icons and names: always from
  the left edge, and from the right edge in proportion to how far the wave reaches in.

Release script
- -BuildOnly builds and checks the APK without publishing, so a version can be tried
  first and then published with -SkipBuild.

Checked on the Android 17 emulator (debug build): work tabs at full width, scrub from the
home screen's edge, the search field keeping its background while typing. The
three-button change and the right-edge darkening were written after that build and are
not yet checked.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 23:10:16 +01:00
TMCandClaude Fable 5.2 9f66d06f4d Add the wave alphabet, swipe up and hold, and the transparent fading drawer
PRD M3 (AD-4 to AD-6, AD-17), plus three look changes the owner asked for.

Wave alphabet
- WaveAlphabetView (flexera/src): a strip of letters on the drawer's end edge showing only
  letters that have apps. Touching it jumps the list to that letter with a haptic tick; the
  letters near the finger bulge away from the edge and reach further the further in the
  finger moves; the selected letter is enlarged.
- The strip reserves the edge from the system back gesture and tells the drawer not to
  drag closed under a scrub.
- Launcher3's scroll bar is hidden by default and no longer takes touches while hidden.

Swipe up and hold
- NoButtonNavbarToOverviewTouchController reuses its motion-pause detector on an ordinary
  swipe up from the home screen: a pause finishes opening the drawer and hands the same
  touch to the alphabet. Swipes that start on the navigation bar keep their stock meaning.

Look
- The drawer fades in over the home screen instead of sliding up from the bottom.
- No background panel or drag handle (drawer opacity default 0); the wallpaper keeps
  Lawnchair's blur and scrim.
- App names, letter headers and alphabet letters are white with a soft shadow.

Tested on the Android 17 emulator: quick swipe opens the drawer, edge scrub jumps the
list, swipe up and hold opens the drawer and scrubs from mid-screen, Back closes it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 22:12:40 +01:00
TMCandClaude Fable 5.2 76c3603693 Turn the app drawer into a one-column list with letter headers
PRD M2 (AD-1 to AD-3, AD-7, AD-8, HS-7). The drawer keeps Launcher3's adapter, sorting,
live updates, click, long-press menu and drag; only what differs from the grid is new.

- FlexeraDrawer (flexera/src): column count, row styling, and a letter-header adapter item
- flexera/res/layout/all_apps_icon.xml overrides Launcher3's grid cell with a horizontal
  row (46dp icon, name beside it, 64dp tall)
- AlphabeticalAppsList adds a header item at the start of each letter group and points
  the fast-scroll section at it; Private Space keeps its own framing
- BaseAllAppsAdapter creates and binds the header view type and styles rows
- DeviceProfileOverrides forces one drawer column
- DeviceProfile.getAllAppsIconStartMargin returns the row padding for a one-column
  drawer, which keeps the search bar full width
- Suggested apps row above the list is off by default

Tested on the Android 17 emulator: scrolling, tap to launch, long-press menu, drag to the
home screen, and live removal and return of an app all work. The right-edge fast
scroller did not respond to scripted drags and still needs a hand test.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 21:25:41 +01:00
caizhixingandcaizhixing c1d296813e fix: NPE in Workspace.onDropExternal when the dropped view fails to attach to the workspace (#7524)
Co-authored-by: caizhixing <caizhixing@users.noreply.github.com>
2026-11-11 14:58:30 +08:00
B Vishal ChandrakanthandCopilot ce82ac1248 feat: add tilt to swipe pages for home screen rearrangement and fix app drawer gap (#7500)
* feat and fix : Add Tilt to swipe pages setting

Replace the multi-level Motion controls with a single Home screen toggle named “Tilt to swipe pages,” positioned below Infinite scrolling. Update the description to explain that tilting the phone moves between pages while rearranging apps or widgets, and make the pan controller use the toggle directly while retaining the existing preference key for compatibility. Fix for "[BUG] Large empty gap between app drawer search bar and app grid when app suggestions are disabled
 #7490"

* EDITS : Coderabbit suggested edits for PR #7500

* Coderabbit suggested changes (2) #7500

* Update gradle-daemon-jvm.properties

* Remove unrelated Gradle toolchain changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add docstrings for pan-to-move and all apps header changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add a tilt sensitivity control

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-09 20:59:50 +08:00
caizhixingandcaizhixing 0614d0b48a fix : NPE in Workspace.onDrop when the dropped cell is detached from the workspace (#7457)
Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-11-09 16:58:58 +07:00
caizhixingandcaizhixing bf784dc6fb fix: survive a missing restriction bypass native library (#7484)
* fix: don't crash at startup when the restriction bypass lib is missing

Unseal.unseal() loads ChickenHook's libnrb.so. Repackaged APKs and
multi-open containers can fail to load it, in which case the call throws
UnsatisfiedLinkError (an Error) that catch (Exception) does not handle. This
runs from Application.onCreate(), so the process crash-loops forever.

Catch Exception | LinkageError. A failed unseal only disables the hidden API
exemption for that launch; other Errors (OOM, etc.) still propagate.

* fix: don't crash reading allowEnterPip when the restriction bypass is broken

getAllowEnterPip() uses RestrictionBypass below SDK 35. If the native bypass
library failed to load, the bypass class is permanently broken and any further
access throws LinkageError (ExceptionInInitializerError on the first touch,
NoClassDefFoundError afterwards), which catch (ReflectiveOperationException)
does not handle.

Return false (PIP not allowed) instead of crashing the transition.

---------

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-11-06 15:19:43 +08:00
caizhixingandcaizhixing 2b719d5134 fix(notification): NPE when the listener disconnects before connecting (#7483)
mSettingsCache is only assigned in onListenerConnected(), but
onListenerDisconnected() unregisters from it unconditionally. The framework
calls onListenerDisconnected() from NotificationListenerService.onDestroy(),
so a service that is destroyed before it ever connects dereferences null and
kills the process.

Guard the unregister; the connected path is unchanged.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-11-06 14:11:10 +08:00
caizhixingandcaizhixing fcbf433f39 fix(folder): crash when opening a folder with an empty preview (#7482)
getAnimationData() read itemsInPreview[0] to derive the base icon size. The
preview list can be empty when the folder has no bound child views yet, which
made opening the folder crash with an IndexOutOfBoundsException.

Fall back to the device profile icon size when the list is empty; the normal
path is unchanged.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-11-06 14:05:10 +08:00
x-JOC f83fbb0226 fix(widgets): let the resize frame reach the screen edge horizontally (#7387)
* fix(widgets): let the resize frame reach the screen edge horizontally

The resize frame is drawn resize_frame_background_padding (24dp) outside
the widget, but the horizontal drag range clamped the frame's outer edge
to the DragLayer. When the grid sits close to the screen edge (low
workspace/widget padding, many columns) the last column could not be
reached.

When the frame already overhung the screen edge (gap + widget padding
< 24dp, which is the default), the old range did not contain 0 (left
start positive, right end negative), so the first move event snapped the
frame up to 24dp inward on either side. With half-cell resize steps that
would be enough to drop a step.

Bound the widget's edge instead of the frame's, and keep 0 inside the
range so a touch without movement never moves the frame. The vertical
range is unchanged.

* fix(widgets): count the last partial resize step when the finger hits the edge

The finger cannot travel past the screen edge, and the handle can be
grabbed up to 24dp outside the widget. With little workspace/widget
padding, the travel left for the last column can then be shorter than
RESIZE_THRESHOLD of a step.

While a left/right handle is dragged and the finger is within
resize_frame_background_padding of that screen edge, a partial step of
more than 1 - RESIZE_THRESHOLD towards the edge counts as reached. That
threshold keeps the step from being undone right after it is taken, and
it only applies in the growth direction.

* refactor(widgets): shorten resize frame LC-Notes

Comment-only change: trim the edge-clamp LC-Notes in AppWidgetResizeFrame to one or two lines. No behaviour change.
2026-11-02 15:25:39 +08:00
Jaxon WrightandClaude Opus 5.5 5a9f6e05ba fix(backup): restore into the database that gets opened (#7460)
createDatabaseHelper renamed restored.db to the IDP's dbFile but opened
the dbFile it was passed, from the DB_FILE pref. The Nova import writes
grid prefs before restoring, and hotseatColumns' reloadGrid listener can
move the IDP to an intermediate grid (e.g. launcher_6_4_5.db) first. The
restored layout then landed in a file that was never opened, the opened
file was created empty, performRestore sanitized nothing, and the next
start reset the "empty" database to the default layout. A second import
worked because the prefs no longer changed.

Rename into the file that is opened instead.

migrateDbName moves launcher.db to dbName when dbName doesn't exist yet.
With the restore now renamed into dbFile, a dbFile of launcher.db (the
5_by_5 grid) would be moved away and deleted before DatabaseHelper opens
it. Migrate first, then rename.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 15:22:05 +08:00
caizhixingandcaizhixing 8429fbe09d fix: Crash in SettingsCache.onChange for unreadable hidden keys (#7452)
SettingsCache observes hidden Settings keys — e.g.
hide_privatespace_entry_point, which ModelInitializer registers a
listener for. Since Android S, hidden settings keys are only readable
by system apps; a query from a third-party app throws
SecurityException.

3962597e6e fixed this for the read path by catching SecurityException
in getValue(), but the ContentObserver path was missed: when the system
writes such a key, onChange() calls updateValue() on the main-thread
handler and the launcher crashes.

Skip the cache update instead, mirroring the existing guard in
getValue().

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-30 21:45:11 +07:00
steven c154f993c8 [Fix]: Stop platform from overriding Lawnchair's own dark theme (#7267) 2026-10-30 14:43:23 +00:00
caizhixingandcaizhixing f00bff4f50 Catch SecurityException thrown from setWallpaperOffsets (#7454)
On some OEM builds (e.g. Huawei EMUI on API <= 28), WallpaperManager
.setWallpaperOffsets() internally fetches the current wallpaper bitmap,
and WallpaperManagerService enforces READ_EXTERNAL_STORAGE on that
binder call. When the permission is not granted the call throws
SecurityException, which escaped setOffsetSafely() and fatally crashed
the launcher on every workspace page swipe.

Skip and log the offset update on affected devices instead; wallpaper
parallax simply stops updating there.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-30 21:40:10 +07:00
caizhixingandcaizhixing d714016ffc fix: Crash in multi-window on API 26-29 (#7453)
getMultiWindowDisplaySize() calls WindowManager.getCurrentWindowMetrics(),
added in API 30, without a version check. Lawnchair runs down to
minSdk 26, so building the multi-window device profile
(Launcher#initDeviceProfile and the fallback RecentsActivity) throws
NoSuchMethodError on Android 8-10 devices in split-screen.

Derive the bounds from the default display size below R.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-30 21:37:05 +07:00
caizhixingandcaizhixing c5c5a42ca4 fix: crash when dismissing a task with haptics on API 26-29 (#7451)
VibratorWrapper.vibrate(primitiveId, ...) calls
Vibrator.areAllPrimitivesSupported() and builds a
VibrationEffect.Composition, both added in API 30, without a version
check. Lawnchair runs down to minSdk 26, so dismissing a task in
Recents — TaskViewTouchControllerDeprecated passes PRIMITIVE_TICK, a
non-negative id — throws NoSuchMethodError and crashes the launcher
on Android 8-10 devices.

Fall back to the plain fallback effect below R, mirroring the existing
ATLEAST_S guard in vibrateForTaskbarUnstash() and the ATLEAST_Q branch
that already builds EFFECT_CLICK.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-30 01:33:33 +08:00
caizhixingandcaizhixing 1d68a13644 fix: Fall back to the default mask when config_icon_mask is unparsable (#7424)
config_icon_mask is a framework resource that ROM overlays can replace.
When its value is not valid path data (seen in the wild with a line break
inside a coordinate), PathParser throws during Launcher onCreate and the
launcher enters a crash loop. Parse the mask defensively and fall back
to the platform default mask, mirroring the existing guard around
GenericPathShape in the same file.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-27 23:50:02 +07:00
Pun Butrach e53dcc5c42 fix: (DON'T MAKE) Folder reset scrim during allapps 2026-10-26 01:54:08 +07:00
Pun Butrach 9f1ed85224 fix: Adapt BaseDepthControllerImpl and folder spring animation properties 2026-10-26 00:49:09 +07:00
Tracy Zhou 2efdc9b814 Introduce PathWrapper that also tracks bounds and radii
So that we can use the bounds to set on BackgroundBlurDrawable

Bug: 445467156
Test: manual in the next CL
Flag: EXEMPT BUGFIX
Change-Id: I002d9dfd1d1aabc90c5cd6097772103575d91de9
2026-10-26 00:15:03 +07:00
Charlie Anderson c754a217b9 Fix folder view sticking during close anim when transitioning launcher page and/or state
Bug: 470662985
Test: manual
Flag: EXEMPT BUGFIX
Change-Id: I7a4841ad49cbc0339f6905869a1bb092e7f0c094
2026-10-26 00:12:20 +07:00
Charlie Anderson d66ece9a9c Fix folder clip reveal for multiple different issues
- Folder pages should not swipe out of bounds while opening
- Folder pages should be revealed if swiped in bounds while opening
- Closing the folder should not clip the preview icons

Bug: 458072199
Test: opening/closing/swiping a large folder
Flag: com.android.launcher3.enable_expressive_folder_expansion
Change-Id: I3773a9c79ec0e5efc24c0ac185a516353f955cec
2026-10-26 00:11:05 +07:00
Charlie Anderson 43940b201a Fix clip reveal so that folder doesn't scroll out of bounds while opening
Bug: 449923444
Flag: com.android.launcher3.enable_expressive_folder_expansion
Test: open folder and immediately swipe to next page

Change-Id: Iafa46f3748fdf0c1982b5de6df539b8c8609204f
2026-10-26 00:10:08 +07:00
Charlie Anderson 50cab79984 Fix folder animation workspace scaling to not conflict with other animations.
Bug: 456164513
Test: manual - close app and quickly open folder
Flag: com.android.launcher3.enable_expressive_folder_expansion

Change-Id: I47886b034402549176f99618699ae90bd0356086
2026-10-26 00:10:00 +07:00
Charlie Anderson e9c655dbf6 Add functionality to DepthController to control wallpaper zoom indepedently of blur
Also add wallpaper zoom to folder motion

Bug: b/387543793
Flag: com.android.launcher3.enable_expressive_folder_expansion
Test: manually and DepthControllerTest
Change-Id: I94142806ffb6dfb93d363017ef4d13b3a5e74681
2026-10-26 00:08:46 +07:00
Charlie Anderson 0d40f78616 Reset scrim and launcher workspace properties if folder is closed without animation
Bug: 452119282
Flag: com.android.launcher3.enable_expressive_folder_expansion
Test: use longpress on folder item and tap remove shortcut

Change-Id: Ia6e60189a74d731ed7a23ab74c144a228118a1d9
2026-10-26 00:03:41 +07:00
Charlie Anderson ea06691a37 Convert BubbleTextView Alpha to use spring animation
Flag: com.android.launcher3.enable_expressive_folder_expansion
Bug: 387543793
Test: Manually verifying


Change-Id: Ibadedb1fef2542a4b8373ab3a4557c10c8752a77
2026-10-26 00:00:31 +07:00
caizhixingandcaizhixing 687153c642 fix: crash when dragging a folder on API 26-27 (#7428)
Bitmap.createBitmap(Picture) was only added in API 28, but Lawnchair
runs down to minSdk 26. Creating a folder drag preview on Android 8.x
therefore throws NoSuchMethodError and crashes the launcher.

Reuse the existing BitmapRenderer fallback on versions below P to
rasterize the recorded foreground Picture into a software bitmap.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-23 15:52:44 +07:00
Pun Butrach eba9492be1 Revert "feat(home): live glass blur behind icons, folders and widgets (#7393)" (#7419)
This reverts commit d9afe890a3.
2026-10-21 22:19:44 +07:00
x-JOCandClaude Opus 5.5 6c2c2c22ef fix(workspace): rework infinite scrolling without wrap state (#7413)
Infinite scrolling kept a wrap state (target page, saved scroll bounds,
a cached feed flag) that every path out of a swipe had to tear down.
Paths that missed it caused the bugs: a short or backward swipe on the
last page wrapped anyway, the first page flashed when a layout pass
reset the bounds mid-wrap, touching during a wrap jumped to the target,
two-panel layouts got stuck between pages, and the page indicator lost
its active dot.

The wrap now follows from the scroll position alone: on an end that
wraps, the scroll may run one screen further, and the screen from the
other end is translated into that gap. Workspace decides which ends
wrap; other paged views behave as in AOSP.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 19:41:57 +08:00
R05P0 d9afe890a3 feat(home): live glass blur behind icons, folders and widgets (#7393)
* feat(home): live glass blur behind icons, folders and widgets

Add an optional "Glass blur" setting that blurs the wallpaper behind home
screen icons, folder icons, open folders and widgets, like CSS
backdrop-filter. SurfaceFlinger renders the blur through blur regions
(a copy of the framework BackgroundBlurDrawable), so it stays live and
follows the items during page scrolls and animations.

SurfaceFlinger ignores all the blur of an app layer once there are more
than 10 blur requests on screen (kMaxBlurRequests, b/399120953), unless
the layer was created by a privileged process. With root, the regions go
to an effect layer created by the root helper and placed below the
launcher window content. Without root, they go to the window layer and
are subject to that limit.

Also fix RootHelperManager, unused until now: it reported root as not
available until a root shell had been created, and bound the root
service off the main thread.

* fix(home): redraw when a glass blur region is removed

Without a frame the pre-draw listener never sends the regions left, so a
removed blur, the last one in particular, could stay on screen until the
next redraw.
2026-10-21 19:34:15 +08:00
x-JOCandClaude 59b60098b2 fix(grid): apply the icon size setting on responsive grids (#7407)
Home screen > Icon size (homeIconSizeFactor) had no effect on responsive
grids such as "practical": DeviceProfileOverrides scales the IDP's
iconSize, but responsive grids take their icon size from their cell
specs (mResponsiveWorkspaceCellSpec.getIconSize()) and never read
inv.iconSize.

getResponsiveIconSizePx() now applies the factor to the cell specs' icon
size, for the workspace, the hotseat and folder content, the same three
places the IDP-sized grids use inv.iconSize. The responsive code still
shrinks an icon that doesn't fit its cell (getIconSmallerThan). The icon
bitmap size already followed the factor, as the IDP computes it from the
scaled iconSize.

Visible change: on responsive grids the setting now works; at 100% (the
default) nothing changes.


(cherry picked from commit 6345b71df7dbd77be6c4da03ddcc76ebcadd2e90)

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 17:10:33 +08:00
x-JOCandClaude 5c1979227e fix(fold): keep the device type stable across folds (#7402)
* fix(display): keep the device type stable across folds

LawnchairWindowManagerProxy estimated the supported bounds only from
DisplayManager#getDisplays, which reports the panel in use. On a foldable
the DisplayController cache then held a single state, so every fold and
unfold invalidated it ("Unexpected normalizedDisplayInfo found"), the
device type flipped between PHONE (folded) and MULTI_DISPLAY (unfolded,
through the hinge check), and CHANGE_SUPPORTED_BOUNDS reloaded the grid
and the model. The smaller dock of the phone profile also made the
loader delete the dock items past its size.

On devices with FEATURE_SENSOR_HINGE_ANGLE, the estimate now also holds
the other states of the internal display:
- WindowManager#getPossibleMaximumWindowMetrics, like
  SystemWindowManagerProxy, when the system answers (it only does for the
  recents provider) and the current state is one of its states.
- Otherwise each state of the default display seen on the device is
  remembered. A state with the same aspect ratio replaces an older one,
  so a resolution change leaves no stale bounds.

The extra states are built the way DisplayController.Info builds the key
it looks up (getDisplayInfo(context).normalize(), no-cutout default), so
the lookup finds them and folding no longer changes the supported
bounds. Once both panels are known they hold a phone and a tablet size,
and the device type is MULTI_DISPLAY in both states, across restarts too.
A hinge device never seen unfolded still reports PHONE: flip phones also
have the hinge sensor, so it can't be assumed.

The states are kept in their own device-protected file,
lc_display_states, not in boot_aware_prefs: DisplayController can run
before unlock, the values must not be backed up or restored on another
device, and the write happens while DisplayController is being
constructed. AOSP's taskbar-pinning listener on boot_aware_prefs calls
getInfo() for every change, which is still null at that point, so a write
to that file crashed the launcher when it started on the other screen
than last time.

The hinge check now lives in one place, LawnchairWindowManagerProxy
.isFoldable(), which DisplayController.Info uses as well.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 14e6051ac83cba92cb371eec1c408966cb41ba9d)

* chore(display): log the device type once per info

getDeviceType() is called many times for each display change (once per
DeviceProfile and more), and logged its result every time. Log it once
per DisplayController.Info, that is once per display change, with the
current size, so the device type of each state can be read in logcat.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 9fa57ec7e3d678c3e19d6ce1309ae11b893e18fc)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-21 17:09:10 +08:00
x-JOCandClaude Opus 5.5 20b34479c2 fix(fold): keep dock icons that don't fit the cover dock instead of deleting them (#7403)
* fix(fold): keep dock items past the hotseat size instead of deleting them

LoaderCursor#checkItemPlacement rejects hotseat items whose rank is not
below InvariantDeviceProfile#numDatabaseHotseatIcons, and checkAndAddItem
then marks them deleted like overlapping items, so they are removed from
the database. That size can shrink only for a while: on a foldable the
folded (phone) profile has a smaller hotseat than the unfolded one, and
folding once deleted the dock icons at ranks 4 and 5 for good.

Skip such items for binding but keep them in the database, so they show
up again once the hotseat is large enough. Why this is safe:
- Overlapping items (in bounds) are still deleted as before.
- Nothing can be placed at a rank past the current hotseat size, so a
  kept item can't collide with a new one while it is hidden. If it ever
  does, the regular overlap check deletes it when it comes back.
- Grid migrations are unchanged and run before the loader.
- Only top-level hotseat items are bound, so the contents of a kept
  folder stay unbound with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d556864ee08d0e2494f21a5fc3a9f00676f1269a)

* fix(migration): skip dock entries past the hotseat size (pre-existing crash)

Both solveHotseatPlacement versions (GridSizeMigrationDBController and
GridSizeMigrationLogic) mark the target's remaining dock items in an
array sized to the new dock: occupied[entry.screenId] = true. When the
target grid's database was last used with a larger dock, an entry's
rank can be past that size, and moving back to that grid with anything
to add to the dock throws ArrayIndexOutOfBoundsException. The Kotlin
path then aborts the migration; the Java path resets the target
database.

Such an entry takes no slot in the new dock, so it is skipped when
marking. Nothing else changes: the placement loop and every other entry
are as before.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit f9bdf9e9eebd710a11281c066c5293b76d71d18c)

* fix(migration): also skip negative dock ranks in the hotseat guard

A corrupt database could hold a negative hotseat rank, which would still
index outside the array. Such an entry takes no slot either.

Suggested in review by CodeRabbit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 17:07:28 +08:00
x-JOCandClaude Opus 5.5 99d015f121 fix(folder): keep the folder settings' defaults from the grid option (#7406)
InvariantDeviceProfile.initGrid took closestProfile's folder arrays as
they were, and DeviceProfileOverrides then wrote the folder settings
into them. The folder sliders take their default from closestProfile
(numFolderRows/numFolderColumns[INDEX_DEFAULT]), so the default they
compared against was the value currently applied, not the grid
option's. Setting the value that was already current, e.g. releasing
the slider thumb without moving it, removed the key and the folder grid
fell back to the grid option's on that reload.

Copy the arrays instead. Nothing else reads closestProfile's folder
arrays: the profiles read the IDP's own arrays, and every initGrid
parses fresh grid options.


(cherry picked from commit 198724e42446611b204d0700e6630a82d0c10502)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 17:06:00 +08:00
x-JOCandClaude Opus 5.5 ccdd15951a fix(drawer): two-line app labels in every language (#7410)
The "Use multiple lines" setting of the app drawer shows in every
language, but AOSP only honoured it in English, so it did nothing for
other languages. Labels break at spaces, or between words in camel case
names, which works for other scripts too.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 01:04:54 +07:00
Joseph Petersen 85335d904a fix(dock): remove unused label space when labels are hidden (#7364)
* fix(dock): remove unused label space when labels are hidden

* test(dock): remove tests and setup per review
2026-10-14 00:50:16 +08:00
zamyatinmn 43a21b43d7 fix: keyboard closing when clearing app search (#7353) 2026-10-02 09:12:03 +08:00
John Andrew Camu 494399a699 fix: address intermittent unresponsive drawer search and stale results (#7347)
- closes #7325

* chore: apply suggestions
2026-09-27 10:57:33 +08:00
Pun Butrach 6889441e64 fix(QuickSwitch): Restrict Task/navbar unification to V QPR2+ (#7336) 2026-09-24 20:18:47 +07:00
Pun Butrach 09e0cb129c fix: Hastily init of SharedPreference (CE type) on Prefs1 system (#7334) 2026-09-24 17:59:07 +07:00
Pun Butrach d2d1775131 fix(QuickSwitch): Transition behaviour compat for 16.0 (#7282) 2026-09-13 20:04:50 +07:00
Pun Butrach 6d084bfa43 feat: Reimplement placing widget on hotseat (#7272) 2026-09-10 10:41:05 +00:00
wellorbetter c92a59b0ae fix: infinite scroll wrap animation direction (#6653)
This commit fixes the infinite scroll wrap animation so it scrolls one page in the correct swipe direction instead of animating through all intermediate pages.
2026-08-27 11:05:19 +00:00
Pun Butrach a3384005f4 fix: Legacy shortcut does not show source target app (#7197) 2026-08-23 22:32:55 +07:00
Pun Butrach 44950791f3 fix: Inconsistent L3 theming around work pfp and widget selector (#7185) 2026-08-20 14:13:08 +00:00
Pun Butrach b60b925c65 fix: Compatibility layer for config night mode check for API <30 (#7183) 2026-08-20 13:24:42 +00:00
Pun Butrach eed2baf4ef fix: Show themed icon and notification dot for prediction row (#7177) 2026-08-18 16:03:09 +00:00
Pun Butrach ddc49b529c fix: Widget colouring compatibility with Android 13 (#7174) 2026-08-18 13:13:43 +00:00