am f0bca903: am e55ba431: Merge "Docs bug fix: B9085293 - Stop Location Updates" into jb-mr1.1-docs

* commit 'f0bca9034874c26e42c35f65d376d77e514b6ef9':
  Docs bug fix: B9085293 - Stop Location Updates
This commit is contained in:
Joe Malin
2013-05-29 15:18:44 -07:00
committed by Android Git Automerger

View File

@@ -567,7 +567,12 @@ public class MainActivity extends FragmentActivity implements
protected void onStop() {
// If the client is connected
if (mLocationClient.isConnected()) {
stopPeriodicUpdates();
/*
* Remove location updates for a listener.
* The current Activity is the listener, so
* the argument is "this".
*/
removeLocationUpdates(this);
}
/*
* After disconnect() is called, the client is