Skip to content

Commit

Permalink
Fix codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gosso22 committed Oct 17, 2023
1 parent 6731fe0 commit f252bbf
Showing 1 changed file with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,26 +193,20 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
});

difficultActivity2 = view.findViewById(R.id.difficult_activity_2);
difficultActivity2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
if (b)
listOfDifficultActivities.add(ACTIVITY_2);
else
listOfDifficultActivities.remove(ACTIVITY_2);
}
difficultActivity2.setOnCheckedChangeListener((compoundButton, b) -> {
if (b)
listOfDifficultActivities.add(ACTIVITY_2);
else
listOfDifficultActivities.remove(ACTIVITY_2);
});

difficultNutrition = view.findViewById(R.id.difficult_nutrition_activity);

difficultNutrition.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if(isChecked){
listOfDifficultActivities.add(KkConstants.GCActivities.NUTRITION_ACTIVITY);
}else{
listOfDifficultActivities.remove(KkConstants.GCActivities.NUTRITION_ACTIVITY);
}
difficultNutrition.setOnCheckedChangeListener((buttonView, isChecked) -> {
if(isChecked){
listOfDifficultActivities.add(KkConstants.GCActivities.NUTRITION_ACTIVITY);
} else {
listOfDifficultActivities.remove(KkConstants.GCActivities.NUTRITION_ACTIVITY);
}
});

Expand Down

0 comments on commit f252bbf

Please sign in to comment.