mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2026-02-03 00:06:46 +08:00
fix(android): Error propagation when no Camera application is available (#926)
This commit is contained in:
@@ -332,6 +332,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
||||
else
|
||||
{
|
||||
LOG.d(LOG_TAG, "Error: You don't have a default camera. Your device may not be CTS complaint.");
|
||||
throw new IllegalStateException("No camera application available.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user