Merge "Remove old slice APIs for color"

This commit is contained in:
Jason Monk
2018-01-23 23:01:54 +00:00
committed by Android (Google) Code Review
3 changed files with 0 additions and 38 deletions

View File

@@ -425,28 +425,6 @@ public final class Slice implements Parcelable {
return this;
}
/**
* Add a color to the slice being constructed
* @param subType Optional template-specific type information
* @see {@link SliceItem#getSubType()}
* @deprecated will be removed once supportlib updates
*/
public Builder addColor(int color, @Nullable String subType, @SliceHint String... hints) {
mItems.add(new SliceItem(color, SliceItem.FORMAT_INT, subType, hints));
return this;
}
/**
* Add a color to the slice being constructed
* @param subType Optional template-specific type information
* @see {@link SliceItem#getSubType()}
* @deprecated will be removed once supportlib updates
*/
public Builder addColor(int color, @Nullable String subType,
@SliceHint List<String> hints) {
return addColor(color, subType, hints.toArray(new String[hints.size()]));
}
/**
* Add a color to the slice being constructed
* @param subType Optional template-specific type information

View File

@@ -97,11 +97,6 @@ public final class SliceItem implements Parcelable {
* A {@link SliceItem} that contains an int.
*/
public static final String FORMAT_INT = "int";
/**
* A {@link SliceItem} that contains an int.
* @deprecated to be removed
*/
public static final String FORMAT_COLOR = "color";
/**
* A {@link SliceItem} that contains a timestamp.
*/
@@ -230,13 +225,6 @@ public final class SliceItem implements Parcelable {
return (Integer) mObj;
}
/**
* @deprecated to be removed.
*/
public int getColor() {
return (Integer) mObj;
}
/**
* @return The slice held by this {@link #FORMAT_ACTION} or {@link #FORMAT_SLICE} SliceItem
*/