Deduplicate some code.
Change package name.
This commit is contained in:
parent
8fb4093dc6
commit
cb73e55db1
@ -35,7 +35,7 @@ android {
|
||||
publishNonDefault true
|
||||
|
||||
defaultConfig {
|
||||
applicationId "eu.kanade.tachiyomi.eh"
|
||||
applicationId "eu.kanade.tachiyomi.eh2"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 25
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
@ -83,20 +83,7 @@ class MetadataFetchDialog {
|
||||
fun tryAskMigration(activity: Activity) {
|
||||
if(preferenceHelper.migrateLibraryAsked().getOrDefault()) return
|
||||
|
||||
MaterialDialog.Builder(activity)
|
||||
.title("Migrate library")
|
||||
.content("You need to migrate your library before tag searching in the library will function.\n\n" +
|
||||
"This migration may take a long time depending on your library size and will also use up a significant amount of internet bandwidth.\n\n" +
|
||||
"This process can be done later if required.")
|
||||
.positiveText("Migrate")
|
||||
.negativeText("Later")
|
||||
.onPositive { materialDialog, dialogAction -> show(activity) }
|
||||
.onNegative { materialDialog, dialogAction -> adviseMigrationLater(activity) }
|
||||
.cancelable(false)
|
||||
.canceledOnTouchOutside(false)
|
||||
.dismissListener {
|
||||
preferenceHelper.migrateLibraryAsked().set(true)
|
||||
}.show()
|
||||
askMigration(activity)
|
||||
}
|
||||
|
||||
fun askMigration(activity: Activity) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user