Merge "camera2: Fix exception swallowing in params classes createFromParcel" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
93e157955a
@@ -631,13 +631,7 @@ public final class OutputConfiguration implements Parcelable {
|
||||
new Parcelable.Creator<OutputConfiguration>() {
|
||||
@Override
|
||||
public OutputConfiguration createFromParcel(Parcel source) {
|
||||
try {
|
||||
OutputConfiguration outputConfiguration = new OutputConfiguration(source);
|
||||
return outputConfiguration;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Exception creating OutputConfiguration from parcel", e);
|
||||
return null;
|
||||
}
|
||||
return new OutputConfiguration(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -138,13 +138,7 @@ public final class SessionConfiguration implements Parcelable {
|
||||
new Parcelable.Creator<SessionConfiguration> () {
|
||||
@Override
|
||||
public SessionConfiguration createFromParcel(Parcel source) {
|
||||
try {
|
||||
SessionConfiguration sessionConfiguration = new SessionConfiguration(source);
|
||||
return sessionConfiguration;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Exception creating SessionConfiguration from parcel", e);
|
||||
return null;
|
||||
}
|
||||
return new SessionConfiguration(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -36,13 +36,7 @@ public final class VendorTagDescriptor implements Parcelable {
|
||||
new Parcelable.Creator<VendorTagDescriptor>() {
|
||||
@Override
|
||||
public VendorTagDescriptor createFromParcel(Parcel source) {
|
||||
try {
|
||||
VendorTagDescriptor vendorDescriptor = new VendorTagDescriptor(source);
|
||||
return vendorDescriptor;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Exception creating VendorTagDescriptor from parcel", e);
|
||||
return null;
|
||||
}
|
||||
return new VendorTagDescriptor(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -36,13 +36,7 @@ public final class VendorTagDescriptorCache implements Parcelable {
|
||||
new Parcelable.Creator<VendorTagDescriptorCache>() {
|
||||
@Override
|
||||
public VendorTagDescriptorCache createFromParcel(Parcel source) {
|
||||
try {
|
||||
VendorTagDescriptorCache vendorDescriptorCache = new VendorTagDescriptorCache(source);
|
||||
return vendorDescriptorCache;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "Exception creating VendorTagDescriptorCache from parcel", e);
|
||||
return null;
|
||||
}
|
||||
return new VendorTagDescriptorCache(source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user