sanders: LineageActions: Register torch callback on chop-chop action

This commit is contained in:
jhenrique09
2017-11-03 18:09:57 -02:00
committed by therootlord
parent 6fbc28026a
commit 596f5e602d

View File

@@ -38,6 +38,7 @@ public class TorchAction implements SensorAction {
public TorchAction(Context mContext) {
mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE);
mCameraManager.registerTorchCallback(new MyTorchCallback(), null);
mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
try {
for (final String cameraId : mCameraManager.getCameraIdList()) {