Moving InvariantDeviceProfile to Dagger
Bug: 361850561 Test: Presubmit Flag: EXEMPT dagger Change-Id: Ia99ee031e96c5e6069a56fe90a262a533dd8665a
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user