From 4ba15087e044464255427b77f289739873fedb82 Mon Sep 17 00:00:00 2001 From: stefan-niedermann Date: Wed, 22 Jan 2020 21:11:09 +0100 Subject: [PATCH] Fix #696 Database upgrade Do nothing more after recreating the database --- .../owncloud/notes/persistence/NoteSQLiteOpenHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteSQLiteOpenHelper.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteSQLiteOpenHelper.java index 7c319e5b..321f1b91 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteSQLiteOpenHelper.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/NoteSQLiteOpenHelper.java @@ -269,10 +269,12 @@ public class NoteSQLiteOpenHelper extends SQLiteOpenHelper { Log.e(TAG, "Previous URL could not be parsed. Recreating database..."); e.printStackTrace(); recreateDatabase(db); + return; } } else { Log.e(TAG, "Previous URL is null. Recreating database..."); recreateDatabase(db); + return; } } if (oldVersion < 10) {