revert: Don't update dependency to avoid cache invalidation and dagger (in)invalidation for now

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach committed 2026-01-10 20:48:37 +07:00
1 parent c44ff194fb
commit 63db7f3218
70 files changed
+297 -178

No files matched your search

@@ -160,7 +160,20 @@ public class InvariantDeviceProfile {
public int[] numFolderColumns;
public float[] iconSize;
public float[] iconTextSize;
/**
* Bitmap size for workspace icons. This is calculated independently from all apps
* to allow different icon size factors without affecting each other.
*/
public int iconBitmapSize;
/**
* Bitmap size for all apps icons. This is calculated independently from workspace
* to allow different icon size factors without affecting each other.
*/
public int allAppsIconBitmapSize;
/**
* The icon density used for loading resources. This is based on the maximum of
* iconBitmapSize and allAppsIconBitmapSize to ensure adequate quality for both.
*/
public int fillResIconDpi;
public static @DeviceType int deviceType;
public static Info displayInfo;
@@ -440,8 +453,11 @@ public class InvariantDeviceProfile {
for (int i = 1; i < allAppsIconSize.length; i++) {
maxAllAppsIconSize = Math.max(maxAllAppsIconSize, allAppsIconSize[i]);
}
iconBitmapSize = ResourceUtils.pxFromDp(Math.max(maxIconSize, maxAllAppsIconSize), metrics);
fillResIconDpi = getLauncherIconDensity(iconBitmapSize);
// Calculate separate bitmap sizes for workspace and all apps
iconBitmapSize = ResourceUtils.pxFromDp(maxIconSize, metrics);
allAppsIconBitmapSize = ResourceUtils.pxFromDp(maxAllAppsIconSize, metrics);
// Use the larger of the two for fillResIconDpi to ensure we have adequate resources
fillResIconDpi = getLauncherIconDensity(Math.max(iconBitmapSize, allAppsIconBitmapSize));
iconTextSize = displayOption.textSizes;
@@ -561,7 +577,7 @@ public class InvariantDeviceProfile {
private Object[] toModelState() {
return new Object[]{
numColumns, numRows, numSearchContainerColumns, numDatabaseHotseatIcons,
iconBitmapSize, fillResIconDpi, numDatabaseAllAppsColumns, dbFile, mLocale};
iconBitmapSize, allAppsIconBitmapSize, fillResIconDpi, numDatabaseAllAppsColumns, dbFile};
}
/** Updates IDP using the provided context. Notifies listeners of change. */