Skip to content

Commit 4848ab0

Browse files
LightOFF時にカメラのオブジェクトを一度破棄するように修正。
1 parent 525ce94 commit 4848ab0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/camera

dConnectDevicePlugin/dConnectDeviceHost/app/src/main/java/org/deviceconnect/android/deviceplugin/host/camera/CameraWrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ public synchronized void turnOffTorch(final @Nullable TorchOffListener listener,
848848
throw new IllegalArgumentException(e);
849849
} catch (CameraWrapperException e) {
850850
throw new IllegalArgumentException(e);
851+
} finally {
852+
close();
851853
}
852854
notifyTorchOffEvent(listener, handler);
853855
}

0 commit comments

Comments
 (0)