|
|
|
@ -56,6 +56,14 @@ open class FiltersFragment : RealmFragment(), StaticRowRepresentableDataSource, |
|
|
|
private var isUpdating = false |
|
|
|
private var isUpdating = false |
|
|
|
private var showMostUsedFiltersLayout = true |
|
|
|
private var showMostUsedFiltersLayout = true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Set fragment data |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
fun setData(primaryKey: String?, filterableType: FilterableType) { |
|
|
|
|
|
|
|
this.primaryKey = primaryKey |
|
|
|
|
|
|
|
this.filterableType = filterableType |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { |
|
|
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { |
|
|
|
super.onCreateView(inflater, container, savedInstanceState) |
|
|
|
super.onCreateView(inflater, container, savedInstanceState) |
|
|
|
return inflater.inflate(R.layout.fragment_filters, container, false) |
|
|
|
return inflater.inflate(R.layout.fragment_filters, container, false) |
|
|
|
@ -289,14 +297,6 @@ open class FiltersFragment : RealmFragment(), StaticRowRepresentableDataSource, |
|
|
|
activity?.finish() |
|
|
|
activity?.finish() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Set fragment data |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
fun setData(primaryKey: String?, filterableType: FilterableType) { |
|
|
|
|
|
|
|
this.primaryKey = primaryKey |
|
|
|
|
|
|
|
this.filterableType = filterableType |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Update the most used filters visibility |
|
|
|
* Update the most used filters visibility |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|