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
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user