summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorjsh <jsh@google.com>2009-09-01 16:13:55 -0700
committerjsh <jsh@google.com>2009-09-01 16:13:55 -0700
commit5b462477a90cd08551149fc649ff3035b5331d2d (patch)
treedfaeac31496498593b9ab882ebad9daa11a61200 /core/java
parent485e6dca960c2001349de0817c644f24ae85c6e3 (diff)
downloadframeworks_base-5b462477a90cd08551149fc649ff3035b5331d2d.zip
frameworks_base-5b462477a90cd08551149fc649ff3035b5331d2d.tar.gz
frameworks_base-5b462477a90cd08551149fc649ff3035b5331d2d.tar.bz2
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.
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/accounts/AccountManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/accounts/AccountManagerService.java b/core/java/android/accounts/AccountManagerService.java
index 5ed8941..8cfb758 100644
--- a/core/java/android/accounts/AccountManagerService.java
+++ b/core/java/android/accounts/AccountManagerService.java
@@ -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");
}