Added ACTION_UNPIN = 4 in ActionType

Bug: 143771613
Test: atest
Change-Id: If6a2d4609ecf5564093c9d9e8fa71219246f4d09
This commit is contained in:
Shashwat Razdan
2019-11-22 15:42:29 -08:00
parent 3f0a602a3a
commit 842d4eebda
3 changed files with 8 additions and 1 deletions

View File

@@ -1162,6 +1162,7 @@ package android.app.prediction {
field public static final int ACTION_DISMISS = 2; // 0x2
field public static final int ACTION_LAUNCH = 1; // 0x1
field public static final int ACTION_PIN = 3; // 0x3
field public static final int ACTION_UNPIN = 4; // 0x4
field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetEvent> CREATOR;
}

View File

@@ -578,6 +578,7 @@ package android.app.prediction {
field public static final int ACTION_DISMISS = 2; // 0x2
field public static final int ACTION_LAUNCH = 1; // 0x1
field public static final int ACTION_PIN = 3; // 0x3
field public static final int ACTION_UNPIN = 4; // 0x4
field @NonNull public static final android.os.Parcelable.Creator<android.app.prediction.AppTargetEvent> CREATOR;
}

View File

@@ -38,7 +38,7 @@ public final class AppTargetEvent implements Parcelable {
/**
* @hide
*/
@IntDef({ACTION_LAUNCH, ACTION_DISMISS, ACTION_PIN})
@IntDef({ACTION_LAUNCH, ACTION_DISMISS, ACTION_PIN, ACTION_UNPIN})
@Retention(RetentionPolicy.SOURCE)
public @interface ActionType {}
@@ -57,6 +57,11 @@ public final class AppTargetEvent implements Parcelable {
*/
public static final int ACTION_PIN = 3;
/**
* Event type constant indicating an app target has been un-pinned.
*/
public static final int ACTION_UNPIN = 4;
private final AppTarget mTarget;
private final String mLocation;
private final int mAction;