summaryrefslogtreecommitdiff
path: root/main/src/ui/java/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2019-12-22 00:38:38 +0100
committerArne Schwabe <arne@rfc2549.org>2019-12-22 00:38:38 +0100
commit1a9ec218e5595723d5abaa8367a92cf43a01851e (patch)
tree3c2eefb6284bd2cae70d70593811aad76822d340 /main/src/ui/java/de
parente1522e91272caf3d1b22d80dd26f6c000ea89408 (diff)
TabBar left aligned
Not ideal but enough. And the whole TabLayout seems to be a minefield of strange behaviour
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java4
1 files changed, 2 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) {