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

Commit daf35c31 authored by David Christie's avatar David Christie
Browse files

Fix issue where FlpHardwareProvider can crash if GmsCore re-registers a sink.

Change-Id: If6f4e9bc3c5be6ca537de2dae1fddd6351350e9e
parent 46db9340
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -272,8 +272,7 @@ public class FlpHardwareProvider {
            synchronized (mLocationSinkLock) {
                // only one sink is allowed at the moment
                if (mLocationSink != null) {
                    throw new RuntimeException(
                            "IFusedLocationHardware does not support multiple sinks");
                    Log.e(TAG, "Replacing an existing IFusedLocationHardware sink");
                }

                mLocationSink = eventSink;