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

Commit 8385803e authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by android-build-merger
Browse files

Merge "Catch BadParcelableException in RemoteConnection when setting extras."...

Merge "Catch BadParcelableException in RemoteConnection when setting extras." into oc-dr1-dev am: bcfa2258 am: b30749b6
am: 1b7a9c9a

Change-Id: I60e31f7734b28954ab110292466826b376184798
parents 09d4d1fd 1b7a9c9a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.hardware.camera2.CameraManager;
import android.net.Uri;
import android.os.BadParcelableException;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
@@ -1464,7 +1465,11 @@ public final class RemoteConnection {
        if (mExtras == null) {
            mExtras = new Bundle();
        }
        try {
            mExtras.putAll(extras);
        } catch (BadParcelableException bpe) {
            Log.w(this, "putExtras: could not unmarshal extras; exception = " + bpe);
        }

        notifyExtrasChanged();
    }