am 6a5b2110: Merge "Fix NPE in FlashlightController" into lmp-dev
* commit '6a5b2110eb0adbf8b9d53cf86a931b6067691f14': Fix NPE in FlashlightController
This commit is contained in:
@@ -308,7 +308,11 @@ public class FlashlightController {
|
||||
new CameraCaptureSession.StateListener() {
|
||||
@Override
|
||||
public void onConfigured(CameraCaptureSession session) {
|
||||
mSession = session;
|
||||
if (session.getDevice() == mCameraDevice) {
|
||||
mSession = session;
|
||||
} else {
|
||||
session.close();
|
||||
}
|
||||
postUpdateFlashlight();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user