Browse Source

fixed some stuff

Alexander Brakowski 10 years ago
parent
commit
bd46c13734

+ 3 - 1
src/de/tudarmstadt/informatik/hostage/dao/ProfileManager.java

@@ -46,9 +46,11 @@ public class ProfileManager {
 
 		if(profiles.size() == 0){
 			this.fillWithSampleData();
-			profiles = mProfiles.values();
+			profiles = this.dbh.getAllProfiles();
 		}
 
+		this.mProfiles.clear();
+
 		for(Profile p: profiles){
 			this.mProfiles.put(p.id, p);
 

+ 1 - 1
src/de/tudarmstadt/informatik/hostage/logging/UglyDbHelper.java

@@ -33,7 +33,7 @@ public class UglyDbHelper extends SQLiteOpenHelper {
 
 	// All Static variables
 	// Database Version
-	private static final int DATABASE_VERSION = 5;
+	private static final int DATABASE_VERSION = 7;
 
 	// Database Name
 	private static final String DATABASE_NAME = "recordManager";