check if timer exists

This commit is contained in:
Hannes Janetzek 2013-02-06 11:10:26 +01:00
parent 9610555663
commit d80534a20f

View File

@ -58,9 +58,11 @@ public class BuildingOverlay extends Overlay {
} else if (action == MotionEvent.ACTION_CANCEL) {
multi = 0;
Log.d(TAG, "cancel " + multi);
if (mTimer != null) {
mTimer.cancel();
mTimer = null;
}
}
return false;
}