Add 6 col grid to UIEvents
Bug: 210118169 Test: manual Change-Id: I811c970ba41641a0abfae0d0a395a6b31a9da5dd
This commit is contained in:
@@ -372,6 +372,9 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
@UiEvent(doc = "Notification dismissed by swiping right.")
|
||||
LAUNCHER_NOTIFICATION_DISMISSED(652),
|
||||
|
||||
@UiEvent(doc = "Current grid size is changed to 6.")
|
||||
LAUNCHER_GRID_SIZE_6(930),
|
||||
|
||||
@UiEvent(doc = "Current grid size is changed to 5.")
|
||||
LAUNCHER_GRID_SIZE_5(662),
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_3;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_4;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_5;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_GRID_SIZE_6;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
@@ -84,6 +85,8 @@ public class DeviceGridState {
|
||||
public LauncherEvent getWorkspaceSizeEvent() {
|
||||
if (!TextUtils.isEmpty(mGridSizeString)) {
|
||||
switch (mGridSizeString.charAt(0)) {
|
||||
case '6':
|
||||
return LAUNCHER_GRID_SIZE_6;
|
||||
case '5':
|
||||
return LAUNCHER_GRID_SIZE_5;
|
||||
case '4':
|
||||
|
||||
Reference in New Issue
Block a user