Remove unnecessary apply

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

View file

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