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

Commit bbb17765 authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am 55dbf2d7: Merge "QS: Allow Flashlight Tile to handle reset state" into mnc-dev

* commit '55dbf2d7':
  QS: Allow Flashlight Tile to handle reset state
parents 4e07468f 55dbf2d7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ public class FlashlightTile extends QSTile<QSTile.BooleanState> implements
                return;
            }
            state.value = value;
        } else {
            state.value = mFlashlightController.isEnabled();
        }
        final AnimationIcon icon = state.value ? mEnable : mDisable;
        icon.setAllowAnimation(arg instanceof UserBoolean && ((UserBoolean) arg).userInitiated);
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ public class FlashlightController {
        }
    }

    public synchronized boolean isEnabled() {
        return mFlashlightEnabled;
    }

    public synchronized boolean isAvailable() {
        return mTorchAvailable;
    }