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

This commit is contained in:
Sungsoo Lim
2016-03-09 07:41:49 +00:00
committed by Android (Google) Code Review

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