Skip to content

Commit

Permalink
[#30] 로그인 기능 추가 - setTextIfNew 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-223 committed Sep 4, 2022
1 parent cfabba8 commit d692fe7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.moyerun.moyeorun_android.common.extension

import android.text.TextUtils
import android.view.View
import android.widget.RadioButton
import android.widget.TextView
Expand All @@ -21,9 +22,11 @@ fun View.setOnDebounceClickListener(interval: Long = 1000L, action: (View?) -> U
}

fun TextView.setTextIfNew(text: CharSequence?) {
if (this.text != text) {
if (this.text.contentEquals(text)) {
setText(text)
}
text?.equals()
text.toString().equals()
}

fun RadioButton.setCheckIfNew(check: Boolean) {
Expand Down

0 comments on commit d692fe7

Please sign in to comment.