private final IWearableActivityControl controller = new WearableActivityController();
private MyTimerCounter counter = new MyTimerCounter();
private boolean isCounterLapTime = true;
- private boolean isLaptimeView = false;
+ private boolean isLaptimeView = true;
private int currentLapCount = 0;
private ITimerStopTrigger stopTrigger = null;
// start a timer!
startTimer();
}
-
- // 表示ビューの切り替え
- changeGraphicView(isLaptimeView);
}
/**
@Override
public void run()
{
+ // ラップタイム表示状態の更新
reloadLapTimeList(forceStartTimer);
+
+ // 表示ビューの切り替え
+ changeGraphicView(isLaptimeView);
+
+ // 表示のボタン状態を変更
updateTimerLabel();
}
});
private boolean isStarted = false;
private long maxLaptime = 0;
private long lastSystemLaptime = 0;
- //private long currentLapTime = 0;
private int totalLaptimeCount = 0;
private List<Long> refTimeList = null;
refLapTimeList = null;
refTimeList = timerCounter.getReferenceLapTimeList();
+ if (refTimeList == null)
+ {
+ return;
+ }
totalLaptimeCount = refTimeList.size();
maxLaptime = 0;
if (totalLaptimeCount <= 1)