QS: Toggle flashlight on long click

Bug: 27599572
Change-Id: Ie333a7b5cc63fa8e9536ed705ca997c8a8409d22
This commit is contained in:
Jason Monk
2016-03-28 10:19:49 -04:00
parent ace22ae26c
commit 8d344698a9

View File

@@ -91,6 +91,11 @@ public class FlashlightTile extends QSTile<QSTile.BooleanState> implements
return mContext.getString(R.string.quick_settings_flashlight_label);
}
@Override
protected void handleLongClick() {
handleClick();
}
@Override
protected void handleUpdateState(BooleanState state, Object arg) {
state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label);