Loading core/java/com/google/android/mms/pdu/PduPersister.java +8 −6 Original line number Diff line number Diff line Loading @@ -1058,9 +1058,10 @@ public class PduPersister { } } } if (!recipients.isEmpty()) { long threadId = Threads.getOrCreateThreadId(mContext, recipients); values.put(Mms.THREAD_ID, threadId); } SqliteWrapper.update(mContext, mContentResolver, uri, values, null, null); } Loading Loading @@ -1299,7 +1300,6 @@ public class PduPersister { } HashSet<String> recipients = new HashSet<String>(); long threadId = DUMMY_THREAD_ID; int msgType = pdu.getMessageType(); // Here we only allocate thread ID for M-Notification.ind, // M-Retrieve.conf and M-Send.req. Loading @@ -1326,9 +1326,11 @@ public class PduPersister { } } } threadId = Threads.getOrCreateThreadId(mContext, recipients); } if (!recipients.isEmpty()) { long threadId = Threads.getOrCreateThreadId(mContext, recipients); values.put(Mms.THREAD_ID, threadId); } } // Save parts first to avoid inconsistent message is loaded // while saving the parts. Loading Loading
core/java/com/google/android/mms/pdu/PduPersister.java +8 −6 Original line number Diff line number Diff line Loading @@ -1058,9 +1058,10 @@ public class PduPersister { } } } if (!recipients.isEmpty()) { long threadId = Threads.getOrCreateThreadId(mContext, recipients); values.put(Mms.THREAD_ID, threadId); } SqliteWrapper.update(mContext, mContentResolver, uri, values, null, null); } Loading Loading @@ -1299,7 +1300,6 @@ public class PduPersister { } HashSet<String> recipients = new HashSet<String>(); long threadId = DUMMY_THREAD_ID; int msgType = pdu.getMessageType(); // Here we only allocate thread ID for M-Notification.ind, // M-Retrieve.conf and M-Send.req. Loading @@ -1326,9 +1326,11 @@ public class PduPersister { } } } threadId = Threads.getOrCreateThreadId(mContext, recipients); } if (!recipients.isEmpty()) { long threadId = Threads.getOrCreateThreadId(mContext, recipients); values.put(Mms.THREAD_ID, threadId); } } // Save parts first to avoid inconsistent message is loaded // while saving the parts. Loading