File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Android/dokit-dmap/src/main/java/com/didichuxing/doraemonkit/aop/map Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,23 @@ public DMapLocationListenerProxy(DIDILocationListener didiLocationListener) {
2323
2424 @ Override
2525 public void onLocationChanged (DIDILocation didiLocation ) {
26-
26+ if (didiLocationListener != null ) {
27+ didiLocationListener .onLocationChanged (didiLocation );
28+ }
2729 }
2830
2931 @ Override
3032 public void onLocationError (int i , ErrInfo errInfo ) {
31-
33+ if (didiLocationListener != null ) {
34+ didiLocationListener .onLocationError (i , errInfo );
35+ }
3236 }
3337
3438 @ Override
3539 public void onStatusUpdate (String s , int i , String s1 ) {
36-
40+ if (didiLocationListener != null ) {
41+ didiLocationListener .onStatusUpdate (s , i , s1 );
42+ }
3743 }
3844
3945 @ NonNull
You can’t perform that action at this time.
0 commit comments