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,8 +58,10 @@ public class BuildingOverlay extends Overlay {
} else if (action == MotionEvent.ACTION_CANCEL) {
multi = 0;
Log.d(TAG, "cancel " + multi);
mTimer.cancel();
mTimer = null;
if (mTimer != null) {
mTimer.cancel();
mTimer = null;
}
}
return false;