diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-03-29 23:51:21 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-02-09 21:58:43 +0100 |
commit | b08094ff763a076bad9cde28cec777f906ed4d21 (patch) | |
tree | 19417216fb36c923d861b10d25342ac7e42a52bd /ui | |
parent | 32079550d05ba5a6359ebc25ff890db20e014549 (diff) |
tunnel: implement http proxy for Android 10+
Allow getting package names of tv apps.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/main/AndroidManifest.xml | 5 | ||||
-rw-r--r-- | ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ui/src/main/AndroidManifest.xml b/ui/src/main/AndroidManifest.xml index f1daac30..bc1a9dd2 100644 --- a/ui/src/main/AndroidManifest.xml +++ b/ui/src/main/AndroidManifest.xml @@ -141,5 +141,10 @@ <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent> + + <intent> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> + </intent> </queries> </manifest> diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt index 0d38d8b3..1b7cf224 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt @@ -102,7 +102,7 @@ class TunnelEditorFragment : BaseFragment() { } var httpProxyMenu = binding?.root?.findViewById<TextInputLayout>(R.id.http_proxy_menu) - var httpProxyItems = listOf(Constants.HTTP_PROXY_NONE, Constants.HTTP_PROXY_MANUAL) // Constants.HTTP_PROXY_PAC is currently unsupported + var httpProxyItems = listOf(Constants.HTTP_PROXY_NONE, Constants.HTTP_PROXY_MANUAL, Constants.HTTP_PROXY_PAC) var httpProxyAdapter = MaterialSpinnerAdapter(requireContext(), R.layout.http_proxy_menu_item, httpProxyItems) var httpProxyMenuText = httpProxyMenu?.editText as? AutoCompleteTextView httpProxyMenuText?.setAdapter(httpProxyAdapter) |