Merge "Update the method to check custom parcelable"
This commit is contained in:
@@ -302,8 +302,9 @@ public class MediaSession2 implements AutoCloseable {
|
||||
parcel.setDataPosition(0);
|
||||
Bundle out = parcel.readBundle(null);
|
||||
|
||||
// Calling Bundle#size() will trigger Bundle#unparcel().
|
||||
out.size();
|
||||
for (String key : out.keySet()) {
|
||||
out.get(key);
|
||||
}
|
||||
} catch (BadParcelableException e) {
|
||||
Log.d(TAG, "Custom parcelable in bundle.", e);
|
||||
return true;
|
||||
|
||||
@@ -657,8 +657,9 @@ public final class MediaSession {
|
||||
parcel.setDataPosition(0);
|
||||
Bundle out = parcel.readBundle(null);
|
||||
|
||||
// Calling Bundle#size() will trigger Bundle#unparcel().
|
||||
out.size();
|
||||
for (String key : out.keySet()) {
|
||||
out.get(key);
|
||||
}
|
||||
} catch (BadParcelableException e) {
|
||||
Log.d(TAG, "Custom parcelable in bundle.", e);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user