diff options
| author | 2016-04-20 22:19:04 +0000 | |
|---|---|---|
| committer | 2016-04-20 22:19:05 +0000 | |
| commit | e1b51715bdd1d59913ef4cb83071ef8eaac968de (patch) | |
| tree | bb51e1d6a826c808b363a5e1f60d12d57f9a000f | |
| parent | 665189f92646d34bf02082120cba3c62aa718770 (diff) | |
| parent | 8ad4430c57539d8b4cb5856bd9cfc3ba06ca6343 (diff) | |
Merge "Fixed bug in upgrading GpsMeasurement" into nyc-dev
| -rw-r--r-- | services/core/jni/com_android_server_location_GnssLocationProvider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/jni/com_android_server_location_GnssLocationProvider.cpp b/services/core/jni/com_android_server_location_GnssLocationProvider.cpp index 058b631dfe3c..c5c90e02f200 100644 --- a/services/core/jni/com_android_server_location_GnssLocationProvider.cpp +++ b/services/core/jni/com_android_server_location_GnssLocationProvider.cpp @@ -1194,7 +1194,7 @@ static jobject translate_gps_measurement(JNIEnv* env, JavaObject object(env, "android/location/GnssMeasurement"); GpsMeasurementFlags flags = measurement->flags; SET(Svid, static_cast<int32_t>(measurement->prn)); - if (measurement->prn >= 1 || measurement->prn <= 32) { + if (measurement->prn >= 1 && measurement->prn <= 32) { SET(ConstellationType, static_cast<int32_t>(GNSS_CONSTELLATION_GPS)); } else { ALOGD("Unknown constellation type with Svid = %d.", measurement->prn); |