Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ad4430c authored by Lifu Tang's avatar Lifu Tang
Browse files

Fixed bug in upgrading GpsMeasurement

Bug: 28278410
Change-Id: I936e257d68c348654d6031eb3e8f6d63b28d5e0a
parent 801d4161
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);