1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 15:05:03 -05:00

Killed a bunch of debug logging that clutters (and slows) production apps

This commit is contained in:
Jesse Vincent 2009-12-18 03:48:24 +00:00
parent 83409d78fa
commit 91ad70cd5d

View File

@ -531,25 +531,17 @@ public class MessageView extends K9Activity
mFolder = intent.getStringExtra(EXTRA_FOLDER); mFolder = intent.getStringExtra(EXTRA_FOLDER);
mMessageUid = intent.getStringExtra(EXTRA_MESSAGE); mMessageUid = intent.getStringExtra(EXTRA_MESSAGE);
mMessageUids = intent.getStringArrayListExtra(EXTRA_MESSAGE_UIDS); mMessageUids = intent.getStringArrayListExtra(EXTRA_MESSAGE_UIDS);
Log.v(K9.LOG_TAG, "mAccount number: " + mAccount.getAccountNumber());
Log.v(K9.LOG_TAG, "mFolder: " + mFolder);
Log.v(K9.LOG_TAG, "mMessageUid: " + mMessageUid);
} }
else else
{ {
Log.v(K9.LOG_TAG, "uri: " + uri.toString());
List<String> segmentList = uri.getPathSegments(); List<String> segmentList = uri.getPathSegments();
Log.v(K9.LOG_TAG, "segmentList size: " + segmentList.size());
if (segmentList.size()==3) if (segmentList.size()==3)
{ {
String accountId = segmentList.get(0); String accountId = segmentList.get(0);
Account[] accounts = Preferences.getPreferences(this).getAccounts(); Account[] accounts = Preferences.getPreferences(this).getAccounts();
Log.v(K9.LOG_TAG, "account.length: " + accounts.length);
boolean found = false; boolean found = false;
for (Account account : accounts) for (Account account : accounts)
{ {
Log.v(K9.LOG_TAG, "account: name=" + account.getDescription() + " number=" + account.getAccountNumber());
if (String.valueOf(account.getAccountNumber()).equals(accountId)) if (String.valueOf(account.getAccountNumber()).equals(accountId))
{ {
mAccount = account; mAccount = account;
@ -569,10 +561,6 @@ public class MessageView extends K9Activity
} }
else else
{ {
for (String segment : segmentList)
{
Log.v(K9.LOG_TAG, "segment: " + segment);
}
//TODO: Use ressource to externalize message //TODO: Use ressource to externalize message
Toast.makeText(this, "Invalid intent uri: " + uri.toString(), Toast.LENGTH_LONG).show(); Toast.makeText(this, "Invalid intent uri: " + uri.toString(), Toast.LENGTH_LONG).show();
return; return;
@ -1362,7 +1350,6 @@ public class MessageView extends K9Activity
String timeText = getTimeFormat().format(message.getSentDate()); String timeText = getTimeFormat().format(message.getSentDate());
String toText = Address.toFriendly(message.getRecipients(RecipientType.TO)); String toText = Address.toFriendly(message.getRecipients(RecipientType.TO));
String ccText = Address.toFriendly(message.getRecipients(RecipientType.CC)); String ccText = Address.toFriendly(message.getRecipients(RecipientType.CC));
Log.d(K9.LOG_TAG, ccText);
boolean hasAttachments = ((LocalMessage) message).getAttachmentCount() > 0; boolean hasAttachments = ((LocalMessage) message).getAttachmentCount() > 0;
mHandler.setHeaders(subjectText, mHandler.setHeaders(subjectText,
fromText, fromText,