This commit is contained in:
Dmitriy Ruban 2020-01-08 14:05:08 +02:00
parent 9547c0d505
commit 7031e79b59
2 changed files with 2 additions and 2 deletions

View file

@ -486,7 +486,7 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
}
}
fun onDataSetChanged() {
fun refreshPages() {
viewPager.adapter?.notifyDataSetChanged()
}

View file

@ -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()
}
}