Merge "Log widget features." into sc-dev am: 07449132fb am: f51b28150c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14487017

Change-Id: I802edc6d02b0d7ba72c323c0a5e0b7b2a332a60e
This commit is contained in:
Yogisha Dixit authored and Automerger Merge Worker committed 2021-05-20 04:36:40 +00:00
commit 95c7c14d08
5 files changed
+87 -5

No files matched your search

@@ -354,6 +354,10 @@ public class StatsLogCompatManager extends StatsLogManager {
}
private static int getCardinality(LauncherAtom.ItemInfo info) {
// TODO(b/187734511): Implement a unified solution for 1x1 widgets in folders/hotseat.
if (info.getItemCase().equals(LauncherAtom.ItemInfo.ItemCase.WIDGET)) {
return info.getWidget().getWidgetFeatures();
}
switch (info.getContainerInfo().getContainerCase()) {
case PREDICTED_HOTSEAT_CONTAINER:
return info.getContainerInfo().getPredictedHotseatContainer().getCardinality();