From a145db7e17b80ec2f3a061ea1d81fe6d8643cbb5 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 4 Sep 2018 16:16:23 +0300 Subject: [PATCH] Remove unnecessary apply --- .../src/net/osmand/telegram/ui/LiveNowTabFragment.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt index 1bd8c51fdc..8175d254d5 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt @@ -95,11 +95,9 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage sortByBtn = mainView.findViewById(R.id.sort_button) updateSortBtn() - mainView.findViewById(R.id.sort_by_container).apply { - setOnClickListener { - fragmentManager?.also { fm -> - SortByBottomSheet.showInstance(fm, this@LiveNowTabFragment, sortBy) - } + mainView.findViewById(R.id.sort_by_container).setOnClickListener { + fragmentManager?.also { fm -> + SortByBottomSheet.showInstance(fm, this@LiveNowTabFragment, sortBy) } }