From 6c7075fb8644b390058f85efd09744e8964a242a Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Sat, 8 Jan 2011 13:08:04 -0800 Subject: [PATCH] Remove use of old methods. Change-Id: Ibc686a39cb2c481e6cd57b1d6029979cfd9f5b71 --- src/com/android/email/activity/AccountFolderList.java | 3 ++- src/com/android/email/activity/MailboxList.java | 3 ++- src/com/android/email/activity/MessageList.java | 3 ++- src/com/android/email/activity/MessageView.java | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/com/android/email/activity/AccountFolderList.java b/src/com/android/email/activity/AccountFolderList.java index a8937e0b9..2869ec990 100644 --- a/src/com/android/email/activity/AccountFolderList.java +++ b/src/com/android/email/activity/AccountFolderList.java @@ -77,7 +77,8 @@ public class AccountFolderList extends Activity implements AccountFolderListFrag mControllerCallback = new ControllerResultUiThreadWrapper( new Handler(), new ControllerResults()); mListFragment = - (AccountFolderListFragment) findFragmentById(R.id.account_folder_list_fragment); + (AccountFolderListFragment) getFragmentManager() + .findFragmentById(R.id.account_folder_list_fragment); mListFragment.bindActivityInfo(this); if (icicle != null && icicle.containsKey(ICICLE_SELECTED_ACCOUNT)) { diff --git a/src/com/android/email/activity/MailboxList.java b/src/com/android/email/activity/MailboxList.java index f94e2b7b3..b59faef4d 100644 --- a/src/com/android/email/activity/MailboxList.java +++ b/src/com/android/email/activity/MailboxList.java @@ -89,7 +89,8 @@ public class MailboxList extends Activity implements MailboxListFragment.Callbac new Handler(), new ControllerResults()); mActionBar = getActionBar(); mErrorBanner = (TextView) findViewById(R.id.connection_error_text); - mListFragment = (MailboxListFragment) findFragmentById(R.id.mailbox_list_fragment); + mListFragment = (MailboxListFragment) getFragmentManager() + .findFragmentById(R.id.mailbox_list_fragment); mActionBar.setTitle(R.string.mailbox_list_title); mListFragment.setCallback(this); diff --git a/src/com/android/email/activity/MessageList.java b/src/com/android/email/activity/MessageList.java index 5611839c5..59fafcca4 100644 --- a/src/com/android/email/activity/MessageList.java +++ b/src/com/android/email/activity/MessageList.java @@ -175,7 +175,8 @@ public class MessageList extends Activity implements OnClickListener, mControllerCallback = new ControllerResultUiThreadWrapper( new Handler(), new ControllerResults()); - mListFragment = (MessageListFragment) findFragmentById(R.id.message_list_fragment); + mListFragment = (MessageListFragment) getFragmentManager() + .findFragmentById(R.id.message_list_fragment); mMultiSelectPanel = findViewById(R.id.footer_organize); mReadUnreadButton = (Button) findViewById(R.id.btn_read_unread); mFavoriteButton = (Button) findViewById(R.id.btn_multi_favorite); diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index d485f0c25..c47c03cec 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -84,7 +84,8 @@ public class MessageView extends MessageViewBase implements View.OnClickListener public void onCreate(Bundle icicle) { super.onCreate(icicle); - mFragment = (MessageViewFragment) findFragmentById(R.id.message_view_fragment); + mFragment = (MessageViewFragment) getFragmentManager() + .findFragmentById(R.id.message_view_fragment); mFragment.setCallback(this); // TODO Remove these bottom buttons, and make use of the ones in MessageViewFragments.