Commit 41a35b14 authored by jyx's avatar jyx

代码优化

parent a3d14d7a
...@@ -45,6 +45,10 @@ android { ...@@ -45,6 +45,10 @@ android {
] ]
} }
dexOptions {
javaMaxHeapSize "4g"
}
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
......
...@@ -150,10 +150,12 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie ...@@ -150,10 +150,12 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
GlideUtils.loadImageView(this@EditProfileActivity, it.headerUrl, ivAvatar) GlideUtils.loadImageView(this@EditProfileActivity, it.headerUrl, ivAvatar)
tvNickname.setText("" + it.nickName) tvNickname.setText("" + it.nickName)
tvSign.text = it.introduce tvSign.text = it.introduce
tvJyjm.text = it.interest
tvAge.text = it.birthday tvAge.text = it.birthday
tvJob.text = it.career tvJob.text = it.career
tvHeight.text = it.userHeight tvHeight.text = it.userHeight
tvWeight.text = it.bodyWeight tvWeight.text = it.bodyWeight
tvJyfw.text = it.findCity
if (userManager.userSex == "1") { if (userManager.userSex == "1") {
initMale() initMale()
...@@ -478,8 +480,8 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie ...@@ -478,8 +480,8 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
mSinglePickDialog?.setPickResultListener(object : mSinglePickDialog?.setPickResultListener(object :
SinglePickDialog.OnPickResultListener { SinglePickDialog.OnPickResultListener {
override fun onPickResult(result: String) { override fun onPickResult(result: String) {
userProfileData?.interest = result userProfileData?.career = result
tvJyjm.text = result tvJob.text = result
} }
}) })
mSinglePickDialog?.show() mSinglePickDialog?.show()
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2058m org.gradle.jvmargs=-Xmx4096m
android.injected.testOnly=false android.injected.testOnly=false
android.useAndroidX=true android.useAndroidX=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment