This commit is contained in:
wangcongtao
2020-06-11 16:42:45 +08:00
parent 5f7e9a3d58
commit 88436a4d5a
10 changed files with 32 additions and 23 deletions

View File

@@ -70,6 +70,7 @@ public class WebSocketManager {
super.onOpen( handshakedata );
UiThreadHandler.post( () -> {
TipToast.shortTip( "模拟GPS开启成功" );
mServiceApis.getMapServiceApi().getSingletonLocationClient( AbsMogoApplication.getApp() ).stop();
} );
}
@@ -78,6 +79,7 @@ public class WebSocketManager {
super.onClose( code, reason, remote );
UiThreadHandler.post( () -> {
TipToast.shortTip( "模拟GPS关闭成功" );
mServiceApis.getMapServiceApi().getSingletonLocationClient( AbsMogoApplication.getApp() ).start();
} );
shutdownServiceQuietly();
}