Merge change 2075 into donut

* changes:
  Fix bad filtering of error code when set_position_mode() is being called.
This commit is contained in:
Android (Google) Code Review
2009-05-20 05:50:32 -07:00

View File

@@ -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);