Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Removed the parentheses around the 'view' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shahheet31 committed Oct 13, 2023
1 parent df8c1ff commit f707230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/de/dennisguse/opentracks/TrackListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit f707230

Please sign in to comment.