Bug 885783 - Attach webrtc to a foreground notification. r=bnicholson

This commit is contained in:
Wes Johnston
2013-07-18 16:35:34 -07:00
parent f570f4ebb9
commit 9dd69914c4
5 changed files with 118 additions and 49 deletions

View File

@@ -1256,13 +1256,6 @@ public class GeckoAppShell
public static void showAlertNotification(String aImageUrl, String aAlertTitle, String aAlertText,
String aAlertCookie, String aAlertName) {
Log.d(LOGTAG, "GeckoAppShell.showAlertNotification\n" +
"- image = '" + aImageUrl + "'\n" +
"- title = '" + aAlertTitle + "'\n" +
"- text = '" + aAlertText +"'\n" +
"- cookie = '" + aAlertCookie +"'\n" +
"- name = '" + aAlertName + "'");
// The intent to launch when the user clicks the expanded notification
String app = getContext().getClass().getName();
Intent notificationIntent = new Intent(GeckoApp.ACTION_ALERT_CALLBACK);
@@ -1316,7 +1309,7 @@ public class GeckoAppShell
if (GeckoApp.ACTION_ALERT_CALLBACK.equals(aAction)) {
callObserver(aAlertName, "alertclickcallback", aAlertCookie);
if (sNotificationClient.isProgressStyle(notificationID)) {
if (sNotificationClient.isOngoing(notificationID)) {
// When clicked, keep the notification if it displays progress
return;
}