Skip to content

Commit

Permalink
Refine code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Aug 10, 2024
1 parent a35cf2b commit a8c3b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class RepeaterService : Service(), CoroutineScope, SharedPreferences.OnSharedPre
}

private fun showNotification(group: WifiP2pGroup? = null) = ServiceNotification.startForeground(this,
if (group == null) emptyMap() else mapOf(Pair(group.`interface`, group.clientList?.size ?: 0)))
if (group == null) emptyMap() else mapOf(group.`interface` to (group.clientList?.size ?: 0)))

private fun removeGroup() {
p2pManager.removeGroup(channel ?: return, object : WifiP2pManager.ActionListener {
Expand Down

0 comments on commit a8c3b52

Please sign in to comment.