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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user