37 lines
1.1 KiB
Java
37 lines
1.1 KiB
Java
package com.gh.gamecenter;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.gh.common.util.EntranceUtils;
|
|
import com.gh.gamecenter.user.UserViewModel;
|
|
import com.halo.assistant.fragment.user.UserInfoEditFragment;
|
|
|
|
/**
|
|
* Created by khy on 30/06/17.
|
|
*/
|
|
@Deprecated
|
|
public class UserInfoEditActivity extends NormalActivity {
|
|
|
|
@NonNull
|
|
public static Intent getIntent(Context context, String editType) {
|
|
return getIntent(context, editType, false);
|
|
}
|
|
|
|
/**
|
|
* 获取修改信息 intent
|
|
* @param editType 类型
|
|
* @param isForcedToCertificate 来源是否为强制实名
|
|
*/
|
|
@NonNull
|
|
public static Intent getIntent(Context context, String editType, Boolean isForcedToCertificate) {
|
|
Bundle args = new Bundle();
|
|
args.putString(UserViewModel.KEY_EDIT_TYPE, editType);
|
|
args.putBoolean(EntranceUtils.KEY_IS_FORCED_TO_CERTIFICATE, isForcedToCertificate);
|
|
return getTargetIntent(context, UserInfoEditActivity.class, UserInfoEditFragment.class, args);
|
|
}
|
|
|
|
}
|