Move preview notes to GitHub

This commit is contained in:
arkon
2020-07-04 14:06:23 -04:00
parent 3da08cbcbf
commit 367932de69
5 changed files with 33 additions and 50 deletions

View File

@ -89,7 +89,7 @@ object Migrations {
preferences.librarySortingMode().set(LibrarySort.ALPHA)
}
}
return true
return !BuildConfig.DEBUG
}
return false
}

View File

@ -6,7 +6,6 @@ import android.os.Bundle
import android.util.AttributeSet
import com.afollestad.materialdialogs.MaterialDialog
import com.afollestad.materialdialogs.customview.customView
import eu.kanade.tachiyomi.BuildConfig
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.base.controller.DialogController
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView
@ -17,7 +16,7 @@ class ChangelogDialogController : DialogController() {
val activity = activity!!
val view = WhatsNewRecyclerView(activity)
return MaterialDialog(activity)
.title(res = if (BuildConfig.DEBUG) R.string.notices else R.string.changelog)
.title(R.string.changelog)
.customView(view = view)
.positiveButton(R.string.action_close)
}
@ -26,7 +25,7 @@ class ChangelogDialogController : DialogController() {
override fun initAttrs(attrs: AttributeSet?, defStyle: Int) {
mRowLayoutId = R.layout.changelog_row_layout
mRowHeaderLayoutId = R.layout.changelog_header_layout
mChangeLogFileResourceId = if (BuildConfig.DEBUG) R.raw.changelog_debug else R.raw.changelog_release
mChangeLogFileResourceId = R.raw.changelog_release
}
}
}

View File

@ -83,7 +83,8 @@ class AboutController : SettingsController() {
titleRes = R.string.notices
onClick {
ChangelogDialogController().showDialog(router)
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/inorichi/tachiyomi/blob/dev/PREVIEW_RELEASE_NOTES.md"))
startActivity(intent)
}
}
}