From 063bbb904fa5f6e453c4ca110706c39f650a86ab Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 13 Dec 2010 01:02:39 +0000 Subject: [PATCH] Extract SizeFormatter into helpers --- src/com/fsck/k9/activity/Accounts.java | 1 + src/com/fsck/k9/activity/FolderList.java | 1 + src/com/fsck/k9/activity/MessageView.java | 2 +- src/com/fsck/k9/{activity => helper}/SizeFormatter.java | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) rename src/com/fsck/k9/{activity => helper}/SizeFormatter.java (96%) diff --git a/src/com/fsck/k9/activity/Accounts.java b/src/com/fsck/k9/activity/Accounts.java index 13bb44aaf..4474cfad0 100644 --- a/src/com/fsck/k9/activity/Accounts.java +++ b/src/com/fsck/k9/activity/Accounts.java @@ -20,6 +20,7 @@ import android.widget.*; import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.AdapterView.OnItemClickListener; import com.fsck.k9.*; +import com.fsck.k9.helper.SizeFormatter; import com.fsck.k9.activity.setup.AccountSettings; import com.fsck.k9.activity.setup.AccountSetupBasics; import com.fsck.k9.activity.setup.Prefs; diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 16bcb36db..dffb236fd 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -26,6 +26,7 @@ import com.fsck.k9.activity.setup.AccountSettings; import com.fsck.k9.activity.setup.FolderSettings; import com.fsck.k9.controller.MessagingController; import com.fsck.k9.controller.MessagingListener; +import com.fsck.k9.helper.SizeFormatter; import com.fsck.k9.helper.power.TracingPowerManager; import com.fsck.k9.helper.power.TracingPowerManager.TracingWakeLock; import com.fsck.k9.mail.Flag; diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index ea3aa3f49..fa9a91fe3 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -74,6 +74,7 @@ import com.fsck.k9.controller.MessagingListener; import com.fsck.k9.crypto.CryptoProvider; import com.fsck.k9.crypto.PgpData; import com.fsck.k9.helper.Contacts; +import com.fsck.k9.helper.SizeFormatter; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.Flag; import com.fsck.k9.mail.Message; @@ -89,7 +90,6 @@ import com.fsck.k9.mail.store.LocalStore.LocalTextBody; import com.fsck.k9.provider.AttachmentProvider; import com.fsck.k9.view.AccessibleWebView; import com.fsck.k9.view.ToggleScrollView; -import com.fsck.k9.activity.SizeFormatter; public class MessageView extends K9Activity implements OnClickListener { diff --git a/src/com/fsck/k9/activity/SizeFormatter.java b/src/com/fsck/k9/helper/SizeFormatter.java similarity index 96% rename from src/com/fsck/k9/activity/SizeFormatter.java rename to src/com/fsck/k9/helper/SizeFormatter.java index 5bb012d13..e4ad3a6e8 100644 --- a/src/com/fsck/k9/activity/SizeFormatter.java +++ b/src/com/fsck/k9/helper/SizeFormatter.java @@ -1,4 +1,4 @@ -package com.fsck.k9.activity; +package com.fsck.k9.helper; import android.content.Context; import com.fsck.k9.R;