am a3c3bf1d
: Merge "Notification alert every 5s and start after 30s." into jb-dev
* commit 'a3c3bf1dee34940ade909306486a9bb12c75b8b7': Notification alert every 5s and start after 30s.
This commit is contained in:
@@ -98,7 +98,6 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
||||
private boolean mEncryptionGoneBad;
|
||||
/** A flag to indicate when the back event should be ignored */
|
||||
private boolean mIgnoreBack = false;
|
||||
|
||||
private int mCooldown;
|
||||
PowerManager.WakeLock mWakeLock;
|
||||
private EditText mPasswordEntry;
|
||||
@@ -248,9 +247,9 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
||||
Log.w(TAG, "notifyUser: Exception while playing sound: " + e);
|
||||
}
|
||||
}
|
||||
// Notify the user again in 30 seconds.
|
||||
// Notify the user again in 5 seconds.
|
||||
mHandler.removeMessages(MESSAGE_NOTIFY);
|
||||
mHandler.sendEmptyMessageDelayed(MESSAGE_NOTIFY, 30 * 1000);
|
||||
mHandler.sendEmptyMessageDelayed(MESSAGE_NOTIFY, 5 * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -510,9 +509,9 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
|
||||
}, 0);
|
||||
|
||||
updateEmergencyCallButtonState();
|
||||
// Notify the user that we are waiting for him to enter the password to get the device
|
||||
// out of this completely dead state.
|
||||
notifyUser();
|
||||
// Notify the user in 30 seconds that we are waiting for him to enter the password.
|
||||
mHandler.removeMessages(MESSAGE_NOTIFY);
|
||||
mHandler.sendEmptyMessageDelayed(MESSAGE_NOTIFY, 30 * 1000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user