remove unnecessary apply
This commit is contained in:
parent
cf47b3c4c0
commit
79fe8ae039
2 changed files with 6 additions and 11 deletions
|
@ -77,10 +77,8 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
mainView.findViewById<ImageView>(R.id.options).apply {
|
(activity as MainActivity).setupOptionsBtn(mainView.findViewById<ImageView>(R.id.options))
|
||||||
(activity as MainActivity).setupOptionsBtn(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
openOsmAndBtn = mainView.findViewById<View>(R.id.open_osmand_btn).apply {
|
openOsmAndBtn = mainView.findViewById<View>(R.id.open_osmand_btn).apply {
|
||||||
setOnClickListener {
|
setOnClickListener {
|
||||||
activity?.packageManager?.getLaunchIntentForPackage(OsmandAidlHelper.OSMAND_PACKAGE_NAME)
|
activity?.packageManager?.getLaunchIntentForPackage(OsmandAidlHelper.OSMAND_PACKAGE_NAME)
|
||||||
|
|
|
@ -111,13 +111,10 @@ class MyLocationTabFragment : Fragment(), TelegramListener, ChatLiveMessagesList
|
||||||
setImageResource(R.drawable.img_my_location_user)
|
setImageResource(R.drawable.img_my_location_user)
|
||||||
}
|
}
|
||||||
|
|
||||||
optionsBtn = mainView.findViewById<ImageView>(R.id.options).apply {
|
optionsBtn = mainView.findViewById<ImageView>(R.id.options)
|
||||||
(activity as MainActivity).setupOptionsBtn(this)
|
(activity as MainActivity).setupOptionsBtn(optionsBtn)
|
||||||
}
|
|
||||||
|
activity.setupOptionsBtn(mainView.findViewById<ImageView>(R.id.options_title))
|
||||||
mainView.findViewById<ImageView>(R.id.options_title).apply {
|
|
||||||
(activity as MainActivity).setupOptionsBtn(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
imageContainer = mainView.findViewById<FrameLayout>(R.id.image_container)
|
imageContainer = mainView.findViewById<FrameLayout>(R.id.image_container)
|
||||||
titleContainer = mainView.findViewById<LinearLayout>(R.id.title_container).apply {
|
titleContainer = mainView.findViewById<LinearLayout>(R.id.title_container).apply {
|
||||||
|
|
Loading…
Reference in a new issue