am e9846105: am 1108a2cb: Added a makeInvisible call to Face Unlock

* commit 'e98461056713f0bb483abf017e68a96088193c29':
  Added a makeInvisible call to Face Unlock
This commit is contained in:
Danielle Millett
2012-10-30 09:24:15 -07:00
committed by Android Git Automerger
3 changed files with 10 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ interface IFaceLockInterface {
void startUi(IBinder containingWindowToken, int x, int y, int width, int height,
boolean useLiveliness);
void stopUi();
void makeInvisible();
void registerCallback(IFaceLockCallback cb);
void unregisterCallback(IFaceLockCallback cb);
}

View File

@@ -151,6 +151,14 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback {
}
boolean mWasRunning = mIsRunning;
try {
if (mService != null) {
mService.makeInvisible();
}
} catch (RemoteException e) {
Log.e(TAG, "Caught exception making Face Unlock invisible: " + e.toString());
}
stopUi();
if (mBoundToService) {

View File

@@ -85,7 +85,7 @@ public class KeyguardFaceUnlockView extends LinearLayout implements KeyguardSecu
public void onPause() {
if (DEBUG) Log.d(TAG, "onPause()");
if (mBiometricUnlock != null) {
mBiometricUnlock.stopAndShowBackup();
mBiometricUnlock.stop();
}
KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateCallback);
}