예제 #1
0
 @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);
       }
     }
   }
 }
예제 #2
0
 @Override
 public Fragment getItem(int position) {
   return GLUserInfoFragment.newInstance(position);
 }