From d4f33eaabdc56450c3eff65390c5a658029eaf7d Mon Sep 17 00:00:00 2001 From: PC-ZXJ <13807423934@qq.com> Date: Sat, 14 Nov 2026 07:18:04 +0800 Subject: [PATCH] feat(other): add live wallpaper picker shortcut --- .../oneuix/ui/category/DetailPaneOther.kt | 24 +++++++++++++++++++ app/src/main/res/drawable/wallpaper_live.xml | 9 +++++++ app/src/main/res/values-fr/strings.xml | 2 ++ app/src/main/res/values-ko/strings.xml | 2 ++ app/src/main/res/values-ru/strings.xml | 2 ++ app/src/main/res/values-zh/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 2 ++ 7 files changed, 43 insertions(+) create mode 100644 app/src/main/res/drawable/wallpaper_live.xml diff --git a/app/src/main/java/io/github/soclear/oneuix/ui/category/DetailPaneOther.kt b/app/src/main/java/io/github/soclear/oneuix/ui/category/DetailPaneOther.kt index 71fd889b..3072c5ce 100644 --- a/app/src/main/java/io/github/soclear/oneuix/ui/category/DetailPaneOther.kt +++ b/app/src/main/java/io/github/soclear/oneuix/ui/category/DetailPaneOther.kt @@ -9,6 +9,14 @@ import io.github.soclear.oneuix.R import io.github.soclear.oneuix.common.Preference import io.github.soclear.oneuix.ui.SettingViewModel import io.github.soclear.oneuix.ui.component.SwitchItem +import android.app.WallpaperManager +import android.content.Intent +import androidx.compose.foundation.clickable +import androidx.compose.material3.Icon +import androidx.compose.material3.ListItem +import androidx.compose.material3.Text +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.semantics.Role @Composable fun DetailPaneOther( @@ -18,6 +26,7 @@ fun DetailPaneOther( onNavigateToScreenshotDetectionApps: () -> Unit, modifier: Modifier = Modifier ) { + val context = LocalContext.current PackagePane(modifier) { SwitchItem( icon = ImageVector.vectorResource(R.drawable.format_letter_spacing), @@ -45,6 +54,21 @@ fun DetailPaneOther( if (it && uiState.hideScreenshotDetectionPackages.isEmpty()) onNavigateToScreenshotDetectionApps() } ) + ListItem( + headlineContent = { Text(stringResource(R.string.openLiveWallpaperChooser_title)) }, + modifier = Modifier.clickable(role = Role.Button) { + runCatching { + context.startActivity(Intent(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER)) + } + }, + supportingContent = { Text(stringResource(R.string.openLiveWallpaperChooser_summary)) }, + leadingContent = { + Icon( + ImageVector.vectorResource(R.drawable.wallpaper_live), + stringResource(R.string.openLiveWallpaperChooser_title) + ) + } + ) } } diff --git a/app/src/main/res/drawable/wallpaper_live.xml b/app/src/main/res/drawable/wallpaper_live.xml new file mode 100644 index 00000000..563733e8 --- /dev/null +++ b/app/src/main/res/drawable/wallpaper_live.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 2172d318..0d9edc9f 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -206,6 +206,8 @@ Désactiver FLAG_SECURE Masquer les captures aux applications Ajoutez les applications sélectionnées à la portée du module et redémarrez-les. Bloque les rappels de capture et les changements reconnus comme captures. Les captures restent visibles et les autres notifications de photos sont conservées + Ouvrir le sélecteur de fonds d’écran animés + Ouvre directement le sélecteur système de fonds d’écran animés. Utile lorsque Fond d’écran et styles n’a pas d’entrée « Fonds d’écran animés », comme sur les ROM chinoises Autoriser les captures et enregistrements d\'écran dans les fenêtres sécurisées Supprimer la restriction d\'installation AASA Contourner la restriction d\'installation d\'AASA pour certaines applications système diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 411570c5..1db34a1a 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -206,6 +206,8 @@ FLAG_SECURE 비활성화 앱에서 스크린샷 감지 숨기기 선택한 앱을 모듈 적용 범위에 추가한 후 다시 시작하세요. 스크린샷 콜백과 스크린샷으로 식별된 변경 알림만 차단합니다. 사진 선택기에서 스크린샷을 볼 수 있으며 일반 사진 알림은 유지됩니다 + 라이브 배경화면 선택기 열기 + 시스템 라이브 배경화면 선택기를 바로 엽니다. 중국 ROM처럼 배경화면 및 스타일에 라이브 배경화면 항목이 없을 때 사용하세요 보안 창에서 스크린샷 및 화면 녹화 허용 AASA 설치 제한 해제 일부 시스템 앱에 대한 AASA 정책의 설치 제한 우회 diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 1aaad6ff..6d7aa4fa 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -206,6 +206,8 @@ Отключить FLAG_SECURE Скрывать снимки экрана от приложений Добавьте выбранные приложения в область действия модуля и перезапустите их. Блокируются уведомления о захвате экрана и распознанных снимках. Снимки видимы при выборе фото; уведомления об обычных фото сохраняются + Открыть выбор живых обоев + Сразу открывает системный выбор живых обоев. Полезно, когда в «Обоях и стиле» нет пункта «Живые обои», как на китайских прошивках Разрешить снимки и запись экрана в защищенных окнах Снять ограничение установки AASA Обойти ограничение установки AASA для некоторых системных приложений diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index bada2875..f7f7a878 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -206,6 +206,8 @@ 禁用安全标记 (FLAG_SECURE) 对应用隐藏截图行为 将所选应用加入模块作用域并重启应用后生效。屏蔽截图回调与识别到的截图变更通知;仍可查看截图,普通照片通知保留 + 打开动态壁纸选择器 + 直接打开系统的动态壁纸选择器。国行系统的壁纸应用里没有动态壁纸入口时,可以用它代替 允许在受保护的应用窗口中截屏和录屏 移除AASA安装限制 破解AASA策略对部分系统应用的安装限制 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 40fb4e64..d7ed2fd4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -208,6 +208,8 @@ Bypass AASA policy\'s install restriction for some system apps Hide screenshots from apps Add the selected apps to the module scope and restart them. Block screenshot callbacks and recognized screenshot change notifications. Screenshots remain visible in photo pickers; other photo notifications are preserved + Open live wallpaper picker + Opens the system live wallpaper picker directly. Useful when Wallpaper and style has no Live wallpapers entry, as on China ROMs Allow screenshots and screen recording in secure windows Back up config Restore config