]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/helpers/ImportExportDatabaseHelper.java
Add a context menu to delete bookmarks from the database view activity. https:/...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / helpers / ImportExportDatabaseHelper.java
index 5f8dcee0ba941655bf0a02b42db8af7c62909c13..bcec5294af58d34f937c407fab0a833390a245b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2018 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2018-2019 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
  *
@@ -158,7 +158,7 @@ public class ImportExportDatabaseHelper {
             BookmarksDatabaseHelper bookmarksDatabaseHelper = new BookmarksDatabaseHelper(context, null, null, 0);
 
             // Get a full bookmarks cursor.
-            Cursor bookmarksCursor = bookmarksDatabaseHelper.getAllBookmarksCursor();
+            Cursor bookmarksCursor = bookmarksDatabaseHelper.getAllBookmarks();
 
             // Move to the first bookmark.
             bookmarksCursor.moveToFirst();
@@ -369,7 +369,7 @@ public class ImportExportDatabaseHelper {
                     case 2:
                         // Once the SQLite version is >= 3.25.0 `ALTER TABLE RENAME COLUMN` can be used.  https://www.sqlite.org/lang_altertable.html  https://www.sqlite.org/changes.html
                         // https://developer.android.com/reference/android/database/sqlite/package-summary
-                        // In the meantime, we can create a new column with the new name.  There is no need to delete the old column on the temporary import database.
+                        // In the meantime, a new column must be created with the new name.  There is no need to delete the old column on the temporary import database.
 
                         // Get a cursor with the current `default_font_size` value.
                         Cursor importDatabasePreferenceCursor = importDatabase.rawQuery("SELECT default_font_size FROM " + PREFERENCES_TABLE, null);