@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == GLLoginLogic.REQUEST_EDIT_CANTING_INFO) { if (resultCode == Activity.RESULT_OK) { int editType = data.getExtras().getInt(GLConst.INTENT_PARAM1); String content = data.getExtras().getString(GLConst.INTENT_PARAM); if (editType == GLLoginLogic.EDIT_USER_NAME) { GLUserInfoFragment f = adapter.getFragment(); f.refreshName(content); } } } }
@Override public Fragment getItem(int position) { return GLUserInfoFragment.newInstance(position); }