summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-09-24 14:24:42 -0700
committerRoboErik <epastern@google.com>2014-09-24 14:35:32 -0700
commit88b84178d6a8551ea1b534d8750def8dceebdc2a (patch)
tree9142b36571ce31b522832bf96e9d977d443881bb /media
parent03fce072cac092923e10a6b5f09fcde333375f9e (diff)
downloadframeworks_base-88b84178d6a8551ea1b534d8750def8dceebdc2a.zip
frameworks_base-88b84178d6a8551ea1b534d8750def8dceebdc2a.tar.gz
frameworks_base-88b84178d6a8551ea1b534d8750def8dceebdc2a.tar.bz2
Ensure MediaBrowser state is set to connecting after a reconnect
When the binder had disconnected we were setting the state to suspended and then not setting it back to connecting when we reconnected. This sets the state correctly when we are trying to connect again. bug:17593681 Change-Id: I3fe95fa23ba43ac2dc3692fd28309b2f8e5a3599
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/browse/MediaBrowser.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/java/android/media/browse/MediaBrowser.java b/media/java/android/media/browse/MediaBrowser.java
index 34713e7..1de8a8b 100644
--- a/media/java/android/media/browse/MediaBrowser.java
+++ b/media/java/android/media/browse/MediaBrowser.java
@@ -708,6 +708,7 @@ public final class MediaBrowser {
// We make a new mServiceCallbacks each time we connect so that we can drop
// responses from previous connections.
mServiceCallbacks = getNewServiceCallbacks();
+ mState = CONNECT_STATE_CONNECTING;
// Call connect, which is async. When we get a response from that we will
// say that we're connected.