Skip to content

Commit 1bc4330

Browse files
committed
Add per_app_proxy_settings to the drawer menu
1 parent 9bee5fb commit 1bc4330

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

V2rayNG/app/src/main/java/com/v2ray/ang/ui/MainActivity.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,14 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
783783
)
784784
}
785785

786+
R.id.per_app_proxy_settings -> {
787+
startActivity(Intent(this, PerAppProxyActivity::class.java))
788+
}
789+
786790
R.id.routing_setting -> {
787791
requestSubSettingActivity.launch(Intent(this, RoutingSettingActivity::class.java))
788792
}
789793

790-
791794
R.id.promotion -> {
792795
Utils.openUri(this, "${Utils.decode(AppConfig.PromotionUrl)}?t=${System.currentTimeMillis()}")
793796
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
7+
<path
8+
android:fillColor="#FFFFFFFF"
9+
android:pathData="M4,8h4L8,4L4,4v4zM10,20h4v-4h-4v4zM4,20h4v-4L4,16v4zM4,14h4v-4L4,10v4zM10,14h4v-4h-4v4zM16,4v4h4L20,4h-4zM10,8h4L14,4h-4v4zM16,14h4v-4h-4v4zM16,20h4v-4h-4v4z" />
10+
11+
</vector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
7+
<path
8+
android:fillColor="#FF000000"
9+
android:pathData="M4,8h4L8,4L4,4v4zM10,20h4v-4h-4v4zM4,20h4v-4L4,16v4zM4,14h4v-4L4,10v4zM10,14h4v-4h-4v4zM16,4v4h4L20,4h-4zM10,8h4L14,4h-4v4zM16,14h4v-4h-4v4zM16,20h4v-4h-4v4z" />
10+
11+
</vector>

V2rayNG/app/src/main/res/menu/menu_drawer.xml

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
android:id="@+id/settings"
1313
android:icon="@drawable/ic_settings_24dp"
1414
android:title="@string/title_settings" />
15+
<item
16+
android:id="@+id/per_app_proxy_settings"
17+
android:icon="@drawable/ic_per_apps_24dp"
18+
android:title="@string/title_pref_per_app_proxy" />
1519
<item
1620
android:id="@+id/routing_setting"
1721
android:icon="@drawable/ic_routing_24dp"

0 commit comments

Comments
 (0)