mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208346 - Fix manualDoNotDisturb build bustage on Android. r=bustage
This commit is contained in:
parent
9c3cc2a6a3
commit
f191b02026
@ -153,6 +153,9 @@ NS_IMETHODIMP nsAlertsService::CloseAlert(const nsAString& aAlertName,
|
|||||||
// nsIAlertsDoNotDisturb
|
// nsIAlertsDoNotDisturb
|
||||||
NS_IMETHODIMP nsAlertsService::GetManualDoNotDisturb(bool* aRetVal)
|
NS_IMETHODIMP nsAlertsService::GetManualDoNotDisturb(bool* aRetVal)
|
||||||
{
|
{
|
||||||
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
#else
|
||||||
// Try the system notification service.
|
// Try the system notification service.
|
||||||
nsCOMPtr<nsIAlertsService> sysAlerts(do_GetService(NS_SYSTEMALERTSERVICE_CONTRACTID));
|
nsCOMPtr<nsIAlertsService> sysAlerts(do_GetService(NS_SYSTEMALERTSERVICE_CONTRACTID));
|
||||||
if (sysAlerts) {
|
if (sysAlerts) {
|
||||||
@ -164,10 +167,14 @@ NS_IMETHODIMP nsAlertsService::GetManualDoNotDisturb(bool* aRetVal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return mXULAlerts.GetManualDoNotDisturb(aRetVal);
|
return mXULAlerts.GetManualDoNotDisturb(aRetVal);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsAlertsService::SetManualDoNotDisturb(bool aDoNotDisturb)
|
NS_IMETHODIMP nsAlertsService::SetManualDoNotDisturb(bool aDoNotDisturb)
|
||||||
{
|
{
|
||||||
|
#ifdef MOZ_WIDGET_ANDROID
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
#else
|
||||||
// Try the system notification service.
|
// Try the system notification service.
|
||||||
nsCOMPtr<nsIAlertsService> sysAlerts(do_GetService(NS_SYSTEMALERTSERVICE_CONTRACTID));
|
nsCOMPtr<nsIAlertsService> sysAlerts(do_GetService(NS_SYSTEMALERTSERVICE_CONTRACTID));
|
||||||
if (sysAlerts) {
|
if (sysAlerts) {
|
||||||
@ -179,6 +186,7 @@ NS_IMETHODIMP nsAlertsService::SetManualDoNotDisturb(bool aDoNotDisturb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return mXULAlerts.SetManualDoNotDisturb(aDoNotDisturb);
|
return mXULAlerts.SetManualDoNotDisturb(aDoNotDisturb);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsAlertsService::OnProgress(const nsAString & aAlertName,
|
NS_IMETHODIMP nsAlertsService::OnProgress(const nsAString & aAlertName,
|
||||||
|
Loading…
Reference in New Issue
Block a user