Fix notification user try 2 (#541)

* count peers in notification

* cleanup
This commit is contained in:
callebtc
2026-01-04 02:35:06 +07:00
committed by GitHub
parent fa1978d587
commit 1b9f76be23
35 changed files with 36 additions and 3 deletions
@@ -276,7 +276,7 @@ class MeshForegroundService : Service() {
} else true
}
private fun buildNotification(activeUsers: Int): Notification {
private fun buildNotification(activePeers: Int): Notification {
val openIntent = Intent(this, MainActivity::class.java)
val pendingIntent = PendingIntent.getActivity(
this, 0, openIntent,
@@ -291,7 +291,7 @@ class MeshForegroundService : Service() {
)
val title = getString(R.string.app_name)
val content = getString(R.string.mesh_service_notification_content, activeUsers)
val content = getString(R.string.mesh_service_notification_content, activePeers)
return NotificationCompat.Builder(this, CHANNEL_ID)
.setContentTitle(title)