Turn down email logging to shippable levels.
Change-Id: I8426743aebef2329c8958926d7b29abe1309feb0
This commit is contained in:
parent
06a2f4a3b1
commit
fd5a5f14ea
|
@ -54,8 +54,9 @@ public class Email extends Application {
|
|||
|
||||
/**
|
||||
* If true, logging regarding activity/fragment lifecycle will be enabled.
|
||||
* Do not check in as "true".
|
||||
*/
|
||||
public static final boolean DEBUG_LIFECYCLE = true; // STOPSHIP Turn this off.
|
||||
public static final boolean DEBUG_LIFECYCLE = false;
|
||||
|
||||
/**
|
||||
* If this is enabled then logging that normally hides sensitive information
|
||||
|
|
|
@ -29,7 +29,6 @@ import com.android.email.activity.setup.AccountSettingsXL;
|
|||
import com.android.email.mail.MessagingException;
|
||||
import com.android.email.provider.EmailContent.Account;
|
||||
import com.android.email.provider.EmailContent.Mailbox;
|
||||
import com.android.email.provider.EmailContent.Message;
|
||||
|
||||
import android.app.ActionBar;
|
||||
import android.app.Activity;
|
||||
|
@ -199,7 +198,7 @@ public class MessageListXL extends Activity implements
|
|||
final long accountId = i.getLongExtra(EXTRA_ACCOUNT_ID, -1);
|
||||
final long mailboxId = i.getLongExtra(EXTRA_MAILBOX_ID, -1);
|
||||
final long messageId = i.getLongExtra(EXTRA_MESSAGE_ID, -1);
|
||||
if (Email.DEBUG) {
|
||||
if (Email.DEBUG_LIFECYCLE && Email.DEBUG) {
|
||||
Log.d(Email.LOG_TAG, String.format("initFromIntent: %d %d", accountId, mailboxId));
|
||||
}
|
||||
|
||||
|
@ -638,7 +637,9 @@ public class MessageListXL extends Activity implements
|
|||
private class ActionBarNavigationCallback implements ActionBar.OnNavigationListener {
|
||||
@Override
|
||||
public boolean onNavigationItemSelected(int itemPosition, long accountId) {
|
||||
if (Email.DEBUG) Log.d(Email.LOG_TAG, "Account selected: accountId=" + accountId);
|
||||
if (Email.DEBUG_LIFECYCLE && Email.DEBUG) {
|
||||
Log.d(Email.LOG_TAG, "Account selected: accountId=" + accountId);
|
||||
}
|
||||
mFragmentManager.selectAccount(accountId, -1, -1, true);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ class MessageListXLFragmentManager {
|
|||
long mailboxId = savedInstanceState.getLong(BUNDLE_KEY_MAILBOX_ID, -1);
|
||||
long messageId = savedInstanceState.getLong(BUNDLE_KEY_MESSAGE_ID, -1);
|
||||
mMessageListFragmentState = savedInstanceState.getParcelable(BUNDLE_KEY_MESSAGE_LIST_STATE);
|
||||
if (Email.DEBUG) {
|
||||
if (Email.DEBUG_LIFECYCLE && Email.DEBUG) {
|
||||
Log.d(Email.LOG_TAG, "MessageListXLFragmentManager: Restoring "
|
||||
+ accountId + "," + mailboxId + "," + messageId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue