Fix "Show location on map" notification
This commit is contained in:
parent
8f3f00de88
commit
fb7af911e6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue