Fix "Show location on map" notification

This commit is contained in:
Alex Sytnyk 2018-09-06 18:49:38 +03:00
parent 8f3f00de88
commit fb7af911e6

View file

@ -24,7 +24,8 @@ class LocationNotification(app: TelegramApplication) : TelegramNotification(app,
}
override val isEnabled: Boolean
get() = app.settings.hasAnyChatToShareLocation() || app.settings.hasAnyChatToShowOnMap()
get() = app.settings.hasAnyChatToShareLocation()
|| (!app.showLocationHelper.isUseOsmandCallback() && app.settings.hasAnyChatToShowOnMap())
override val telegramNotificationId: Int
get() = TelegramNotification.LOCATION_NOTIFICATION_SERVICE_ID