Skip to content

Commit 4c06bdc

Browse files
committed
Avoid creating too many Job, which ends up to OOM
1 parent 4222761 commit 4c06bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ class TimelineFragment :
797797
}
798798
// We use a custom layout for this menu item, so we need to set a ClickListener
799799
menu.findItem(R.id.open_matrix_apps)?.let { menuItem ->
800-
menuItem.actionView?.debouncedClicks {
800+
menuItem.actionView?.setOnClickListener {
801801
handleMenuItemSelected(menuItem)
802802
}
803803
}
@@ -808,7 +808,7 @@ class TimelineFragment :
808808

809809
// Custom thread notification menu item
810810
menu.findItem(R.id.menu_timeline_thread_list)?.let { menuItem ->
811-
menuItem.actionView?.debouncedClicks {
811+
menuItem.actionView?.setOnClickListener {
812812
handleMenuItemSelected(menuItem)
813813
}
814814
}

0 commit comments

Comments
 (0)