summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorkmccormick <kmccormick@google.com>2013-04-03 14:00:19 -0700
committerkmccormick <kmccormick@google.com>2013-04-03 14:13:36 -0700
commite4ce502d77899d273fda6ab79568f112d7d66f0a (patch)
tree0cf9891a1b3465f7cf85487d617074e8f31f9374 /core
parent2ab257231fe774748298ab92f78564a5e19f23f0 (diff)
downloadframeworks_base-e4ce502d77899d273fda6ab79568f112d7d66f0a.zip
frameworks_base-e4ce502d77899d273fda6ab79568f112d7d66f0a.tar.gz
frameworks_base-e4ce502d77899d273fda6ab79568f112d7d66f0a.tar.bz2
Doc update: fix broken code sample
"Bug: 8537853" Change-Id: Ieedfd24c39725ce7c6975300b6471ab3ef5884ee
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/CalendarContract.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/core/java/android/provider/CalendarContract.java b/core/java/android/provider/CalendarContract.java
index af6e88e9..0fa5799 100644
--- a/core/java/android/provider/CalendarContract.java
+++ b/core/java/android/provider/CalendarContract.java
@@ -106,16 +106,13 @@ public final class CalendarContract {
* {@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to
* acknowledge whether the action was handled or not.
*
- * The custom app should have an intent-filter like the following
+ * The custom app should have an intent filter like the following:
* <pre>
- * {@code
- * <intent-filter>
- * <action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
- * <category android:name="android.intent.category.DEFAULT" />
- * <data android:mimeType="vnd.android.cursor.item/event" />
- * </intent-filter>
- * }
- * </pre>
+ * &lt;intent-filter&gt;
+ * &lt;action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" /&gt;
+ * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
+ * &lt;data android:mimeType="vnd.android.cursor.item/event" /&gt;
+ * &lt;/intent-filter&gt;</pre>
* <p>
* Input: {@link Intent#getData} has the event URI. The extra
* {@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The
@@ -123,7 +120,7 @@ public final class CalendarContract {
* {@link EventsColumns#CUSTOM_APP_URI}.
* <p>
* Output: {@link Activity#RESULT_OK} if this was handled; otherwise
- * {@link Activity#RESULT_CANCELED}
+ * {@link Activity#RESULT_CANCELED}.
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_HANDLE_CUSTOM_EVENT =