forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -85,7 +85,7 @@ public class KMLTrackExporter implements TrackExporter {
|
||||
|
||||
private PrintWriter printWriter;
|
||||
|
||||
private ArrayList<TrackPoint.Type> trackpointTypeList = new ArrayList<>();
|
||||
private final ArrayList<TrackPoint.Type> trackpointTypeList = new ArrayList<>();
|
||||
|
||||
private final List<Float> speedList = new ArrayList<>();
|
||||
private final List<Float> distanceList = new ArrayList<>();
|
||||
|
||||
@@ -249,7 +249,7 @@ public class TrackRecordingService extends Service implements TrackPointCreator.
|
||||
if (notificationManager == null) {
|
||||
|
||||
StringWriter writer = new StringWriter();
|
||||
Exception e = new RuntimeException("TrackRecording.newGpsStatus() called after onDestroy(); objectID: " + this + " with thread: " + Thread.currentThread().toString());
|
||||
Exception e = new RuntimeException("TrackRecording.newGpsStatus() called after onDestroy(); objectID: " + this + " with thread: " + Thread.currentThread());
|
||||
e.printStackTrace(new PrintWriter(writer));
|
||||
|
||||
Log.e(TAG, e.getMessage() + " " + writer);
|
||||
|
||||
@@ -14,7 +14,6 @@ import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@@ -23,9 +22,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user