Skip to content

Commit 8864262

Browse files
authored
fix(android): Error propagation when no Camera application is available (#926)
1 parent b002b48 commit 8864262

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/android/CameraLauncher.java

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ public void takePicture(int returnType, int encodingType)
332332
else
333333
{
334334
LOG.d(LOG_TAG, "Error: You don't have a default camera. Your device may not be CTS complaint.");
335+
throw new IllegalStateException("No camera application available.");
335336
}
336337
}
337338
}

0 commit comments

Comments
 (0)