change locationViewContainer visibility
This commit is contained in:
parent
54c446f278
commit
d2dd566c8b
2 changed files with 2 additions and 2 deletions
|
@ -319,7 +319,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
|
||||||
openOnMapView?.setOnClickListener(null)
|
openOnMapView?.setOnClickListener(null)
|
||||||
}
|
}
|
||||||
if (location != null && item.latLon != null) {
|
if (location != null && item.latLon != null) {
|
||||||
holder.locationViewContainer?.visibility = if (item.lastUpdated > 0) View.VISIBLE else View.INVISIBLE
|
holder.locationViewContainer?.visibility = if (item.lastUpdated > 0) View.VISIBLE else View.GONE
|
||||||
locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 - item.lastUpdated > settings.staleLocTime
|
locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 - item.lastUpdated > settings.staleLocTime
|
||||||
app.uiUtils.updateLocationView(
|
app.uiUtils.updateLocationView(
|
||||||
holder.directionIcon,
|
holder.directionIcon,
|
||||||
|
|
|
@ -296,7 +296,7 @@ class SetTimeDialogFragment : DialogFragment(), TelegramLocationListener, Telegr
|
||||||
holder.description?.visibility = View.VISIBLE
|
holder.description?.visibility = View.VISIBLE
|
||||||
holder.description?.text = OsmandFormatter.getListItemLiveTimeDescr(app, lastUpdated)
|
holder.description?.text = OsmandFormatter.getListItemLiveTimeDescr(app, lastUpdated)
|
||||||
|
|
||||||
holder.locationViewContainer?.visibility = if (lastUpdated > 0) View.VISIBLE else View.INVISIBLE
|
holder.locationViewContainer?.visibility = if (lastUpdated > 0) View.VISIBLE else View.GONE
|
||||||
locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 -
|
locationViewCache.outdatedLocation = System.currentTimeMillis() / 1000 -
|
||||||
lastUpdated > settings.staleLocTime
|
lastUpdated > settings.staleLocTime
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue