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

Commit 9a940e8b authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

Fix bad filtering of error code when set_position_mode() is being called.

parent 9fb724ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ static jboolean android_location_GpsLocationProvider_start(JNIEnv* env, jobject
{
    int result = sGpsInterface->set_position_mode(positionMode, (singleFix ? 0 : fixFrequency));
    if (result) {
        return result;
        return false;
    }

    return (sGpsInterface->start() == 0);