stopTimer static method

void stopTimer()

停止定时器*

Implementation

static void stopTimer() {
  if (timer != null) {
    Log.i(tag, "stopTimer");
    timer!.cancel();
    timer = null;
  }
}