1. 解决关闭用户信息按钮没有回调的问题。

This commit is contained in:
wangcongtao
2020-09-29 11:38:39 +08:00
parent cf1a083d92
commit 7b9f0bdef7
2 changed files with 9 additions and 3 deletions

View File

@@ -122,9 +122,15 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
CallChatApi.getInstance().getApiProvider().registerUserWindowStatusListener( TAG, mContext, new CallProviderResponseImpl() {
@Override
public void userWindowStatus( boolean b ) {
public void userWindowStatus( boolean show ) {
try {
closeMarker( mLastCheckMarker );
if ( mLastCheckMarker == null ) {
return;
}
if ( TextUtils.equals( mLastCheckMarker.getOwner(), ModuleNames.CARD_TYPE_USER_DATA )
&& !show ) {
closeMarker( mLastCheckMarker );
}
} catch ( Exception e ) {
e.printStackTrace();
}