diff --git a/sbapp/plyer/platforms/android/gps.py b/sbapp/plyer/platforms/android/gps.py index 0d12cfd..b173876 100644 --- a/sbapp/plyer/platforms/android/gps.py +++ b/sbapp/plyer/platforms/android/gps.py @@ -81,7 +81,8 @@ class AndroidGPS(GPS): Looper.getMainLooper()) def _stop(self): - self._location_manager.removeUpdates(self._location_listener) + if hasattr(self, "_location_manager") and self._location_manager != None: + self._location_manager.removeUpdates(self._location_listener) def instance():