Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Mms: Consider only Inbox messages for reply path
Browse files Browse the repository at this point in the history
SMSC info is not filled in MO SMS even if MT SMS is having
reply path (in GSM/WCDMA case). With current design Android telephony
is considering latest SMS message in thread to know the reply path.

Ex: If one MT message is available in Inbox and if User wants to
send MO SMS as reply app stores MO SMS in queue and send the queued
messages to lower layers. Now SMS app is having two messages - one is
MT and one is MO (queued message). In this case before sending SMS the app
is considering the latest queued message instead of MT message to get SMSC.

Consider only Inbox messages to get SMSC.

Change-Id: If37d5fdf9f11f9286f41839ea5b3028f02c1de3e
  • Loading branch information
Suresh Koleti committed Jun 19, 2012
1 parent f74be32 commit 0ab429a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/android/mms/transaction/SmsMessageSender.java
Expand Up @@ -30,6 +30,7 @@
import android.net.Uri;
import android.preference.PreferenceManager;
import android.provider.Telephony.Sms;
import android.provider.Telephony.Sms.Inbox;
import android.util.Log;

public class SmsMessageSender implements MessageSender {
Expand Down Expand Up @@ -130,7 +131,7 @@ private String getOutgoingServiceCenter(long threadId) {

try {
cursor = SqliteWrapper.query(mContext, mContext.getContentResolver(),
Sms.CONTENT_URI, SERVICE_CENTER_PROJECTION,
Inbox.CONTENT_URI, SERVICE_CENTER_PROJECTION,
"thread_id = " + threadId, null, "date DESC");

if ((cursor == null) || !cursor.moveToFirst()) {
Expand Down

0 comments on commit 0ab429a

Please sign in to comment.