)]}'
{
  "commit": "ced2b2c09a209e017f02cf28ddd9d35b2d8b8ada",
  "tree": "31355a098731073a9824a844bb1f1226abdc23d1",
  "parents": [
    "0a3fcc3eed15ed50bcaa7808b6ccb170fb137210"
  ],
  "author": {
    "name": "Sean Barbeau",
    "email": "sjbarbeau@gmail.com",
    "time": "Mon Dec 19 04:43:07 2011 -0500"
  },
  "committer": {
    "name": "Sean Barbeau",
    "email": "sjbarbeau@gmail.com",
    "time": "Thu Jan 12 18:25:47 2012 -0500"
  },
  "message": "Fixes update of extras Bundle in new Locations for GPS Provider\n\nThis patch fixes the update of the extras Bundle in the Location object\neach time the platform derives a new GPS location and passes it to\nlistening applications via LocationListener.onLocationChanged().\n\nSometime between Android 1.6 and 2.1 a bug was introduced that stopped\nany extras calculated by the platform from being added into the Location\nobject, which means they were never passed up to any LocationListeners\nfor the GPS Provider.  This manifested as an issue where the number of\nsatellites used to derive a fix always reported “0” when retrieved from\nLocation.getExtras() (Issue 4810 on the Android Issues page -\nhttp://code.google.com/p/android/issues/detail?id\u003d4810).\n\nSample code to be used within\nLocationListener.onLocationChanged(Location location) which demonstrates\nthis problem:\n\nBundle extras \u003d location.getExtras();\n\nInt numSats \u003d extras.getInt(\"satellites\");  //This always reports “0”\n                                            //post 1.5, although in 1.5\n                                            //it properly reported the\n                                            //number of satellites used\n                                            //to derive this location\n\nThe “satellites” extra key/value pair for Locations is defined in\nhttp://developer.android.com/reference/android/location/Location.html#getExtras()\n\nThis patch modifies GPSLocationProvider.java to properly update the\nLocation object with the extras Bundle before the Location object is\npassed to any listening applications, and therefore the number of\nsatellites used to derive a fix can now be retrieved properly through\nlocation.getExtras() (as shown in sample code above).  Therefore, this\npatch fixes Issue 4810.\n\nChange-Id: Ief21056a3623269bb3149ec78ab92738a234f57f\nSigned-off-by: Sean Barbeau \u003csjbarbeau@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "00788bad3d79a86a5df7628c31fbd5666ae296bc",
      "old_mode": 33261,
      "old_path": "services/java/com/android/server/location/GpsLocationProvider.java",
      "new_id": "588fa9316febe179e85ae543338ab4d1b40187e9",
      "new_mode": 33261,
      "new_path": "services/java/com/android/server/location/GpsLocationProvider.java"
    }
  ]
}
