From ba0256fdc5d0ddfa16530964402141f6b701edc1 Mon Sep 17 00:00:00 2001 From: Joe Malin Date: Tue, 28 May 2013 10:50:58 -0700 Subject: Docs bug fix: B9085293 - Stop Location Updates Change-Id: I8dd9e6ca59bac628ba834a86f50783170964e652 --- docs/html/training/location/receive-location-updates.jd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.1