Mark every Flexera edit to Lawnchair and Launcher3 files

Comments only: git grep "Flexera Launcher:" now finds every behaviour
change Flexera made to an upstream file, so that upstream merges stay
easy. A reviewer rebuilt the files as they were before this pass and
found every code token unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TMCandClaude Opus 5.5 committed 2026-11-14 18:50:52 +01:00
1 parent f5df10b4cc
commit 7dfc8f24ea
7 files changed
+17 -9

No files matched your search

@@ -944,7 +944,7 @@ class PreferenceManager2 @Inject constructor(
initializeIconShape(iconShape.firstCached(this))
iconShape.get()
.distinctUntilChanged()
.drop(1)
.drop(1) // Flexera Launcher: after distinctUntilChanged, not before.
.onEach { shape ->
initializeIconShape(shape)
L3ThemeManager.INSTANCE.get(context)
@@ -954,13 +954,13 @@ class PreferenceManager2 @Inject constructor(
hotseatMode.get()
.distinctUntilChanged()
.drop(1)
.drop(1) // Flexera Launcher: after distinctUntilChanged, not before.
.onEach { reloadHelper.restart() }
.launchIn(scope)
isHotseatEnabled.get()
.distinctUntilChanged()
.drop(1)
.drop(1) // Flexera Launcher: after distinctUntilChanged, not before.
.onEach {
reloadHelper.recreate()
reloadHelper.reloadGrid()
@@ -969,13 +969,13 @@ class PreferenceManager2 @Inject constructor(
hotseatQsbProvider.get()
.distinctUntilChanged()
.drop(1)
.drop(1) // Flexera Launcher: after distinctUntilChanged, not before.
.onEach { reloadHelper.recreate() }
.launchIn(scope)
enableLabelInDock.get()
.distinctUntilChanged()
.drop(1)
.drop(1) // Flexera Launcher: after distinctUntilChanged, not before.
.onEach { reloadHelper.reloadGrid() }
.launchIn(scope)
}
@@ -56,6 +56,7 @@ fun FolderPreferences(
// screen's, so the panel's opacity and the column count are hidden while they are on.
val fullScreenFoldersAdapter = prefs2.fullScreenFolders.getAdapter()
PreferenceGroup(heading = stringResource(id = R.string.general_label)) {
// Flexera Launcher: full-screen folders (app.flexera.home.FullScreenFolders).
SwitchPreference(
adapter = fullScreenFoldersAdapter,
label = stringResource(id = R.string.flexera_full_screen_folders),
@@ -77,6 +78,7 @@ fun FolderPreferences(
valueRange = 0F..1F,
showAsPercentage = true,
)
// Flexera Launcher: hidden for full-screen folders; see fullScreenFoldersAdapter.
ExpandAndShrink(visible = !fullScreenFoldersAdapter.state.value) {
SliderPreference(
label = stringResource(id = R.string.folder_bg_opacity_label),
@@ -96,6 +98,7 @@ fun FolderPreferences(
}
}
PreferenceGroup(heading = stringResource(id = R.string.grid)) {
// Flexera Launcher: hidden for full-screen folders; see fullScreenFoldersAdapter.
ExpandAndShrink(visible = !fullScreenFoldersAdapter.state.value) {
SliderPreference(
label = stringResource(id = R.string.max_folder_columns),
@@ -293,6 +293,7 @@ fun HomeScreenPreferences(
label = stringResource(id = R.string.flexera_align_widgets),
description = stringResource(id = R.string.flexera_align_widgets_description),
)
// Flexera Launcher: hidden for aligned widgets; see alignWidgetsAdapter.
ExpandAndShrink(visible = !alignWidgetsAdapter.state.value) {
SliderPreference(
label = stringResource(id = R.string.widget_padding_label),
@@ -239,6 +239,8 @@ public class DepthController extends BaseDepthControllerImpl implements StateHan
}
}
// Flexera Launcher: the owner's switch for the wallpaper's zoom, which the blur behind a
// folder or quick launch's page must not turn back on (BaseDepthControllerImpl).
@Override
protected boolean isDepthEffectEnabled() {
return mEnableDepth;
@@ -165,7 +165,7 @@ public class MotionPauseDetector {
? TEST_HARNESS_TRIGGER_TIMEOUT
: mMakePauseHarderToTrigger
? HARDER_TRIGGER_TIMEOUT
: mForcePauseTimeoutMs;
: mForcePauseTimeoutMs; // Flexera Launcher: see setForcePauseTimeout.
mForcePauseTimeout.setAlarm(timeoutMs);
float newVelocity = mVelocityProvider.addMotionEvent(ev, ev.getPointerId(pointerIndex));
if (mPreviousVelocity != null) {
@@ -274,7 +274,7 @@ public class MotionPauseDetector {
mIsTrackpadGesture = false;
mIsPaused = mHasEverBeenPaused = false;
mSlowStartTime = 0;
mForcePauseTimeoutMs = FORCE_PAUSE_TIMEOUT;
mForcePauseTimeoutMs = FORCE_PAUSE_TIMEOUT; // Flexera Launcher: see setForcePauseTimeout.
mForcePauseTimeout.cancelAlarm();
}
@@ -375,6 +375,7 @@ public class DeviceProfile {
.firstCached(preferenceManager2.getWorkspacePaddingVerticalFactor()), 0f, 2f);
widgetPaddingFactor = Utilities.boundToRange(PreferenceCacheExtensionsKt
.firstCached(preferenceManager2.getWidgetPaddingFactor()), 0f, 2f);
// Flexera Launcher: read with the grid, which the setting reloads when it changes.
alignWidgetsWithIcons = PreferenceCacheExtensionsKt
.firstCached(preferenceManager2.getAlignWidgetsWithIcons());
drawerPaddingTopFactor = Utilities.boundToRange(PreferenceCacheExtensionsKt
@@ -87,11 +87,12 @@ class FolderSpringAnimatorSet(val animatorSet: AnimatorSet) {
animatorSet,
folderAnimData.isOpening,
launcherDelegate,
folder.isFullScreen,
folder.isFullScreen, // Flexera Launcher: see finalScrimAlpha.
)
launcherDelegate.launcher?.depthController?.folderZoom?.let {
addWallpaperZoomAnimator(folder.context, animatorSet, folderAnimData.isOpening, it)
}
// Flexera Launcher: the blur behind the folder (app.flexera.home.FolderBlur).
addBackdropBlurAnimator(
folder.context,
animatorSet,
@@ -405,7 +406,7 @@ class FolderSpringAnimatorSet(val animatorSet: AnimatorSet) {
animatorSet: AnimatorSet,
isOpening: Boolean,
launcherDelegate: LauncherDelegate,
fullScreen: Boolean,
fullScreen: Boolean, // Flexera Launcher: see finalScrimAlpha.
) {
val launcher = launcherDelegate.launcher ?: return
// Folder scrim uses a black overlay with alpha 0→dimmed; that replaces the app drawer