Merge "Merge "Catch BadParcelableException in RemoteConnection when setting extras." into oc-dr1-dev am: bcfa22584b" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
149cfd37db
@@ -25,6 +25,7 @@ import android.annotation.Nullable;
|
|||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.hardware.camera2.CameraManager;
|
import android.hardware.camera2.CameraManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import android.os.BadParcelableException;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
@@ -1464,7 +1465,11 @@ public final class RemoteConnection {
|
|||||||
if (mExtras == null) {
|
if (mExtras == null) {
|
||||||
mExtras = new Bundle();
|
mExtras = new Bundle();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
mExtras.putAll(extras);
|
mExtras.putAll(extras);
|
||||||
|
} catch (BadParcelableException bpe) {
|
||||||
|
Log.w(this, "putExtras: could not unmarshal extras; exception = " + bpe);
|
||||||
|
}
|
||||||
|
|
||||||
notifyExtrasChanged();
|
notifyExtrasChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user