OSDN Git Service

Fix 5636798: clear PIN/PUK fields when device sleeps or user cancels
authorJim Miller <jaggies@google.com>
Fri, 18 Nov 2011 01:58:40 +0000 (17:58 -0800)
committerJim Miller <jaggies@google.com>
Fri, 18 Nov 2011 01:58:40 +0000 (17:58 -0800)
commit9a3caf39e4c628c6dfcac92f7e2b7e4538a73009
treee589487564ce0d44a9192feb1d3912c32dd7bee9
parent34a62348be92034a9fb7582e51754224785568dc
Fix 5636798: clear PIN/PUK fields when device sleeps or user cancels

This bug is the result of onPause()/onResume() not being called properly
when we have both lock and unlock screens present, which is true for the SIM
and PUK unlock cases.

The fix is to invoke onPause() and onResume() on both of them if they exist.

Verified the rest of the code correctly handles having both.

Also, when the user cancels, we now clear the fields.

Change-Id: If7fbd31df7eab9e3d60656d50d2392607a4bf471
policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
policy/src/com/android/internal/policy/impl/SimPukUnlockScreen.java
policy/src/com/android/internal/policy/impl/SimUnlockScreen.java