]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/helpers/BookmarksDatabaseHelper.kt
Fix the WebView layout with bottom app bars. https://redmine.stoutner.com/issues/839
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / helpers / BookmarksDatabaseHelper.kt
index 12753e1652d5947eb2f0e2d07719dee11f136d76..135827ec64e48b835dc929cbf91a8d498a170904 100644 (file)
@@ -26,17 +26,17 @@ import android.database.DatabaseUtils
 import android.database.sqlite.SQLiteDatabase
 import android.database.sqlite.SQLiteOpenHelper
 
-// The private constants.
+// Define the private class constants.
 private const val SCHEMA_VERSION = 1
 
 class BookmarksDatabaseHelper(context: Context) : SQLiteOpenHelper(context, BOOKMARKS_DATABASE, null, SCHEMA_VERSION) {
     // Define the public companion object constants.  These can be moved to public class constants once the entire project has migrated to Kotlin.
     companion object {
-        // The database constants.
+        // Define the public database constants.
         const val BOOKMARKS_DATABASE = "bookmarks.db"
         const val BOOKMARKS_TABLE = "bookmarks"
 
-        // The schema constants.
+        // Define the public schema constants.
         const val ID = "_id"
         const val BOOKMARK_NAME = "bookmarkname"
         const val BOOKMARK_URL = "bookmarkurl"
@@ -45,7 +45,7 @@ class BookmarksDatabaseHelper(context: Context) : SQLiteOpenHelper(context, BOOK
         const val IS_FOLDER = "isfolder"
         const val FAVORITE_ICON = "favoriteicon"
 
-        // The table creation constant.
+        // Define the public table creation constant.
         const val CREATE_BOOKMARKS_TABLE = "CREATE TABLE " + BOOKMARKS_TABLE + " (" +
                 ID + " INTEGER PRIMARY KEY, " +
                 BOOKMARK_NAME + " TEXT, " +