mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Code cleanup
Release v6.6.0 Cleanup changelog
This commit is contained in:
		| @@ -1,8 +1,6 @@ | ||||
| package eu.kanade.tachiyomi.ui.setting | ||||
|  | ||||
| import android.app.Dialog | ||||
| import android.content.Intent | ||||
| import android.net.Uri | ||||
| import android.os.Bundle | ||||
| import android.support.v7.preference.PreferenceScreen | ||||
| import android.view.View | ||||
| @@ -43,12 +41,6 @@ class SettingsAboutController : SettingsController() { | ||||
|     override fun setupPreferenceScreen(screen: PreferenceScreen) = with(screen) { | ||||
|         titleRes = R.string.pref_category_about | ||||
|  | ||||
|         switchPreference { | ||||
|             key = "acra.enable" | ||||
|             titleRes = R.string.pref_enable_acra | ||||
|             summaryRes = R.string.pref_acra_summary | ||||
|             defaultValue = true | ||||
|         } | ||||
|         switchPreference { | ||||
|             key = Keys.automaticUpdates | ||||
|             titleRes = R.string.pref_enable_automatic_updates | ||||
| @@ -69,15 +61,6 @@ class SettingsAboutController : SettingsController() { | ||||
|                 isVisible = false | ||||
|             } | ||||
|         } | ||||
|         preference { | ||||
|             title = "Discord" | ||||
|             val url = "https://discord.gg/2dDQBv2" | ||||
|             summary = url | ||||
|             onClick { | ||||
|                 val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) | ||||
|                 startActivity(intent) | ||||
|             } | ||||
|         } | ||||
|         preference { | ||||
|             titleRes = R.string.version | ||||
|             summary = if (BuildConfig.DEBUG) | ||||
|   | ||||
| @@ -26,8 +26,8 @@ class BatchAddController : NucleusController<BatchAddPresenter>() { | ||||
|  | ||||
|     override fun createPresenter() = BatchAddPresenter() | ||||
|  | ||||
|     override fun onViewCreated(view: View, savedViewState: Bundle?) { | ||||
|         super.onViewCreated(view, savedViewState) | ||||
|     override fun onViewCreated(view: View) { | ||||
|         super.onViewCreated(view) | ||||
|  | ||||
|         with(view) { | ||||
|             btn_add_galleries.clicks().subscribeUntilDestroy { | ||||
|   | ||||
| @@ -37,8 +37,8 @@ class LockController : NucleusController<LockPresenter>() { | ||||
|  | ||||
|     override fun getTitle() = "Application locked" | ||||
|  | ||||
|     override fun onViewCreated(view: View, savedViewState: Bundle?) { | ||||
|         super.onViewCreated(view, savedViewState) | ||||
|     override fun onViewCreated(view: View) { | ||||
|         super.onViewCreated(view) | ||||
|  | ||||
|         if(!lockEnabled(prefs)) { | ||||
|             closeLock() | ||||
|   | ||||
| @@ -2,7 +2,6 @@ package exh.ui.login | ||||
|  | ||||
| import android.net.Uri | ||||
| import android.os.Build | ||||
| import android.os.Bundle | ||||
| import android.view.LayoutInflater | ||||
| import android.view.View | ||||
| import android.view.ViewGroup | ||||
| @@ -40,8 +39,8 @@ class LoginController : NucleusController<LoginPresenter>() { | ||||
|     override fun inflateView(inflater: LayoutInflater, container: ViewGroup) = | ||||
|             inflater.inflate(R.layout.eh_activity_login, container, false)!! | ||||
|  | ||||
|     override fun onViewCreated(view: View, savedViewState: Bundle?) { | ||||
|         super.onViewCreated(view, savedViewState) | ||||
|     override fun onViewCreated(view: View) { | ||||
|         super.onViewCreated(view) | ||||
|  | ||||
|         with(view) { | ||||
|             btn_cancel.setOnClickListener { router.popCurrentController() } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user