Browse Source

Fixed bug in getType

Sebastián Katzer 10 năm trước cách đây
mục cha
commit
1ddf040193
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/android/notification/Notification.java

+ 1 - 1
src/android/notification/Notification.java

@@ -156,7 +156,7 @@ public class Notification {
      * Notification type can be one of pending or scheduled.
      */
     public Type getType () {
-        return isTriggered() ? Type.TRIGGERED : Type.SCHEDULED;
+        return isScheduled() ? Type.SCHEDULED : Type.TRIGGERED;
     }
 
     /**