Skip to content

Commit eed25fa

Browse files
committed
🔥 불필요한 분기 제거
1 parent 8723e6c commit eed25fa

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@ internal class CommunityFragment :
3939
}
4040

4141
override fun onTabUnselected(tab: TabLayout.Tab?) {
42-
when (tab?.position) {
43-
CommunityCategory.MY_GROUP.ordinal -> {
44-
binding.topAppBar.menu.clear()
45-
}
46-
CommunityCategory.BOARD.ordinal,
47-
CommunityCategory.MY_POST.ordinal -> {
48-
binding.topAppBar.menu.clear()
49-
}
50-
}
42+
binding.topAppBar.menu.clear()
5143
}
5244

5345
override fun onTabReselected(tab: TabLayout.Tab?) {

0 commit comments

Comments
 (0)