Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5164149e authored by Julia Reynolds's avatar Julia Reynolds
Browse files

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
parent 8126e93f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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>
+1 −0
Original line number Diff line number Diff line
@@ -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);