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

Commit 41a25211 authored by Chris Wren's avatar Chris Wren
Browse files

fix SliceMetrics typo and disambiguate logTouch

Bug: 76461931, 76461916
Test: make docs
Change-Id: I25c453effbfa7037c036eed81aac26fff30cc55a
parent abe80b8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7279,7 +7279,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) {
    }
}