check if timer exists
This commit is contained in:
parent
9610555663
commit
d80534a20f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user