diff options
Diffstat (limited to 'core/java/android/content/RestrictionEntry.java')
-rw-r--r-- | core/java/android/content/RestrictionEntry.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/content/RestrictionEntry.java b/core/java/android/content/RestrictionEntry.java index 62f88a9..5341ea8 100644 --- a/core/java/android/content/RestrictionEntry.java +++ b/core/java/android/content/RestrictionEntry.java @@ -79,6 +79,13 @@ public class RestrictionEntry implements Parcelable { */ public static final int TYPE_INTEGER = 5; + /** + * A type of restriction. Use this for storing a string value. + * @see #setSelectedString + * @see #getSelectedString + */ + public static final int TYPE_STRING = 6; + /** The type of restriction. */ private int mType; @@ -107,6 +114,17 @@ public class RestrictionEntry implements Parcelable { private String[] mCurrentValues; /** + * Constructor for specifying the type and key, with no initial value; + * + * @param type the restriction type. + * @param key the unique key for this restriction + */ + public RestrictionEntry(int type, String key) { + mType = type; + mKey = key; + } + + /** * Constructor for {@link #TYPE_CHOICE} type. * @param key the unique key for this restriction * @param selectedString the current value |