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:
Vlad Baicu 2019-01-10 17:05:32 +00:00
Родитель 70af650a9f
Коммит 791441364d
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -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.