hack--
This commit is contained in:
parent
45b8bf75de
commit
76f762d862
src/org/oscim
@ -63,8 +63,6 @@ public class MapWorker extends PausableThread {
|
||||
if (tile == null)
|
||||
return;
|
||||
|
||||
// Log.d("...", "load: " + tile);
|
||||
|
||||
mMapGenerator.executeJob(tile);
|
||||
|
||||
if (!isInterrupted()) {
|
||||
@ -77,14 +75,9 @@ public class MapWorker extends PausableThread {
|
||||
return THREAD_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void takeabreak() {
|
||||
mMapGenerator.getMapDatabase().cancel();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getThreadPriority() {
|
||||
return (Thread.NORM_PRIORITY + Thread.MIN_PRIORITY) / 3;
|
||||
return (Thread.NORM_PRIORITY + Thread.MIN_PRIORITY) / 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -58,7 +58,6 @@ public abstract class PausableThread extends Thread {
|
||||
public final synchronized void pause() {
|
||||
if (!mShouldPause) {
|
||||
mShouldPause = true;
|
||||
takeabreak();
|
||||
notify();
|
||||
}
|
||||
}
|
||||
@ -118,10 +117,6 @@ public abstract class PausableThread extends Thread {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
protected void takeabreak() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Called once at the end of the {@link #run()} method. The default
|
||||
* implementation is empty.
|
||||
|
Loading…
x
Reference in New Issue
Block a user