diff options
author | Jeff Brown <jeffbrown@google.com> | 2013-05-10 23:10:32 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-05-10 23:10:33 +0000 |
commit | 9766caedf0657615f739d4e441ab9f2fa71aa709 (patch) | |
tree | 597b3ce983e8cc00f54c914470b1e00d9915cab2 /media | |
parent | 11184922d30f468bf97a2e20a3aeff7e1ae7ca54 (diff) | |
parent | a27b8fb4296c1271ddf5916843ddffda6764e65f (diff) | |
download | frameworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.zip frameworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.tar.gz frameworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.tar.bz2 |
Merge "Add an API to determine if a route is connecting." into jb-mr2-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaRouter.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/media/java/android/media/MediaRouter.java b/media/java/android/media/MediaRouter.java index 9168d46..990ce80 100644 --- a/media/java/android/media/MediaRouter.java +++ b/media/java/android/media/MediaRouter.java @@ -1354,12 +1354,24 @@ public class MediaRouter { } /** - * @return true if this route is enabled and may be selected + * Returns true if this route is enabled and may be selected. + * + * @return True if this route is enabled. */ public boolean isEnabled() { return mEnabled; } + /** + * Returns true if the route is in the process of connecting and is not + * yet ready for use. + * + * @return True if this route is in the process of connecting. + */ + public boolean isConnecting() { + return mStatusCode == STATUS_CONNECTING; + } + void setStatusInt(CharSequence status) { if (!status.equals(mStatus)) { mStatus = status; |