diff --git a/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java b/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java
index 26703631..59c1f8af 100644
--- a/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java
+++ b/ultrasonic/src/main/java/org/moire/ultrasonic/service/DownloadServiceImpl.java
@@ -149,6 +149,8 @@ public class DownloadServiceImpl extends Service implements DownloadService
private boolean autoPlayStart;
private final static int lockScreenBitmapSize = 500;
+ private boolean isInForeground = false;
+
static
{
try
@@ -719,6 +721,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
if (tabInstance != null) {
if (Util.isNotificationEnabled(this)) {
startForeground(NOTIFICATION_ID, buildForegroundNotification());
+ isInForeground = true;
}
tabInstance.showNowPlaying();
}
@@ -728,6 +731,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
if (tabInstance != null)
{
stopForeground(true);
+ isInForeground = false;
tabInstance.hideNowPlaying();
}
}
@@ -1252,6 +1256,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
if (tabInstance != null)
{
stopForeground(true);
+ isInForeground = false;
tabInstance.hideNowPlaying();
}
}
@@ -2075,9 +2080,17 @@ public class DownloadServiceImpl extends Service implements DownloadService
public void updateNotification()
{
if (Util.isNotificationEnabled(this)) {
- final NotificationManagerCompat notificationManager =
- NotificationManagerCompat.from(this);
- notificationManager.notify(NOTIFICATION_ID, buildForegroundNotification());
+ if (isInForeground == true) {
+ final NotificationManagerCompat notificationManager =
+ NotificationManagerCompat.from(this);
+ notificationManager.notify(NOTIFICATION_ID, buildForegroundNotification());
+ Log.w(TAG, "--- Updated notification");
+ }
+ else {
+ startForeground(NOTIFICATION_ID, buildForegroundNotification());
+ isInForeground = true;
+ Log.w(TAG, "--- Created Foreground notification");
+ }
}
}
diff --git a/ultrasonic/src/main/res/values-de/strings.xml b/ultrasonic/src/main/res/values-de/strings.xml
index 15f882f3..b750ea01 100644
--- a/ultrasonic/src/main/res/values-de/strings.xml
+++ b/ultrasonic/src/main/res/values-de/strings.xml
@@ -438,6 +438,10 @@
Neuen Bild-Lader aktivieren
Neuen Bild-Lader aktivieren. Bilder werden derzeit nur im Chache gespeichert.
+ Verwenden Sie Fünf-Sterne-Bewertung für Songs
+ Verwenden Sie Fünf-Sterne-Bewertungssystem für Songs
+ anstatt einfach Elemente zu markieren / zu entfernen.
+
Funktionseinstellungem