Merge "Removing some unused container IDs" into tm-qpr-dev am: eae7e58b20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20763382 Change-Id: I429a97d5883a51637a4e8fc64471e2919937b3fb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -207,12 +207,9 @@ public class LauncherSettings {
|
||||
public static final int CONTAINER_BOTTOM_WIDGETS_TRAY = -112;
|
||||
public static final int CONTAINER_PIN_WIDGETS = -113;
|
||||
public static final int CONTAINER_WALLPAPERS = -114;
|
||||
// Represents search results view.
|
||||
public static final int CONTAINER_SEARCH_RESULTS = -106;
|
||||
public static final int CONTAINER_SHORTCUTS = -107;
|
||||
public static final int CONTAINER_SETTINGS = -108;
|
||||
public static final int CONTAINER_TASKSWITCHER = -109;
|
||||
public static final int CONTAINER_QSB = -110;
|
||||
|
||||
// Represents any of the extended containers implemented in non-AOSP variants.
|
||||
public static final int EXTENDED_CONTAINERS = -200;
|
||||
@@ -226,7 +223,6 @@ public class LauncherSettings {
|
||||
case CONTAINER_PREDICTION: return "prediction";
|
||||
case CONTAINER_ALL_APPS: return "all_apps";
|
||||
case CONTAINER_WIDGETS_TRAY: return "widgets_tray";
|
||||
case CONTAINER_SEARCH_RESULTS: return "search_result";
|
||||
case CONTAINER_SHORTCUTS: return "shortcuts";
|
||||
default: return String.valueOf(container);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_PREDICTION;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SEARCH_RESULTS;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SETTINGS;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SHORTCUTS;
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_TASKSWITCHER;
|
||||
@@ -54,7 +53,6 @@ import com.android.launcher3.logger.LauncherAtom;
|
||||
import com.android.launcher3.logger.LauncherAtom.AllAppsContainer;
|
||||
import com.android.launcher3.logger.LauncherAtom.ContainerInfo;
|
||||
import com.android.launcher3.logger.LauncherAtom.PredictionContainer;
|
||||
import com.android.launcher3.logger.LauncherAtom.SearchResultContainer;
|
||||
import com.android.launcher3.logger.LauncherAtom.SettingsContainer;
|
||||
import com.android.launcher3.logger.LauncherAtom.Shortcut;
|
||||
import com.android.launcher3.logger.LauncherAtom.ShortcutsContainer;
|
||||
@@ -439,10 +437,6 @@ public class ItemInfo {
|
||||
return ContainerInfo.newBuilder()
|
||||
.setPredictionContainer(PredictionContainer.getDefaultInstance())
|
||||
.build();
|
||||
case CONTAINER_SEARCH_RESULTS:
|
||||
return ContainerInfo.newBuilder()
|
||||
.setSearchResultContainer(SearchResultContainer.getDefaultInstance())
|
||||
.build();
|
||||
case CONTAINER_SHORTCUTS:
|
||||
return ContainerInfo.newBuilder()
|
||||
.setShortcutsContainer(ShortcutsContainer.getDefaultInstance())
|
||||
@@ -459,10 +453,12 @@ public class ItemInfo {
|
||||
return ContainerInfo.newBuilder()
|
||||
.setWallpapersContainer(WallpapersContainer.getDefaultInstance())
|
||||
.build();
|
||||
case EXTENDED_CONTAINERS:
|
||||
return ContainerInfo.newBuilder()
|
||||
.setExtendedContainers(getExtendedContainer())
|
||||
.build();
|
||||
default:
|
||||
if (container <= EXTENDED_CONTAINERS) {
|
||||
return ContainerInfo.newBuilder()
|
||||
.setExtendedContainers(getExtendedContainer())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
return ContainerInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user