Permalink
Browse files

Fix a last minute bug and bump the version for release to market

  • Loading branch information...
1 parent abffd05 commit d401b6f972842eeb64994b1511528b6260f48cc5 @matburt committed May 3, 2011
Showing with 11 additions and 11 deletions.
  1. +2 −2 AndroidManifest.xml
  2. +1 −1 res/xml/preferences.xml
  3. +8 −8 src/com/matburt/mobileorg/MobileOrgDatabase.java
View
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.matburt.mobileorg"
- android:versionCode="53"
- android:versionName="0.5.3">
+ android:versionCode="54"
+ android:versionName="0.5.4">
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
<uses-permission android:name="android.permission.INTERNET"/>
@@ -42,7 +42,7 @@
<PreferenceScreen
android:key="VersionDisp"
android:title="Version"
- android:summary="0.5.3">
+ android:summary="0.5.4">
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>
@@ -59,7 +59,7 @@ else if (storageMode.equals("sdcard")) {
}
this.wrapExecSQL("CREATE TABLE IF NOT EXISTS files"
+ " (file VARCHAR, name VARCHAR,"
- + " checksum VARCHAR);");
+ + " checksum VARCHAR)");
this.wrapExecSQL("CREATE TABLE IF NOT EXISTS todos"
+ " (tdgroup int, name VARCHAR,"
+ " isdone INT)");
@@ -75,7 +75,7 @@ public void close() {
public void wrapExecSQL(String sqlText) {
try {
- this.appdb.execSQL(DatabaseUtils.sqlEscapeString(sqlText));
+ this.appdb.execSQL(sqlText);
}
catch (SQLiteDiskIOException e) {
ErrorReporter.displayError(this.appcontext,
@@ -90,7 +90,7 @@ public void wrapExecSQL(String sqlText) {
public Cursor wrapRawQuery(String sqlText) {
Cursor result = null;
try {
- result = this.appdb.rawQuery(DatabaseUtils.sqlEscapeString(sqlText), null);
+ result = this.appdb.rawQuery(sqlText, null);
}
catch (SQLiteDiskIOException e) {
ErrorReporter.displayError(this.appcontext,
@@ -124,8 +124,8 @@ public void checkStorageMode() {
result.getString(1));
} while(result.moveToNext());
}
+ result.close();
}
- result.close();
return allFiles;
}
@@ -141,8 +141,8 @@ public void checkStorageMode() {
result.getString(1));
} while (result.moveToNext());
}
+ result.close();
}
- result.close();
return fchecks;
}
@@ -181,8 +181,8 @@ public void addOrUpdateFile(String filename, String name, String checksum) {
this.wrapExecSQL("INSERT INTO files (file, name, checksum) " +
"VALUES ('"+filename+"','"+name+"','"+checksum+"')");
}
+ result.close();
}
- result.close();
}
public ArrayList<HashMap<String, Integer>> getTodos() {
@@ -205,8 +205,8 @@ public void addOrUpdateFile(String filename, String name, String checksum) {
} while(result.moveToNext());
allTodos.add(grouping);
}
+ result.close();
}
- result.close();
return allTodos;
}
@@ -228,8 +228,8 @@ public void addOrUpdateFile(String filename, String name, String checksum) {
} while(result.moveToNext());
allPriorities.add(grouping);
}
+ result.close();
}
- result.close();
return allPriorities;
}

0 comments on commit d401b6f

Please sign in to comment.