Describe the bug
The UNDO option is not clickable when you are in tab switcher mode.
Expected behavior
The UNDO option should work as expected.
Steps to reproduce the behavior:
Environment
Hey! @sonusourav
You've correctly pointed out the issue.
~So this is a won't fix issue.~
Not a won't fix. This used to work we just need some workaround to get this working.
Yes @abdulwd
I found the solution
In CoreMainActivity.closeTab wrong View was passed to the Snackbar.make()
We need to pass tabSwitcherRoot instead of snackbarRoot.
Along with this from #1872
This can be solved by calling
tabsAdapter.notifyDataSetChanged();
under thesnackbar.setAction()for Undo after thetabsAdapter.notifyItemInserted(index);
in theCoreMainActivity.closeTab
@sonusourav has this been fixed?
Yeah by #1879
Most helpful comment
Yes @abdulwd
I found the solution
In
CoreMainActivity.closeTabwrong View was passed to theSnackbar.make()We need to pass
tabSwitcherRootinstead ofsnackbarRoot.Along with this from #1872