diff options
author | Scott Kennedy <skennedy@google.com> | 2012-11-07 15:35:50 -0800 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2012-11-07 15:40:09 -0800 |
commit | 8960f0af431bc164003e09b3c8981aab808d9ec1 (patch) | |
tree | 497d2b8655c0f2d5f17fdd5712e891d9a4583186 /src/com/android/mail/ui/ConversationViewFragment.java | |
parent | 8f1877832b0f3bc55e6d63ccf70dfae7dd8328c9 (diff) | |
download | android_packages_apps_UnifiedEmail-8960f0af431bc164003e09b3c8981aab808d9ec1.tar.gz android_packages_apps_UnifiedEmail-8960f0af431bc164003e09b3c8981aab808d9ec1.tar.bz2 android_packages_apps_UnifiedEmail-8960f0af431bc164003e09b3c8981aab808d9ec1.zip |
Maintain to/cc/bcc state on rotation
The tokenized string was never updated after being initially set,
even if the backing values changed.
Additionally, the to/cc/bcc values were never updated once the
Message was initially created.
Bug: 7490394
Change-Id: Iae1c8ae88f9ab5b8e2e7fe10835587b61decf0c8
Diffstat (limited to 'src/com/android/mail/ui/ConversationViewFragment.java')
-rw-r--r-- | src/com/android/mail/ui/ConversationViewFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/mail/ui/ConversationViewFragment.java b/src/com/android/mail/ui/ConversationViewFragment.java index d5626eeda..6fb683f94 100644 --- a/src/com/android/mail/ui/ConversationViewFragment.java +++ b/src/com/android/mail/ui/ConversationViewFragment.java @@ -1162,7 +1162,7 @@ public final class ConversationViewFragment extends AbstractConversationViewFrag if (!mViewState.contains(m)) { LogUtils.i(LOG_TAG, "conversation diff: found new msg: %s", m.uri); - final Address from = getAddress(m.from); + final Address from = getAddress(m.getFrom()); // distinguish ours from theirs // new messages from the account owner should not trigger a // notification @@ -1173,7 +1173,7 @@ public final class ConversationViewFragment extends AbstractConversationViewFrag } info.count++; - info.senderAddress = m.from; + info.senderAddress = m.getFrom(); } } return info; @@ -1194,7 +1194,7 @@ public final class ConversationViewFragment extends AbstractConversationViewFrag final ConversationMessage newMsg = newCursor.getMessage(); final ConversationMessage oldMsg = oldCursor.getMessage(); - if (!TextUtils.equals(newMsg.from, oldMsg.from) || + if (!TextUtils.equals(newMsg.getFrom(), oldMsg.getFrom()) || newMsg.isSending != oldMsg.isSending) { mAdapter.updateItemsForMessage(newMsg, changedOverlayPositions); LogUtils.i(LOG_TAG, "msg #%d (%d): detected from/sending change. isSending=%s", |