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
This commit is contained in:
@@ -567,7 +567,12 @@ public class MainActivity extends FragmentActivity implements
|
|||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
// If the client is connected
|
// If the client is connected
|
||||||
if (mLocationClient.isConnected()) {
|
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
|
* After disconnect() is called, the client is
|
||||||
|
|||||||
Reference in New Issue
Block a user