use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager

Bug: 153611516
Change-Id: I8531df7ee61c336c9919f5ff137bb1e113c126ea
This commit is contained in:
Hyunyoung Song
2020-05-18 09:33:37 -07:00
parent 764f67e967
commit a451508818
2 changed files with 86 additions and 121 deletions

View File

@@ -17,6 +17,8 @@ package com.android.launcher3.logging;
import android.content.Context;
import androidx.annotation.Nullable;
import com.android.launcher3.R;
import com.android.launcher3.logger.LauncherAtom.ItemInfo;
import com.android.launcher3.logging.StatsLogUtils.LogStateProvider;
@@ -125,13 +127,13 @@ public class StatsLogManager implements ResourceBasedOverride {
/**
* Logs an event and accompanying {@link ItemInfo}.
*/
public void log(LauncherEvent event, ItemInfo itemInfo) {
public void log(LauncherEvent event, @Nullable ItemInfo info) {
}
/**
* Logs an event and accompanying {@link InstanceId} and {@link ItemInfo}.
*/
public void log(LauncherEvent event, InstanceId instanceId, ItemInfo itemInfo) {
public void log(LauncherEvent event, InstanceId instanceId, @Nullable ItemInfo info) {
}
/**