This commit is contained in:
Hannes Janetzek 2013-03-18 03:55:04 +01:00
parent 45b8bf75de
commit 76f762d862
2 changed files with 1 additions and 13 deletions

View File

@ -63,8 +63,6 @@ public class MapWorker extends PausableThread {
if (tile == null) if (tile == null)
return; return;
// Log.d("...", "load: " + tile);
mMapGenerator.executeJob(tile); mMapGenerator.executeJob(tile);
if (!isInterrupted()) { if (!isInterrupted()) {
@ -77,14 +75,9 @@ public class MapWorker extends PausableThread {
return THREAD_NAME; return THREAD_NAME;
} }
@Override
protected void takeabreak() {
mMapGenerator.getMapDatabase().cancel();
}
@Override @Override
protected int getThreadPriority() { protected int getThreadPriority() {
return (Thread.NORM_PRIORITY + Thread.MIN_PRIORITY) / 3; return (Thread.NORM_PRIORITY + Thread.MIN_PRIORITY) / 2;
} }
@Override @Override

View File

@ -58,7 +58,6 @@ public abstract class PausableThread extends Thread {
public final synchronized void pause() { public final synchronized void pause() {
if (!mShouldPause) { if (!mShouldPause) {
mShouldPause = true; mShouldPause = true;
takeabreak();
notify(); notify();
} }
} }
@ -118,10 +117,6 @@ public abstract class PausableThread extends Thread {
// do nothing // do nothing
} }
protected void takeabreak() {
// do nothing
}
/** /**
* Called once at the end of the {@link #run()} method. The default * Called once at the end of the {@link #run()} method. The default
* implementation is empty. * implementation is empty.