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:
Sunny Goyal
2017-03-20 23:07:10 +00:00
parent 3dc60c6e39
commit 4610324261
3 changed files with 0 additions and 39 deletions

View File

@@ -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.