Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b12dbce5 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Update the method to check custom parcelable

Bug: 198449110
Test: Passed MediaSession(2)Test and MediaController2Test
Change-Id: I0b3c514fa04e5d2a9616f360573c15fc5d6d53a0
parent a3101b66
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
+3 −2
Original line number Diff line number Diff line
@@ -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;