summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJoe Malin <jmalin@google.com>2013-05-29 15:24:11 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-29 15:24:11 -0700
commitb8339676a20f665453fda9d6f52e0e6c040bbd7d (patch)
tree60afc200a580f0070d79e3a7fe4bee78b7fa5622 /docs
parent40f8668a5f3bde3b89225a047775ccca30d33c40 (diff)
parent4aeb8cb3fbc342d41abdfa21d242439aadeb9f86 (diff)
downloadframeworks_base-b8339676a20f665453fda9d6f52e0e6c040bbd7d.zip
frameworks_base-b8339676a20f665453fda9d6f52e0e6c040bbd7d.tar.gz
frameworks_base-b8339676a20f665453fda9d6f52e0e6c040bbd7d.tar.bz2
am 4aeb8cb3: am 1e4cfd8e: am f0bca903: am e55ba431: Merge "Docs bug fix: B9085293 - Stop Location Updates" into jb-mr1.1-docs
* commit '4aeb8cb3fbc342d41abdfa21d242439aadeb9f86': Docs bug fix: B9085293 - Stop Location Updates
Diffstat (limited to 'docs')
-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