Fix missing luanch

This commit is contained in:
Mygod
2019-07-25 01:10:36 +08:00
parent 539616c76a
commit 20d0abf4b9

View File

@@ -378,7 +378,7 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
}
}.show()
showNotification()
if (group != null) removeGroup() else cleanLocked()
if (group != null) removeGroup() else launch { cleanLocked() }
}
private fun showNotification(group: WifiP2pGroup? = null) = ServiceNotification.startForeground(this,