Log tap on app info within task menu.
Override TaskShortcutFactory.dummyInfo to logs 'task -> app info' as TaskEvent and 'app icon -> app info' as AppEvent. Bug: 157770913 Sample Log: https://docs.google.com/document/d/1FXi_jY1B63aMSjNyomAmoN1nSTtVbvculNGX7TKdRRw/edit#bookmark=id.j2cziephk9fy Change-Id: I448a489fcc93324f6082eba2857644feb5d6bca3
This commit is contained in:
@@ -29,6 +29,7 @@ import com.android.launcher3.util.PackageUserKey;
|
||||
import com.android.launcher3.widget.WidgetsBottomSheet;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a system shortcut for a given app. The shortcut should have a label and icon, and an
|
||||
* onClickListener that depends on the item that the shortcut services.
|
||||
@@ -142,8 +143,8 @@ public abstract class SystemShortcut<T extends BaseDraggingActivity> extends Ite
|
||||
mTarget.getUserEventDispatcher().logActionOnControl(Action.Touch.TAP,
|
||||
ControlType.APPINFO_TARGET, view);
|
||||
// TODO(thiruram): Fix missing container info when item is inside folder.
|
||||
mTarget.getStatsLogManager().log(LAUNCHER_SYSTEM_SHORTCUT_APP_INFO_TAP,
|
||||
mItemInfo.buildProto());
|
||||
mTarget.getStatsLogManager()
|
||||
.log(LAUNCHER_SYSTEM_SHORTCUT_APP_INFO_TAP, mItemInfo.buildProto());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user