mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Remove unused resources
This commit is contained in:
		| @@ -1,10 +0,0 @@ | ||||
| package eu.kanade.tachiyomi.ui.base.controller | ||||
|  | ||||
| import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton | ||||
|  | ||||
| interface FabController { | ||||
|  | ||||
|     fun configureFab(fab: ExtendedFloatingActionButton) {} | ||||
|  | ||||
|     fun cleanupFab(fab: ExtendedFloatingActionButton) {} | ||||
| } | ||||
| @@ -43,7 +43,6 @@ import eu.kanade.tachiyomi.extension.api.ExtensionGithubApi | ||||
| import eu.kanade.tachiyomi.ui.base.activity.BaseActivity | ||||
| import eu.kanade.tachiyomi.ui.base.controller.ComposeContentController | ||||
| import eu.kanade.tachiyomi.ui.base.controller.DialogController | ||||
| import eu.kanade.tachiyomi.ui.base.controller.FabController | ||||
| import eu.kanade.tachiyomi.ui.base.controller.RootController | ||||
| import eu.kanade.tachiyomi.ui.base.controller.pushController | ||||
| import eu.kanade.tachiyomi.ui.base.controller.setRoot | ||||
| @@ -121,12 +120,6 @@ class MainActivity : BaseActivity() { | ||||
|  | ||||
|         // Draw edge-to-edge | ||||
|         WindowCompat.setDecorFitsSystemWindows(window, false) | ||||
|         binding.fabLayout.rootFab.applyInsetter { | ||||
|             ignoreVisibility(true) | ||||
|             type(navigationBars = true) { | ||||
|                 margin() | ||||
|             } | ||||
|         } | ||||
|         binding.bottomNav?.applyInsetter { | ||||
|             type(navigationBars = true) { | ||||
|                 padding() | ||||
| @@ -589,16 +582,6 @@ class MainActivity : BaseActivity() { | ||||
|             showNav(true) | ||||
|         } | ||||
|  | ||||
|         if (from is FabController) { | ||||
|             from.cleanupFab(binding.fabLayout.rootFab) | ||||
|         } | ||||
|         if (internalTo is FabController) { | ||||
|             binding.fabLayout.rootFab.show() | ||||
|             internalTo.configureFab(binding.fabLayout.rootFab) | ||||
|         } else { | ||||
|             binding.fabLayout.rootFab.hide() | ||||
|         } | ||||
|  | ||||
|         val isComposeController = internalTo is ComposeContentController | ||||
|         binding.appbar.isVisible = !isComposeController | ||||
|         binding.controllerContainer.enableScrollingBehavior(!isComposeController) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user