Author: ks156
Date: 2009-10-19 13:08:54 +0200 (Mon, 19 Oct 2009)
New Revision: 5728

Modified:
   
software_suite_v3/software/plugin/plugin-email/branches/random_sentences/plugin-email/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
Log:
* Pick sentences for the sender and the subject, but keep them for all the
  mails. Changing the sentences for every mail is a bit disturbing...


Modified: 
software_suite_v3/software/plugin/plugin-email/branches/random_sentences/plugin-email/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
===================================================================
--- 
software_suite_v3/software/plugin/plugin-email/branches/random_sentences/plugin-email/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
     2009-10-19 10:42:10 UTC (rev 5727)
+++ 
software_suite_v3/software/plugin/plugin-email/branches/random_sentences/plugin-email/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
     2009-10-19 11:08:54 UTC (rev 5728)
@@ -199,6 +199,9 @@
         {
             int mailCounter = 0;
             boolean notifyNoNewMail = true;
+
+            String senderSentence = this.pickSentence(mailSenderSentences);
+            String subjectSentence = this.pickSentence(mailSubjectSentences);
             /* For all unread mails */
             for (int i = messages.length - 1; i >= 0; i--)
             {
@@ -268,8 +271,8 @@
                         mailCounter++;
                         if (mailCounter <= 5)
                         {
-                            
throwMessage(this.pickSentence(mailSenderSentences), sender);
-                            
throwMessage(this.pickSentence(mailSubjectSentences), filteredSubject);
+                            throwMessage(senderSentence, sender);
+                            throwMessage(subjectSentence, filteredSubject);
                         }
                         /* Referencing the current mail */
                         stateRun.getLastMessages().add(filteredSubject);


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to