From c775dfa580c8d86f0a8d3f8b109e12997a364e54 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 11 Sep 2012 18:48:41 -0700 Subject: [PATCH] Logging for debugging --- src/org/thoughtcrime/securesms/ConversationListActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ConversationListActivity.java b/src/org/thoughtcrime/securesms/ConversationListActivity.java index 0011106137..87e80a9a70 100644 --- a/src/org/thoughtcrime/securesms/ConversationListActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationListActivity.java @@ -146,6 +146,8 @@ public class ConversationListActivity extends SherlockFragmentActivity return; } + Log.w("ConversationListActivity", "Creating conversation: " + threadId); + Intent intent = new Intent(this, ConversationActivity.class); intent.putExtra("recipients", recipients); intent.putExtra("thread_id", threadId); @@ -314,10 +316,12 @@ public class ConversationListActivity extends SherlockFragmentActivity } private void createConversationIfNecessary(Intent intent) { + Log.w("ConversationListActivity", "createConversationIfNecessary called"); long thread = intent.getLongExtra("thread_id", -1L); Recipients recipients = null; if (intent.getAction() != null && intent.getAction().equals("android.intent.action.SENDTO")) { + Log.w("ConversationListActivity", "Intent has sendto action..."); try { recipients = RecipientFactory.getRecipientsFromString(this, intent.getData().getSchemeSpecificPart()); thread = DatabaseFactory.getThreadDatabase(this).getThreadIdIfExistsFor(recipients); @@ -329,6 +333,7 @@ public class ConversationListActivity extends SherlockFragmentActivity } if (recipients != null) { + Log.w("ConversationListActivity", "Creating conversation: " + thread + " , " + recipients); createConversation(thread, recipients); intent.putExtra("thread_id", -1L); intent.putExtra("recipients", (Parcelable)null);