From e17a17a8e840230651cb6f7d9f9d46e252637e77 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 26 Jan 2023 12:14:11 +0530 Subject: fix(app): address UI inconsistencies in proxy configuration screen --- app/src/main/AndroidManifest.xml | 1 + .../passwordstore/ui/proxy/ProxySelectorActivity.kt | 19 +++++++++++++++++-- app/src/main/res/values/strings.xml | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e187240d..19bd6845 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -46,6 +46,7 @@ { + onBackPressedDispatcher.onBackPressed() + } + else -> return super.onOptionsItemSelected(item) + } + return true + } + private fun isNumericAddress(text: CharSequence): Boolean { return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { InetAddresses.isNumericAddress(text as String) @@ -91,4 +102,8 @@ class ProxySelectorActivity : AppCompatActivity() { proxyUtils.setDefaultProxy() Handler(Looper.getMainLooper()).postDelayed(500) { finish() } } + + private companion object { + private val WEB_ADDRESS_REGEX = Patterns.WEB_URL.toRegex() + } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3840c0bc..c59d3486 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -344,6 +344,7 @@ The git protocol provided by git-daemon performs no transport encryption and is unsuitable for secure operations. + Proxy settings Proxy hostname Port HTTP(S) proxy settings -- cgit v1.2.3