From 18f6f87909d366bf95d7c29e1a703a7a5042512d Mon Sep 17 00:00:00 2001 From: Jaroslav Lichtblau Date: Sun, 15 Feb 2015 16:09:17 +0100 Subject: [PATCH 1/4] Czech translation update --- res/values-cs/strings.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 690f587..2eeecff 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -1,7 +1,7 @@ - 3 + 5 @@ -103,7 +103,7 @@ https:// http:// - + Ohodnoťit! Poděkování @@ -114,7 +114,8 @@ Změnit nastavení aplikace Přejít do Nastavení Vítejte - Vítejte v aplikaci ownCloud SMS. Tato aplikace umožnuje sychronizovat SMS do vašeho účtu na serveru ownCloud. + Vítejte v aplikaci ownCloud SMS. Tato aplikace umožnuje sychronizovat SMS do vašeho účtu na serveru ownCloud za pomoci aplikace pro SMS. + ownCloud vývojáři\n\ přispěvatelé a ti co hlásí chyby Proces synchronizace @@ -126,7 +127,7 @@ Chyba #2: Chyba při vytváření HTTP požadavku Chyba #3: Požadavek Push selhal Chyba #4: Přijata neplatná data ze serveru při jejich odesílání - Chyba #5: NULL Sms List + Chyba #5: NULL SMS List Chyba #6: Chyba při vytváření Push požadavku Chyba #7: Nepodporované kódování při vytváření požadavku Chyba #8: Ověření selhalo @@ -137,10 +138,11 @@ Chyba #14: Nelze zpracovat odpověď serveru Chyba #15: Nelze zpracovat odpověď serveru Chyba #16: Není dostupné datové připojení + Chyba #17: účet poškozený Znovu nakonfigurovat MainActivity Sekce 1 Sekce 2 Sekce 3 - Hello world! + MainActivity2 \ No newline at end of file From 73fa4e8ad952b277802b737e730c1595c1ba28d0 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 16 Feb 2015 15:13:14 +0100 Subject: [PATCH 2/4] Fix https://github.com/nerzhul/ocsms/issues/39 problem --- .../owncloud_sms/engine/SmsFetcher.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java b/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java index b71040c..77f9661 100644 --- a/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java +++ b/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java @@ -142,30 +142,34 @@ public class SmsFetcher { JSONObject entry = new JSONObject(); try { - for(int idx=0;idx 0 ? "true" : "false"); } + else if (colName.equals(new String("type"))) { + mboxId = c.getInt(idx); + } else { entry.put(colName, c.getString(idx)); } } - // Mailbox ID is required by server - entry.put("mbox", mbID.ordinal()); + /* + * Mailbox ID is required by server + * mboxId is greater than server mboxId by 1 because types + * aren't indexed in the same mean + */ + entry.put("mbox", (mboxId - 1)); results.put(entry); } catch (JSONException e) { From 48ec96f41bb8862163da8d85c96707febfbb01e0 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Mon, 16 Feb 2015 15:33:09 +0100 Subject: [PATCH 3/4] Really Fix https://github.com/nerzhul/ocsms/issues/39 problem, thanks @martin-rueegg --- .../unix_experience/owncloud_sms/engine/SmsFetcher.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java b/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java index 77f9661..54eb5b9 100644 --- a/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java +++ b/src/fr/unix_experience/owncloud_sms/engine/SmsFetcher.java @@ -83,10 +83,6 @@ public class SmsFetcher { if (colName.equals(new String("_id")) || colName.equals(new String("type"))) { entry.put(colName, c.getInt(idx)); - - // bufferize Id for future use - if (colName.equals(new String("_id"))) { - } } // Seen and read must be pseudo boolean else if (colName.equals(new String("read")) || @@ -147,8 +143,7 @@ public class SmsFetcher { String colName = c.getColumnName(idx); // Id column is must be an integer - if (colName.equals(new String("_id")) || - colName.equals(new String("type"))) { + if (colName.equals(new String("_id"))) { entry.put(colName, c.getInt(idx)); } // Seen and read must be pseudo boolean @@ -158,6 +153,7 @@ public class SmsFetcher { } else if (colName.equals(new String("type"))) { mboxId = c.getInt(idx); + entry.put(colName, c.getInt(idx)); } else { entry.put(colName, c.getString(idx)); From 0ef354d423033bb0d1b0efdf7b63387841f1d86d Mon Sep 17 00:00:00 2001 From: Ner'zhul Date: Tue, 17 Feb 2015 10:40:22 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a947c55..7f0c77d 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,8 @@ https://github.com/nerzhul/ocsms/issues ## Developpers You can found our continuous integration here: http://jenkins.unix-experience.fr/job/ownCloud%20SMS%20%28Android%29/ + +### Coding guidelines + +- No empty lines at EOF +- No trailing whitespaces