File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
app/src/main/java/org/redcross/openmapkit/deployments Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,16 @@ private void putDeployment(JSONObject deploymentJson) {
55
55
nameToIdx .put (name , deployments .size ());
56
56
deployments .add (deployment );
57
57
}
58
+
59
+ /**
60
+ * Note: Needs Server Synchronization
61
+ *
62
+ * https://github.com/AmericanRedCross/OpenMapKitAndroid/issues/137
63
+ */
58
64
// replace existing deployment
59
- else {
60
- deployments .set (idx , deployment );
61
- }
65
+ // else {
66
+ // deployments.set(idx, deployment);
67
+ // }
62
68
}
63
69
64
70
public void fetch (DeploymentsActivity activity , String url ) {
@@ -110,8 +116,6 @@ private void parseJsonFromApi(String json) {
110
116
*/
111
117
private Deployments .Status fetchFromExternalStorage () {
112
118
Deployments .Status status = Status .SERVER_NOT_FOUND ;
113
- deployments .clear ();
114
- nameToIdx .clear ();
115
119
List <File > files = ExternalStorage .allDeploymentJSONFiles ();
116
120
for (File f : files ) {
117
121
try {
You can’t perform that action at this time.
0 commit comments