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

Commit

Permalink
Merge "Mms: Consider only Inbox messages for reply path"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste Queru authored and android code review committed Jun 20, 2012
2 parents f74be32 + 0ab429a commit 247cca2
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 247cca2

Please sign in to comment.