We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e67cc8 + b1be4d7 commit d3d28beCopy full SHA for d3d28be
1 file changed
app/src/main/kotlin/com/github/gotify/service/WebSocketService.kt
@@ -5,7 +5,6 @@ import android.app.Notification
5
import android.app.NotificationManager
6
import android.app.PendingIntent
7
import android.app.Service
8
-import android.content.Context
9
import android.content.Intent
10
import android.graphics.Color
11
import android.net.ConnectivityManager
@@ -80,10 +79,6 @@ internal class WebSocketService : Service() {
80
79
override fun onDestroy() {
81
super.onDestroy()
82
connection?.close()
83
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
84
- (getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager)
85
- .unregisterNetworkCallback(networkCallback)
86
- }
87
88
Logger.warn("Destroy ${javaClass.simpleName}")
89
}
0 commit comments