sanders: LineageActions: Register torch callback on chop-chop action
This commit is contained in:
@@ -38,6 +38,7 @@ public class TorchAction implements SensorAction {
|
|||||||
|
|
||||||
public TorchAction(Context mContext) {
|
public TorchAction(Context mContext) {
|
||||||
mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE);
|
mCameraManager = (CameraManager) mContext.getSystemService(Context.CAMERA_SERVICE);
|
||||||
|
mCameraManager.registerTorchCallback(new MyTorchCallback(), null);
|
||||||
mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
|
mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
|
||||||
try {
|
try {
|
||||||
for (final String cameraId : mCameraManager.getCameraIdList()) {
|
for (final String cameraId : mCameraManager.getCameraIdList()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user