summaryrefslogtreecommitdiff
path: root/remoteExample/src/main/res
diff options
context:
space:
mode:
authorTed Romer <tromer@gmail.com>2025-09-26 02:22:57 -0700
committerArne Schwabe <arne@rfc2549.org>2026-01-23 13:43:56 +0100
commit1f1dae89983ed10b7913638e2153d4d3bcb3ac75 (patch)
tree986bdb4b6257a193f0a5cec0232a4fa82d07708b /remoteExample/src/main/res
parent14c315f5a1d526fcd0b36323e724d4e199c6d137 (diff)
Add setDefaultProfile and getDefaultProfile methods to API.
Also: * add corresponding setDefaultVPN intent * add sample usage to remoteExample * bring remoteExample/.../IOpenVPNAPIService.aidl into sync with main/... * make APIVpnProfile.java in remoteExample/ and main/ identical.
Diffstat (limited to 'remoteExample/src/main/res')
-rw-r--r--remoteExample/src/main/res/layout/fragment_main.xml8
-rw-r--r--remoteExample/src/main/res/values/strings.xml1
2 files changed, 9 insertions, 0 deletions
diff --git a/remoteExample/src/main/res/layout/fragment_main.xml b/remoteExample/src/main/res/layout/fragment_main.xml
index 6b8102e2..0780bba4 100644
--- a/remoteExample/src/main/res/layout/fragment_main.xml
+++ b/remoteExample/src/main/res/layout/fragment_main.xml
@@ -64,6 +64,14 @@
android:text="@string/disconnect" />
<Button
+ android:id="@+id/setDefaultProfile"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignBottom="@+id/disconnect"
+ android:layout_toRightOf="@+id/disconnect"
+ android:text="@string/set_default" />
+
+ <Button
android:id="@+id/startembedded"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
diff --git a/remoteExample/src/main/res/values/strings.xml b/remoteExample/src/main/res/values/strings.xml
index 971f7de5..44c9ecc8 100644
--- a/remoteExample/src/main/res/values/strings.xml
+++ b/remoteExample/src/main/res/values/strings.xml
@@ -14,6 +14,7 @@
<string name="no_now">Not now</string>
<string name="show_my_ip">Show my IP</string>
<string name="disconnect">Disconnect</string>
+ <string name="set_default">Set Default</string>
<string name="start_embedded">Start embedded profile</string>
<string name="addNew">Add new Profile</string>
<string name="addNewEdit">Add editable profile</string>