summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Malin <jmalin@google.com>2013-05-28 10:50:58 -0700
committerJoe Malin <jmalin@google.com>2013-05-28 10:50:58 -0700
commitba0256fdc5d0ddfa16530964402141f6b701edc1 (patch)
treeb71d8e5c2f6aaa662aa5f6b753f4af977c8f1711
parentc6c149aa14610925158ef1ba6320c9356e45e631 (diff)
downloadframeworks_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.jd7
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