From f707230726c46e1155052681fd722c35147a6482 Mon Sep 17 00:00:00 2001 From: shahheet31 Date: Thu, 12 Oct 2023 23:53:07 -0400 Subject: [PATCH] Removed the parentheses around the 'view' parameter --- .../java/de/dennisguse/opentracks/TrackListActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/dennisguse/opentracks/TrackListActivity.java b/src/main/java/de/dennisguse/opentracks/TrackListActivity.java index bf10ba549..ec460aff7 100644 --- a/src/main/java/de/dennisguse/opentracks/TrackListActivity.java +++ b/src/main/java/de/dennisguse/opentracks/TrackListActivity.java @@ -166,8 +166,8 @@ protected void onCreate(Bundle savedInstanceState) { trackRecordingServiceConnection = new TrackRecordingServiceConnection(bindChangedCallback); - viewBinding.aggregatedStatsButton.setOnClickListener((view) -> startActivity(IntentUtils.newIntent(this, AggregatedStatisticsActivity.class))); - viewBinding.sensorStartButton.setOnClickListener((view) -> { + viewBinding.aggregatedStatsButton.setOnClickListener(view -> startActivity(IntentUtils.newIntent(this, AggregatedStatisticsActivity.class))); + viewBinding.sensorStartButton.setOnClickListener(view -> { LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); if (locationManager != null && !locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)); @@ -238,7 +238,7 @@ public void bindView(View view, Context context, Cursor cursor) { viewBinding.trackList.setAdapter(resourceCursorAdapter); ActivityUtils.configureListViewContextualMenu(viewBinding.trackList, contextualActionModeCallback); - viewBinding.trackListFabAction.setOnClickListener((view) -> { + viewBinding.trackListFabAction.setOnClickListener(view -> { if (recordingStatus.isRecording()) { Toast.makeText(TrackListActivity.this, getString(R.string.hold_to_stop), Toast.LENGTH_LONG).show(); return; @@ -256,7 +256,7 @@ public void bindView(View view, Context context, Cursor cursor) { connection.unbind(this); }).startAndBind(this, true); }); - viewBinding.trackListFabAction.setOnLongClickListener((view) -> { + viewBinding.trackListFabAction.setOnLongClickListener(view -> { if (!recordingStatus.isRecording()) { return false; }