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:
Adrian Roos
2014-10-28 16:44:31 +00:00
committed by Android Git Automerger
2 changed files with 10 additions and 1 deletions

View File

@@ -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(

View File

@@ -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();
}