mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Avoid creating too many Job, which ends up to OOM
This commit is contained in:
parent
4222761363
commit
4c06bdc14e
1 changed files with 2 additions and 2 deletions
|
@ -797,7 +797,7 @@ class TimelineFragment :
|
|||
}
|
||||
// We use a custom layout for this menu item, so we need to set a ClickListener
|
||||
menu.findItem(R.id.open_matrix_apps)?.let { menuItem ->
|
||||
menuItem.actionView?.debouncedClicks {
|
||||
menuItem.actionView?.setOnClickListener {
|
||||
handleMenuItemSelected(menuItem)
|
||||
}
|
||||
}
|
||||
|
@ -808,7 +808,7 @@ class TimelineFragment :
|
|||
|
||||
// Custom thread notification menu item
|
||||
menu.findItem(R.id.menu_timeline_thread_list)?.let { menuItem ->
|
||||
menuItem.actionView?.debouncedClicks {
|
||||
menuItem.actionView?.setOnClickListener {
|
||||
handleMenuItemSelected(menuItem)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue