Group extension details classes together

This commit is contained in:
arkon 2020-06-15 22:25:03 -04:00
parent 9207762ade
commit 749b240897
5 changed files with 9 additions and 5 deletions

View File

@ -18,6 +18,7 @@ import eu.kanade.tachiyomi.extension.model.Extension
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
import eu.kanade.tachiyomi.ui.browse.BrowseController
import eu.kanade.tachiyomi.ui.browse.extension.details.ExtensionDetailsController
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.ui.browse.extension
package eu.kanade.tachiyomi.ui.browse.extension.details
import android.annotation.SuppressLint
import android.content.Context
@ -30,6 +30,7 @@ import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.ui.base.controller.NoToolbarElevationController
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
import eu.kanade.tachiyomi.ui.browse.extension.getApplicationIcon
import eu.kanade.tachiyomi.util.preference.DSL
import eu.kanade.tachiyomi.util.preference.onChange
import eu.kanade.tachiyomi.util.preference.preferenceCategory
@ -160,7 +161,9 @@ class ExtensionDetailsController(bundle: Bundle? = null) :
switchSettingsPreference {
block()
onSettingsClick = View.OnClickListener {
router.pushController(SourcePreferencesController(source.id).withFadeTransaction())
router.pushController(
SourcePreferencesController(source.id).withFadeTransaction()
)
}
}
} else {

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.ui.browse.extension
package eu.kanade.tachiyomi.ui.browse.extension.details
import android.os.Bundle
import eu.kanade.tachiyomi.extension.ExtensionManager

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.ui.browse.extension
package eu.kanade.tachiyomi.ui.browse.extension.details
import android.annotation.SuppressLint
import android.content.Context

View File

@ -1,4 +1,4 @@
package eu.kanade.tachiyomi.ui.browse.extension
package eu.kanade.tachiyomi.ui.browse.extension.details
import eu.kanade.tachiyomi.source.SourceManager
import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter