From 893ce60f739bb3432eecf540329b732debb38ed3 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 13 Oct 2021 18:44:51 +0200 Subject: Fix Remote CN Preference style --- main/src/ui/java/de/blinkt/openvpn/views/RemoteCNPreference.java | 3 ++- main/src/ui/res/layout/tlsremote.xml | 2 +- 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">