mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Remove redundant helper function
(cherry picked from commit 620be2617a)
			
			
This commit is contained in:
		| @@ -95,10 +95,6 @@ class BrowseController : | ||||
|         tabs.getTabAt(EXTENSIONS_CONTROLLER)?.removeBadge() | ||||
|     } | ||||
|  | ||||
|     fun pushController(transaction: RouterTransaction) { | ||||
|         router.pushController(transaction) | ||||
|     } | ||||
|  | ||||
|     fun setExtensionUpdateBadge() { | ||||
|         activity?.tabs?.apply { | ||||
|             val updates = preferences.extensionUpdatesCount().get() | ||||
|   | ||||
| @@ -87,7 +87,7 @@ open class ExtensionController : | ||||
|         when (item.itemId) { | ||||
|             R.id.action_search -> expandActionViewFromInteraction = true | ||||
|             R.id.action_settings -> { | ||||
|                 (parentController as BrowseController).pushController( | ||||
|                 parentController!!.router.pushController( | ||||
|                     ExtensionFilterController().withFadeTransaction() | ||||
|                 ) | ||||
|             } | ||||
| @@ -167,7 +167,7 @@ open class ExtensionController : | ||||
|  | ||||
|     private fun openDetails(extension: Extension.Installed) { | ||||
|         val controller = ExtensionDetailsController(extension.pkgName) | ||||
|         (parentController as BrowseController).pushController(controller.withFadeTransaction()) | ||||
|         parentController!!.router.pushController(controller.withFadeTransaction()) | ||||
|     } | ||||
|  | ||||
|     private fun openTrustDialog(extension: Extension.Untrusted) { | ||||
|   | ||||
| @@ -213,7 +213,7 @@ class SourceController(bundle: Bundle? = null) : | ||||
|      */ | ||||
|     private fun openCatalogue(source: CatalogueSource, controller: BrowseSourceController) { | ||||
|         preferences.lastUsedCatalogueSource().set(source.id) | ||||
|         (parentController as BrowseController).pushController(controller.withFadeTransaction()) | ||||
|         parentController!!.router.pushController(controller.withFadeTransaction()) | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -242,7 +242,7 @@ class SourceController(bundle: Bundle? = null) : | ||||
|     } | ||||
|  | ||||
|     private fun performGlobalSearch(query: String) { | ||||
|         (parentController as BrowseController).pushController( | ||||
|         parentController!!.router.pushController( | ||||
|             GlobalSearchController(query).withFadeTransaction() | ||||
|         ) | ||||
|     } | ||||
| @@ -257,7 +257,7 @@ class SourceController(bundle: Bundle? = null) : | ||||
|         when (item.itemId) { | ||||
|             // Initialize option to open catalogue settings. | ||||
|             R.id.action_settings -> { | ||||
|                 (parentController as BrowseController).pushController( | ||||
|                 parentController!!.router.pushController( | ||||
|                     SettingsSourcesController().withFadeTransaction() | ||||
|                 ) | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user