1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-17 21:00:55 +02:00

Revert "Revert "Enable notifications during testcases to avoid NPE starting the service""

This reverts commit 6627371f92.
This commit is contained in:
cpfeiffer 2017-04-27 08:03:48 +02:00
parent c3c5e0415d
commit 07c61e6bcb

View File

@ -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);