补充用户协议隐私协议版权声明

This commit is contained in:
冼国豪 2026-05-27 14:10:31 +08:00
parent 2b96bde112
commit 54b80fe711
13 changed files with 616 additions and 8 deletions

View File

@ -0,0 +1,141 @@
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copyright Notice / 版权声明</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.7;
padding: 16px 20px;
max-width: 800px;
margin: 0 auto;
color: #1a1a1a;
background: #ffffff;
}
h1 { font-size: 22px; border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-top: 8px; }
h2 { font-size: 17px; margin-top: 28px; color: #333; }
h3 { font-size: 15px; margin-top: 20px; color: #444; }
p, li { font-size: 14px; color: #444; }
ul { padding-left: 20px; }
.lang-divider { border: none; border-top: 2px solid #e0e0e0; margin: 40px 0; }
.last-updated { color: #999; font-size: 12px; margin-top: 32px; }
strong { color: #222; }
code { background: #f5f5f5; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
</style>
</head>
<body>
<!-- ==================== 中文版 ==================== -->
<h1>版权声明</h1>
<p>AudioVibe &copy; 2026。保留所有权利。</p>
<h2>一、开源组件许可</h2>
<p>本应用使用了以下开源组件,感谢这些项目的贡献:</p>
<h3>jaudiotagger</h3>
<ul>
<li>许可协议:<strong>LGPL v2.1</strong></li>
<li>用途:音频元数据标签读写</li>
<li>修改说明:已修改 <code>PartOfSet.java</code> 中 TRCK 帧写入逻辑以支持 "曲目号/总曲目数" 格式</li>
<li>源代码获取:修改后的源代码随本应用分发,您也可以通过联系我们获取完整源码副本。LGPL v2.1 许可全文见 <a href="https://www.gnu.org/licenses/lgpl-2.1.html">https://www.gnu.org/licenses/lgpl-2.1.html</a></li>
</ul>
<h3>FFmpegKit / FFmpeg</h3>
<ul>
<li>许可协议:<strong>LGPL v3.0</strong></li>
<li>用途:音频格式转换、小众格式解码、FFprobe 元数据解析</li>
<li>源代码获取:本应用使用 ffmpeg-kit-min 构建,未修改 FFmpeg 源码。FFmpeg 源码见 <a href="https://github.com/arthenica/ffmpeg-kit">ffmpeg-kit</a>,LGPL v3.0 许可全文见 <a href="https://www.gnu.org/licenses/lgpl-3.0.html">https://www.gnu.org/licenses/lgpl-3.0.html</a></li>
</ul>
<h3>ExoPlayer (Media3)</h3>
<ul>
<li>许可协议:<strong>Apache License 2.0</strong></li>
<li>用途:常规音频格式播放</li>
<li>许可全文见 <a href="https://www.apache.org/licenses/LICENSE-2.0">https://www.apache.org/licenses/LICENSE-2.0</a></li>
</ul>
<h3>Timber</h3>
<ul>
<li>许可协议:<strong>Apache License 2.0</strong></li>
<li>用途:应用日志记录</li>
</ul>
<h3>AndroidX / Jetpack 系列</h3>
<ul>
<li>许可协议:<strong>Apache License 2.0</strong></li>
<li>包含:Room、Navigation、Paging、DataStore、Lifecycle 等</li>
</ul>
<h3>Coil</h3>
<ul>
<li>许可协议:<strong>Apache License 2.0</strong></li>
<li>用途:图片加载(封面图)</li>
</ul>
<h2>二、商标</h2>
<p>"AudioVibe" 及本应用的图标/Logo 为开发者的商标。此处未明确授予的所有权利均予保留。</p>
<h2>三、第三方内容</h2>
<p>本应用中出现的所有歌曲名称、专辑名称、艺术家名称、封面图片等均为其各自所有者的财产,仅用于用户个人音乐管理目的。</p>
<hr class="lang-divider">
<!-- ==================== English ==================== -->
<h1>Copyright Notice</h1>
<p>AudioVibe &copy; 2026. All rights reserved.</p>
<h2>1. Open Source Components</h2>
<p>This application uses the following open-source components. We are grateful for their contributions:</p>
<h3>jaudiotagger</h3>
<ul>
<li>License: <strong>LGPL v2.1</strong></li>
<li>Usage: Audio metadata tag reading and writing</li>
<li>Modification: Modified <code>PartOfSet.java</code> TRCK frame writing logic to support "track/total" format</li>
<li>Source code: The modified source code is distributed with this application. You may also contact us for a complete copy. Full LGPL v2.1 text at <a href="https://www.gnu.org/licenses/lgpl-2.1.html">https://www.gnu.org/licenses/lgpl-2.1.html</a></li>
</ul>
<h3>FFmpegKit / FFmpeg</h3>
<ul>
<li>License: <strong>LGPL v3.0</strong></li>
<li>Usage: Audio format conversion, exotic format decoding, FFprobe metadata parsing</li>
<li>Source code: This app uses ffmpeg-kit-min without modification to FFmpeg source. FFmpeg source available at <a href="https://github.com/arthenica/ffmpeg-kit">ffmpeg-kit</a>. Full LGPL v3.0 text at <a href="https://www.gnu.org/licenses/lgpl-3.0.html">https://www.gnu.org/licenses/lgpl-3.0.html</a></li>
</ul>
<h3>ExoPlayer (Media3)</h3>
<ul>
<li>License: <strong>Apache License 2.0</strong></li>
<li>Usage: Standard audio format playback</li>
<li>Full text at <a href="https://www.apache.org/licenses/LICENSE-2.0">https://www.apache.org/licenses/LICENSE-2.0</a></li>
</ul>
<h3>Timber</h3>
<ul>
<li>License: <strong>Apache License 2.0</strong></li>
<li>Usage: Application logging</li>
</ul>
<h3>AndroidX / Jetpack Libraries</h3>
<ul>
<li>License: <strong>Apache License 2.0</strong></li>
<li>Includes: Room, Navigation, Paging, DataStore, Lifecycle, and others</li>
</ul>
<h3>Coil</h3>
<ul>
<li>License: <strong>Apache License 2.0</strong></li>
<li>Usage: Image loading (cover art)</li>
</ul>
<h2>2. Trademarks</h2>
<p>"AudioVibe" and the app icon/logo are trademarks of the developer. All rights not expressly granted herein are reserved.</p>
<h2>3. Third-Party Content</h2>
<p>All song names, album names, artist names, and cover images appearing in the App are the property of their respective owners, used solely for the user's personal music management purposes.</p>
</body>
</html>

View File

@ -0,0 +1,161 @@
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy / 隐私政策</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.7;
padding: 16px 20px;
max-width: 800px;
margin: 0 auto;
color: #1a1a1a;
background: #ffffff;
}
h1 { font-size: 22px; border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-top: 8px; }
h2 { font-size: 17px; margin-top: 28px; color: #333; }
h3 { font-size: 15px; margin-top: 20px; color: #444; }
p, li { font-size: 14px; color: #444; }
ul { padding-left: 20px; }
.lang-section { margin-top: 48px; }
.lang-divider { border: none; border-top: 2px solid #e0e0e0; margin: 40px 0; }
.last-updated { color: #999; font-size: 12px; margin-top: 32px; }
strong { color: #222; }
</style>
</head>
<body>
<!-- ==================== 中文版 ==================== -->
<h1>隐私政策</h1>
<p class="last-updated">最后更新日期:2026年5月27日</p>
<p>AudioVibe(以下简称"本应用"或"我们")是一款完全本地化的音频工具,所有数据处理均在您的设备上完成,不会上传至任何服务器。</p>
<h2>一、我们收集的信息</h2>
<h3>1.1 您主动提供的信息</h3>
<ul>
<li><strong>反馈信息</strong>:当您使用"帮助与反馈"功能时,您填写的意见内容和您选择附带的诊断日志。</li>
</ul>
<h3>1.2 我们不收集的信息</h3>
<ul>
<li>我们<strong>不收集</strong>您的精确位置信息。</li>
<li>我们<strong>不收集</strong>您的通讯录、通话记录、短信。</li>
<li>我们<strong>不上传</strong>您的音乐文件到任何服务器。所有音乐扫描、播放、编辑均在本地完成。</li>
<li>我们<strong>不收集</strong>您的照片或相机数据。</li>
</ul>
<h2>二、我们如何使用信息</h2>
<ul>
<li>响应您的反馈和客户支持请求。</li>
<li>诊断和解决您报告的技术问题。</li>
<li>遵守适用的法律法规。</li>
</ul>
<h2>三、信息存储与安全</h2>
<ul>
<li>所有音乐库数据、播放记录和日志文件均<strong>存储在您的设备本地</strong>。</li>
<li>我们采用合理的安全措施保护您的信息,防止未经授权的访问、使用或泄露。</li>
<li>当您通过邮件发送反馈时,反馈内容和日志文件将通过您选择的邮箱应用发送,我们不会在服务器端存储。</li>
</ul>
<h2>四、第三方服务</h2>
<p>本应用集成了以下第三方SDK:</p>
<ul>
<li><strong>FFmpegKit</strong>:用于音频格式转换和标签编辑,不收集用户数据。</li>
<li><strong>ExoPlayer (Media3)</strong>:Google 提供的媒体播放库,其数据收集受 Google 隐私政策约束。</li>
</ul>
<h2>五、数据保留</h2>
<ul>
<li>反馈邮件发送后,我们仅在处理您的反馈期间保留相关邮件往来。</li>
<li>您在设备本地的所有数据(音乐库、播放记录、日志文件)由您完全控制,删除应用即永久清除。</li>
</ul>
<h2>六、您的权利</h2>
<ul>
<li>您可以通过"设置 → 帮助与反馈"联系我们,请求访问或删除您的反馈数据。</li>
<li>您可以通过卸载应用来停止所有本地数据处理。</li>
</ul>
<h2>七、政策更新</h2>
<p>我们可能会更新本隐私政策。更新时,我们会在应用内通知您。</p>
<h2>八、联系我们</h2>
<p>如果您对本隐私政策有任何疑问,请通过以下方式联系我们:</p>
<ul>
<li>邮箱:<strong>minmin666mz@gmail.com</strong></li>
<li>应用内:设置 → 帮助与反馈</li>
</ul>
<hr class="lang-divider">
<!-- ==================== English ==================== -->
<h1>Privacy Policy</h1>
<p class="last-updated">Last Updated: May 27, 2026</p>
<p>AudioVibe ("the App", "we") is a fully local audio tool. All data processing happens on your device and is never uploaded to any server.</p>
<h2>1. Information We Collect</h2>
<h3>1.1 Information You Provide</h3>
<ul>
<li><strong>Feedback</strong>: When you use the "Help & Feedback" feature, the message you write and diagnostic logs you choose to attach.</li>
</ul>
<h3>1.2 What We DO NOT Collect</h3>
<ul>
<li>We <strong>do NOT collect</strong> your precise location.</li>
<li>We <strong>do NOT collect</strong> your contacts, call logs, or messages.</li>
<li>We <strong>do NOT upload</strong> your music files to any server. All scanning, playback, and editing happens locally.</li>
<li>We <strong>do NOT collect</strong> your photos or camera data.</li>
</ul>
<h2>2. How We Use Information</h2>
<ul>
<li>Respond to your feedback and support requests.</li>
<li>Diagnose and resolve technical issues you report.</li>
<li>Comply with applicable laws and regulations.</li>
</ul>
<h2>3. Data Storage & Security</h2>
<ul>
<li>All music library data, playback history, and log files are <strong>stored locally on your device</strong>.</li>
<li>We implement reasonable security measures to protect your information from unauthorized access, use, or disclosure.</li>
<li>When you send feedback via email, the content and log files are sent through your chosen email app. We do not store them on any server.</li>
</ul>
<h2>4. Third-Party Services</h2>
<p>This app integrates the following third-party SDKs:</p>
<ul>
<li><strong>FFmpegKit</strong>: Used for audio format conversion and tag editing. Does not collect user data.</li>
<li><strong>ExoPlayer (Media3)</strong>: Google's media playback library. Data collection is subject to Google's Privacy Policy.</li>
</ul>
<h2>5. Data Retention</h2>
<ul>
<li>After a feedback email is sent, we only retain related correspondence for as long as needed to process your request.</li>
<li>All data on your device (music library, playback history, log files) is under your full control. Uninstalling the app permanently deletes it.</li>
</ul>
<h2>6. Your Rights</h2>
<ul>
<li>You can contact us via "Settings → Help & Feedback" to request access to or deletion of your feedback data.</li>
<li>You can stop all local data processing by uninstalling the app.</li>
</ul>
<h2>7. Policy Updates</h2>
<p>We may update this Privacy Policy. We will notify you within the app when changes are made.</p>
<h2>8. Contact Us</h2>
<p>If you have any questions about this Privacy Policy, please contact us:</p>
<ul>
<li>Email: <strong>minmin666mz@gmail.com</strong></li>
<li>In-app: Settings → Help & Feedback</li>
</ul>
</body>
</html>

View File

@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Terms of Service / 用户协议</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.7;
padding: 16px 20px;
max-width: 800px;
margin: 0 auto;
color: #1a1a1a;
background: #ffffff;
}
h1 { font-size: 22px; border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-top: 8px; }
h2 { font-size: 17px; margin-top: 28px; color: #333; }
p, li { font-size: 14px; color: #444; }
ul { padding-left: 20px; }
.lang-section { margin-top: 48px; }
.lang-divider { border: none; border-top: 2px solid #e0e0e0; margin: 40px 0; }
.last-updated { color: #999; font-size: 12px; margin-top: 32px; }
strong { color: #222; }
</style>
</head>
<body>
<!-- ==================== 中文版 ==================== -->
<h1>用户协议</h1>
<p class="last-updated">最后更新日期:2026年5月27日</p>
<p>欢迎使用 AudioVibe(以下简称"本应用")。请您仔细阅读本用户协议(以下简称"本协议")。通过安装、使用本应用,即表示您已阅读并同意本协议的全部条款。</p>
<h2>一、服务说明</h2>
<p>本应用是一款本地音频编辑与音乐管理工具,提供以下核心功能:</p>
<ul>
<li>本地音乐文件扫描与音乐库管理</li>
<li>音频标签信息查看与编辑</li>
<li>音频播放与播放列表管理</li>
</ul>
<h2>二、用户责任</h2>
<ul>
<li>您承诺仅将本应用用于处理<strong>您拥有合法权利</strong>的音频文件。</li>
<li>您不得利用本应用从事侵犯他人知识产权、肖像权、隐私权等合法权益的行为。</li>
<li>您不得对本应用进行反向工程、反编译或以其他方式试图获取源代码。</li>
<li>您应自行备份重要的音频文件,本应用不对数据丢失承担责任。</li>
</ul>
<h2>三、知识产权</h2>
<ul>
<li>本应用(包括但不限于代码、界面设计、图标、名称)的著作权、商标权等知识产权归开发者所有。</li>
<li>本应用使用了以下开源组件:jaudiotagger(LGPL)、FFmpegKit(LGPL)、ExoPlayer(Apache 2.0)等。相关开源许可信息详见版权声明页面。</li>
<li>您通过本应用编辑音频标签所产生的文件,其知识产权仍归您所有。</li>
</ul>
<h2>四、免责声明</h2>
<ul>
<li>本应用按"现状"提供,不提供任何明示或暗示的保证。</li>
<li>开发者不对以下情况承担责任,<strong>但因开发者故意或重大过失造成的除外</strong>:
<ul>
<li>因未按操作指引使用本应用导致的音频文件损坏或数据丢失;</li>
<li>因设备兼容性问题导致的功能异常;</li>
<li>因第三方SDK导致的问题。</li>
</ul>
</li>
<li>在适用法律允许的最大范围内,开发者对任何间接、附带、特殊或后果性损害赔偿不承担责任。</li>
</ul>
<h2>五、服务变更与终止</h2>
<ul>
<li>我们可能因技术升级、功能调整等原因修改或终止部分服务,并将在应用内提前公布。</li>
<li>本协议条款如有重大变更,将在应用内显著通知。变更公布后继续使用本应用,即视为同意变更后的条款。如不同意变更,您应停止使用本应用。</li>
</ul>
<h2>六、联系我们</h2>
<ul>
<li>邮箱:<strong>minmin666mz@gmail.com</strong></li>
<li>应用内:设置 → 帮助与反馈</li>
</ul>
<hr class="lang-divider">
<!-- ==================== English ==================== -->
<h1>Terms of Service</h1>
<p class="last-updated">Last Updated: May 27, 2026</p>
<p>Welcome to AudioVibe ("the App"). Please read these Terms of Service ("Terms") carefully. By installing or using the App, you agree to be bound by these Terms.</p>
<h2>1. Service Description</h2>
<p>The App is a local audio editing and music management tool providing the following core features:</p>
<ul>
<li>Local music file scanning and library management</li>
<li>Audio tag viewing and editing</li>
<li>Audio playback and playlist management</li>
</ul>
<h2>2. User Responsibilities</h2>
<ul>
<li>You agree to use the App only for processing audio files that <strong>you have legal rights</strong> to.</li>
<li>You may not use the App to infringe upon the intellectual property, portrait rights, privacy rights, or other legal rights of others.</li>
<li>You may not reverse engineer, decompile, or otherwise attempt to extract the source code of the App.</li>
<li>You are responsible for backing up important audio files. The developer is not liable for data loss.</li>
</ul>
<h2>3. Intellectual Property</h2>
<ul>
<li>All intellectual property rights in the App (including code, UI design, icons, and name) belong to the developer.</li>
<li>The App uses the following open-source components: jaudiotagger (LGPL), FFmpegKit (LGPL), ExoPlayer (Apache 2.0), and others. See the Copyright Notice page for details.</li>
<li>Files created through audio tag editing remain your intellectual property.</li>
</ul>
<h2>4. Disclaimer</h2>
<ul>
<li>The App is provided "AS IS" without warranties of any kind, express or implied.</li>
<li>The developer is not liable for the following, <strong>except where caused by the developer's willful misconduct or gross negligence</strong>:
<ul>
<li>Audio file corruption or data loss resulting from use not in accordance with instructions;</li>
<li>Malfunctions due to device compatibility issues;</li>
<li>Issues caused by third-party SDKs.</li>
</ul>
</li>
<li>To the maximum extent permitted by applicable law, the developer is not liable for any indirect, incidental, special, or consequential damages.</li>
</ul>
<h2>5. Service Changes & Termination</h2>
<ul>
<li>We may modify or discontinue parts of the service due to technical upgrades, feature adjustments, or other reasons, and will announce such changes in advance within the App.</li>
<li>Material changes to these Terms will be prominently notified within the App. Continued use after such changes constitutes acceptance. If you do not agree to the changes, you should discontinue use of the App.</li>
</ul>
<h2>6. Contact Us</h2>
<ul>
<li>Email: <strong>minmin666mz@gmail.com</strong></li>
<li>In-app: Settings → Help & Feedback</li>
</ul>
</body>
</html>

View File

@ -66,6 +66,7 @@ data class AppStrings(
val upgrade: String,
val help: String,
val privacyPolicy: String,
val termsOfService: String,
val account: String,
val theme: String,
val language: String,
@ -85,6 +86,7 @@ data class AppStrings(
val feedbackEmailConfirmMessage: String,
val feedbackEmailContinue: String,
val copyrightNotice: String,
val legalInfo: String,
val removeAdsCloudVoices: String,
val view: String,
val system: String,
@ -240,6 +242,7 @@ private fun android.content.res.Resources.toAppStrings(): AppStrings = AppString
upgrade = getString(R.string.upgrade),
help = getString(R.string.help),
privacyPolicy = getString(R.string.privacy_policy),
termsOfService = getString(R.string.terms_of_service),
account = getString(R.string.account),
theme = getString(R.string.theme),
language = getString(R.string.language),
@ -259,6 +262,7 @@ private fun android.content.res.Resources.toAppStrings(): AppStrings = AppString
feedbackEmailConfirmMessage = getString(R.string.feedback_email_confirm_message),
feedbackEmailContinue = getString(R.string.feedback_email_continue),
copyrightNotice = getString(R.string.copyright_notice),
legalInfo = getString(R.string.legal_info),
removeAdsCloudVoices = getString(R.string.remove_ads_cloud_voices),
view = getString(R.string.view),
system = getString(R.string.follow_system),
@ -370,6 +374,7 @@ private val fallbackStrings = AppStrings(
upgrade = "",
help = "",
privacyPolicy = "",
termsOfService = "",
account = "",
theme = "",
language = "",
@ -389,6 +394,7 @@ private val fallbackStrings = AppStrings(
feedbackEmailConfirmMessage = "",
feedbackEmailContinue = "",
copyrightNotice = "",
legalInfo = "",
removeAdsCloudVoices = "",
view = "",
system = "Follow system",

View File

@ -0,0 +1,127 @@
package com.audio.vibe.ui.settings
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.viewinterop.AndroidView
import com.audio.vibe.ui.components.AudioVibeColors
import com.audio.vibe.ui.components.RoundIcon
import com.audio.vibe.ui.components.VibeCard
import com.audio.vibe.ui.components.VibeScreen
import com.audio.vibe.ui.i18n.LocalAppStrings
@Composable
fun LegalPageScreen(
title: String,
assetPath: String,
onBack: () -> Unit
) {
val strings = LocalAppStrings.current
var selectedDoc by remember { mutableStateOf<Pair<String, String>?>(null) }
if (assetPath.isEmpty()) {
if (selectedDoc != null) {
LegalDocumentScreen(
title = selectedDoc!!.first,
assetPath = selectedDoc!!.second,
onBack = { selectedDoc = null }
)
return
}
val documents = listOf(
Pair(strings.privacyPolicy, "privacy_policy.html"),
Pair(strings.termsOfService, "terms_of_service.html"),
Pair(strings.copyrightNotice, "copyright.html")
)
VibeScreen(title = title, onBack = onBack) {
Column(
modifier = Modifier
.weight(1f)
.padding(start = 20.dp, end = 20.dp, bottom = 16.dp)
) {
VibeCard(modifier = Modifier.fillMaxWidth()) {
Column(modifier = Modifier.padding(14.dp)) {
documents.forEach { (docTitle, docPath) ->
Row(
modifier = Modifier
.fillMaxWidth()
.height(56.dp)
.clickable { selectedDoc = Pair(docTitle, docPath) }
.padding(horizontal = 2.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
docTitle,
color = AudioVibeColors.Ink,
fontWeight = FontWeight.Medium,
modifier = Modifier
.padding(start = 14.dp)
.weight(1f)
)
IconButton(onClick = { selectedDoc = Pair(docTitle, docPath) }) {
Icon(
Icons.Default.ChevronRight,
null,
tint = AudioVibeColors.Muted
)
}
}
}
}
}
}
}
return
}
LegalDocumentScreen(title = title, assetPath = assetPath, onBack = onBack)
}
@Composable
private fun LegalDocumentScreen(
title: String,
assetPath: String,
onBack: () -> Unit
) {
VibeScreen(title = title, onBack = onBack) {
AndroidView(
factory = { context ->
WebView(context).apply {
setBackgroundColor(android.graphics.Color.WHITE)
webViewClient = WebViewClient()
settings.apply {
javaScriptEnabled = false
allowFileAccess = false
loadWithOverviewMode = true
useWideViewPort = true
}
loadUrl("file:///android_asset/legal/$assetPath")
}
},
modifier = Modifier
.weight(1f)
.padding(horizontal = 8.dp)
)
}
}

View File

@ -19,7 +19,7 @@ import androidx.compose.material.icons.filled.ChevronRight
import androidx.compose.material.icons.filled.Feedback
import androidx.compose.material.icons.filled.Language
import androidx.compose.material.icons.filled.Person
import androidx.compose.material.icons.filled.PrivacyTip
import androidx.compose.material.icons.filled.Shield
import androidx.compose.material.icons.filled.Style
import androidx.compose.material3.AlertDialog
@ -43,6 +43,8 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import android.widget.Toast
import androidx.compose.foundation.background
import androidx.compose.ui.graphics.Color
import com.audio.vibe.common.feedback.FeedbackShare
import com.audio.vibe.ui.components.AudioVibeColors
import com.audio.vibe.ui.components.VibeCard
@ -62,15 +64,23 @@ fun SettingsScreen(
) {
val strings = LocalAppStrings.current
var dialog by remember { mutableStateOf<String?>(null) }
var legalPage by remember { mutableStateOf<Pair<String, String>?>(null) }
val items = listOf(
Setting(strings.account, Icons.Default.Person),
Setting(strings.theme, Icons.Default.Style),
Setting(strings.language, Icons.Default.Language),
Setting(strings.helpAndFeedback, Icons.Default.Feedback),
Setting(strings.privacyPolicy, Icons.Default.PrivacyTip),
Setting(strings.copyrightNotice, Icons.Default.Shield)
Setting(strings.legalInfo, Icons.Default.Shield)
)
if (legalPage != null) {
LegalPageScreen(
title = legalPage!!.first,
assetPath = legalPage!!.second,
onBack = { legalPage = null }
)
return
}
VibeScreen(title = strings.settings, onBack = onBack) {
Column(
modifier = Modifier
@ -85,7 +95,9 @@ fun SettingsScreen(
) {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxSize()
modifier = Modifier
.fillMaxSize()
.padding(14.dp)
) {
RoundIcon(Icons.Default.Shield, strings.premium)
Column(
@ -108,14 +120,23 @@ fun SettingsScreen(
PrimaryButton(strings.view, onClick = toPremium)
}
}
VibeCard(modifier = Modifier.fillMaxWidth()) {
Column {
VibeCard(
modifier = Modifier
.fillMaxWidth()
) {
Column(modifier = Modifier.padding(14.dp)) {
items.forEachIndexed { index, item ->
val onClick = {
when (item.label) {
strings.legalInfo -> legalPage = Pair(strings.legalInfo, "")
else -> dialog = item.label
}
}
Row(
modifier = Modifier
.fillMaxWidth()
.height(56.dp)
.clickable { dialog = item.label }
.clickable(onClick = onClick)
.padding(horizontal = 2.dp),
verticalAlignment = Alignment.CenterVertically
) {
@ -143,7 +164,7 @@ fun SettingsScreen(
color = AudioVibeColors.Muted,
fontSize = 12.sp
)
IconButton(onClick = { dialog = item.label }) {
IconButton(onClick = onClick) {
Icon(
Icons.Default.ChevronRight,
null,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -26,6 +26,8 @@
<string name="upgrade">アップグレード</string>
<string name="help">ヘルプ</string>
<string name="privacy_policy">プライバシーポリシー</string>
<string name="terms_of_service">利用規約</string>
<string name="legal_info">規約と告知</string>
<string name="account">アカウント</string>
<string name="theme">テーマ</string>
<string name="language">言語</string>

View File

@ -26,6 +26,8 @@
<string name="upgrade">업그레이드</string>
<string name="help">도움말</string>
<string name="privacy_policy">개인정보 처리방침</string>
<string name="terms_of_service">이용약관</string>
<string name="legal_info">약관 및 고지</string>
<string name="account">계정</string>
<string name="theme">테마</string>
<string name="language">언어</string>

View File

@ -26,6 +26,8 @@
<string name="upgrade">Обновить</string>
<string name="help">Справка</string>
<string name="privacy_policy">Политика конфиденциальности</string>
<string name="terms_of_service">Условия использования</string>
<string name="legal_info">Условия и уведомления</string>
<string name="account">Аккаунт</string>
<string name="theme">Тема</string>
<string name="language">Язык</string>

View File

@ -26,6 +26,8 @@
<string name="upgrade">升級</string>
<string name="help">說明</string>
<string name="privacy_policy">隱私權政策</string>
<string name="terms_of_service">用戶協議</string>
<string name="legal_info">條款與聲明</string>
<string name="account">帳戶</string>
<string name="theme">主題</string>
<string name="language">語言</string>

View File

@ -26,6 +26,8 @@
<string name="upgrade">升级</string>
<string name="help">帮助</string>
<string name="privacy_policy">隐私政策</string>
<string name="terms_of_service">用户协议</string>
<string name="legal_info">条款与声明</string>
<string name="account">账户</string>
<string name="theme">主题</string>
<string name="language">语言</string>

View File

@ -27,6 +27,8 @@
<string name="upgrade">Upgrade</string>
<string name="help">Help</string>
<string name="privacy_policy">Privacy Policy</string>
<string name="terms_of_service">Terms of Service</string>
<string name="legal_info">Terms &amp; Notices</string>
<string name="account">Account</string>
<string name="theme">Theme</string>
<string name="language">Language</string>