Skip to content

Commit 449826f

Browse files
committed
♻️ Fragment의 View를 초기화하는 기능들 initView로 추상화
1 parent 085d3d6 commit 449826f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

presentation/src/main/java/com/whyranoid/presentation/community/CommunityItemFragment.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ internal class CommunityItemFragment :
3434
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
3535
super.onViewCreated(view, savedInstanceState)
3636

37+
initViews()
3738
observeState()
39+
}
3840

41+
private fun initViews() {
3942
// TODO : 카테고리 별 다른 Shimmer Layout 생성
4043
when (category) {
4144
CommunityCategory.BOARD -> {

0 commit comments

Comments
 (0)