OSDN Git Service

Purge cache
authorTom Taylor <tomtaylor@google.com>
Fri, 21 Aug 2009 20:09:55 +0000 (13:09 -0700)
committerTom Taylor <tomtaylor@google.com>
Fri, 21 Aug 2009 20:09:55 +0000 (13:09 -0700)
When persisting a PDU, make sure we purge any old instances of the
PDU from the cache.

core/java/com/google/android/mms/pdu/PduPersister.java

index 74af765..df91ea6 100644 (file)
@@ -1021,6 +1021,7 @@ public class PduPersister {
                     + "content://mms/drafts, content://mms/outbox, "
                     + "content://mms/temp.");
         }
+        PDU_CACHE_INSTANCE.purge(uri);
 
         PduHeaders header = pdu.getPduHeaders();
         PduBody body = null;