Compare commits

...

3 Commits

Author SHA1 Message Date
Jobobby04
a76fe20b0b
Fix notification settings under api 26 2025-07-23 19:02:20 +01:00
Jobobby04
1f8ac9d7a0
Add id to staff-edges 2025-07-23 19:02:20 +01:00
Jobobby04
8330405377
Remove +1 in Page Layout reader settings 2025-07-23 19:02:20 +01:00
3 changed files with 14 additions and 3 deletions

View File

@ -3,6 +3,7 @@ package eu.kanade.presentation.more.settings.screen
import android.annotation.SuppressLint
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Build
import android.provider.Settings
import android.webkit.WebStorage
import android.webkit.WebView
@ -147,9 +148,18 @@ object SettingsAdvancedScreen : SearchableSettings {
Preference.PreferenceItem.TextPreference(
title = stringResource(MR.strings.pref_manage_notifications),
onClick = {
val intent = Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS).apply {
putExtra(Settings.EXTRA_APP_PACKAGE, context.packageName)
// SY -->
val intent = Intent().apply {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS)
putExtra(Settings.EXTRA_APP_PACKAGE, context.packageName)
} else {
setAction("android.settings.APP_NOTIFICATION_SETTINGS")
putExtra("app_package", context.packageName)
putExtra("app_uid", context.applicationInfo.uid)
}
}
// SY <--
context.startActivity(intent)
},
),

View File

@ -597,7 +597,7 @@ object SettingsReaderScreen : SearchableSettings {
title = stringResource(SYMR.strings.page_layout),
subtitle = stringResource(SYMR.strings.automatic_can_still_switch),
entries = ReaderPreferences.PageLayouts
.mapIndexed { index, it -> index + 1 to stringResource(it) }
.mapIndexed { index, it -> index to stringResource(it) }
.toMap()
.toImmutableMap(),
),

View File

@ -337,6 +337,7 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) {
|staff {
|edges {
|role
|id
|node {
|name {
|userPreferred