mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-04-27 14:21:15 +08:00
fix(android): Error propagation when no Camera application is available (#926)
This commit is contained in:
parent
b002b48735
commit
8864262022
@ -332,6 +332,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG.d(LOG_TAG, "Error: You don't have a default camera. Your device may not be CTS complaint.");
|
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user