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

Commit b53bfc66 authored by Fiona Campbell's avatar Fiona Campbell
Browse files

NightDisplay Slider fixes

- add haptic feedback

Bug: 394828723
Flag: EXEMPT small bugfix only
Test: manual

Change-Id: Ib59342a8a1234cb0d359242b45ecbbfc2a792745
parent dbe379af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings.display;

import static com.android.settingslib.widget.SliderPreference.HAPTIC_FEEDBACK_MODE_ON_ENDS;

import android.content.Context;
import android.hardware.display.ColorDisplayManager;
import android.text.TextUtils;
@@ -68,7 +70,7 @@ public class NightDisplayIntensityPreferenceController extends SliderPreferenceC
        preference.setUpdatesContinuously(true);
        preference.setMax(getMax());
        preference.setMin(getMin());
        // TODO(b/394828723) add haptic feedback
        preference.setHapticFeedbackMode(HAPTIC_FEEDBACK_MODE_ON_ENDS);
    }

    @Override