LineageParts: Profiles: Even more improvements
* By setting clickable to false, the parent's clickable
attribute can unfold its' effects
* Remove the divider between the profiles
Change-Id: I8aaf3b7d04da1a1769ee8659a8516e2220a1327f
diff --git a/res/layout/preference_profiles.xml b/res/layout/preference_profiles.xml
index 9abcfa5..635056f 100644
--- a/res/layout/preference_profiles.xml
+++ b/res/layout/preference_profiles.xml
@@ -45,7 +45,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
- android:clickable="true"
+ android:clickable="false"
android:focusable="true"
android:gravity="center_vertical"
android:orientation="vertical">
diff --git a/src/org/lineageos/lineageparts/profiles/ProfilesSettings.java b/src/org/lineageos/lineageparts/profiles/ProfilesSettings.java
index 17195c2..9f683a3 100644
--- a/src/org/lineageos/lineageparts/profiles/ProfilesSettings.java
+++ b/src/org/lineageos/lineageparts/profiles/ProfilesSettings.java
@@ -137,6 +137,8 @@
mProfileManager = ProfileManager.getInstance(getActivity());
// After confirming PreferenceScreen is available, we call super.
super.onActivityCreated(savedInstanceState);
+
+ setDivider(null);
}
@Override