Merge "Adding support for derivative apps to safely extend LauncherLog proto" into ub-launcher3-dorval-polish2
This commit is contained in:
committed by
Android (Google) Code Review
commit
70999fef4b
@@ -25,6 +25,7 @@ import com.android.launcher3.InfoDropTarget;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.UninstallDropTarget;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogExtensions.TargetExtension;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto.ControlType;
|
||||
@@ -159,6 +160,13 @@ public class LoggerUtils {
|
||||
return t;
|
||||
}
|
||||
|
||||
public static Target newTarget(int targetType, TargetExtension extension) {
|
||||
Target t = new Target();
|
||||
t.type = targetType;
|
||||
t.extension = extension;
|
||||
return t;
|
||||
}
|
||||
|
||||
public static Target newTarget(int targetType) {
|
||||
Target t = new Target();
|
||||
t.type = targetType;
|
||||
|
||||
Reference in New Issue
Block a user