summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2020-04-23 16:53:46 +0200
committerArne Schwabe <arne@rfc2549.org>2020-04-23 16:53:46 +0200
commit8007c80750f53d11a5d0c5f098c2e713b6ee5159 (patch)
tree2f5411a26b7133b8751700a3e4f9a36615f6e6da
parenta9f5f6505f64bd3e7e0bb4bb0fc30d774d90785b (diff)
Fix missing okay/cancel buttons in RemoteDN preference (closes #1160)
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java6
-rw-r--r--main/src/ui/res/xml/vpn_authentification.xml2
2 files changed, 5 insertions, 3 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java b/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java
index 46c9ed48..7c3d1766 100644
--- a/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java
+++ b/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java
@@ -24,15 +24,15 @@ public class RemoteCNPreference extends DialogPreference {
}
public RemoteCNPreference(Context context, AttributeSet attrs, int defStyleAttr) {
- this(context, attrs, defStyleAttr, defStyleAttr);
+ super(context, attrs, defStyleAttr);
}
public RemoteCNPreference(Context context, AttributeSet attrs) {
- this(context, attrs, 0);
+ super(context, attrs, 0);
}
public RemoteCNPreference(Context context) {
- this(context, null);
+ super(context);
}
diff --git a/main/src/ui/res/xml/vpn_authentification.xml b/main/src/ui/res/xml/vpn_authentification.xml
index 458378b7..374431e7 100644
--- a/main/src/ui/res/xml/vpn_authentification.xml
+++ b/main/src/ui/res/xml/vpn_authentification.xml
@@ -16,6 +16,8 @@
<de.blinkt.openvpn.views.RemoteCNPreference
android:dependency="checkRemoteCN"
+ android:positiveButtonText="@android:string/ok"
+ android:negativeButtonText="@string/cancel"
android:key="remotecn"
android:title="@string/enter_tlscn_title" />