diff options
author | Joe Malin <jmalin@google.com> | 2013-05-28 10:50:58 -0700 |
---|---|---|
committer | Joe Malin <jmalin@google.com> | 2013-05-28 10:50:58 -0700 |
commit | ba0256fdc5d0ddfa16530964402141f6b701edc1 (patch) | |
tree | b71d8e5c2f6aaa662aa5f6b753f4af977c8f1711 | |
parent | c6c149aa14610925158ef1ba6320c9356e45e631 (diff) | |
download | frameworks_base-ba0256fdc5d0ddfa16530964402141f6b701edc1.zip frameworks_base-ba0256fdc5d0ddfa16530964402141f6b701edc1.tar.gz frameworks_base-ba0256fdc5d0ddfa16530964402141f6b701edc1.tar.bz2 |
Docs bug fix: B9085293 - Stop Location Updates
Change-Id: I8dd9e6ca59bac628ba834a86f50783170964e652
-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 eb4ffa3..c33f075 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 |