[tuxdroid-svn] r5728 - software_suite_v3/software/plugin/plugin-email/branches/random_sentences/plu
Status: Beta
Brought to you by:
ks156
|
From: ks156 <c2m...@c2...> - 2009-10-19 11:09:09
|
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);
|