|
|
@@ -196,6 +196,33 @@ public class SearchResultModel extends Model {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 선택 태그 상태 변경
|
|
|
+ *
|
|
|
+ * @param index
|
|
|
+ * @param isChecked
|
|
|
+ */
|
|
|
+ public void checkTag(int index, boolean isChecked) {
|
|
|
+ Log.w("APP# checkTag | search", "|" + " prev searchTags: " + Arrays.toString(searchTags));
|
|
|
+ Log.w("APP# checkTag | search", "|" + " index: " + index + ", isChecked: " + isChecked);
|
|
|
+ TagCheckBean tagCheckBean = tagCheckBeans.get(index);
|
|
|
+ tagCheckBean.setChecked(isChecked);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 모든 태그가 비활성 됐는지 확인
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public boolean isAllTagUnchecked() {
|
|
|
+ for (TagCheckBean tagCheckBean : tagCheckBeans) {
|
|
|
+ if (tagCheckBean.isChecked()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 상단 태그 선택하여 검색
|
|
|
*
|
|
|
@@ -206,8 +233,7 @@ public class SearchResultModel extends Model {
|
|
|
|
|
|
Log.w("APP# SearchResultModel | search", "|" + " prev searchTags: " + Arrays.toString(searchTags));
|
|
|
Log.w("APP# SearchResultModel | search", "|" + " index: " + index + ", isChecked: " + isChecked);
|
|
|
- TagCheckBean tagCheckBean = tagCheckBeans.get(index);
|
|
|
- tagCheckBean.setChecked(isChecked);
|
|
|
+ TagCheckBean tagCheckBean;
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
|
|
// 선택된 태그를 조합
|