Bug 771458 - 0005. Support API change on other platform. r=vicamo

This commit is contained in:
Chuck Lee 2013-05-10 10:24:12 +08:00
parent 583e8633bf
commit 02a24bac12
2 changed files with 13 additions and 3 deletions

View File

@ -26,14 +26,23 @@ MobileMessageDatabaseService::GetMessageMoz(int32_t aMessageId,
} }
NS_IMETHODIMP NS_IMETHODIMP
MobileMessageDatabaseService::DeleteMessage(int32_t aMessageId, MobileMessageDatabaseService::DeleteMessage(int32_t *aMessageIds,
uint32_t aLength,
nsIMobileMessageCallback* aRequest) nsIMobileMessageCallback* aRequest)
{ {
if (!AndroidBridge::Bridge()) { if (!AndroidBridge::Bridge()) {
return NS_OK; return NS_OK;
} }
AndroidBridge::Bridge()->DeleteMessage(aMessageId, aRequest); if (!aMessageIds) {
return NS_OK;
}
if (aLength != 1) {
return NS_ERROR_FAILURE;
}
AndroidBridge::Bridge()->DeleteMessage(aMessageIds[0], aRequest);
return NS_OK; return NS_OK;
} }

View File

@ -20,7 +20,8 @@ MobileMessageDatabaseService::GetMessageMoz(int32_t aMessageId,
} }
NS_IMETHODIMP NS_IMETHODIMP
MobileMessageDatabaseService::DeleteMessage(int32_t aMessageId, MobileMessageDatabaseService::DeleteMessage(int32_t *aMessageIds,
uint32_t aLength,
nsIMobileMessageCallback* aRequest) nsIMobileMessageCallback* aRequest)
{ {
NS_ERROR("We should not be here!"); NS_ERROR("We should not be here!");