1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-21 14:56:27 +00:00

Really Fix https://github.com/nerzhul/ocsms/issues/39 problem, thanks @martin-rueegg

This commit is contained in:
Loic Blot 2015-02-16 15:33:09 +01:00
parent 73fa4e8ad9
commit 48ec96f41b

View File

@ -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));