Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

BroadcastReceiver unregistered without registering in MainActivity #437

Open
abs51295 opened this issue Mar 12, 2017 · 1 comment
Open

Comments

@abs51295
Copy link
Member

abs51295 commented Mar 12, 2017

BroadcastReceiver of CircleOfTrustFragment is registered in OnResume() of MainActivity as found here. But the receiver will not be registered as it is not initialized (it is initialized in onCreateView() of the CircleOfTrustFragment) and when trying to unregister it in OnPause() throws error in Logcat.

I think it's better to register and unregister the receiver in the lifecycle methods of CircleOfTrustFragment itself.

@abs51295
Copy link
Member Author

@sandarumk What's your say in this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant