예제 #1
0
 public void deleteConversations(Set<Long> selectedConversations) {
   DatabaseFactory.getSmsDatabase(context).deleteThreads(selectedConversations);
   DatabaseFactory.getMmsDatabase(context).deleteThreads(selectedConversations);
   DatabaseFactory.getDraftDatabase(context).clearDrafts(selectedConversations);
   deleteThreads(selectedConversations);
   notifyConversationListeners(selectedConversations);
   notifyConversationListListeners();
 }
예제 #2
0
 public void deleteConversation(long threadId) {
   DatabaseFactory.getSmsDatabase(context).deleteThread(threadId);
   DatabaseFactory.getMmsDatabase(context).deleteThread(threadId);
   DatabaseFactory.getDraftDatabase(context).clearDrafts(threadId);
   deleteThread(threadId);
   notifyConversationListeners(threadId);
   notifyConversationListListeners();
 }
예제 #3
0
 public void deleteAllConversations() {
   DatabaseFactory.getSmsDatabase(context).deleteAllThreads();
   DatabaseFactory.getMmsDatabase(context).deleteAllThreads();
   DatabaseFactory.getDraftDatabase(context).clearAllDrafts();
   deleteAllThreads();
 }