mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-30 03:27:34 +01:00
Revert "Enable notifications during testcases to avoid NPE starting the service"
This reverts commit 739b5e9c506d9a770a256cc5e631cadf4a08f563. Might fix #666
This commit is contained in:
parent
69d215cb99
commit
6627371f92
@ -62,6 +62,9 @@ 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…
x
Reference in New Issue
Block a user