am 9ee164f4: Properly initialize wakelock for cryptkeeper.

* commit '9ee164f44ea1ad66fa16ed702eb885e36ade0d8b':
  Properly initialize wakelock for cryptkeeper.
This commit is contained in:
Ben Komalo
2011-09-22 10:02:22 -07:00
committed by Android Git Automerger

View File

@@ -318,7 +318,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
// is encrypted.
Log.d(TAG, "Encryption progress screen initializing.");
if (mWakeLock != null) {
if (mWakeLock == null) {
Log.d(TAG, "Acquiring wakelock.");
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);