summaryrefslogtreecommitdiffstats
path: root/services/core
diff options
context:
space:
mode:
authorJunda Liu <junda@google.com>2015-02-23 16:06:51 -0800
committerJunda Liu <junda@google.com>2015-02-23 16:06:51 -0800
commit985f52cde55a3b1b72d3fc73ffe67005d1906438 (patch)
tree37deace4f8eac18da216e5f2d7336d3766c1fcd7 /services/core
parent99142d298213e93f673057c2334b04b38f7e4450 (diff)
downloadframeworks_base-985f52cde55a3b1b72d3fc73ffe67005d1906438.zip
frameworks_base-985f52cde55a3b1b72d3fc73ffe67005d1906438.tar.gz
frameworks_base-985f52cde55a3b1b72d3fc73ffe67005d1906438.tar.bz2
Fix incorrect condition for sub id check.
Bug: b/19277299 Change-Id: Iea6806926f0e9d9404a3f2613d03b8a0607fea54
Diffstat (limited to 'services/core')
-rw-r--r--services/core/java/com/android/server/TelephonyRegistry.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java
index 8d7a182..4fbf23b 100644
--- a/services/core/java/com/android/server/TelephonyRegistry.java
+++ b/services/core/java/com/android/server/TelephonyRegistry.java
@@ -259,7 +259,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
+ newDefaultSubIdObj + " newDefaultPhoneId=" + newDefaultPhoneId);
}
- if(validatePhoneId(newDefaultPhoneId) && (newDefaultSubIdObj.equals(mDefaultSubId)
+ if(validatePhoneId(newDefaultPhoneId) && (!newDefaultSubIdObj.equals(mDefaultSubId)
|| (newDefaultPhoneId != mDefaultPhoneId))) {
mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_DEFAULT_SUB,
newDefaultPhoneId, 0, newDefaultSubIdObj));