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

Commit 37860d42 authored by Raff Tsai's avatar Raff Tsai
Browse files

Fix volume slider color is not correct

Fixes: 140990940
Test: 1. Switch to dark theme
      2. adb shell am start -a android.settings.panel.action.VOLUME
      3. check volume slider color is identical to color in "Done"
      4. Switch to light theme
      5. adb shell am start -a android.settings.panel.action.VOLUME
      6. Check volume slider color is identical to color in "Done"

Change-Id: If783d5c5f8604a23cfaaa28cf42b916763f9c9e8
parent a70e45b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -75,6 +75,8 @@ public class SliceBuilderUtils {
     * {@param sliceData} is an inline controller.
     */
    public static Slice buildSlice(Context context, SliceData sliceData) {
        // Reload theme for switching dark mode on/off
        context.getTheme().applyStyle(R.style.Theme_Settings_Home, true /* force */);
        Log.d(TAG, "Creating slice for: " + sliceData.getPreferenceController());
        final BasePreferenceController controller = getPreferenceController(context, sliceData);
        FeatureFactory.getFactory(context).getMetricsFeatureProvider()