am 9ee164f4
: Properly initialize wakelock for cryptkeeper.
* commit '9ee164f44ea1ad66fa16ed702eb885e36ade0d8b': Properly initialize wakelock for cryptkeeper.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user