Skip to content

Commit

Permalink
refactor : 미사용 함수 및 뷰바인딩 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwoo-jo committed Mar 6, 2024
1 parent 22eb659 commit eabd63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ class KeywordActivity : BaseActivity<ActivityKeywordBinding, KeywordViewModel>()
override val layoutResourceId: Int = R.layout.activity_keyword
override val viewModel: KeywordViewModel by viewModel()

override fun initStartView() {
binding.vm = viewModel

// 부분 색상 지정
setSpanText(binding.tvKeywordTitleMain,startIdx = 0, endIdx = 3)
}

override fun initStartView() = Unit

override fun initDataBinding() {
// 효율을 위해 단 한번만 옵저빙하여 이미 구독중인 항목을 선택 처리
viewModel.localKeywordList.observe(this, object : Observer<List<KeywordEntity>> {
Expand Down
8 changes: 0 additions & 8 deletions app/src/main/res/layout/activity_keyword.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,4 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

<data>

<variable
name="vm"
type="com.dongyang.android.youdongknowme.ui.view.keyword.KeywordViewModel" />
/>
</data>
</layout>

0 comments on commit eabd63c

Please sign in to comment.