Do not reset the recent folder list on folder access.
Change-Id: I76dafa896d63f46cfd7f91cb1393560e70443b5f
diff --git a/src/com/android/mail/ui/AbstractActivityController.java b/src/com/android/mail/ui/AbstractActivityController.java
index ccac207..ca2a10e 100644
--- a/src/com/android/mail/ui/AbstractActivityController.java
+++ b/src/com/android/mail/ui/AbstractActivityController.java
@@ -33,7 +33,6 @@
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
-import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.Menu;
@@ -395,16 +394,18 @@
}
}
+ /**
+ * Update the recent folders. This only needs to be done once when accessing a new folder.
+ */
private void updateRecentFolderList() {
if (mFolder != null) {
- mRecentFolderList.setCurrentAccount(mAccount);
mRecentFolderList.touchFolder(mFolder);
}
}
// TODO(mindyp): set this up to store a copy of the folder as a transient
// field in the account.
- public void loadAccountInbox() {
+ protected void loadAccountInbox() {
restartOptionalLoader(LOADER_ACCOUNT_INBOX, null);
}