mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Simplifying some test utility methods
Bug: 283821111 Test: Presubmit Flag: N/A Change-Id: I7b9690bc0cc53d097d26cd4f0ab2dd36ba88e1cb
This commit is contained in:
@@ -33,6 +33,7 @@ import android.text.TextUtils;
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.LauncherPrefs;
|
||||
import com.android.launcher3.logging.StatsLogManager.LauncherEvent;
|
||||
import com.android.launcher3.util.MainThreadInitializedObject.SandboxContext;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
@@ -92,6 +93,9 @@ public class DeviceGridState implements Comparable<DeviceGridState> {
|
||||
* Stores the device state to shared preferences
|
||||
*/
|
||||
public void writeToPrefs(Context context) {
|
||||
if (context instanceof SandboxContext) {
|
||||
return;
|
||||
}
|
||||
LauncherPrefs.get(context).put(
|
||||
WORKSPACE_SIZE.to(mGridSizeString),
|
||||
HOTSEAT_COUNT.to(mNumHotseat),
|
||||
|
||||
Reference in New Issue
Block a user