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

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

am 88d616c8: am bbb17765: am 55dbf2d7: Merge "QS: Allow Flashlight Tile to...

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

* commit '88d616c8':
  QS: Allow Flashlight Tile to handle reset state
parents b0ab2d9b 88d616c8
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;
    }