First cut at group messaging refactor.

This commit is contained in:
Moxie Marlinspike
2013-04-25 18:59:49 -07:00
parent 83e260436b
commit dd0aecc811
29 changed files with 365 additions and 262 deletions

View File

@@ -96,7 +96,8 @@ public class ConversationListFragment extends SherlockListFragment
public void onListItemClick(ListView l, View v, int position, long id) {
if (v instanceof ConversationListItem) {
ConversationListItem headerView = (ConversationListItem) v;
handleCreateConversation(headerView.getThreadId(), headerView.getRecipients());
handleCreateConversation(headerView.getThreadId(), headerView.getRecipients(),
headerView.getDistributionType());
}
}
@@ -197,8 +198,8 @@ public class ConversationListFragment extends SherlockListFragment
((ConversationListAdapter)this.getListAdapter()).selectAllThreads();
}
private void handleCreateConversation(long threadId, Recipients recipients) {
listener.onCreateConversation(threadId, recipients);
private void handleCreateConversation(long threadId, Recipients recipients, int distributionType) {
listener.onCreateConversation(threadId, recipients, distributionType);
}
@Override
@@ -217,7 +218,7 @@ public class ConversationListFragment extends SherlockListFragment
}
public interface ConversationSelectedListener {
public void onCreateConversation(long threadId, Recipients recipients);
public void onCreateConversation(long threadId, Recipients recipients, int distributionType);
}
@Override