修复filter key错误

pull/75/head
Harold 3 years ago
parent 75b664bd8c
commit c0e6c8fd23
  1. 2
      app/src/main/java/com/github/tvbox/osc/ui/dialog/GridFilterDialog.java

@ -69,7 +69,7 @@ public class GridFilterDialog extends BaseDialog {
public void onItemClick(BaseQuickAdapter adapter, View view, int position) { public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
selectChange = true; selectChange = true;
String filterSelect = sortData.filterSelect.get(key); String filterSelect = sortData.filterSelect.get(key);
if (filterSelect == null || !filterSelect.equals(values.get(position))) { if (filterSelect == null || !filterSelect.equals(keys.get(position))) {
sortData.filterSelect.put(key, keys.get(position)); sortData.filterSelect.put(key, keys.get(position));
if (pre != null) { if (pre != null) {
TextView val = pre.findViewById(R.id.filterValue); TextView val = pre.findViewById(R.id.filterValue);

Loading…
Cancel
Save