Add method to check whether the first-start notification is displayed.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:38:18 +0000 (14:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 12 Dec 2010 13:38:18 +0000 (14:38 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 5865f1d..5e3756d 100644 (file)
@@ -277,6 +277,20 @@ public class WebInterface implements CoreListener {
        }
 
        //
+       // PRIVATE ACCESSORS
+       //
+
+       /**
+        * Returns whether the first start notification is currently displayed.
+        *
+        * @return {@code true} if the first-start notification is currently
+        *         displayed, {@code false} otherwise
+        */
+       private boolean hasFirstStartNotification() {
+               return notificationManager.getNotification("first-start-notification") != null;
+       }
+
+       //
        // ACTIONS
        //