Merge "Remove use of old methods." into honeycomb

This commit is contained in:
Dianne Hackborn 2011-01-08 14:23:54 -08:00 committed by Android (Google) Code Review
commit 0e50c33ec7
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.