Remove unnecessary apply

This commit is contained in:
Chumva 2018-09-04 16:16:23 +03:00
parent 33a287ca9f
commit a145db7e17

View file

@ -95,13 +95,11 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
sortByBtn = mainView.findViewById<TextView>(R.id.sort_button)
updateSortBtn()
mainView.findViewById<LinearLayout>(R.id.sort_by_container).apply {
setOnClickListener {
mainView.findViewById<LinearLayout>(R.id.sort_by_container).setOnClickListener {
fragmentManager?.also { fm ->
SortByBottomSheet.showInstance(fm, this@LiveNowTabFragment, sortBy)
}
}
}
openOsmAndBtn = mainView.findViewById<TextView>(R.id.open_osmand_btn).apply {
setOnClickListener {