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

Commit f9399763 authored by Beverly's avatar Beverly
Browse files

Allow > 1 line title for DND duration preference

Test: manual
Fixes: 154694705
Change-Id: I9eaffb21e5d5902782beb5e9f845394015ba23be
parent 2152d0ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7998,7 +7998,7 @@
    <!-- Do not disturb settings, main screen, field, schedules [CHAR LIMIT=100]-->
    <string name="zen_category_schedule">Schedules</string>
    <!-- Do not disturb settings, main screen, field, duration setting where user can specify how
    long dnd will last when toggling dnd on from qs or settings) [CHAR LIMIT=100] -->
    long dnd will last when toggling dnd on from qs) [CHAR LIMIT=100] -->
    <string name="zen_category_duration">Duration for Quick Settings</string>
    <!-- Do not disturb settings, sound and vibrations screen footer [CHAR LIMIT=NONE]-->
+3 −1
Original line number Diff line number Diff line
@@ -30,17 +30,19 @@ public class ZenDurationDialogPreference extends CustomDialogPreferenceCompat {
    public ZenDurationDialogPreference(Context context, AttributeSet attrs, int defStyleAttr,
            int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        setSingleLineTitle(false);
    }

    public ZenDurationDialogPreference(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        setSingleLineTitle(false);
    }

    public ZenDurationDialogPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
        setSingleLineTitle(false);
    }


    @Override
    protected void onPrepareDialogBuilder(AlertDialog.Builder builder,
            DialogInterface.OnClickListener listener) {