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

Commit b8d66399 authored by Brian Julian's avatar Brian Julian Committed by Automerger Merge Worker
Browse files

Merge "Log IOException message when AltitudeService fails." into main am: 211a4181

parents 5757ea3e 211a4181
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.frameworks.location.altitude.IAltitudeService;
import android.location.Location;
import android.location.altitude.AltitudeConverter;
import android.os.RemoteException;
import android.util.Log;

import com.android.server.SystemService;

@@ -38,6 +39,8 @@ import java.io.IOException;
 */
public class AltitudeService extends IAltitudeService.Stub {

    private static final String TAG = "AltitudeService";

    private final AltitudeConverter mAltitudeConverter = new AltitudeConverter();
    private final Context mContext;

@@ -59,6 +62,7 @@ public class AltitudeService extends IAltitudeService.Stub {
        try {
            mAltitudeConverter.addMslAltitudeToLocation(mContext, location);
        } catch (IOException e) {
            Log.e(TAG, "", e);
            response.success = false;
            return response;
        }
@@ -74,6 +78,7 @@ public class AltitudeService extends IAltitudeService.Stub {
        try {
            return mAltitudeConverter.getGeoidHeight(mContext, request);
        } catch (IOException e) {
            Log.e(TAG, "", e);
            GetGeoidHeightResponse response = new GetGeoidHeightResponse();
            response.success = false;
            return response;