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:
Sungsoo Lim
2016-03-09 15:59:01 +09:00
parent f52ebd119e
commit df91a67953

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) {