mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01:00
Enable notifications during testcases to avoid NPE starting the service
This commit is contained in:
parent
85511fb97f
commit
739b5e9c50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user