File tree 7 files changed +17
-7
lines changed
src/org/gnucash/android/db 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
Change Log
2
2
===============================================================================
3
+ Version 1.5.1 * (2014-10-08)*
4
+ ----------------------------
5
+ * Fixed: Crash when upgrading from v1.4.x to v1.5.x
6
+
3
7
Version 1.5.0 * (2014-10-01)*
4
8
----------------------------
5
9
* Need for speed! Lots of performance optimizations in the application
Original file line number Diff line number Diff line change 17
17
18
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
19
19
package =" org.gnucash.android"
20
- android : versionCode =" 42 "
20
+ android : versionCode =" 43 "
21
21
android : versionName =" @string/app_version_name" >
22
22
23
23
<uses-sdk android : minSdkVersion =" 8" android : targetSdkVersion =" 16" />
Original file line number Diff line number Diff line change 22
22
<description >Gnucash Android companion application</description >
23
23
24
24
<parent >
25
- <version >1.5.0 -SNAPSHOT</version >
25
+ <version >1.5.1 -SNAPSHOT</version >
26
26
<groupId >org.gnucash.android</groupId >
27
27
<artifactId >gnucash-android-parent</artifactId >
28
28
</parent >
Original file line number Diff line number Diff line change 17
17
18
18
<resources xmlns : xliff =" urn:oasis:names:tc:xliff:document:1.2" >
19
19
<string name =" app_name" >GnuCash</string >
20
- <string name =" app_version_name" >1.5.0 </string >
20
+ <string name =" app_version_name" >1.5.1 </string >
21
21
<string name =" title_add_account" >Create Account</string >
22
22
<string name =" title_edit_account" >Edit Account</string >
23
23
<string name =" info_details" >Info</string >
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ public DatabaseAdapter(Context context) {
62
62
mDbHelper = new DatabaseHelper (context );
63
63
mContext = context .getApplicationContext ();
64
64
open ();
65
- createTempView ();
65
+
66
+ if (mDb .getVersion () >= DatabaseSchema .SPLITS_DB_VERSION ) {
67
+ createTempView ();
68
+ }
66
69
}
67
70
68
71
/**
@@ -74,7 +77,10 @@ public DatabaseAdapter(SQLiteDatabase db) {
74
77
this .mContext = GnuCashApplication .getAppContext ();
75
78
if (!db .isOpen () || db .isReadOnly ())
76
79
throw new IllegalArgumentException ("Database not open or is read-only. Require writeable database" );
77
- createTempView ();
80
+
81
+ if (mDb .getVersion () >= DatabaseSchema .SPLITS_DB_VERSION ) {
82
+ createTempView ();
83
+ }
78
84
}
79
85
80
86
private void createTempView () {
Original file line number Diff line number Diff line change 17
17
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
18
18
<modelVersion >4.0.0</modelVersion >
19
19
<parent >
20
- <version >1.5.0 -SNAPSHOT</version >
20
+ <version >1.5.1 -SNAPSHOT</version >
21
21
<groupId >org.gnucash.android</groupId >
22
22
<artifactId >gnucash-android-parent</artifactId >
23
23
</parent >
Original file line number Diff line number Diff line change 17
17
18
18
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
19
19
<modelVersion >4.0.0</modelVersion >
20
- <version >1.5.0 -SNAPSHOT</version >
20
+ <version >1.5.1 -SNAPSHOT</version >
21
21
<groupId >org.gnucash.android</groupId >
22
22
<artifactId >gnucash-android-parent</artifactId >
23
23
<name >GnuCash Android parent</name >
You can’t perform that action at this time.
0 commit comments