summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2013-07-01 14:13:52 -0700
committerAndrew Sapperstein <asapperstein@google.com>2013-07-01 14:13:52 -0700
commit41ac08a67f054a5efe1053ee4f6d82a0e70a549a (patch)
treead9add3fa276f0ccccc7a4d5dd226ae6eabde977
parent8173cf41d2acf48c7b45ae3e7868fc391aae0359 (diff)
downloadandroid_packages_apps_UnifiedEmail-41ac08a67f054a5efe1053ee4f6d82a0e70a549a.tar.gz
android_packages_apps_UnifiedEmail-41ac08a67f054a5efe1053ee4f6d82a0e70a549a.tar.bz2
android_packages_apps_UnifiedEmail-41ac08a67f054a5efe1053ee4f6d82a0e70a549a.zip
Hash account when building base uri in conv view.
Fixes b/9170480. Previously we just used account name to build the base uri for viewing the conversation in web view. That breaks when the account name has an apostrophe. So instead just hash the name and use that instead. Change-Id: I84f6dd4f67371795bc46c6f97573230e3981a4cc
-rw-r--r--src/com/android/mail/ui/AbstractConversationViewFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/mail/ui/AbstractConversationViewFragment.java b/src/com/android/mail/ui/AbstractConversationViewFragment.java
index e9a1951f4..fa837a47b 100644
--- a/src/com/android/mail/ui/AbstractConversationViewFragment.java
+++ b/src/com/android/mail/ui/AbstractConversationViewFragment.java
@@ -194,7 +194,7 @@ public abstract class AbstractConversationViewFragment extends Fragment implemen
// Since the uri specified in the conversation base uri may not be unique, we specify a
// base uri that us guaranteed to be unique for this conversation.
- mBaseUri = "x-thread://" + mAccount.name + "/" + mConversation.id;
+ mBaseUri = "x-thread://" + mAccount.name.hashCode() + "/" + mConversation.id;
LogUtils.d(LOG_TAG, "onCreate in ConversationViewFragment (this=%s)", this);
// Not really, we just want to get a crack to store a reference to the change_folder item