This commit is contained in:
@ -5,6 +5,7 @@ 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;
|
||||
|
||||
@ -16,8 +17,19 @@ 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_CERTICIFICE, isForcedToCertificate);
|
||||
return getTargetIntent(context, UserInfoEditActivity.class, UserInfoEditFragment.class, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user