Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyLocation implements LifecycleObserver, LocationListener {
- ...
- @OnLifecycleEvent(ON_DESTROY)
- public void cleanup() {
- lifecycle.removeObserver(this);
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement