From a84a0e9a0df9a2b3e31781805fb8200831826947 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Tue, 15 Sep 2009 16:20:34 -0700 Subject: [PATCH] Fix EAS sending (#2122221) Change-Id: I92ea4b1a77d96bf7992ea34026a2c5d30f33c317 --- src/com/android/exchange/EasSyncService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java index 7d4cf7e6c..667eeae1b 100644 --- a/src/com/android/exchange/EasSyncService.java +++ b/src/com/android/exchange/EasSyncService.java @@ -131,7 +131,7 @@ public class EasSyncService extends AbstractSyncService { public String mUserName; public String mPassword; private boolean mSsl = true; - private boolean mTrustSsl = false; + private boolean mTrustSsl = false; public ContentResolver mContentResolver; private String[] mBindArguments = new String[2]; private ArrayList mPingChangeList; @@ -422,7 +422,7 @@ public class EasSyncService extends AbstractSyncService { String extra = null; boolean msg = false; if (cmd.startsWith("SmartForward&") || cmd.startsWith("SmartReply&")) { - int cmdLength = cmd.length() - 1; + int cmdLength = cmd.indexOf('&'); extra = cmd.substring(cmdLength); cmd = cmd.substring(0, cmdLength); msg = true;