check if timer exists
This commit is contained in:
parent
9610555663
commit
d80534a20f
@ -58,9 +58,11 @@ public class BuildingOverlay extends Overlay {
|
|||||||
} else if (action == MotionEvent.ACTION_CANCEL) {
|
} else if (action == MotionEvent.ACTION_CANCEL) {
|
||||||
multi = 0;
|
multi = 0;
|
||||||
Log.d(TAG, "cancel " + multi);
|
Log.d(TAG, "cancel " + multi);
|
||||||
|
if (mTimer != null) {
|
||||||
mTimer.cancel();
|
mTimer.cancel();
|
||||||
mTimer = null;
|
mTimer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user