From c2e649f64e2bf477092b11753ca7cedb713855d1 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 5 Jul 2021 16:07:44 +0200 Subject: [PATCH] Fix deprecated method --- .../main/java/im/vector/app/features/home/HomeDetailFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt index dda3df3881..13809bcef3 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt @@ -327,7 +327,7 @@ class HomeDetailFragment @Inject constructor( private fun setupBottomNavigationView() { views.bottomNavigationView.menu.findItem(R.id.bottom_action_notification).isVisible = vectorPreferences.labAddNotificationTab() - views.bottomNavigationView.setOnNavigationItemSelectedListener { + views.bottomNavigationView.setOnItemSelectedListener { val tab = when (it.itemId) { R.id.bottom_action_people -> HomeTab.RoomList(RoomListDisplayMode.PEOPLE) R.id.bottom_action_rooms -> HomeTab.RoomList(RoomListDisplayMode.ROOMS)