diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-04-17 16:42:57 +0300 |
---|---|---|
committer | Aleksandr Zatsepin <alexzatsepin@users.noreply.github.com> | 2018-04-25 15:38:50 +0300 |
commit | 4748d158f4af73dfad90a0ca485c533c693ad47e (patch) | |
tree | 6c65ea8cdc34b366115e75d9d22548fad56957cb /android/src | |
parent | 67bd4090a28439f4c2c58b1d0acc94ebc3bd786b (diff) |
[android] Added check core and platform before changes uploading
Diffstat (limited to 'android/src')
-rw-r--r-- | android/src/com/mapswithme/maps/background/WorkerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/background/WorkerService.java b/android/src/com/mapswithme/maps/background/WorkerService.java index 277731debe..0fdd55ec5e 100644 --- a/android/src/com/mapswithme/maps/background/WorkerService.java +++ b/android/src/com/mapswithme/maps/background/WorkerService.java @@ -22,6 +22,9 @@ public class WorkerService extends IntentService private static final SharedPreferences PREFS = MwmApplication.prefs(); + private final boolean mArePlatformAndCoreInitialized = + MwmApplication.get().arePlatformAndCoreInitialized(); + /** * Starts this service to upload map edits to osm servers. */ @@ -62,6 +65,9 @@ public class WorkerService extends IntentService if (TextUtils.isEmpty(action)) return; + if (!mArePlatformAndCoreInitialized) + return; + switch (action) { case ACTION_UPLOAD_OSM_CHANGES: |