From 162d3a22a42635eb9b31aa27489644c8afa07181 Mon Sep 17 00:00:00 2001 From: snaebjornl Date: Fri, 4 Jan 2019 16:18:28 +0000 Subject: [PATCH] fix null if else errors on npanel, code looks weird will take a better look later --- .../example/medianotification/MediaNotificationPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/example/medianotification/MediaNotificationPlugin.java b/android/src/main/java/com/example/medianotification/MediaNotificationPlugin.java index 869208b..5b8f755 100644 --- a/android/src/main/java/com/example/medianotification/MediaNotificationPlugin.java +++ b/android/src/main/java/com/example/medianotification/MediaNotificationPlugin.java @@ -119,7 +119,7 @@ private void stopSound() { nPanel.stopSound(); } else { //show("RÚV", "", false); - nPanel.stopSound(); + //nPanel.stopSound(); hide(); } } @@ -130,7 +130,7 @@ private void getWifiLock() { nPanel.getWifiLock(); } else { //show("RÚV", "", false); - nPanel.getWifiLock(); + //nPanel.getWifiLock(); hide(); } @@ -142,7 +142,7 @@ private void releaseLocks() { nPanel.releaseLocks(); } else { //show("RÚV", "", false); - nPanel.releaseLocks(); + //nPanel.releaseLocks(); hide(); } }