Skip to content

Commit

Permalink
fix: Array list in search type fragment (fossasia#2198)
Browse files Browse the repository at this point in the history
  • Loading branch information
liveHarshit committed Jul 27, 2019
1 parent 4c748e6 commit 4be4810
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SearchTypeFragment : Fragment() {
private val searchTypeViewModel by viewModel<SearchTypeViewModel>()
private val safeArgs: SearchTypeFragmentArgs by navArgs()
private lateinit var rootView: View
private val eventTypesList: MutableList<String> = arrayListOf(getString(R.string.anything))
private val eventTypesList = ArrayList<String>()

override fun onCreateView(
inflater: LayoutInflater,
Expand All @@ -41,6 +41,7 @@ class SearchTypeFragment : Fragment() {
rootView.eventTypesRecyclerView.layoutManager = LinearLayoutManager(activity)
rootView.eventTypesRecyclerView.adapter = typesAdapter
searchTypeViewModel.loadEventTypes()
eventTypesList.add(getString(R.string.anything))

searchTypeViewModel.connection
.nonNull()
Expand Down

0 comments on commit 4be4810

Please sign in to comment.