refactor setupOptionsBtn call

This commit is contained in:
Chumva 2018-08-10 13:14:19 +03:00
parent 4cd1a344ba
commit 06594ff687

View file

@ -111,10 +111,10 @@ class MyLocationTabFragment : Fragment(), TelegramListener, ChatLiveMessagesList
setImageResource(R.drawable.img_my_location_user)
}
optionsBtn = mainView.findViewById<ImageView>(R.id.options)
with(activity as MainActivity) {
optionsBtn = mainView.findViewById<ImageView>(R.id.options)
activity.setupOptionsBtn(optionsBtn)
activity.setupOptionsBtn(mainView.findViewById<ImageView>(R.id.options_title))
setupOptionsBtn(optionsBtn)
setupOptionsBtn(mainView.findViewById<ImageView>(R.id.options_title))
}
imageContainer = mainView.findViewById<FrameLayout>(R.id.image_container)