From 0ca6adfbf85f4ba904637f87b55a2fa116f4386e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 10 Jan 2011 17:47:16 +0000 Subject: [PATCH] move DateFormatter from Activity to Helper --- src/com/fsck/k9/activity/K9Activity.java | 2 +- src/com/fsck/k9/activity/K9ListActivity.java | 2 +- src/com/fsck/k9/activity/setup/Prefs.java | 3 ++- src/com/fsck/k9/{activity => helper}/DateFormatter.java | 2 +- src/com/fsck/k9/helper/MessageHelper.java | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) rename src/com/fsck/k9/{activity => helper}/DateFormatter.java (99%) diff --git a/src/com/fsck/k9/activity/K9Activity.java b/src/com/fsck/k9/activity/K9Activity.java index 022bd6d38..f59b63014 100644 --- a/src/com/fsck/k9/activity/K9Activity.java +++ b/src/com/fsck/k9/activity/K9Activity.java @@ -15,8 +15,8 @@ import android.view.animation.AccelerateInterpolator; import android.view.animation.Animation; import android.view.animation.TranslateAnimation; import android.widget.ScrollView; - import com.fsck.k9.K9; +import com.fsck.k9.helper.DateFormatter; public class K9Activity extends Activity diff --git a/src/com/fsck/k9/activity/K9ListActivity.java b/src/com/fsck/k9/activity/K9ListActivity.java index eebee30b8..4a9d60aea 100644 --- a/src/com/fsck/k9/activity/K9ListActivity.java +++ b/src/com/fsck/k9/activity/K9ListActivity.java @@ -7,7 +7,7 @@ import android.widget.AdapterView; import android.widget.ListView; import android.os.Bundle; import com.fsck.k9.K9; - +import com.fsck.k9.helper.DateFormatter; public class K9ListActivity extends ListActivity { diff --git a/src/com/fsck/k9/activity/setup/Prefs.java b/src/com/fsck/k9/activity/setup/Prefs.java index fe3b3fd8a..910cfe5fb 100644 --- a/src/com/fsck/k9/activity/setup/Prefs.java +++ b/src/com/fsck/k9/activity/setup/Prefs.java @@ -22,13 +22,14 @@ import com.fsck.k9.Preferences; import com.fsck.k9.R; import com.fsck.k9.activity.Accounts; import com.fsck.k9.activity.ColorPickerDialog; -import com.fsck.k9.activity.DateFormatter; import com.fsck.k9.activity.K9PreferenceActivity; +import com.fsck.k9.helper.DateFormatter; import com.fsck.k9.preferences.CheckBoxListPreference; import com.fsck.k9.preferences.TimePickerPreference; import com.fsck.k9.service.MailService; + public class Prefs extends K9PreferenceActivity { diff --git a/src/com/fsck/k9/activity/DateFormatter.java b/src/com/fsck/k9/helper/DateFormatter.java similarity index 99% rename from src/com/fsck/k9/activity/DateFormatter.java rename to src/com/fsck/k9/helper/DateFormatter.java index 2d6e534d3..b386310ac 100644 --- a/src/com/fsck/k9/activity/DateFormatter.java +++ b/src/com/fsck/k9/helper/DateFormatter.java @@ -1,4 +1,4 @@ -package com.fsck.k9.activity; +package com.fsck.k9.helper; import android.content.Context; import android.content.SharedPreferences.Editor; diff --git a/src/com/fsck/k9/helper/MessageHelper.java b/src/com/fsck/k9/helper/MessageHelper.java index 0e91aa2cc..36ce47ec2 100644 --- a/src/com/fsck/k9/helper/MessageHelper.java +++ b/src/com/fsck/k9/helper/MessageHelper.java @@ -10,7 +10,6 @@ import android.util.Log; import com.fsck.k9.Account; import com.fsck.k9.K9; import com.fsck.k9.R; -import com.fsck.k9.activity.DateFormatter; import com.fsck.k9.activity.FolderInfoHolder; import com.fsck.k9.activity.MessageInfoHolder; import com.fsck.k9.mail.Address; @@ -19,6 +18,7 @@ import com.fsck.k9.mail.Message; import com.fsck.k9.mail.MessagingException; import com.fsck.k9.mail.Message.RecipientType; import com.fsck.k9.mail.store.LocalStore.LocalMessage; +import com.fsck.k9.helper.DateFormatter; public class MessageHelper {