WebFragment onActivityResult 数据非空判断
This commit is contained in:
@ -512,8 +512,10 @@ public class MessageDetailFragment extends NormalFragment implements OnCommentCa
|
||||
&& commentNum != adapter.getConcernEntity().getCommentnum()) {
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra("commentNum", adapter.getConcernEntity().getCommentnum());
|
||||
getActivity().setResult(Activity.RESULT_OK, intent);
|
||||
getActivity().finish();
|
||||
if (getActivity() != null) {
|
||||
getActivity().setResult(Activity.RESULT_OK, intent);
|
||||
getActivity().finish();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user