From 39af8f96e65b4a4ddda03c9ba7ec525948ef9fed Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 20 Jan 2015 23:10:36 -0800 Subject: [PATCH] Hide notifications for Google Now --- .../Plugins/NotificationsPlugin/NotificationsPlugin.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java index 510a499f..e16f48c9 100644 --- a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java @@ -247,7 +247,12 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver. String appName = AppsHelper.appNameLookup(context, packageName); if (id.serialize().equals("com.facebook.orca::10012") && notification.tickerText == null && appName.equals("Messenger")) { - //HACK: Weird Facebook empty "Messenger" notification + //HACK: Hide weird Facebook empty "Messenger" notification that is actually not shown in the phone + return; + } + + if (packageName.equals("com.google.android.googlequicksearchbox")) { + //HACK: Hide Google Now notifications that keep constantly popping up (and without text because we don't know how to read them properly) return; }