summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java4
-rw-r--r--main/src/ui/res/values/styles.xml1
2 files changed, 3 insertions, 2 deletions
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 f3164bd3..629d65da 100644
--- a/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java
+++ b/main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java
@@ -630,9 +630,9 @@ public class VPNProfileList extends ListFragment implements OnClickListener, Vpn
public Drawable getDrawable(String source) {
Drawable d = null;
if ("ic_menu_add".equals(source))
- d = getActivity().getResources().getDrawable(R.drawable.ic_menu_add_grey);
+ d = requireActivity().getResources().getDrawable(R.drawable.ic_menu_add_grey);
else if ("ic_menu_archive".equals(source))
- d = getActivity().getResources().getDrawable(R.drawable.ic_menu_import_grey);
+ d = requireActivity().getResources().getDrawable(R.drawable.ic_menu_import_grey);
if (d != null) {
diff --git a/main/src/ui/res/values/styles.xml b/main/src/ui/res/values/styles.xml
index e422124d..ee1d2ff6 100644
--- a/main/src/ui/res/values/styles.xml
+++ b/main/src/ui/res/values/styles.xml
@@ -82,6 +82,7 @@
<style name="blinkt.tabLayout" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">?attr/colorAccent</item>
<item name="tabIndicatorHeight">4dp</item>
+ <item name="android:background">@color/design_default_color_primary</item>
<item name="tabBackground">@color/primary</item>