diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/DbOpenHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/DbOpenHelper.kt index a1b902a6e..f8fd268cf 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/DbOpenHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/DbOpenHelper.kt @@ -51,7 +51,7 @@ class DbOpenHelper(context: Context) if (oldVersion < 4) { db.execSQL(ChapterTable.bookmarkUpdateQuery) } - if (oldVersion < 5){ + if (oldVersion < 5) { db.execSQL(ChapterTable.addScanlator) } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt index 461c943a2..a7fd291b5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt @@ -31,7 +31,8 @@ class ChapterImpl : Chapter { if (other == null || javaClass != other.javaClass) return false val chapter = other as Chapter - //forces updates on manga if scanlator changes. This will allow existing manga in library with scanlator to update + // Forces updates on manga if scanlator changes. This will allow existing manga in library + // with scanlator to update. return url == chapter.url && scanlator == chapter.scanlator } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/tables/ChapterTable.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/tables/ChapterTable.kt index 7dc99f6fa..a031c94d4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/tables/ChapterTable.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/tables/ChapterTable.kt @@ -14,7 +14,7 @@ object ChapterTable { const val COL_READ = "read" - const val COL_SCANLATOR ="scanlator" + const val COL_SCANLATOR = "scanlator" const val COL_BOOKMARK = "bookmark" @@ -55,7 +55,7 @@ object ChapterTable { val bookmarkUpdateQuery: String get() = "ALTER TABLE $TABLE ADD COLUMN $COL_BOOKMARK BOOLEAN DEFAULT FALSE" - val addScanlator:String - get ()= "ALTER TABLE $TABLE ADD COLUMN $COL_SCANLATOR TEXT DEFAULT" + val addScanlator: String + get() = "ALTER TABLE $TABLE ADD COLUMN $COL_SCANLATOR TEXT DEFAULT NULL" } diff --git a/app/src/main/res/layout/chapters_item.xml b/app/src/main/res/layout/chapters_item.xml index e82353564..1b04056a8 100644 --- a/app/src/main/res/layout/chapters_item.xml +++ b/app/src/main/res/layout/chapters_item.xml @@ -1,10 +1,11 @@ - + + android:layout_marginLeft="16dp"/> + android:layout_marginLeft="16dp"/> + android:layout_marginLeft="16dp"/> + app:layout_constraintLeft_toLeftOf="parent"/> + android:contentDescription="@string/description_cover"/> - - - - + android:layout_marginRight="16dp"/>