Use ListFragment.setListAdapter, not ListView.setAdapter.

Otherwise ListFragment wouldn't notice an adapter is set.

Bug 2841063

Change-Id: Iddb40125020ee2b72ed72b93643582929dc7f7eb
This commit is contained in:
Makoto Onuki 2010-07-14 14:37:09 -07:00
parent 18452ba28c
commit d73d8e4839

View File

@ -410,7 +410,7 @@ public class AccountFolderListFragment extends ListFragment
// Now create a new list adapter and install it
mListAdapter = AccountsAdapter.getInstance((Cursor)params[0], (Cursor)params[1],
mActivity, (Long)params[2], AccountFolderListFragment.this);
mListView.setAdapter(mListAdapter);
setListAdapter(mListAdapter);
}
}