Bug 885783 - Attach webrtc to a foreground notification. r=bnicholson
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user