From 07c61e6bcbc538896cc573a3974bd6f8fe23dd55 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Thu, 27 Apr 2017 08:03:48 +0200 Subject: [PATCH] Revert "Revert "Enable notifications during testcases to avoid NPE starting the service"" This reverts commit 6627371f92bef39efa7daab16049b965bc228a6f. --- .../java/nodomain/freeyourgadget/gadgetbridge/util/GB.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java index 1a75cd7f..2ae943e5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/GB.java @@ -62,9 +62,6 @@ public class GB { public static final String DISPLAY_MESSAGE_SEVERITY = "severity"; public static Notification createNotification(String text, boolean connected, Context context) { - if (GBEnvironment.env().isLocalTest()) { - return null; - } Intent notificationIntent = new Intent(context, ControlCenterv2.class); notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);