mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
Catch weird Error 136 from Nokia N70 and continue when opening capture://image
git-svn-id: https://zxing.googlecode.com/svn/trunk@183 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
ea00e20d22
commit
f3c5cc6b52
|
@ -89,7 +89,10 @@ public final class ZXingMIDlet extends MIDlet {
|
|||
player = Manager.createPlayer("capture://image");
|
||||
} catch (MediaException me) {
|
||||
// if this fails, just continue with capture://video
|
||||
}
|
||||
} catch (Error e) {
|
||||
// Ugly, but, it seems the Nokia N70 throws "java.lang.Error: 136" here
|
||||
// We should still try to continue
|
||||
}
|
||||
}
|
||||
if (player == null) {
|
||||
player = Manager.createPlayer("capture://video");
|
||||
|
|
Loading…
Reference in a new issue