This commit is contained in:
Alexey Kulish 2016-10-04 21:59:11 +03:00
parent 0c876ccac5
commit abbc3a6d79
2 changed files with 10 additions and 9 deletions

View file

@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
android:minHeight="48dp"
android:clickable="false"
android:orientation="vertical">
@ -11,8 +12,6 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_gravity="bottom"
android:background="?attr/bg_color"
android:gravity="center"
android:orientation="horizontal"
android:paddingRight="16dp">
@ -98,11 +97,10 @@
</LinearLayout>
<View
android:id="@+id/item_divider"
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="54dp"
android:layout_marginStart="54dp"
android:background="?attr/dashboard_divider"/>
</LinearLayout>

View file

@ -205,6 +205,7 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
View editTextView = inflater.inflate(R.layout.poi_filter_list_item, listView, false);
editText = (EditText) editTextView.findViewById(R.id.editText);
editTextView.findViewById(R.id.divider).setVisibility(View.GONE);
editText.setText(nameFilterText);
editText.addTextChangedListener(new TextWatcher() {
@Override
@ -465,10 +466,12 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
if (entry.getKey().getExcludedPoiAdditionalCategories() != null) {
excludedPoiAdditionalCategories.addAll(entry.getKey().getExcludedPoiAdditionalCategories());
}
for (String keyName : entry.getValue()) {
List<String> categories = poiTypes.getPoiTypeByKey(keyName).getExcludedPoiAdditionalCategories();
if (categories != null) {
excludedPoiAdditionalCategories.addAll(categories);
if (entry.getValue() != null) {
for (String keyName : entry.getValue()) {
List<String> categories = poiTypes.getPoiTypeByKey(keyName).getExcludedPoiAdditionalCategories();
if (categories != null) {
excludedPoiAdditionalCategories.addAll(categories);
}
}
}
}
@ -681,7 +684,7 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
final SwitchCompat switchItem = (SwitchCompat) view.findViewById(R.id.switchItem);
final CheckBox checkBoxItem = (CheckBox) view.findViewById(R.id.checkboxItem);
final ImageView expandItem = (ImageView) view.findViewById(R.id.expandItem);
final View divider = view.findViewById(R.id.item_divider);
final View divider = view.findViewById(R.id.divider);
if (item != null) {
if (nextItem != null && nextItem.groupIndex == item.groupIndex) {