diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt index 8f439b79d7..885deeec36 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt @@ -486,7 +486,7 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene } } - fun onDataSetChanged() { + fun refreshPages() { viewPager.adapter?.notifyDataSetChanged() } diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt index 9596d6114a..35ea29009b 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MyLocationTabFragment.kt @@ -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() } }