Author: ks156
Date: 2009-10-19 13:59:12 +0200 (Mon, 19 Oct 2009)
New Revision: 5729
Modified:
software_suite_v3/software/plugin/plugin-gmail/branches/random_sentences/plugin-gmail/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-gmail/branches/random_sentences/plugin-gmail/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
===================================================================
---
software_suite_v3/software/plugin/plugin-gmail/branches/random_sentences/plugin-gmail/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
2009-10-19 11:08:54 UTC (rev 5728)
+++
software_suite_v3/software/plugin/plugin-gmail/branches/random_sentences/plugin-gmail/src/net/karmaLab/tuxDroid/plugins/MailPlugin.java
2009-10-19 11:59:12 UTC (rev 5729)
@@ -180,6 +180,9 @@
}
String sessionId = "pop.gmail.com_" + configuration().getUser();
State stateRun = readState(State.class, sessionId + "RUN");
+
+ String senderSentence = this.pickSentence(mailSenderSentences);
+ String subjectSentence = this.pickSentence(mailSubjectSentences);
/* Check for new message */
boolean newMessageRun = false;
for (int i = messages.length - 1; i >= 0; i--)
@@ -267,8 +270,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