mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Move preview notes to GitHub
This commit is contained in:
		| @@ -89,7 +89,7 @@ object Migrations { | ||||
|                     preferences.librarySortingMode().set(LibrarySort.ALPHA) | ||||
|                 } | ||||
|             } | ||||
|             return true | ||||
|             return !BuildConfig.DEBUG | ||||
|         } | ||||
|         return false | ||||
|     } | ||||
|   | ||||
| @@ -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 | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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) | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user