Created
April 26, 2020 14:01
-
-
Save Lavanyagaur22/fa6a4608a4f0b87b2a86a68c04a6df57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val removeTask = fusedLocationProviderClient.removeLocationUpdates(locationCallback) | |
removeTask.addOnCompleteListener { task -> | |
if (task.isSuccessful) { | |
Log.d(TAG, "Location Callback removed.") | |
stopSelf() | |
} else { | |
Log.d(TAG, "Failed to remove Location Callback.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment