summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/messaging/ui/conversation/ComposeMessageView.java2
-rwxr-xr-xsrc/com/cyanogenmod/messaging/quickmessage/QuickMessagePopup.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/messaging/ui/conversation/ComposeMessageView.java b/src/com/android/messaging/ui/conversation/ComposeMessageView.java
index ae1bbec..ffec347 100644
--- a/src/com/android/messaging/ui/conversation/ComposeMessageView.java
+++ b/src/com/android/messaging/ui/conversation/ComposeMessageView.java
@@ -253,7 +253,7 @@ public class ComposeMessageView extends LinearLayout
int subId = 0; // defaulting to 0, just in case
while (phoneAccounts.hasNext()) {
PhoneAccountHandle p = phoneAccounts.next();
- if (p.getId() == selectedAccountHandle.getId()) {
+ if (p.getId().equals(selectedAccountHandle.getId())) {
PhoneAccount phoneAccount = telecomMgr.getPhoneAccount(p);
subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount);
}
diff --git a/src/com/cyanogenmod/messaging/quickmessage/QuickMessagePopup.java b/src/com/cyanogenmod/messaging/quickmessage/QuickMessagePopup.java
index 0bf8b7f..b5f7918 100755
--- a/src/com/cyanogenmod/messaging/quickmessage/QuickMessagePopup.java
+++ b/src/com/cyanogenmod/messaging/quickmessage/QuickMessagePopup.java
@@ -410,7 +410,7 @@ public class QuickMessagePopup extends Activity {
int subId = 0; // defaulting to 0, just in case
while (phoneAccounts.hasNext()) {
PhoneAccountHandle p = phoneAccounts.next();
- if (p.getId() == selectedAccountHandle.getId()) {
+ if (p.getId().equals(selectedAccountHandle.getId())) {
PhoneAccount phoneAccount = telecomMgr.getPhoneAccount(p);
subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount);
}