Skip to content

Commit

Permalink
[#30] 로그인 기능 추가 - 불필요한 유틸 의존 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-223 committed Aug 4, 2022
1 parent 18512dc commit cfabba8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.moyerun.moyeorun_android.common.extension

import android.text.TextUtils
import android.view.View
import android.widget.RadioButton
import android.widget.TextView
import androidx.annotation.DrawableRes

fun View.setOnDebounceClickListener(interval: Long = 1000L, action: (View?) -> Unit) {
val debounceClickListener = object : View.OnClickListener {
Expand All @@ -23,7 +21,7 @@ fun View.setOnDebounceClickListener(interval: Long = 1000L, action: (View?) -> U
}

fun TextView.setTextIfNew(text: CharSequence?) {
if (TextUtils.equals(this.text, text).not()) {
if (this.text != text) {
setText(text)
}
}
Expand Down

0 comments on commit cfabba8

Please sign in to comment.