зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1508279 - Handle persistent notification actions. r=geckoview-reviewers,snorp
Handle persistent notifications click actions in NotificationReceiver. Differential Revision: https://phabricator.services.mozilla.com/D16062 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
70af650a9f
Коммит
791441364d
|
@ -95,11 +95,6 @@ public class NotificationReceiver extends BroadcastReceiver {
|
|||
if (NotificationClient.CLICK_ACTION.equals(action)) {
|
||||
GeckoAppShell.onNotificationClick(name, cookie);
|
||||
|
||||
if (persistentIntent != null) {
|
||||
// Don't launch GeckoApp if it's a background persistent notification.
|
||||
return;
|
||||
}
|
||||
|
||||
final Intent appIntent = new Intent(GeckoApp.ACTION_ALERT_CALLBACK);
|
||||
appIntent.setComponent(new ComponentName(
|
||||
data.getAuthority(), data.getPath().substring(1))); // exclude leading slash.
|
||||
|
|
Загрузка…
Ссылка в новой задаче