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:
srowen 2008-05-27 17:51:46 +00:00
parent a73fc5919a
commit 3a5bed7681
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ import javax.microedition.media.control.VideoControl;
* *
* @author Sean Owen (srowen@google.com) * @author Sean Owen (srowen@google.com)
*/ */
final class SnapshotThread extends Thread { final class SnapshotThread implements Runnable {
private final ZXingMIDlet zXingMIDlet; private final ZXingMIDlet zXingMIDlet;
private final Object waitLock; private final Object waitLock;

View file

@ -40,7 +40,7 @@ final class VideoCanvas extends Canvas implements CommandListener {
addCommand(exit); addCommand(exit);
setCommandListener(this); setCommandListener(this);
snapshotThread = new SnapshotThread(zXingMIDlet); snapshotThread = new SnapshotThread(zXingMIDlet);
snapshotThread.start(); new Thread(snapshotThread).start();
} }
protected void paint(Graphics graphics) { protected void paint(Graphics graphics) {