Merge pull request #3338 from Bnyro/master

Fix crash when unregistering downloads receiver
This commit is contained in:
Bnyro 2023-03-21 19:48:17 +01:00 committed by GitHub
commit d05b84d0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ class DownloadsFragment : Fragment() {
override fun onStop() {
super.onStop()
if (serviceConnection.isBound) {
runCatching {
context?.unbindService(serviceConnection)
}
}