diff options
author | Arne Schwabe <arne@rfc2549.org> | 2019-12-22 00:38:38 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2019-12-22 00:38:38 +0100 |
commit | 1a9ec218e5595723d5abaa8367a92cf43a01851e (patch) | |
tree | 3c2eefb6284bd2cae70d70593811aad76822d340 | |
parent | e1522e91272caf3d1b22d80dd26f6c000ea89408 (diff) |
TabBar left aligned
Not ideal but enough. And the whole TabLayout seems to be a minefield of
strange behaviour
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/VPNProfileList.java | 4 | ||||
-rw-r--r-- | main/src/ui/res/values/styles.xml | 1 |
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> |