diff options
| author | Ken Shirriff <kens@google.com> | 2010-02-05 10:55:38 -0800 |
|---|---|---|
| committer | Ken Shirriff <kens@google.com> | 2010-02-05 12:44:04 -0800 |
| commit | 15049e46f7331b64bd3093e1d9a0365ca5caf3ae (patch) | |
| tree | 2ccd884621c71b7f954919ed69b60ed8fa628696 /core | |
| parent | cf6b299ec89c376eff23fca134982cf68f13e4e4 (diff) | |
| download | frameworks_base-15049e46f7331b64bd3093e1d9a0365ca5caf3ae.zip frameworks_base-15049e46f7331b64bd3093e1d9a0365ca5caf3ae.tar.gz frameworks_base-15049e46f7331b64bd3093e1d9a0365ca5caf3ae.tar.bz2 | |
Make ACCOUNT_NAME/ACCOUNT_TYPE consistent.
Some code was using "account_name" and some was using "_sync_account".
Also move definitions so they can be accessed by Event, Calendar,
and EventsEntity.
bug 2420732
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/provider/Calendar.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/core/java/android/provider/Calendar.java b/core/java/android/provider/Calendar.java index f89ba91..cb42d73 100644 --- a/core/java/android/provider/Calendar.java +++ b/core/java/android/provider/Calendar.java @@ -184,6 +184,20 @@ public final class Calendar { * <P>Type: INTEGER (long)</P> */ public static final String _SYNC_DIRTY = "_sync_dirty"; + + /** + * The name of the account instance to which this row belongs, which when paired with + * {@link #ACCOUNT_TYPE} identifies a specific account. + * <P>Type: TEXT</P> + */ + public static final String ACCOUNT_NAME = "account_name"; + + /** + * The type of account to which this row belongs, which when paired with + * {@link #ACCOUNT_NAME} identifies a specific account. + * <P>Type: TEXT</P> + */ + public static final String ACCOUNT_TYPE = "account_type"; } /** @@ -579,20 +593,6 @@ public final class Calendar { public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/event_entities"); - /** - * The name of the account instance to which this row belongs, which when paired with - * {@link #ACCOUNT_TYPE} identifies a specific account. - * <P>Type: TEXT</P> - */ - public static final String ACCOUNT_NAME = "_sync_account"; - - /** - * The type of account to which this row belongs, which when paired with - * {@link #ACCOUNT_NAME} identifies a specific account. - * <P>Type: TEXT</P> - */ - public static final String ACCOUNT_TYPE = "_sync_account_type"; - public static EntityIterator newEntityIterator(Cursor cursor, ContentResolver resolver) { return new EntityIteratorImpl(cursor, resolver); } |
