Remove use of old methods.

Change-Id: Ibc686a39cb2c481e6cd57b1d6029979cfd9f5b71
This commit is contained in:
Dianne Hackborn 2011-01-08 13:08:04 -08:00
parent d6ce2998f7
commit 6c7075fb86
4 changed files with 8 additions and 4 deletions

View File

@ -77,7 +77,8 @@ public class AccountFolderList extends Activity implements AccountFolderListFrag
mControllerCallback = new ControllerResultUiThreadWrapper<ControllerResults>(
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)) {

View File

@ -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);

View File

@ -175,7 +175,8 @@ public class MessageList extends Activity implements OnClickListener,
mControllerCallback = new ControllerResultUiThreadWrapper<ControllerResults>(
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);

View File

@ -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.