Skip to content

Commit 44c4bba

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: fix markup error bug: 7456071" into jb-mr1-dev
2 parents 737a20f + 9cc531c commit 44c4bba

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

core/java/android/app/Presentation.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,16 @@
7979
* Here's how to use the media router to create and show a presentation on the preferred
8080
* presentation display using {@link android.media.MediaRouter.RouteInfo#getPresentationDisplay()}.
8181
* </p>
82-
* {@samplecode
82+
* <pre>
8383
* MediaRouter mediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
8484
* MediaRouter.RouteInfo route = mediaRouter.getSelectedRoute();
85-
* if (route != null) $&#123;
85+
* if (route != null) {
8686
* Display presentationDisplay = route.getPresentationDisplay();
87-
* if (presentationDisplay != null) $&#123;
87+
* if (presentationDisplay != null) {
8888
* Presentation presentation = new MyPresentation(context, presentationDisplay);
8989
* presentation.show();
90-
* $&#125;
91-
* $&#125;
92-
* }
90+
* }
91+
* }</pre>
9392
* <p>
9493
* The following sample code from <code>ApiDemos</code> demonstrates how to use the media
9594
* router to automatically switch between showing content in the main activity and showing
@@ -114,18 +113,17 @@
114113
* {@link DisplayManager#getDisplays(String)} and the
115114
* {@link DisplayManager#DISPLAY_CATEGORY_PRESENTATION} category.
116115
* </p>
117-
* {@samplecode
116+
* <pre>
118117
* DisplayManager displayManager = (DisplayManager) context.getSystemService(Context.DISPLAY_SERVICE);
119118
* Display[] presentationDisplays = displayManager.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION);
120-
* if (presentationDisplays.length > 0) $&#123;
119+
* if (presentationDisplays.length > 0) {
121120
* // If there is more than one suitable presentation display, then we could consider
122121
* // giving the user a choice. For this example, we simply choose the first display
123122
* // which is the one the system recommends as the preferred presentation display.
124123
* Display display = presentationDisplays[0];
125124
* Presentation presentation = new MyPresentation(context, presentationDisplay);
126125
* presentation.show();
127-
* $&#125;
128-
* }
126+
* }</pre>
129127
* <p>
130128
* The following sample code from <code>ApiDemos</code> demonstrates how to use the display
131129
* manager to enumerate displays and show content on multiple presentation displays

0 commit comments

Comments
 (0)