thunderbird / thunderbird-android

Thunderbird for Android – Open Source Email App for Android (fka K-9 Mail)
https://thunderbird.net/mobile
Apache License 2.0
11.02k stars 2.51k forks source link

Don't use `viewLifecycleOwner` with `setFragmentResultListener` #8399

Closed cketti closed 1 month ago

cketti commented 1 month ago

Changing the setFragmentResultListener() code to be in line with what we use in MessageViewFragment.

Since we have no idea where the navigation/lifecycle-related crashes reported via Google Play come from, I'm going through recent changes that touched navigation or lifecycle observers. This usage of setFragmentResultListener() is new and could be related to the problem. But that's just a guess. This change is unlikely to make things worse.