remove dividers from settings

This commit is contained in:
Daniel Gultsch 2018-08-28 17:50:36 +02:00
parent cbea85c4dd
commit c4ca381c7f

View file

@ -7,6 +7,7 @@ import android.preference.PreferenceCategory;
import android.preference.PreferenceFragment; import android.preference.PreferenceFragment;
import android.preference.PreferenceScreen; import android.preference.PreferenceScreen;
import android.text.TextUtils; import android.text.TextUtils;
import android.widget.ListView;
import eu.siacs.conversations.Config; import eu.siacs.conversations.Config;
import eu.siacs.conversations.R; 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) { public void setActivityIntent(final Intent intent) {
boolean wasEmpty = TextUtils.isEmpty(page); boolean wasEmpty = TextUtils.isEmpty(page);
if (intent != null) { if (intent != null) {