mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
SnapshotThread now Runnable instead of a Thread, to dodge an odd override problem with stop() method
git-svn-id: https://zxing.googlecode.com/svn/trunk@403 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
a73fc5919a
commit
3a5bed7681
|
@ -32,7 +32,7 @@ import javax.microedition.media.control.VideoControl;
|
|||
*
|
||||
* @author Sean Owen (srowen@google.com)
|
||||
*/
|
||||
final class SnapshotThread extends Thread {
|
||||
final class SnapshotThread implements Runnable {
|
||||
|
||||
private final ZXingMIDlet zXingMIDlet;
|
||||
private final Object waitLock;
|
||||
|
|
|
@ -40,7 +40,7 @@ final class VideoCanvas extends Canvas implements CommandListener {
|
|||
addCommand(exit);
|
||||
setCommandListener(this);
|
||||
snapshotThread = new SnapshotThread(zXingMIDlet);
|
||||
snapshotThread.start();
|
||||
new Thread(snapshotThread).start();
|
||||
}
|
||||
|
||||
protected void paint(Graphics graphics) {
|
||||
|
|
Loading…
Reference in a new issue