diff options
| author | 2013-05-29 21:30:44 +0000 | |
|---|---|---|
| committer | 2013-05-29 21:30:44 +0000 | |
| commit | e55ba43171cb46cc95aa90f83524c4751c7030ff (patch) | |
| tree | 2504c369e9d04445086f6e40cdd274f15b3cf1ea | |
| parent | a284e2013af9624f0093d58ea8d14994c8eda316 (diff) | |
| parent | ba0256fdc5d0ddfa16530964402141f6b701edc1 (diff) | |
Merge "Docs bug fix: B9085293 - Stop Location Updates" into jb-mr1.1-docs
| -rw-r--r-- | docs/html/training/location/receive-location-updates.jd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/html/training/location/receive-location-updates.jd b/docs/html/training/location/receive-location-updates.jd index eb4ffa3aeec4..c33f07547d24 100644 --- a/docs/html/training/location/receive-location-updates.jd +++ b/docs/html/training/location/receive-location-updates.jd @@ -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 |