Skip to content

Commit

Permalink
Fix: 로그인 텍스트 버그 수정 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyuuum committed Feb 20, 2024
1 parent de54d76 commit 11f68b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LoginActivity : AppCompatActivity() {
imm.hideSoftInputFromWindow(binding.etPassword.windowToken, 0)

// 로그인 버튼 클릭
binding.btnLogin.performClick()
// binding.btnLogin.performClick()
return@setOnEditorActionListener true
}
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LoginViewModel : ViewModel() {
val loginStatus: LiveData<Boolean>
get() = _loginStatus

// 추가: 로그인 성공 여부 LiveData
// 로그인 성공 여부 LiveData
private val _loginSuccess: MutableLiveData<Boolean> = MutableLiveData()
val loginSuccess: LiveData<Boolean>
get() = _loginSuccess
Expand All @@ -53,6 +53,7 @@ class LoginViewModel : ViewModel() {
}

init {
// _loginStatus.value = false
_loginStatus.postValue(false)
}

Expand All @@ -77,8 +78,9 @@ class LoginViewModel : ViewModel() {
_loginResult.postValue(response.body())
_loginSuccess.postValue(false)

Log.d("cookies", "$cookies")
Log.d("Login", "${response.body()}")
// Log.d("cookies", "$cookies")
// Log.d("Login", "${_loginResult.value}")
// Log.d("Login success", "${response.body()}")
} else {
_loginResult.postValue(
LoginResponse(
Expand All @@ -91,7 +93,7 @@ class LoginViewModel : ViewModel() {
_loginSuccess.postValue(true)
_loginStatus.postValue(true)

Log.e("Login", "정보 틀림: $loginResult")
// Log.e("Login", "정보 틀림: ${_loginResult.value}")
}
}

Expand Down

0 comments on commit 11f68b5

Please sign in to comment.