am 288f65e3: Merge changes Iecd1303f,I2076c500 into lmp-mr1-dev
* commit '288f65e3811d17273085bc5c8b553f9ba8833dd4': Fix NPE in FlashlightController Fix stale unlock icon
This commit is contained in:
@@ -477,6 +477,11 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
|||||||
public void onScreenTurnedOff(int why) {
|
public void onScreenTurnedOff(int why) {
|
||||||
updateLockIcon();
|
updateLockIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onKeyguardVisibilityChanged(boolean showing) {
|
||||||
|
updateLockIcon();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public void setKeyguardIndicationController(
|
public void setKeyguardIndicationController(
|
||||||
|
|||||||
@@ -308,7 +308,11 @@ public class FlashlightController {
|
|||||||
new CameraCaptureSession.StateListener() {
|
new CameraCaptureSession.StateListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onConfigured(CameraCaptureSession session) {
|
public void onConfigured(CameraCaptureSession session) {
|
||||||
mSession = session;
|
if (session.getDevice() == mCameraDevice) {
|
||||||
|
mSession = session;
|
||||||
|
} else {
|
||||||
|
session.close();
|
||||||
|
}
|
||||||
postUpdateFlashlight();
|
postUpdateFlashlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user