From 15c6a98ea9ac7901e3d2430d490e7fcd16d75263 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 22 Jul 2010 14:18:02 -0700 Subject: [PATCH] MessageListFragment: fix bug 2863240. Also removed unused imports. Bug 2863240 Change-Id: I0f7e9094c7afa8af0bf02745b1244fd2ddfae44c --- .../android/email/activity/MessageListFragment.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/com/android/email/activity/MessageListFragment.java b/src/com/android/email/activity/MessageListFragment.java index 15d1aa24d..eee1e830b 100644 --- a/src/com/android/email/activity/MessageListFragment.java +++ b/src/com/android/email/activity/MessageListFragment.java @@ -28,7 +28,6 @@ import com.android.email.provider.EmailContent.MessageColumns; import com.android.email.service.MailService; import android.app.Activity; -import android.app.Fragment; import android.app.ListFragment; import android.content.ContentResolver; import android.content.ContentUris; @@ -37,16 +36,13 @@ import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Handler; -import android.view.LayoutInflater; -import android.view.MenuInflater; import android.view.View; -import android.view.ViewGroup; import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemLongClickListener; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; -import android.widget.AdapterView.OnItemClickListener; -import android.widget.AdapterView.OnItemLongClickListener; import java.security.InvalidParameterException; import java.util.HashSet; @@ -172,7 +168,7 @@ public class MessageListFragment extends ListFragment implements OnItemClickList public void onStart() { super.onStart(); mStarted = true; - if (mAccountId != -1) { + if (mMailboxId != -1) { startLoading(); } }