Exemplo n.º 1
0
 private void endWrongGearSession() {
   long diff = rpmTimestamp.getTime() - session.getStartTime().getTime();
   session.setDuration((int) diff);
   if (diff >= 2000) {
     DatabaseManager.insertWrongGearSession(session);
   }
   session = null;
 }
Exemplo n.º 2
0
 private void startWrongGearSession() {
   session = new WrongGearSession();
   session.setStartTime(rpmTimestamp);
   session.setGear(gearStatus);
 }