From 0e6215391d79de9743545637832e07579edc3cd0 Mon Sep 17 00:00:00 2001 From: Hyundo Moon Date: Thu, 2 Mar 2017 10:57:02 +0900 Subject: [PATCH] Modify JavaDoc of MediaBrowserService.getBrowserRootHints The method MediaBrowserService.getBrowserRootHints can be called inside of onSearch(), but the JavaDoc does not mention it. This CL adds this information in the JavaDoc. Test: Called getBrowserRootHints inside of onSearch method. Change-Id: If82a371c8d06aab396e29141827c8991cff2cd3e --- .../java/android/service/media/MediaBrowserService.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/media/java/android/service/media/MediaBrowserService.java b/media/java/android/service/media/MediaBrowserService.java index eaec4932468f9..d372efbea5ca7 100644 --- a/media/java/android/service/media/MediaBrowserService.java +++ b/media/java/android/service/media/MediaBrowserService.java @@ -137,6 +137,7 @@ public abstract class MediaBrowserService extends Service { * * @see #onLoadChildren * @see #onLoadItem + * @see #onSearch */ public class Result { private Object mDebug; @@ -544,16 +545,16 @@ public abstract class MediaBrowserService extends Service { * media browser service when connecting and retrieving the root id for browsing, or null if * none. The contents of this bundle may affect the information returned when browsing. * - * @throws IllegalStateException If this method is called outside of {@link #onLoadChildren} - * or {@link #onLoadItem} + * @throws IllegalStateException If this method is called outside of {@link #onLoadChildren}, + * {@link #onLoadItem} or {@link #onSearch}. * @see MediaBrowserService.BrowserRoot#EXTRA_RECENT * @see MediaBrowserService.BrowserRoot#EXTRA_OFFLINE * @see MediaBrowserService.BrowserRoot#EXTRA_SUGGESTED */ public final Bundle getBrowserRootHints() { if (mCurConnection == null) { - throw new IllegalStateException("This should be called inside of onLoadChildren or" - + " onLoadItem methods"); + throw new IllegalStateException("This should be called inside of onLoadChildren," + + " onLoadItem or onSearch methods"); } return mCurConnection.rootHints == null ? null : new Bundle(mCurConnection.rootHints); }