@@ -80,7 +80,12 @@ public void onBindViewHolder(@NonNull RecyclerViewHolder holder, int position) {
80
80
holder .placeTypeIcon .setImageResource (label .getIcon ());
81
81
holder .placeTypeLabel .setText (label .toString ());
82
82
83
- holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .divider_grey ) : callback .isDarkTheme () ? Color .BLACK : Color .WHITE );
83
+ if (callback .isDarkTheme ()) {
84
+ holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .opak_middle_grey ) : ContextCompat .getColor (context , R .color .black ));
85
+ } else {
86
+ holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .divider_grey ) : ContextCompat .getColor (context , R .color .white ));
87
+ }
88
+
84
89
holder .placeTypeLayout .setOnClickListener (view -> {
85
90
callback .setCheckboxUnknown ();
86
91
if (label .isSelected ()) {
@@ -89,7 +94,13 @@ public void onBindViewHolder(@NonNull RecyclerViewHolder holder, int position) {
89
94
selectedLabels .add (label );
90
95
}
91
96
label .setSelected (!label .isSelected ());
92
- holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .divider_grey ) : callback .isDarkTheme () ? Color .BLACK : Color .WHITE );
97
+
98
+ if (callback .isDarkTheme ()) {
99
+ holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .opak_middle_grey ) : ContextCompat .getColor (context , R .color .black ));
100
+ } else {
101
+ holder .placeTypeLayout .setBackgroundColor (label .isSelected () ? ContextCompat .getColor (context , R .color .divider_grey ) : ContextCompat .getColor (context , R .color .white ));
102
+ }
103
+
93
104
callback .filterByMarkerType (selectedLabels , 0 , false , false );
94
105
});
95
106
}
@@ -165,7 +176,7 @@ public void setRecyclerViewAdapterAllSelected() {
165
176
notifyDataSetChanged ();
166
177
}
167
178
168
- public interface Callback {
179
+ public interface Callback {
169
180
170
181
void setCheckboxUnknown ();
171
182
0 commit comments