mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771458 - 0005. Support API change on other platform. r=vicamo
This commit is contained in:
parent
583e8633bf
commit
02a24bac12
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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!");
|
||||||
|
Loading…
Reference in New Issue
Block a user