Add missing conversation field
NotificationChannel#EDIT_CONVERSATION should show both 'demote conversation' and 'promote conversation' fields. Test: View Partial and Full Settings for promoted and demoted channels Fixes: 273508155 Change-Id: I4a17a73d695d7c79837fc647b79968f535fa4393
This commit is contained in:
@@ -96,4 +96,11 @@
|
||||
android:summary="@string/demote_conversation_summary"
|
||||
settings:allowDividerAbove="true"/>
|
||||
|
||||
<!-- only used in ChannelPanelActivity -->
|
||||
<Preference
|
||||
android:key="convo_promote"
|
||||
android:icon="@drawable/ic_promote_conversation"
|
||||
android:title="@string/promote_conversation_title"
|
||||
android:summary="@string/promote_conversation_summary" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
@@ -99,6 +99,7 @@ public class ConversationNotificationSettings extends NotificationSettings {
|
||||
mControllers.add(new BubblePreferenceController(context, getChildFragmentManager(),
|
||||
mBackend, false /* isAppPage */, null /* dependentFieldListener */));
|
||||
mControllers.add(new ConversationDemotePreferenceController(context, this, mBackend));
|
||||
mControllers.add(new ConversationPromotePreferenceController(context, this, mBackend));
|
||||
mControllers.add(new BubbleCategoryPreferenceController(context));
|
||||
mControllers.add(new BubbleLinkPreferenceController(context));
|
||||
return new ArrayList<>(mControllers);
|
||||
|
Reference in New Issue
Block a user