You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateSubscriber<Location> onLocationUpdated = newSubscriber<Location>() {
@OverridepublicvoidonNext(Locationlocation) {
// never called when was resumed after pause
}
...
}
Subscriptionsubscription = Subscriptions.empty();
voidonResume() {
subscription = locationService.observe().subscribe(onLocationUpdated);
}
voidonPause() {
subscription.unsubscribe();
}
I have a class field with subscriber implementation. When my UI resumed I subscribe using that subscriber on location updates. When UI is paused I unsubscribe.
Subscriber is field is not destroyed when UI is paused and should be reused for subscribe on UI resume. Unfortunately onNext will be never called.
I have a class field with subscriber implementation. When my UI resumed I subscribe using that subscriber on location updates. When UI is paused I unsubscribe.
Subscriber is field is not destroyed when UI is paused and should be reused for subscribe on UI resume. Unfortunately onNext will be never called.
Guess this related to this fix #1409.
The text was updated successfully, but these errors were encountered: