From da6291a9652f4ef53c11767c736a7b0eecf85fb6 Mon Sep 17 00:00:00 2001
From: 2dust <31833384+2dust@users.noreply.github.com>
Date: Fri, 17 Nov 2023 16:29:32 +0800
Subject: [PATCH] Add menu for privacy policy
---
V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt | 3 ++-
V2rayNG/app/src/main/kotlin/com/v2ray/ang/ui/MainActivity.kt | 3 +++
V2rayNG/app/src/main/res/menu/menu_drawer.xml | 4 ++++
V2rayNG/app/src/main/res/values-zh-rCN/strings.xml | 1 +
V2rayNG/app/src/main/res/values-zh-rTW/strings.xml | 1 +
V2rayNG/app/src/main/res/values/strings.xml | 1 +
6 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt
index 2012818a..da6d2d5c 100644
--- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt
+++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt
@@ -65,8 +65,9 @@ object AppConfig {
const val v2rayCustomRoutingListUrl = "https://raw.githubusercontent.com/2dust/v2rayCustomRoutingList/master/"
const val v2rayNGIssues = "https://github.com/2dust/v2rayNG/issues"
const val v2rayNGWikiMode = "https://github.com/2dust/v2rayNG/wiki/Mode"
+ const val v2rayNGPrivacyPolicy = "https://raw.githubusercontent.com/2dust/v2rayNG/master/CR.md"
const val promotionUrl = "aHR0cHM6Ly85LjIzNDQ1Ni54eXovYWJjLmh0bWw="
- const val geoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/";
+ const val geoUrl = "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/"
const val DNS_AGENT = "1.1.1.1"
const val DNS_DIRECT = "223.5.5.5"
diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/ui/MainActivity.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/ui/MainActivity.kt
index 4151a3e1..f2de9bde 100644
--- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/ui/MainActivity.kt
+++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/ui/MainActivity.kt
@@ -682,6 +682,9 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
R.id.logcat -> {
startActivity(Intent(this, LogcatActivity::class.java))
}
+ R.id.privacy_policy-> {
+ Utils.openUri(this, AppConfig.v2rayNGPrivacyPolicy)
+ }
}
binding.drawerLayout.closeDrawer(GravityCompat.START)
return true
diff --git a/V2rayNG/app/src/main/res/menu/menu_drawer.xml b/V2rayNG/app/src/main/res/menu/menu_drawer.xml
index 7a7efbf7..100d522f 100644
--- a/V2rayNG/app/src/main/res/menu/menu_drawer.xml
+++ b/V2rayNG/app/src/main/res/menu/menu_drawer.xml
@@ -32,6 +32,10 @@
android:id="@+id/feedback"
android:icon="@drawable/ic_feedback_24dp"
android:title="@string/title_pref_feedback" />
+
- 反馈改进或漏洞至 GitHub
加入Telegram Group
未找到Telegram app
+ 隐私权政策
推广
一些推广,点击查看详情(捐赠可去除)
diff --git a/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml b/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml
index 2fbd228a..d047bd6d 100644
--- a/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml
+++ b/V2rayNG/app/src/main/res/values-zh-rTW/strings.xml
@@ -160,6 +160,7 @@
前往 GitHub 回報錯誤
加入 Telegram 群組
未找到 Telegram 應用程式
+ 隱私權政策
推廣
一些推廣,輕觸以檢視 (捐贈可去除)
diff --git a/V2rayNG/app/src/main/res/values/strings.xml b/V2rayNG/app/src/main/res/values/strings.xml
index a27d1398..fa13345d 100644
--- a/V2rayNG/app/src/main/res/values/strings.xml
+++ b/V2rayNG/app/src/main/res/values/strings.xml
@@ -168,6 +168,7 @@
Feedback enhancements or bugs to GitHub
Join Telegram Group
Telegram app not found
+ Privacy policy
Promotion
Promotion,click for details(Donation can be removed)