remove dividers from settings
This commit is contained in:
parent
cbea85c4dd
commit
c4ca381c7f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue