Merge changes Iecd1303f,I2076c500 into lmp-mr1-dev
* changes: 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) {
|
||||
updateLockIcon();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onKeyguardVisibilityChanged(boolean showing) {
|
||||
updateLockIcon();
|
||||
}
|
||||
};
|
||||
|
||||
public void setKeyguardIndicationController(
|
||||
|
||||
@@ -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