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

Commit 50eddd43 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

am: 7d656b62

Change-Id: I03664fef30eadcb3980e5867911bd85e735d7d73
parents 46c10886 7d656b62
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);