Add support for import remote profile

This commit is contained in:
世界
2023-07-27 12:14:03 +08:00
parent 805d99e297
commit cb9799936b
8 changed files with 92 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#000000"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M16,5l-1.42,1.42 -1.59,-1.59L12.99,16h-1.98L11.01,4.83L9.42,6.42 8,5l4,-4 4,4zM20,10v11c0,1.1 -0.9,2 -2,2L6,23c-1.11,0 -2,-0.9 -2,-2L4,10c0,-1.11 0.89,-2 2,-2h3v2L6,10v11h12L18,10h-3L15,8h3c1.1,0 2,0.89 2,2z"/>
</vector>

View File

@@ -2,6 +2,13 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_share"
android:title="@string/menu_share"
android:icon="@drawable/ic_ios_share_24"
app:iconTintMode="src_in"
app:iconTint="?colorPrimary" />
<item
android:id="@+id/action_delete"
android:title="@string/menu_delete"

View File

@@ -37,6 +37,7 @@
<string name="menu_redo">Redo</string>
<string name="menu_format">Format</string>
<string name="menu_delete">Delete</string>
<string name="menu_share">Share</string>
<string name="status_default">Service not started</string>
<string name="status_starting">Service starting…</string>
@@ -75,7 +76,6 @@
<string name="analytics_title">Analytics</string>
<string name="analytics_message">Would you like to give SFA permission to collect analytics, send crash reports, and check update through AppCenter?</string>
<string name="no_thanks">No, thanks</string>
<string name="ok">Ok</string>
<string name="check_update">Check Update</string>
<string name="title_app_center">App Center</string>
<string name="title_feedback">Feedback</string>
@@ -91,5 +91,7 @@
<string name="background_permission_description">Apply for the necessary permissions in order for the VPN to function properly.\n\nIf you are using a device made by a Chinese company, the card may not disappear after the permission is granted.</string>
<string name="read_more">Read More</string>
<string name="request_background_permission">Ignore battery optimizations</string>
<string name="import_remote_profile">Import remote profile</string>
<string name="import_remote_profile_message">Are you sure to import remote configuration %s? You will connect to %s to download the configuration.</string>
</resources>