Merge "Camera2: Do not throw unexpected runtime exception to app" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b7bbd629eb
@@ -138,8 +138,8 @@ public class CameraBinderDecorator {
|
|||||||
* errors, then add them to the top switch statement
|
* errors, then add them to the top switch statement
|
||||||
*/
|
*/
|
||||||
if (errorFlag < 0) {
|
if (errorFlag < 0) {
|
||||||
throw new UnsupportedOperationException(String.format("Unknown error %d",
|
throw new CameraRuntimeException(CAMERA_ERROR,
|
||||||
errorFlag));
|
String.format("Unknown camera device error %d", errorFlag));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user