summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2018-09-25 13:33:07 -0400
committerJoey Grover <joeygrover@gmail.com>2018-09-25 13:33:07 -0400
commitb5add1418e12ce5319d28b6b0fc79f2c467875a8 (patch)
tree2aea9face542fdd05f7f69e04e7b7bc4e2c56d5b
parent86ac2dc80f53c9f930fd9bce485a35cac27cdaf9 (diff)
downloadsdl_android-b5add1418e12ce5319d28b6b0fc79f2c467875a8.tar.gz
Remove the deleting of the RS notification channel
This seems to be causing issues and not required by the OS so it should be removed
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java b/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java
index 197373d1c..b566b0a82 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java
@@ -1401,14 +1401,6 @@ public class SdlRouterService extends Service{
private void exitForeground(){
synchronized (NOTIFICATION_LOCK) {
if (isForeground && !isPrimaryTransportConnected()) { //Ensure that the service is in the foreground and no longer connected to a transport
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- if (notificationManager != null
- && notificationManager.getNotificationChannel(SDL_NOTIFICATION_CHANNEL_ID) != null ) {
- notificationManager.deleteNotificationChannel(TransportConstants.SDL_NOTIFICATION_CHANNEL_ID);
- }
- }
-
this.stopForeground(true);
isForeground = false;
}