This commit is contained in:
callebtc
2026-01-04 02:28:54 +07:00
parent ed7e672a9f
commit c3856967a5
@@ -276,7 +276,7 @@ class MeshForegroundService : Service() {
} else true } else true
} }
private fun buildNotification(activeUsers: Int): Notification { private fun buildNotification(activePeers: Int): Notification {
val openIntent = Intent(this, MainActivity::class.java) val openIntent = Intent(this, MainActivity::class.java)
val pendingIntent = PendingIntent.getActivity( val pendingIntent = PendingIntent.getActivity(
this, 0, openIntent, this, 0, openIntent,
@@ -291,7 +291,7 @@ class MeshForegroundService : Service() {
) )
val title = getString(R.string.app_name) 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) return NotificationCompat.Builder(this, CHANNEL_ID)
.setContentTitle(title) .setContentTitle(title)