Skip to content

Commit

Permalink
#6 fix/홈 화면 : 불필요한 BindingAdapter 제거
Browse files Browse the repository at this point in the history
- 중복된 RatingBar 관련 BindingAdapter 제거
- RatingBar BindingAdapter 의 parameter 를 non-nullable 형태로 변경
  • Loading branch information
HayleyKim0716 committed Aug 22, 2022
1 parent bbec157 commit 2bac13b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import androidx.databinding.InverseBindingAdapter
import androidx.databinding.InverseBindingListener

@BindingAdapter("android:rating")
fun setRating(ratingBar: RatingBar, rating: Float?) {
ratingBar.rating = rating ?: 0F
fun setRating(ratingBar: RatingBar, rating: Float) {
ratingBar.rating = rating
}

@InverseBindingAdapter(attribute = "android:rating", event = "ratingBarRatingChanged")
Expand Down

0 comments on commit 2bac13b

Please sign in to comment.