At the user's request, a folder on the home screen or in the dock opens
over the whole screen instead of as a floating panel. Settings, Folders,
"Full screen folders", on by default; switched off, folders float as
before. Folders in the app list are unchanged.
- No panel. The home screen behind is darkened and blurred as behind the
app drawer: black at 78% (FlexeraDrawer.BACKDROP_COLOR) and the largest
blur radius, which the drawer's depth comes to.
- The apps sit at the bottom of the screen, centred, just above the
navigation bar, with white labels and the folder's name below them,
wherever the folder's icon is.
- They are laid out like the home screen's icons: its column count,
filled row by row (FolderGridOrganizer.createFullScreenFolderGridOrganizer),
in cells the size of the home screen's cells as a page lays them out
(larger than the device profile's cell size, which the page stretches),
so that the columns line up with the home screen's. A row is never lower
than one app with its label needs. The folder icon's preview keeps the
folder grid.
While a full-screen folder is open, state changes leave the scrim alone
(WorkspaceStateTransitionAnimation.setScrim), so that dragging an app
inside the folder no longer lightens its backdrop; the folder hands the
scrim back as it closes. The depth controller's folder blur now carries
its own strength (FolderBlur.strength); quick launch scales its blur by
FolderBlur.STRENGTH itself and looks as before. While full-screen folders
are on, Settings hides the panel's opacity and the folder column count,
which do not apply to them.
Checked on the emulator (Android 17, 4-column test grid): open, tap an
app, tap outside, Back, rename with the keyboard (the folder lifts above
it), reorder inside the folder (the backdrop holds), drag an app out to
the home screen, the setting off and on again (the floating folder comes
back with its panel, 3 columns and dark labels), and columns and rows
259 and 243 px apart, as on the home screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
- 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
Bug: 449923444
Flag: com.android.launcher3.enable_expressive_folder_expansion
Test: open folder and immediately swipe to next page
Change-Id: Iafa46f3748fdf0c1982b5de6df539b8c8609204f
Bug: 456164513
Test: manual - close app and quickly open folder
Flag: com.android.launcher3.enable_expressive_folder_expansion
Change-Id: I47886b034402549176f99618699ae90bd0356086
Bug: 452119282
Flag: com.android.launcher3.enable_expressive_folder_expansion
Test: use longpress on folder item and tap remove shortcut
Change-Id: Ia6e60189a74d731ed7a23ab74c144a228118a1d9
* 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.
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>
Ensure scrim alpha/color and workspace/hotseat scale are reset when a folder is dismissed without running the close animation (e.g. launching an app). Adds restoreLauncherAfterFolderDismissed() and calls it during folder close to restore the ScrimView alpha/colors and set SCALE_PROPERTY to 1 on the workspace and hotseat. Also imports SCALE_PROPERTY and ScrimView.
Revert submission 33672643-DataDeviceProfile1
Reason for revert: Droidmonitor created revert due to b/419867875. Will be verifying through ABTD before submission.
Fix: 419867875
Reverted changes: /q/submissionid:33672643-DataDeviceProfile1
Change-Id: Icb66aefbbcee24e05806b2139923e1f2ea1c65e3
Instead of the dispatcher specifying the type, the UI checks th diff. This
ensures that the UI is updated correctly in all paths
Bug: 390572144
Flag: EXEMPT refactor
Test: Manually verified folder edit path where these callbacks were getting dispatched
Change-Id: Ib73eed5da87a847753a78453a48ab4fc495c1199
Bug: 394355070
Test: Verified locally that indicator dots are not cut off with 6 pages.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I1804cc7b8de032415cb8fe557a0e98a8f4acb5cd
Previously, they were simply included in PageIndicatorDots via Canvas
drawing. This worked well to keep behavior encapsulated within
PageIndicatorDots class. But it didn't work for Accessibility Services
which require an actual view in order to focus properly.
Bug: 409629978
Test: Verified manually. See video on bug comment: https://b.corp.google.com/issues/394355070#comment23
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I212bf3dbee82e449088536fa841b02a3644df7d3
- Refactors FolderAnimationManager into several classes including new FolderSpringBuilderAnimationManager
- Changes Folder animations to use animators resembling SpringAnimation
- Split up calculations from creating AnimatorSet
Bug: 387543793
Test: tested opening closing folders of different sizes
Flag: com.android.launcher3.enable_launcher_icon_shapes
Flag: com.android.launcher3.enable_expressive_folder_expansion
Change-Id: Idf1f21374f987389979ad45544ade1506b26fc0c
Bug: 407630150
Test: Manual testing, that's why the bug happen in the first place, working on adding tests, for now this fixes the issue.
Flag: EXEMPT bug fix
Change-Id: I98c9d4bb28a3f02ee6e54c66eadb54445c56aeec
Also, in Folder.java the DeviceProfile obtained using the activity,
in this case the Activity is TaskbarActivityContext is returning
a different DeviceProfile form the Launcher which causes the update.
So this triggers an update when is not needed but even if we make
a faulty update the workspace should be able to differentiate
between workspace item and folder items.
This issue was triggered by this flag
com.android.window.flags.enable_taskbar_recents_layout_transition .
Fix: 407630150
Test: NA
Flag: EXEMPT bug fix
Change-Id: I255052506e7d198b1384c15ebfe2f6f2753da1ed
In the previous image tests, the page indicator placement within folders
was inconsistent depending on the number of pages in a folder. This change fixes that by removing the margin_End for the page indicator in folders, as well as fixing the onMeasure call in PageIndicatorDots to be the same as the legacy calculation, just with additional space for the arrows.
Previously, the touchboxes were very small, and difficult to use. To enlarge the touchbox, enlarged padding is used. This means when the indicator & arrows are visible, we need to remove the margin from the layout container and move it to padding for the indicator.
Bug: 394355070
Test: Tested folders with 2, 3, and 18 pages in both left to right
and right to left mode.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I3a5d9d6d77dec963865adede1c4bfe38890d608f