整理Entrance type
This commit is contained in:
@ -56,13 +56,16 @@ public class UserInfoEditActivity extends BaseActivity implements LoginUtils.onC
|
||||
|
||||
TextView mSaveTv;
|
||||
|
||||
private String mEditType;
|
||||
private static final String KEY_EDITTYPE = "editType";
|
||||
|
||||
private UserInfoEntity mUserInfoEntity;
|
||||
|
||||
private String mEditType;
|
||||
|
||||
@NonNull
|
||||
public static Intent getIntent(Context context, String editType) {
|
||||
Intent intent = new Intent(context, UserInfoEditActivity.class);
|
||||
intent.putExtra("editType", editType);
|
||||
intent.putExtra(KEY_EDITTYPE, editType);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@ -74,7 +77,7 @@ public class UserInfoEditActivity extends BaseActivity implements LoginUtils.onC
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
mEditType = getIntent().getStringExtra("editType");
|
||||
mEditType = getIntent().getStringExtra(KEY_EDITTYPE);
|
||||
mUserInfoEntity = LoginUtils.getUserInfo(this);
|
||||
|
||||
// 添加分享图标
|
||||
|
||||
Reference in New Issue
Block a user