1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-14 07:08:00 -05:00

Removed debugging log messages that clutter and slow the runtime app

This commit is contained in:
Jesse Vincent 2009-12-18 03:49:19 +00:00
parent 91ad70cd5d
commit 462d4098e0

View File

@ -327,14 +327,11 @@ public class FolderList extends K9ListActivity
String savedFolderName = null; String savedFolderName = null;
Intent intent = getIntent(); Intent intent = getIntent();
mAccount = (Account)intent.getSerializableExtra(EXTRA_ACCOUNT); mAccount = (Account)intent.getSerializableExtra(EXTRA_ACCOUNT);
Log.v(K9.LOG_TAG, "savedInstanceState: " + (savedInstanceState==null));
if (savedInstanceState == null) if (savedInstanceState == null)
{ {
initialFolder = intent.getStringExtra(EXTRA_INITIAL_FOLDER); initialFolder = intent.getStringExtra(EXTRA_INITIAL_FOLDER);
Log.v(K9.LOG_TAG, "EXTRA_INITIAL_FOLDER: " + initialFolder);
mStartup = (boolean) intent.getBooleanExtra(EXTRA_STARTUP, false); mStartup = (boolean) intent.getBooleanExtra(EXTRA_STARTUP, false);
Log.v(K9.LOG_TAG, "startup: " + mStartup);
if (initialFolder == null if (initialFolder == null
&& mStartup) && mStartup)
{ {
@ -348,7 +345,6 @@ public class FolderList extends K9ListActivity
savedFolderName = savedInstanceState.getString(STATE_CURRENT_FOLDER); savedFolderName = savedInstanceState.getString(STATE_CURRENT_FOLDER);
} }
Log.v(K9.LOG_TAG, "mInitialFolder: " + initialFolder);
if (mStartup if (mStartup
&& initialFolder != null && initialFolder != null
&& !K9.FOLDER_NONE.equals(initialFolder)) && !K9.FOLDER_NONE.equals(initialFolder))
@ -368,7 +364,6 @@ public class FolderList extends K9ListActivity
{ {
public void onItemClick(AdapterView parent, View v, int itemPosition, long id) public void onItemClick(AdapterView parent, View v, int itemPosition, long id)
{ {
Log.v(K9.LOG_TAG,"We're clicking "+itemPosition+" -- "+id);
MessageList.actionHandleFolder(FolderList.this, mAccount, ((FolderInfoHolder)mAdapter.getItem(id)).name, false); MessageList.actionHandleFolder(FolderList.this, mAccount, ((FolderInfoHolder)mAdapter.getItem(id)).name, false);
finish(); finish();
} }
@ -544,8 +539,6 @@ public class FolderList extends K9ListActivity
return true; return true;
case R.id.send_messages: case R.id.send_messages:
Log.i(K9.LOG_TAG, "sending pending messages");
MessagingController.getInstance(getApplication()).sendPendingMessages(mAccount, null); MessagingController.getInstance(getApplication()).sendPendingMessages(mAccount, null);
return true; return true;
case R.id.accounts: case R.id.accounts:
@ -624,27 +617,21 @@ public class FolderList extends K9ListActivity
break; break;
case R.id.send_messages: case R.id.send_messages:
Log.i(K9.LOG_TAG, "sending pending messages from " + folder.name);
sendMail(mAccount); sendMail(mAccount);
break; break;
case R.id.check_mail: case R.id.check_mail:
Log.i(K9.LOG_TAG, "refresh folder " + folder.name);
checkMail(folder); checkMail(folder);
break; break;
case R.id.folder_settings: case R.id.folder_settings:
Log.i(K9.LOG_TAG, "edit folder settings for " + folder.name);
onEditFolder(mAccount, folder.name); onEditFolder(mAccount, folder.name);
break; break;
case R.id.empty_trash: case R.id.empty_trash:
Log.i(K9.LOG_TAG, "empty trash");
onEmptyTrash(mAccount); onEmptyTrash(mAccount);
break; break;