am 37a9f82f: am 288f65e3: Merge changes Iecd1303f,I2076c500 into lmp-mr1-dev automerge: 4a915ab

* commit '37a9f82ffe0536c2da24e30c3c321854752b1741':
  Fix NPE in FlashlightController
  Fix stale unlock icon
This commit is contained in:
Adrian Roos
2014-10-28 18:11:08 +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();
}