Merge "MediaBrowser: Copy options before calling subscribeInternal()" into nyc-dev

am: 33441e7f2a

* commit '33441e7f2ad920bab4eba525fde4865760ed7ff4':
  MediaBrowser: Copy options before calling subscribeInternal()
This commit is contained in:
Sungsoo Lim
2016-03-09 07:46:14 +00:00
committed by android-build-merger

View File

@@ -365,7 +365,7 @@ public final class MediaBrowser {
if (options == null) {
throw new IllegalArgumentException("options are null");
}
subscribeInternal(parentId, options, callback);
subscribeInternal(parentId, new Bundle(options), callback);
}
/**
@@ -1116,7 +1116,7 @@ public final class MediaBrowser {
}
}
mCallbacks.add(callback);
mOptionsList.add(options == null ? null : new Bundle(options));
mOptionsList.add(options);
}
public boolean removeCallback(Bundle options) {