MediaBrowser: Copy options before calling subscribeInternal()
If MediaBrowser and MediaBrowserService are on the same process, the options object could be shared. Bug: 27398805 Change-Id: I61ce63f667e46229662d85cd6f417b104f9d1388
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user