File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
android/src/main/java/com/google/android/react/navsdk Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -756,20 +756,14 @@ private void registerLocationListener() {
756756 @ Override
757757 public void onLocationChanged (final Location location ) {
758758 if (mIsListeningRoadSnappedLocation ) {
759- WritableNativeArray params = new WritableNativeArray ();
760- params .pushMap (ObjectTranslationUtil .getMapFromLocation (location ));
761-
762- sendCommandToReactNative ("onLocationChanged" , params );
759+ sendCommandToReactNative ("onLocationChanged" , ObjectTranslationUtil .getMapFromLocation (location ));
763760 }
764761 }
765762
766763 @ Override
767764 public void onRawLocationUpdate (final Location location ) {
768765 if (mIsListeningRoadSnappedLocation ) {
769- WritableNativeArray params = new WritableNativeArray ();
770- params .pushMap (ObjectTranslationUtil .getMapFromLocation (location ));
771-
772- sendCommandToReactNative ("onRawLocationChanged" , params );
766+ sendCommandToReactNative ("onRawLocationChanged" , ObjectTranslationUtil .getMapFromLocation (location ));
773767 }
774768 }
775769 };
You can’t perform that action at this time.
0 commit comments