diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt index bf688b4cb1..680c98312b 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt @@ -319,7 +319,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage openOnMapView?.setOnClickListener(null) } if (location != null && item.latLon != null) { - holder.locationViewContainer?.visibility = View.VISIBLE + holder.locationViewContainer?.visibility = if (item.lastUpdated > 0) View.VISIBLE else View.INVISIBLE locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 - item.lastUpdated > settings.staleLocTime app.uiUtils.updateLocationView( holder.directionIcon, diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt index 5cb3fad70a..eceee6326b 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/SetTimeDialogFragment.kt @@ -296,7 +296,7 @@ class SetTimeDialogFragment : DialogFragment(), TelegramLocationListener, Telegr holder.description?.visibility = View.VISIBLE holder.description?.text = getListItemLiveTimeDescr(lastUpdated) - holder.locationViewContainer?.visibility = View.VISIBLE + holder.locationViewContainer?.visibility = if (lastUpdated > 0) View.VISIBLE else View.INVISIBLE locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 - lastUpdated > settings.staleLocTime