回滚到设置配置背景图片之前的版本。目前正常。
This commit is contained in:
@@ -111,7 +111,6 @@ class MainActivity : AppCompatActivity() {
|
||||
inputEditText = findViewById(R.id.inputEditText)
|
||||
inputEditText.gravity = Gravity.START or Gravity.TOP
|
||||
|
||||
configButton = findViewById(R.id.configButton)
|
||||
// 状态栏目的信息
|
||||
statusText = findViewById(R.id.statusTextView)
|
||||
|
||||
@@ -147,7 +146,7 @@ class MainActivity : AppCompatActivity() {
|
||||
if (zhipuConfig != null) {
|
||||
apiKey = zhipuConfig.key
|
||||
apiUrl = zhipuConfig.url
|
||||
apiModel = zhipuConfig.model
|
||||
//apiModel = zhipuConfig.model
|
||||
statusText.text = "zhipuConfig配置文件$apiModel"
|
||||
|
||||
} else {
|
||||
@@ -256,7 +255,7 @@ class MainActivity : AppCompatActivity() {
|
||||
if (sparkConfig != null) {
|
||||
apiKey = sparkConfig.key
|
||||
apiUrl = sparkConfig.url
|
||||
apiModel = sparkConfig.model
|
||||
//apiModel = sparkConfig.model
|
||||
statusText.text = "sparkConfig配置文件$apiModel"
|
||||
} else {
|
||||
statusText.text = "没找到sparkConfig配置文件"
|
||||
@@ -334,6 +333,8 @@ class MainActivity : AppCompatActivity() {
|
||||
tabLayout = findViewById(R.id.tabLayout)
|
||||
submitToServerButton = findViewById(R.id.submitToServerButton)
|
||||
|
||||
|
||||
configButton = findViewById(R.id.configButton)
|
||||
configButton.setOnClickListener {
|
||||
val intent = Intent(this, SecondActivity::class.java)
|
||||
startActivity(intent)
|
||||
|
||||
Reference in New Issue
Block a user