Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0ba0259091
1 changed files with 0 additions and 5 deletions
|
@ -6,7 +6,6 @@ import android.support.v4.app.NotificationCompat.Builder;
|
||||||
import net.osmand.plus.notifications.GpsWakeUpNotification;
|
import net.osmand.plus.notifications.GpsWakeUpNotification;
|
||||||
import net.osmand.plus.notifications.GpxNotification;
|
import net.osmand.plus.notifications.GpxNotification;
|
||||||
import net.osmand.plus.notifications.NavigationNotification;
|
import net.osmand.plus.notifications.NavigationNotification;
|
||||||
import net.osmand.plus.notifications.OsMoNotification;
|
|
||||||
import net.osmand.plus.notifications.OsmandNotification;
|
import net.osmand.plus.notifications.OsmandNotification;
|
||||||
import net.osmand.plus.notifications.OsmandNotification.NotificationType;
|
import net.osmand.plus.notifications.OsmandNotification.NotificationType;
|
||||||
|
|
||||||
|
@ -55,8 +54,6 @@ public class NotificationHelper {
|
||||||
notification = gpxNotification;
|
notification = gpxNotification;
|
||||||
} else if (gpsWakeUpNotification.isEnabled()) {
|
} else if (gpsWakeUpNotification.isEnabled()) {
|
||||||
notification = gpsWakeUpNotification;
|
notification = gpsWakeUpNotification;
|
||||||
} else if (osMoNotification.isEnabled() && osMoNotification.isActive()) {
|
|
||||||
notification = osMoNotification;
|
|
||||||
}
|
}
|
||||||
return notification;
|
return notification;
|
||||||
}
|
}
|
||||||
|
@ -75,7 +72,6 @@ public class NotificationHelper {
|
||||||
public void showNotifications() {
|
public void showNotifications() {
|
||||||
boolean navNotificationVisible = navigationNotification.showNotification();
|
boolean navNotificationVisible = navigationNotification.showNotification();
|
||||||
gpxNotification.showNotification();
|
gpxNotification.showNotification();
|
||||||
osMoNotification.showNotification();
|
|
||||||
if (!navNotificationVisible && !gpxNotification.isActive()) {
|
if (!navNotificationVisible && !gpxNotification.isActive()) {
|
||||||
gpsWakeUpNotification.showNotification();
|
gpsWakeUpNotification.showNotification();
|
||||||
}
|
}
|
||||||
|
@ -102,7 +98,6 @@ public class NotificationHelper {
|
||||||
public void refreshNotifications() {
|
public void refreshNotifications() {
|
||||||
boolean navNotificationVisible = navigationNotification.refreshNotification();
|
boolean navNotificationVisible = navigationNotification.refreshNotification();
|
||||||
gpxNotification.refreshNotification();
|
gpxNotification.refreshNotification();
|
||||||
osMoNotification.refreshNotification();
|
|
||||||
if (!navNotificationVisible && !gpxNotification.isActive()) {
|
if (!navNotificationVisible && !gpxNotification.isActive()) {
|
||||||
gpsWakeUpNotification.refreshNotification();
|
gpsWakeUpNotification.refreshNotification();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue