added checks for locationViewContainer visibility
This commit is contained in:
parent
85d71779f0
commit
ea0ad82805
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue