We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09d6862 commit 5862456Copy full SHA for 5862456
1 file changed
android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java
@@ -3912,10 +3912,12 @@ public void clear() {
3912
@TargetApi(11)
3913
@SuppressLint("NewApi")
3914
private void notifySppError() {
3915
- // Check first to see if the RouterService is in the Foreground
3916
- // This is to prevent the notification appearing in error
3917
- if (!this.isForeground) {
3918
- return;
+ synchronized (FOREGROUND_NOTIFICATION_LOCK) {
+ // Check first to see if the RouterService is in the Foreground
+ // This is to prevent the notification appearing in error
+ if (!this.isForeground) {
3919
+ return;
3920
+ }
3921
}
3922
Notification.Builder builder;
3923
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
0 commit comments