Moving InvariantDeviceProfile to Dagger

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Ia99ee031e96c5e6069a56fe90a262a533dd8665a
This commit is contained in:
Sunny Goyal
2025-02-10 18:49:54 -08:00
parent 0d9c54fc51
commit 5bca45a739
24 changed files with 255 additions and 252 deletions
@@ -68,7 +68,10 @@ public class DeviceGridState implements Comparable<DeviceGridState> {
}
public DeviceGridState(Context context) {
LauncherPrefs lp = LauncherPrefs.get(context);
this(LauncherPrefs.get(context));
}
public DeviceGridState(LauncherPrefs lp) {
mGridSizeString = lp.get(WORKSPACE_SIZE);
mNumHotseat = lp.get(HOTSEAT_COUNT);
mDeviceType = lp.get(DEVICE_TYPE);