Bug 674725 - Part U - Implement WebSMS delivered event for the Android backend. r=cjones

This commit is contained in:
Mounir Lamouri
2012-01-13 14:26:24 +01:00
parent be7023017c
commit 9e06a97797
6 changed files with 244 additions and 71 deletions

View File

@@ -1360,7 +1360,7 @@ AndroidBridge::SaveSentMessage(const nsAString& aRecipient,
{
ALOG_BRIDGE("AndroidBridge::SaveSentMessage");
AutoLocalJNIFrame jniFrame;
AutoLocalJNIFrame jniFrame(GetJNIForThread());
jstring jRecipient = GetJNIForThread()->NewString(PromiseFlatString(aRecipient).get(), aRecipient.Length());
jstring jBody = GetJNIForThread()->NewString(PromiseFlatString(aBody).get(), aBody.Length());
return GetJNIForThread()->CallStaticIntMethod(mGeckoAppShellClass, jSaveSentMessage, jRecipient, jBody, aDate);