Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kuznetsov <r.kuznetsow@gmail.com>2018-05-07 21:38:57 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-05-08 13:09:47 +0300
commitf87c9159cc42335836a5b645c0fa664be1713657 (patch)
treeb567da02315cb6e197f1001c024af28f6551be33 /android/src
parent1f8e343a84d112ea619e310cc6e32e0e35cda628 (diff)
Added InvalidCall result
Diffstat (limited to 'android/src')
-rw-r--r--android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java3
-rw-r--r--android/src/com/mapswithme/util/statistics/Statistics.java3
2 files changed, 5 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java b/android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java
index a1dee82bbc..21b58b9ac3 100644
--- a/android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java
+++ b/android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java
@@ -27,7 +27,7 @@ public enum BookmarkManager
@Retention(RetentionPolicy.SOURCE)
@IntDef({ CLOUD_SUCCESS, CLOUD_AUTH_ERROR, CLOUD_NETWORK_ERROR,
- CLOUD_DISK_ERROR, CLOUD_USER_INTERRUPTED })
+ CLOUD_DISK_ERROR, CLOUD_USER_INTERRUPTED, CLOUD_INVALID_CALL })
public @interface SynchronizationResult {}
public static final int CLOUD_SUCCESS = 0;
@@ -35,6 +35,7 @@ public enum BookmarkManager
public static final int CLOUD_NETWORK_ERROR = 2;
public static final int CLOUD_DISK_ERROR = 3;
public static final int CLOUD_USER_INTERRUPTED = 4;
+ public static final int CLOUD_INVALID_CALL = 5;
@Retention(RetentionPolicy.SOURCE)
@IntDef({ CLOUD_BACKUP_EXISTS, CLOUD_NO_BACKUP, CLOUD_NOT_ENOUGH_DISK_SPACE })
diff --git a/android/src/com/mapswithme/util/statistics/Statistics.java b/android/src/com/mapswithme/util/statistics/Statistics.java
index 562f32d8f0..2e05af0b55 100644
--- a/android/src/com/mapswithme/util/statistics/Statistics.java
+++ b/android/src/com/mapswithme/util/statistics/Statistics.java
@@ -414,6 +414,7 @@ public enum Statistics
static final String DISK = "disk";
static final String AUTH = "auth";
static final String USER_INTERRUPTED = "user_interrupted";
+ static final String INVALID_CALL = "invalid_call";
}
// Initialized once in constructor and does not change until the process restarts.
@@ -1088,6 +1089,8 @@ public enum Statistics
return ParamValue.DISK;
case BookmarkManager.CLOUD_USER_INTERRUPTED:
return ParamValue.USER_INTERRUPTED;
+ case BookmarkManager.CLOUD_INVALID_CALL:
+ return ParamValue.INVALID_CALL;
case BookmarkManager.CLOUD_SUCCESS:
throw new AssertionError("It's not a error result!");
default: