Skip to content

Commit a3d2859

Browse files
committed
[#30] 로그인 기능 추가 - setTextIfNew 수정
1 parent 48a5021 commit a3d2859

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/moyerun/moyeorun_android/common/extension/ViewExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun View.setOnDebounceClickListener(interval: Long = 1000L, action: (View?) -> U
2121
}
2222

2323
fun TextView.setTextIfNew(text: CharSequence?) {
24-
if (this.text != text) {
24+
if (this.text.contentEquals(text).not()) {
2525
setText(text)
2626
}
2727
}

app/src/main/java/com/moyerun/moyeorun_android/login/ui/LoginViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.moyerun.moyeorun_android.login.ui
33
import androidx.lifecycle.ViewModel
44
import androidx.lifecycle.viewModelScope
55
import com.moyerun.moyeorun_android.common.EventLiveData
6+
import com.moyerun.moyeorun_android.common.Lg
67
import com.moyerun.moyeorun_android.common.MutableEventLiveData
78
import com.moyerun.moyeorun_android.login.ProviderType
89
import com.moyerun.moyeorun_android.login.SignUpMetaData
@@ -43,6 +44,7 @@ class LoginViewModel @Inject constructor(
4344
LoginEvent.RegisteredUser
4445
}
4546
}.onFailure {
47+
Lg.fe(it)
4648
_loginEvent.event = LoginEvent.Error
4749
}
4850
_isLoading.value = false

0 commit comments

Comments
 (0)