Author: jerome
Date: 2008-12-02 10:16:53 +0100 (Tue, 02 Dec 2008)
New Revision: 2974
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
Log:
* Fixed : #38 ?\226?\128?\148 mail gadget: "no new mail" disappeared.
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
2008-12-02 09:15:41 UTC (rev 2973)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-mail/trunk/tuxdroid-gadget-mail/sources/net/karmaLab/tuxDroid/gadgets/MailGadget.java
2008-12-02 09:16:53 UTC (rev 2974)
@@ -155,6 +155,7 @@
}
/* If (RUN MODE) */
else {
+ boolean notifyNoNewMail = true;
/* If new message */
if (newMessageRun) {
int mailCounter = 0;
@@ -215,6 +216,10 @@
/* If the mail is not already
read */
if (!mailAlreadyRead) {
+ if(!notifyNoNewMail)
+ {
+ notifyNoNewMail
= false;
+ }
/* Read max 5 mails */
mailCounter++;
if (mailCounter <= 5) {
@@ -229,6 +234,10 @@
}
}
}
+ if(notifyNoNewMail)
+ {
+ throwMessage("No new mail.");
+ }
}
/* No new message */
else {
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn