Skip to content

Commit 3ae8537

Browse files
committed
Fix #61
1 parent a2086d1 commit 3ae8537

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/main/java/github/umer0586/sensorserver/websocketserver/SensorWebSocketServer.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,14 @@ class SensorWebSocketServer(private val context: Context, address: InetSocketAdd
339339
Log.i(TAG, "onProviderEnabled() $provider")
340340
}
341341

342+
// See issue : https://github.com/umer0586/SensorServer/issues/61
343+
// solution : https://stackoverflow.com/questions/64638260/android-locationlistener-abstractmethoderror-on-onstatuschanged-and-onproviderd
344+
@Deprecated("Deprecated in Java")
345+
override fun onStatusChanged(provider: String?, status: Int, extras: Bundle?)
346+
{
347+
// super.onStatusChanged(provider, status, extras)
348+
}
349+
342350
private fun hasLocationPermission(): Boolean
343351
{
344352
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)

0 commit comments

Comments
 (0)