Merge changes I31066a6f,I081cea0d into sc-dev am: 6d6280c634 am: 77d3f2ec14

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14822912

Change-Id: I57c6941b13c205dded9566cb542d07da853c55dd
This commit is contained in:
Julia Reynolds
2021-06-07 15:22:14 +00:00
committed by Automerger Merge Worker
3 changed files with 6 additions and 19 deletions

View File

@@ -29,18 +29,10 @@
<PreferenceCategory
android:key="important_conversations"
android:title="@string/important_conversations"
settings:isPreferenceVisible="false"
settings:allowDividerAbove="false"
settings:allowDividerBelow="true" >
<Preference
android:key="behavior"
android:selectable="false"
android:summary="@string/important_conversation_behavior_summary"/>
settings:isPreferenceVisible="false" >
<!-- Important conversations added here -->
<PreferenceCategory
android:key="important_conversations_list"
settings:allowDividerAbove="false"
settings:allowDividerBelow="false" >
android:key="important_conversations_list" >
</PreferenceCategory>
</PreferenceCategory>
@@ -48,16 +40,12 @@
<PreferenceCategory
android:title="@string/other_conversations"
android:key="other_conversations"
settings:isPreferenceVisible="false"
settings:allowDividerAbove="true"
settings:allowDividerBelow="false" />
settings:isPreferenceVisible="false" />
<!-- Recent conversations added here -->
<PreferenceCategory
android:title="@string/recent_conversations"
android:key="recent_conversations"
settings:isPreferenceVisible="false"
settings:allowDividerAbove="true"
settings:allowDividerBelow="false" />
settings:isPreferenceVisible="false"/>
</PreferenceScreen>

View File

@@ -69,9 +69,7 @@ public abstract class ConversationListPreferenceController extends AbstractPrefe
populateConversations(conversations, containerGroup);
}
if (containerGroup.getPreferenceCount() == 0) {
containerGroup.setVisible(false);
} else {
if (containerGroup.getPreferenceCount() != 0) {
Preference summaryPref = getSummaryPreference();
if (summaryPref != null) {
containerGroup.addPreference(summaryPref);

View File

@@ -55,6 +55,7 @@ public class PriorityConversationsPreferenceController extends
Preference pref = new Preference(mContext);
pref.setOrder(1);
pref.setSummary(R.string.important_conversations_summary_bubbles);
pref.setSelectable(false);
return pref;
}