Commit c155d778 authored by Bartek Fabiszewski's avatar Bartek Fabiszewski
Browse files

Restart last update time after starting new track

parent 1f876ed7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -185,6 +185,16 @@ public class LoggerService extends Service {
        return lastUpdateRealtime;
    }

    /**
     * Set realtime of last update in milliseconds
     *
     * @param timeMs Time
     */
    public static void lastUpdateRealtime(long timeMs) {

        lastUpdateRealtime = timeMs;
    }

    /**
     * Main service thread class handling location updates.
     */
+2 −0
Original line number Diff line number Diff line
@@ -386,7 +386,9 @@ public class MainActivity extends AppCompatActivity {
                    return;
                }
                db.newTrack(trackName);
                LoggerService.lastUpdateRealtime(0);
                updateTrackLabel(trackName);
                updateStatus();
                dialog.cancel();
            }
        });