forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -9,6 +9,7 @@ import androidx.test.filters.LargeTest;
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.JUnit4;
|
import org.junit.runners.JUnit4;
|
||||||
@@ -196,6 +197,7 @@ public class ExportImportTest {
|
|||||||
assertNull(importedTrack);
|
assertNull(importedTrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@Test
|
@Test
|
||||||
public void kmz_only_track() {
|
public void kmz_only_track() {
|
||||||
@@ -203,6 +205,7 @@ public class ExportImportTest {
|
|||||||
Log.e(TAG, "Test not implemented.");
|
Log.e(TAG, "Test not implemented.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@Test
|
@Test
|
||||||
public void kmz_with_trackdetail() {
|
public void kmz_with_trackdetail() {
|
||||||
@@ -210,6 +213,7 @@ public class ExportImportTest {
|
|||||||
Log.e(TAG, "Test not implemented.");
|
Log.e(TAG, "Test not implemented.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@Test
|
@Test
|
||||||
public void kmz_with_trackdetail_and_sensordata() {
|
public void kmz_with_trackdetail_and_sensordata() {
|
||||||
@@ -217,6 +221,7 @@ public class ExportImportTest {
|
|||||||
Log.e(TAG, "Test not implemented.");
|
Log.e(TAG, "Test not implemented.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore
|
||||||
@LargeTest
|
@LargeTest
|
||||||
@Test
|
@Test
|
||||||
public void kmz_with_trackdetail_and_sensordata_and_pictures() {
|
public void kmz_with_trackdetail_and_sensordata_and_pictures() {
|
||||||
|
|||||||
@@ -95,9 +95,7 @@ public class TrackEditActivity extends AbstractActivity implements ChooseActivit
|
|||||||
}
|
}
|
||||||
|
|
||||||
setActivityTypeIcon(iconValue);
|
setActivityTypeIcon(iconValue);
|
||||||
viewBinding.trackEditActivityTypeIcon.setOnClickListener(v -> {
|
viewBinding.trackEditActivityTypeIcon.setOnClickListener(v -> ChooseActivityTypeDialogFragment.showDialog(getSupportFragmentManager(), viewBinding.trackEditActivityType.getText().toString()));
|
||||||
ChooseActivityTypeDialogFragment.showDialog(getSupportFragmentManager(), viewBinding.trackEditActivityType.getText().toString());
|
|
||||||
});
|
|
||||||
|
|
||||||
viewBinding.trackEditDescription.setText(track.getDescription());
|
viewBinding.trackEditDescription.setText(track.getDescription());
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ public class ChartFragment extends Fragment implements TrackDataListener {
|
|||||||
|
|
||||||
private ChartBinding viewBinding;
|
private ChartBinding viewBinding;
|
||||||
|
|
||||||
//TODO Why is this needed?
|
//TODO REMOVE: Used to restore the TrackStatistics via TrackStatisticsUpdater; for the diagrams we should consider not this setting and just use all data that is in the database
|
||||||
|
@Deprecated
|
||||||
private int recordingDistanceInterval;
|
private int recordingDistanceInterval;
|
||||||
private String category = "";
|
private String category = "";
|
||||||
|
|
||||||
|
|||||||
@@ -109,9 +109,7 @@ public class StatisticsRecordingFragment extends Fragment implements TrackDataLi
|
|||||||
handlerUpdateUI = new Handler();
|
handlerUpdateUI = new Handler();
|
||||||
|
|
||||||
|
|
||||||
viewBinding.statsActivityTypeIcon.setOnClickListener(v -> {
|
viewBinding.statsActivityTypeIcon.setOnClickListener(v -> ((TrackRecordingActivity) getActivity()).chooseActivityType(category));
|
||||||
((TrackRecordingActivity) getActivity()).chooseActivityType(category);
|
|
||||||
});
|
|
||||||
|
|
||||||
sensorsAdapter = new SensorsAdapter(getContext());
|
sensorsAdapter = new SensorsAdapter(getContext());
|
||||||
sensorsRecyclerView = viewBinding.statsSensorsRecyclerView;
|
sensorsRecyclerView = viewBinding.statsSensorsRecyclerView;
|
||||||
|
|||||||
@@ -95,9 +95,7 @@ public class ActivityTypePreference extends DialogPreference {
|
|||||||
});
|
});
|
||||||
|
|
||||||
iconView = view.findViewById(R.id.activity_type_preference_spinner);
|
iconView = view.findViewById(R.id.activity_type_preference_spinner);
|
||||||
iconView.setOnClickListener((it) -> {
|
iconView.setOnClickListener((it) -> showIconSelectDialog());
|
||||||
showIconSelectDialog();
|
|
||||||
});
|
|
||||||
|
|
||||||
updateIcon(TrackIconUtils.getIconValue(context, category));
|
updateIcon(TrackIconUtils.getIconValue(context, category));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user