|
|
|
|
@ -67,9 +67,10 @@ public class GridFilterDialog extends BaseDialog { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { |
|
|
|
|
if (sortData.filterSelect.get(key) == null || !sortData.filterSelect.get(key).equals(values.get(position))) { |
|
|
|
|
selectChange = true; |
|
|
|
|
String filterSelect = sortData.filterSelect.get(key); |
|
|
|
|
if (filterSelect == null || !filterSelect.equals(values.get(position))) { |
|
|
|
|
sortData.filterSelect.put(key, keys.get(position)); |
|
|
|
|
selectChange = true; |
|
|
|
|
if (pre != null) { |
|
|
|
|
TextView val = pre.findViewById(R.id.filterValue); |
|
|
|
|
val.getPaint().setFakeBoldText(false); |
|
|
|
|
@ -79,6 +80,12 @@ public class GridFilterDialog extends BaseDialog { |
|
|
|
|
val.getPaint().setFakeBoldText(true); |
|
|
|
|
val.setTextColor(getContext().getResources().getColor(R.color.color_02F8E1)); |
|
|
|
|
pre = view; |
|
|
|
|
} else { |
|
|
|
|
sortData.filterSelect.remove(key); |
|
|
|
|
TextView val = pre.findViewById(R.id.filterValue); |
|
|
|
|
val.getPaint().setFakeBoldText(false); |
|
|
|
|
val.setTextColor(getContext().getResources().getColor(R.color.color_FFFFFF)); |
|
|
|
|
pre = null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|