Skip to content

Commit

Permalink
use MainThreadSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartDengg committed Nov 15, 2015
1 parent 4fd9d7f commit 76441f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void onLocationChanged(final Location location) {
subscriber.onNext(location);
subscriber.onCompleted();
}
locationManager.removeUpdates(this);
handlerThread.getLooper().quit();
}
};

Expand Down

0 comments on commit 76441f0

Please sign in to comment.