Compare commits

...
3 Commits
Author SHA1 Message Date
TMC a74bfbca51 Release 1.0.8 2026-11-18 19:56:23 +01:00
TMCandClaude Opus 5.5 a56160c07b Drawer: keep the grid's own side margin, not the home screen's
A user reported that after setting margins on the home screen the app
drawer showed the alphabet but no apps at all.

The drawer's side padding (DeviceProfile.updateAllAppsContainerWidth)
is built from the workspace side margin and then multiplied by
Lawnchair's drawer indent factor, 0.1 x 100 = 10 on a phone. At the
grid's own 8 dp the base came to 0 and the drawer got the fallback of
10 px. Since 1.0.5 that margin is the owner's Side margins setting, so
every pixel above 8 dp became ten pixels of drawer padding on each
side. Measured on the emulator with 1.0.7 (1080 px wide): 24 dp gave
420 px a side, a strip of icons with no names; 36 dp gave 740 px a
side, no rows and no search field, only the wave alphabet, which lies
over the list and does not use that padding.

The drawer now keeps the grid's own side margin, taken before the
owner's replaces it (flexeraGridSideMarginPx), scaled as the
workspace's is on a scalable grid. The home screen still uses the
owner's margin; top and bottom margins never reached the drawer.

Tested on the emulator (debug build): side margins 24 and 48 dp leave
the drawer padding at 10 px and the list as at 8 dp, with names and
the search field; the home screen still shows the wider margins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:54:56 +01:00
TMCandClaude Opus 5.5 889c5f614d Website: version 1.0.7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:59:17 +01:00
4 changed files with 20 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -280,7 +280,7 @@
<div class="install">
<div class="install__main">
<h2 id="install-title">Install Flexera</h2>
<p class="intro">Version <span data-version>1.0.6</span>, for Android 8.0 or newer. It’s free, and there are no ads in it.</p>
<p class="intro">Version <span data-version>1.0.7</span>, for Android 8.0 or newer. It’s free, and there are no ads in it.</p>
<div class="install__actions">
<a class="btn btn--lg" href="https://git.mariosem.es/msemes/Flexera-Launcher-Releases/releases/download/latest/FlexeraLauncher.apk" data-apk><svg class="btn__mark" aria-hidden="true"><use href="#b-android"/></svg>Download the APK</a>
<a class="link" href="https://git.mariosem.es/msemes/Flexera-Launcher-Releases/releases">Every release, with its notes</a>
+1 -1
View File
@@ -9,7 +9,7 @@
'use strict';
/** The version shown on the page. Change it here after a release. */
const VERSION = '1.0.6';
const VERSION = '1.0.7';
/* The phone is drawn at 390 x 844, one pixel per dp; the numbers below are the app's own. */
const W = 390, H = 844;
const STATUS_H = 40, NAV_H = 24;
+1 -1
View File
@@ -2,4 +2,4 @@
# build.gradle reads this and derives the Android version code from it
# (major * 10000 + minor * 100 + patch), so the name and the code can never disagree.
# flexera/release.ps1 raises it for every release.
versionName=1.0.7
versionName=1.0.8
+17 -1
View File
@@ -352,6 +352,11 @@ public class DeviceProfile {
private int homeSideMarginDp;
private int homeTopMarginDp;
private int homeBottomMarginDp;
/**
* Flexera Launcher: the grid's own side margin, before the owner's home screen margin
* replaces it; the drawer keeps this one (updateAllAppsContainerWidth).
*/
private int flexeraGridSideMarginPx;
/** Flexera Launcher: the top and bottom margins as laid out, after fitting the rows. */
public int flexeraTopMarginPx;
public int flexeraBottomMarginPx;
@@ -699,6 +704,9 @@ public class DeviceProfile {
// width and get centered, leaving a visible side gap even at factor 0.
desiredWorkspaceHorizontalMarginPx =
Math.round(desiredWorkspaceHorizontalMarginPx * workspacePaddingHorizontalFactor);
// Flexera Launcher: the grid's own side margin, kept for the drawer
// (updateAllAppsContainerWidth) before the owner's takes its place on the home screen.
flexeraGridSideMarginPx = desiredWorkspaceHorizontalMarginPx;
// Flexera Launcher: the owner's side margins (app.flexera.home.HomeMargins), except
// beside a landscape phone's side bar, where the grid keeps none.
if (!isVerticalBarLayout()) {
@@ -1485,8 +1493,16 @@ public class DeviceProfile {
+ allAppsPadding.left + allAppsPadding.right;
allAppsLeftRightMargin = Math.max(1, (mDeviceProperties.getAvailableWidthPx() - usedWidth) / 2);
} else if (!mIsResponsiveGrid) {
// Flexera Launcher: the grid's own side margin, not the owner's home screen one
// (app.flexera.home.HomeMargins), scaled as the workspace's is (updateIconSize).
// The multiplier below makes ten pixels of drawer padding out of every pixel of
// margin, so 24 dp at the sides of the home screen gave the drawer 160 dp on each
// side and from about 30 dp the list had no width left: no app rows, only the
// wave alphabet, which lies over the list.
int sideMarginPx = mIsScalableGrid
? (int) (flexeraGridSideMarginPx * cellScaleToFit) : flexeraGridSideMarginPx;
allAppsPadding.left = allAppsPadding.right =
Math.max(0, desiredWorkspaceHorizontalMarginPx + cellLayoutHorizontalPadding
Math.max(0, sideMarginPx + cellLayoutHorizontalPadding
- (getAllAppsProfile().getBorderSpacePx().x / 2));
}
var allAppLeftRightMarginMultiplier = PreferenceCacheExtensionsKt