From 575819c0cdfdc08b177f9b1095612de5b82f02ad Mon Sep 17 00:00:00 2001 From: Urvil Patel Date: Sat, 14 Oct 2023 22:16:22 -0400 Subject: [PATCH] fix gradlew lint errors --- .../opentracks/ui/customRecordingLayout/CsvLayoutUtils.java | 2 +- .../ui/customRecordingLayout/CustomLayoutFieldType.java | 2 +- .../opentracks/ui/customRecordingLayout/DataField.java | 2 +- .../opentracks/ui/customRecordingLayout/RecordingLayout.java | 2 +- .../ui/customRecordingLayout/RecordingLayoutIO.java | 2 +- .../SettingsCustomLayoutEditAdapter.java | 2 +- .../SettingsCustomLayoutListAdapter.java | 2 +- .../opentracks/ui/markers/MarkerDetailActivity.java | 5 +---- .../opentracks/ui/markers/MarkerDetailFragment.java | 3 ++- 9 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CsvLayoutUtils.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CsvLayoutUtils.java index 4e2e2ca45..a47fb15dc 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CsvLayoutUtils.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CsvLayoutUtils.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import androidx.annotation.Nullable; diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CustomLayoutFieldType.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CustomLayoutFieldType.java index 88a0221f4..6ce0d694c 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CustomLayoutFieldType.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/CustomLayoutFieldType.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; public enum CustomLayoutFieldType { GENERIC(1), diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/DataField.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/DataField.java index 99a2a46cd..d3c94fb05 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/DataField.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/DataField.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import android.os.Parcel; import android.os.Parcelable; diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayout.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayout.java index 62a23d162..bc05ffd10 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayout.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayout.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import android.os.Parcel; import android.os.Parcelable; diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayoutIO.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayoutIO.java index bb765f0f8..688b46355 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayoutIO.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/RecordingLayoutIO.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import android.content.res.Resources; import android.util.Log; diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutEditAdapter.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutEditAdapter.java index 8a6a6b5df..ec85fc469 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutEditAdapter.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutEditAdapter.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import android.content.Context; import android.util.Log; diff --git a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutListAdapter.java b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutListAdapter.java index df626468c..8fbcf628e 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutListAdapter.java +++ b/src/main/java/de/dennisguse/opentracks/ui/customRecordingLayout/SettingsCustomLayoutListAdapter.java @@ -1,4 +1,4 @@ -package de.dennisguse.opentracks.ui.customrecordinglayout; +package de.dennisguse.opentracks.ui.customRecordingLayout; import android.content.Context; import android.view.LayoutInflater; diff --git a/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailActivity.java b/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailActivity.java index 4ef9cc383..f504511ee 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailActivity.java +++ b/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailActivity.java @@ -60,10 +60,7 @@ protected void onCreate(Bundle bundle) { super.onCreate(bundle); Object bundleMarkerId = getIntent().getExtras().get(EXTRA_MARKER_ID); - Marker.Id markerId = null; - if(bundleMarkerId instanceof Marker.Id id){ - markerId = id; - } + Marker.Id markerId = (bundleMarkerId instanceof Marker.Id markerId) ? (Marker.Id) bundleMarkerId : null; if (bundleMarkerId instanceof Long) { //Incoming Intent via Dashboard API. markerId = new Marker.Id((Long) bundleMarkerId); diff --git a/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailFragment.java b/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailFragment.java index fbc6a6590..9c15504b4 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailFragment.java +++ b/src/main/java/de/dennisguse/opentracks/ui/markers/MarkerDetailFragment.java @@ -80,7 +80,8 @@ public void onAnimationStart(Animation anim) { throw new UnsupportedOperationException("onAnimationStart is not supported for this class."); } - + @Override + public void onAnimationRepeat(Animation anim) {} @Override