refactor
This commit is contained in:
parent
9547c0d505
commit
7031e79b59
2 changed files with 2 additions and 2 deletions
|
@ -486,7 +486,7 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
|
|||
}
|
||||
}
|
||||
|
||||
fun onDataSetChanged() {
|
||||
fun refreshPages() {
|
||||
viewPager.adapter?.notifyDataSetChanged()
|
||||
}
|
||||
|
||||
|
|
|
@ -856,7 +856,7 @@ class MyLocationTabFragment : Fragment(), TelegramListener {
|
|||
} else {
|
||||
settings.shareLocationToChat(lastChat.chat.id, true, lastChat.time)
|
||||
app.shareLocationHelper.startSharingLocation()
|
||||
(activity as MainActivity).onDataSetChanged()
|
||||
(activity as MainActivity).refreshPages()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue