Sfoglia il codice sorgente

Merge pull request #192 from tb123123/patch-1

Do not inherit any notification defaults
Sebastián Katzer 11 anni fa
parent
commit
a33413a173
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/android/Receiver.java

+ 1 - 0
src/android/Receiver.java

@@ -119,6 +119,7 @@ public class Receiver extends BroadcastReceiver {
         Uri sound = options.getSound();
 
         Builder notification = new NotificationCompat.Builder(context)
+            .setDefaults(0) // Do not inherit any defaults
             .setContentTitle(options.getTitle())
             .setContentText(options.getMessage())
             .setNumber(options.getBadge())