Setup for install

This commit is contained in:
Jobobby04
2020-05-03 19:33:28 -04:00
parent bef0a44447
commit f5b7a8db1a
5 changed files with 17 additions and 12 deletions
@@ -24,7 +24,7 @@ class DbOpenCallback : SupportSQLiteOpenHelper.Callback(DATABASE_VERSION) {
/**
* Version of the database.
*/
const val DATABASE_VERSION = 0 // [SY]
const val DATABASE_VERSION = 1 // [SY]
}
override fun onCreate(db: SupportSQLiteDatabase) = with(db) {
@@ -63,14 +63,7 @@ class DbOpenCallback : SupportSQLiteOpenHelper.Callback(DATABASE_VERSION) {
}
override fun onUpgrade(db: SupportSQLiteDatabase, oldVersion: Int, newVersion: Int) {
if (oldVersion < 0) {
db.execSQL(ChapterTable.sourceOrderUpdateQuery)
// Fix kissmanga covers after supporting cloudflare
db.execSQL(
"""UPDATE mangas SET thumbnail_url =
REPLACE(thumbnail_url, '93.174.95.110', 'kissmanga.com') WHERE source = 4"""
)
if (oldVersion < 1) {
}
}
@@ -219,7 +219,7 @@ class AboutController : SettingsController() {
return try {
val inputDf = SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US)
inputDf.timeZone = TimeZone.getTimeZone("UTC")
val buildTime = inputDf.parse(BuildConfig.BUILD_TIME)
val buildTime = inputDf.parse(BuildConfig.BUILD_TIME)!!
val outputDf = DateFormat.getDateTimeInstance(
DateFormat.MEDIUM, DateFormat.SHORT, Locale.getDefault()
@@ -26,6 +26,7 @@ import eu.kanade.tachiyomi.util.preference.switchPreference
import eu.kanade.tachiyomi.util.preference.titleRes
import eu.kanade.tachiyomi.util.system.getResourceColor
import eu.kanade.tachiyomi.util.system.openInBrowser
import exh.ui.batchadd.BatchAddController
import rx.android.schedulers.AndroidSchedulers
import uy.kohesive.injekt.injectLazy
@@ -80,7 +81,7 @@ class MoreController :
iconRes = R.drawable.ic_playlist_add_black_24dp
iconTint = tintColor
onClick {
router.pushController(MigrationController().withFadeTransaction())
router.pushController(BatchAddController().withFadeTransaction())
}
}
}