refactor live interface

Resume also contains coordinates.
 On Nov 14, 2014 7:38 AM, "Niklas Weidemann" <notifications@github.com>
wrote:

> In app/src/org/runnerup/export/RunnerUpLive.java:
>
> > @@ -145,11 +152,19 @@ private int translateType(int type) {
> >      }
> >
> >      @Override
> > -    public void liveLog(Context context, Location location, int type, double mElapsedDistanceMeter,
> > -            double mElapsedTimeMillis) {
> > +    public void liveLog(GpsTracker gpsTracker, int type) {
> > +
> > +        if (type == DB.LOCATION.TYPE_GPS) {
> > +            if (System.currentTimeMillis()-mTimeLastLog < mMinLiveLogDelayMillis) {
> > +                return;
> > +            }
> > +            mTimeLastLog = System.currentTimeMillis();
>
> I guess it depends on what behavior you want. After resume, I want the
> first gps-position to be sent sent to Liveserver. placing it outside if
> will probably make it wait 5s after resume before position is sent.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jonasoreland/runnerup/pull/121/files#r20344990>.
>