Fix some sign in errors.

AccountManagerService.SimWatcher was checking if storedImsi = "initial"
instead of null as an initial condition.  Also, on NV-only CDMA devices
we were only sending SIM_STATE_CHANGED notifications when the radio
powered down, which meant storedImsi was only initialized if the radio
powered down.
This commit is contained in:
jsh
2009-09-01 16:13:55 -07:00
parent 485e6dca96
commit 5b462477a9
2 changed files with 4 additions and 1 deletions

View File

@@ -1397,7 +1397,7 @@ public class AccountManagerService extends IAccountManager.Stub {
Log.v(TAG, "current IMSI=" + imsi + "; stored IMSI=" + storedImsi);
}
if (!imsi.equals(storedImsi) && !"initial".equals(storedImsi)) {
if (!imsi.equals(storedImsi) && !TextUtils.isEmpty(storedImsi)) {
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.v(TAG, "wiping all passwords and authtokens");
}