Переглянути джерело

Renamed property timeout to timeoutAfter

Sebastián Katzer 7 роки тому
батько
коміт
69e496615c
3 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      README.md
  2. 1 1
      src/android/notification/Options.java
  3. 1 1
      www/local-notification.js

+ 1 - 1
README.md

@@ -101,7 +101,7 @@ A notification does have a set of configurable properties. Not all of them are s
 | text          | icon          | attachments   | smallIcon     | color         | defaults      | launch        | groupSummary  |
 | title         | silent        | progressBar   | sticky        | vibrate       | priority      | mediaSession  | foreground    |
 | sound         | trigger       | group         | autoClear     | lockscreen    | number        | badge         | wakeup        |
-| timeout       |
+| timeoutAfter  |
 
 For their default values see:
 

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

@@ -203,7 +203,7 @@ public final class Options {
      * Gets the value for the timeout flag.
      */
     long getTimeout() {
-        return options.optLong("timeout");
+        return options.optLong("timeoutAfter");
     }
 
     /**

+ 1 - 1
www/local-notification.js

@@ -52,7 +52,7 @@ exports._defaults = {
     sticky        : false,
     summary       : null,
     text          : '',
-    timeout       : false,
+    timeoutAfter  : false,
     title         : '',
     trigger       : { type : 'calendar' },
     vibrate       : false,