summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java3
-rw-r--r--main/src/ui/res/layout/tlsremote.xml2
2 files changed, 3 insertions, 2 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 7c3d1766..93a2d90f 100644
--- a/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java
+++ b/main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java
@@ -8,6 +8,7 @@ package de.blinkt.openvpn.views;
import android.content.Context;
import android.util.AttributeSet;
+import androidx.core.content.res.TypedArrayUtils;
import androidx.preference.DialogPreference;
import de.blinkt.openvpn.R;
@@ -28,7 +29,7 @@ public class RemoteCNPreference extends DialogPreference {
}
public RemoteCNPreference(Context context, AttributeSet attrs) {
- super(context, attrs, 0);
+ super(context, attrs);
}
public RemoteCNPreference(Context context) {
diff --git a/main/src/ui/res/layout/tlsremote.xml b/main/src/ui/res/layout/tlsremote.xml
index 1e393d6b..a03b7357 100644
--- a/main/src/ui/res/layout/tlsremote.xml
+++ b/main/src/ui/res/layout/tlsremote.xml
@@ -7,7 +7,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/stdpadding"
- android:theme="@style/Theme.AppCompat.Dialog.Alert">
+ android:theme="@style/Theme.AppCompat.DayNight.Dialog.Alert">
<LinearLayout
android:layout_width="wrap_content"