mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Revert "Adding some logging around launcher grid when device profile changes"
Bug: 35425060
This reverts commit c29de85780.
Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
This commit is contained in:
@@ -27,7 +27,6 @@ import com.android.launcher3.Workspace;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
import com.android.launcher3.compat.PackageInstallerCompat;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.util.GridOccupancy;
|
||||
import com.android.launcher3.util.LongArrayMap;
|
||||
|
||||
@@ -890,23 +889,6 @@ public class GridSizeMigrationTask {
|
||||
.apply();
|
||||
}
|
||||
|
||||
public static void logDeviceProfileIfChanged(InvariantDeviceProfile idp, Context context) {
|
||||
SharedPreferences prefs = Utilities.getPrefs(context);
|
||||
String gridSizeString = getPointString(idp.numColumns, idp.numRows);
|
||||
|
||||
int oldHotseatCount = prefs.getInt(KEY_MIGRATION_SRC_HOTSEAT_COUNT, idp.numHotseatIcons);
|
||||
String oldSize = prefs.getString(KEY_MIGRATION_SRC_WORKSPACE_SIZE, gridSizeString);
|
||||
if (gridSizeString.equals(oldSize) && idp.numHotseatIcons == oldHotseatCount) {
|
||||
// Skip if workspace and hotseat sizes have not changed.
|
||||
return;
|
||||
}
|
||||
|
||||
FileLog.e(TAG, "Grid size changed" + gridSizeString);
|
||||
FileLog.e(TAG, " oldSize: " + oldSize + " , hotseat: " + oldHotseatCount);
|
||||
FileLog.e(TAG, " newSize: " + gridSizeString + " , hotseat: " + idp.numHotseatIcons);
|
||||
idp.dumpDisplayInfo(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Migrates the workspace and hotseat in case their sizes changed.
|
||||
* @return false if the migration failed.
|
||||
|
||||
Reference in New Issue
Block a user