+ // Get a cursor with just the database IDs of all the bookmarks and folders. This is useful for counting the number of bookmarks imported.
+ val allBookmarkAndFolderIds: Cursor
+ get() {
+ // Get a readable database handle.
+ val bookmarksDatabase = this.readableDatabase
+
+ // Return a cursor with all the database IDs. The cursor cannot be closed because it is used in the parent activity.
+ return bookmarksDatabase.rawQuery("SELECT $ID FROM $BOOKMARKS_TABLE", null)
+ }
+