diff options
author | Arne Schwabe <arne@rfc2549.org> | 2023-12-12 12:15:40 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2024-07-23 15:02:45 +0200 |
commit | 5bdac9a6be1716738bd90816247fd52672a16568 (patch) | |
tree | 72a91dd0d454ea28640d67c8e3113d07aae3de92 /main/src | |
parent | 4473ad1f1bc49c166fb8ab92ee7a7b91c608135e (diff) |
Fix a few accessibility issues reported by pre check of Play store
Diffstat (limited to 'main/src')
-rwxr-xr-x | main/src/main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java | 1 | ||||
-rw-r--r-- | main/src/ui/res/layout/basic_settings.xml | 1 | ||||
-rw-r--r-- | main/src/ui/res/layout/log_silders.xml | 3 | ||||
-rw-r--r-- | main/src/ui/res/layout/server_card.xml | 2 | ||||
-rw-r--r-- | main/src/ui/res/menu/connections.xml | 1 |
6 files changed, 8 insertions, 1 deletions
diff --git a/main/src/main/res/values/strings.xml b/main/src/main/res/values/strings.xml index fd0b30ce..53893699 100755 --- a/main/src/main/res/values/strings.xml +++ b/main/src/main/res/values/strings.xml @@ -511,4 +511,5 @@ <string name="permission_requested">Permission to start a VPN connection is required</string> <string name="missing_vpn_permission_log">VPN Service is missing permission to connect a VPN. Requesting permission via notification.</string> <string name="ignore_vpn_start_request">VPN already running (%s). Ignoring request to start VPN.</string> + <string name="name_of_the_vpn_profile">Name of the VPN Profile</string> </resources> diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java b/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java index 5b4c736f..28504268 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java @@ -451,6 +451,7 @@ public class VPNProfileList extends ListFragment implements OnClickListener, Vpn if (context != null) { final EditText entry = new EditText(context); entry.setSingleLine(); + entry.setContentDescription(getString(R.string.name_of_the_vpn_profile)); AlertDialog.Builder dialog = new AlertDialog.Builder(context); if (mCopyProfile == null) diff --git a/main/src/ui/res/layout/basic_settings.xml b/main/src/ui/res/layout/basic_settings.xml index 8aa4c811..47f84e5f 100644 --- a/main/src/ui/res/layout/basic_settings.xml +++ b/main/src/ui/res/layout/basic_settings.xml @@ -21,6 +21,7 @@ style="@style/item" android:text="@string/profilename" android:textAppearance="?android:attr/textAppearanceSmall" + android:labelFor="@id/profilename" /> <EditText diff --git a/main/src/ui/res/layout/log_silders.xml b/main/src/ui/res/layout/log_silders.xml index 4196e243..de6155fc 100644 --- a/main/src/ui/res/layout/log_silders.xml +++ b/main/src/ui/res/layout/log_silders.xml @@ -19,7 +19,8 @@ <TextView android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="@string/log_verbosity_level"/> + android:text="@string/log_verbosity_level" + android:labelFor="@id/LogLevelSlider"/> <de.blinkt.openvpn.views.SeekBarTicks diff --git a/main/src/ui/res/layout/server_card.xml b/main/src/ui/res/layout/server_card.xml index 1395cd8b..8a19ae8f 100644 --- a/main/src/ui/res/layout/server_card.xml +++ b/main/src/ui/res/layout/server_card.xml @@ -327,6 +327,7 @@ android:layout_below="@+id/connect_timeout_label" android:ems="3" tools:text="232" + android:labelFor="@id/connect_silder" android:gravity="end" android:inputType="numberDecimal"/> @@ -364,6 +365,7 @@ android:id="@+id/warnung_custom" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:labelFor="@id/customoptions" android:text="@string/custom_connection_options_warng"/> <EditText diff --git a/main/src/ui/res/menu/connections.xml b/main/src/ui/res/menu/connections.xml index 631e01a8..f4dc1820 100644 --- a/main/src/ui/res/menu/connections.xml +++ b/main/src/ui/res/menu/connections.xml @@ -11,6 +11,7 @@ android:title="@string/add_remote" android:id="@+id/add_new_remote" android:titleCondensed="@string/add" + android:contentDescription="@string/add_remote" app:showAsAction="always" /> </menu>
\ No newline at end of file |