diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt index b768def6d..a41550ee1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt @@ -1,6 +1,8 @@ package eu.kanade.tachiyomi.ui.setting +import android.content.Intent import android.os.Build +import android.provider.Settings import androidx.biometric.BiometricManager import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.R @@ -116,6 +118,17 @@ class SettingsGeneralController : SettingsController() { defaultValue = "1" summary = "%s" } + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + preference { + titleRes = R.string.pref_manage_notifications + onClick { + val intent = Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS).apply { + putExtra(Settings.EXTRA_APP_PACKAGE, context.packageName) + } + startActivity(intent) + } + } + } preferenceCategory { titleRes = R.string.pref_category_security diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9ab428a6c..b052c11a4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -131,6 +131,7 @@ Language System default Date format + Manage notifications Security Lock with biometrics