Deduplicate some code.

Change package name.
This commit is contained in:
NerdNumber9 2017-01-05 18:26:32 -05:00
parent 8fb4093dc6
commit cb73e55db1
2 changed files with 2 additions and 15 deletions

View File

@ -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"

View File

@ -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) {