Author: jerome
Date: 2009-06-26 14:33:37 +0200 (Fri, 26 Jun 2009)
New Revision: 4909

Modified:
   
software_suite_v3/software/plugin/plugin-facebook/trunk/plugin-facebook/src/FacebookPlugin.java
Log:
* Fixed a bug : 'Nothing news on your account was always sent'.

Modified: 
software_suite_v3/software/plugin/plugin-facebook/trunk/plugin-facebook/src/FacebookPlugin.java
===================================================================
--- 
software_suite_v3/software/plugin/plugin-facebook/trunk/plugin-facebook/src/FacebookPlugin.java
     2009-06-26 10:46:00 UTC (rev 4908)
+++ 
software_suite_v3/software/plugin/plugin-facebook/trunk/plugin-facebook/src/FacebookPlugin.java
     2009-06-26 12:33:37 UTC (rev 4909)
@@ -190,6 +190,7 @@
        protected void start() throws Throwable
        {
                boolean throwNotif = false;
+        boolean news = false;
                
                if(getCommand().equals("check"))
                {
@@ -212,6 +213,7 @@
                        {
                                if(functions.getEmailNotifications().intValue() 
> 0)
                                {
+                    news = true;
                                        if(this.check && (!throwNotif))
                                        {
                                                throwNotif = true;
@@ -234,6 +236,7 @@
                        {
                                
if(functions.getFriendRequestsCount().intValue() > 0)
                                {
+                    news = true;
                                        if(this.check && (!throwNotif))
                                        {
                                                throwNotif = true;
@@ -264,6 +267,7 @@
                        //Get group invites notifications.
                        if(this.configuration().showGroupsInvites)
                        {
+                news = true;
                                if(functions.getGroupsInvitesCount().intValue() 
> 0)
                                {
                                        if(this.check && (!throwNotif))
@@ -298,6 +302,7 @@
                        {
                                if(functions.getEventsInvitesCount().intValue() 
> 0)
                                {
+                    news = true;
                                        if(this.check && (!throwNotif))
                                        {
                                                throwNotif = true;
@@ -329,6 +334,7 @@
                        {
                                if(functions.getPokesCount().intValue() > 0)
                                {
+                    news = true;
                                        if(this.check && (!throwNotif))
                                        {
                                                throwNotif = true;
@@ -350,7 +356,7 @@
                        {
                                this.throwResult(false);
                        }
-                       else if(!this.check)
+                       else if((!this.check) && (!news))
                        {
                                this.throwMessage("Nothing new on your 
account");
                        }


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to