hard20 pts · first answer countsandroidlifecycle
Observer called twice after back
A fragment observes LiveData with observe(this) in onViewCreated. After navigating away and back, each update fires the callback twice. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Android activity start orderMobile App Developer
- What AndroidManifest.xml is forMobile App Developer
- Sharing text to any appMobile App Developer
- Play Console rejects the build versionMobile App Developer
- lateinit or by lazyMobile App Developer
- A chain of safe callsMobile App Developer
- What !! does on nullMobile App Developer
- What let returnsMobile App Developer