mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 02:05:20 +00:00
cleanup
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user