请在获取fragment的时候,进行空判断
ConversationListFragment mFragment = null;
if (mFragment == null && R.id.“fragment的id”!= View.NO_ID) {
mFragment = (ConversationListFragment) getSupportFragmentManager().findFragmentById(R.id.“fragment的id”);
}
请在获取fragment的时候,进行空判断
ConversationListFragment mFragment = null;
if (mFragment == null && R.id.“fragment的id”!= View.NO_ID) {
mFragment = (ConversationListFragment) getSupportFragmentManager().findFragmentById(R.id.“fragment的id”);
}