From c4ca381c7f4198458a4f10026a9a32b5a468e60f Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 28 Aug 2018 17:50:36 +0200 Subject: [PATCH] remove dividers from settings --- .../eu/siacs/conversations/ui/SettingsFragment.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/SettingsFragment.java b/src/main/java/eu/siacs/conversations/ui/SettingsFragment.java index ace5b2f91..b3d3f09bc 100644 --- a/src/main/java/eu/siacs/conversations/ui/SettingsFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/SettingsFragment.java @@ -7,6 +7,7 @@ import android.preference.PreferenceCategory; import android.preference.PreferenceFragment; import android.preference.PreferenceScreen; import android.text.TextUtils; +import android.widget.ListView; import eu.siacs.conversations.Config; import eu.siacs.conversations.R; @@ -38,6 +39,16 @@ public class SettingsFragment extends PreferenceFragment { } + @Override + public void onActivityCreated(Bundle bundle) { + super.onActivityCreated(bundle); + + final ListView listView = getActivity().findViewById(android.R.id.list); + if (listView != null) { + listView.setDivider(null); + } + } + public void setActivityIntent(final Intent intent) { boolean wasEmpty = TextUtils.isEmpty(page); if (intent != null) {