mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Compile error
This commit is contained in:
parent
11a8e93841
commit
1aed88a6f1
2 changed files with 12 additions and 2 deletions
|
@ -365,8 +365,6 @@ internal object ExtensionLoader {
|
|||
libVersion = libVersion,
|
||||
lang = lang,
|
||||
isNsfw = isNsfw,
|
||||
hasReadme = hasReadme,
|
||||
hasChangelog = hasChangelog,
|
||||
sources = sources,
|
||||
pkgFactory = appInfo.metaData.getString(METADATA_SOURCE_FACTORY),
|
||||
icon = appInfo.loadIcon(pkgManager),
|
||||
|
|
|
@ -16,6 +16,7 @@ import androidx.lifecycle.lifecycleScope
|
|||
import androidx.preference.PreferenceScreen
|
||||
import com.google.firebase.crashlytics.ktx.crashlytics
|
||||
import com.google.firebase.ktx.Firebase
|
||||
import dev.yokai.domain.extension.TrustExtension
|
||||
import eu.kanade.tachiyomi.BuildConfig
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.data.cache.ChapterCache
|
||||
|
@ -78,6 +79,8 @@ class SettingsAdvancedController : SettingsController() {
|
|||
|
||||
private val downloadManager: DownloadManager by injectLazy()
|
||||
|
||||
private val trustExtension: TrustExtension by injectLazy()
|
||||
|
||||
private val isUpdaterEnabled = BuildConfig.INCLUDE_UPDATER
|
||||
|
||||
@SuppressLint("BatteryLife")
|
||||
|
@ -369,6 +372,15 @@ class SettingsAdvancedController : SettingsController() {
|
|||
it != ExtensionInstaller.PACKAGE_INSTALLER && Build.VERSION.SDK_INT < Build.VERSION_CODES.S
|
||||
}
|
||||
}
|
||||
preference {
|
||||
// TODO: i18n
|
||||
title = "Revoke all"
|
||||
|
||||
onClick {
|
||||
trustExtension.revokeAll()
|
||||
activity?.toast(R.string.requires_app_restart)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preferenceCategory {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue