BaseTransientBottomBar and related bug, and how to resolve it

 ̄綄美尐妖づ 提交于 2019-12-06 16:10:48

I resolved it using my own answer:

When I used a boolean variable in onDestroy(), and checked with it, I knew that I should not be showing Snackbar, as it uses view as a second parameter. The link for explanation:

Fragment onStop() versus onDetach(), onDestroy() or onDestroyView() of the same?

also because of restrictions as nicely described in the following link:

https://developer.android.com/topic/libraries/architecture/lifecycle#kotlin

Happy Coding :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!