Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 362b3522 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "fix SliceMetrics typo and disambiguate logTouch" into pi-dev

parents 88f8de61 41a25211
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7291,7 +7291,7 @@ package android.app.slice {
  public class SliceMetrics {
    ctor public SliceMetrics(android.content.Context, android.net.Uri);
    method public void logHidden();
    method public void logTouch(android.net.Uri);
    method public void logTouch(int, android.net.Uri);
    method public void logVisible();
  }
+13 −4
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import com.android.internal.logging.MetricsLogger;
/**
 * Metrics interface for slices.
 *
 * This is called by SliceView, so Slice develoers should
 * This is called by SliceView, so Slice developers should
 * not need to reference this class.
 *
 * @see androidx.slice.widget.SliceView
@@ -55,9 +55,18 @@ public class SliceMetrics {
    }

    /**
     * To be called whenever the use interacts with a slice.
     * To be called whenever the user invokes a discrete action via a slice.
     *
     * <P>
     *     Use this for discrete events like a tap or the end of a drag,
     *     not for a continuous streams of events, such as the motion during a gesture.
     * </P>
     *
     * @see androidx.slice.widget.EventInfo#actionType
     *
     * @param actionType The type of the event.
     * @param subSlice The URI of the sub-slice that is the subject of the interaction.
     */
    public void logTouch(@NonNull Uri subSlice) {
    public void logTouch(int actionType, @NonNull Uri subSlice) {
    }
}