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

Commit 7d656b62 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge \"Fix flashlight dim state\" into nyc-dev

am: 817c4ca6

Change-Id: Ie49b1d3daaffe3f31bde760c1b8ed8391e82771f
parents 33809d72 817c4ca6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -102,7 +102,8 @@ public class FlashlightTile extends QSTile<QSTile.BooleanState> implements
    protected void handleUpdateState(BooleanState state, Object arg) {
        state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label);
        if (!mFlashlightController.isAvailable()) {
            Drawable icon = mHost.getContext().getDrawable(R.drawable.ic_signal_flashlight_disable);
            Drawable icon = mHost.getContext().getDrawable(R.drawable.ic_signal_flashlight_disable)
                    .mutate();
            final int disabledColor = mHost.getContext().getColor(R.color.qs_tile_tint_unavailable);
            icon.setTint(disabledColor);
            state.icon = new DrawableIcon(icon);