forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -4,7 +4,7 @@ public final class SensorDataSet {
|
|||||||
|
|
||||||
public static final float DATA_UNAVAILABLE = Float.NaN;
|
public static final float DATA_UNAVAILABLE = Float.NaN;
|
||||||
|
|
||||||
//TODO It might be necessary to consider: sensor if sensor was connected as well.
|
//TODO It might be necessary to consider: if sensor was connected as well.
|
||||||
public String sensorName;
|
public String sensorName;
|
||||||
public String sensorAddress;
|
public String sensorAddress;
|
||||||
private float heartRate;
|
private float heartRate;
|
||||||
|
|||||||
-14
@@ -1,6 +1,5 @@
|
|||||||
package de.dennisguse.opentracks.fragments;
|
package de.dennisguse.opentracks.fragments;
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@@ -79,19 +78,6 @@ public class ChooseActivityTypeDialogFragment extends DialogFragment implements
|
|||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* TODO: Only used by obsolete Androidx preferences. Remove when onAttach(Context) is called.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void onAttach(@NonNull Activity activity) {
|
|
||||||
super.onAttach(activity);
|
|
||||||
try {
|
|
||||||
chooseActivityTypeCaller = (ChooseActivityTypeCaller) activity;
|
|
||||||
} catch (ClassCastException e) {
|
|
||||||
throw new ClassCastException(activity + " must implement " + ChooseActivityTypeCaller.class.getSimpleName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onAttach(@NonNull Context context) {
|
public void onAttach(@NonNull Context context) {
|
||||||
super.onAttach(context);
|
super.onAttach(context);
|
||||||
try {
|
try {
|
||||||
|
|||||||
-1
@@ -36,7 +36,6 @@ import de.dennisguse.opentracks.util.BluetoothUtils;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages connection to Bluetooth LE heart rate monitor.
|
* Manages connection to Bluetooth LE heart rate monitor.
|
||||||
* TODO: shutdown connection.
|
|
||||||
*/
|
*/
|
||||||
public class BluetoothConnectionManager {
|
public class BluetoothConnectionManager {
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ public class IntentUtils {
|
|||||||
* @param context the context
|
* @param context the context
|
||||||
* @param trackIds the track ids
|
* @param trackIds the track ids
|
||||||
*/
|
*/
|
||||||
//TODO Share mulitple tracks in different files!
|
|
||||||
public static Intent newShareFileIntent(Context context, long[] trackIds) {
|
public static Intent newShareFileIntent(Context context, long[] trackIds) {
|
||||||
if (trackIds.length == 0) {
|
if (trackIds.length == 0) {
|
||||||
throw new RuntimeException("Need to share at least one track.");
|
throw new RuntimeException("Need to share at least one track.");
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ import de.dennisguse.opentracks.content.Track;
|
|||||||
*
|
*
|
||||||
* @author Leif Hendrik Wilden
|
* @author Leif Hendrik Wilden
|
||||||
*/
|
*/
|
||||||
//TODO Cleanup: rename variables
|
|
||||||
public class LocationUtils {
|
public class LocationUtils {
|
||||||
|
|
||||||
private static final String TAG = LocationUtils.class.getSimpleName();
|
private static final String TAG = LocationUtils.class.getSimpleName();
|
||||||
|
|||||||
Reference in New Issue
Block a user