瀏覽代碼

Fixed bug in getType

Sebastián Katzer 10 年之前
父節點
當前提交
1ddf040193
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }
 
     /**