修改“查询我的分享”不生效问题
This commit is contained in:
@@ -48,7 +48,9 @@ public class AMapWrapper implements IMogoMap {
|
||||
mContext = context;
|
||||
mUIcontroller = controller;
|
||||
// 设置实现自定义 info window
|
||||
mAMap.setInfoWindowAdapter( new AMapInfoWindowAdapter() );
|
||||
if(mAMap!=null) {
|
||||
mAMap.setInfoWindowAdapter(new AMapInfoWindowAdapter());
|
||||
}
|
||||
AMapUIController.getInstance().initClient( mUIcontroller );
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import android.view.Gravity;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.mogo.commons.AbsMogoApplication;
|
||||
import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.wm.WindowManagerView;
|
||||
import com.mogo.service.IMogoServiceApis;
|
||||
@@ -15,6 +16,9 @@ public class BackToMainHomeManager {
|
||||
private static final String TAG = "BackToMainHomeManager";
|
||||
|
||||
public static void backToLauncher() {
|
||||
if (!DebugConfig.isLauncher()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Intent intent2 = new Intent();
|
||||
// 是否发自系统消息
|
||||
|
||||
@@ -100,8 +100,8 @@ public class SchemeIntent implements IMogoStatusChangedListener {
|
||||
|
||||
if ( !mApis.getStatusManagerApi().isMainPageOnResume() ) {
|
||||
long delay = 0L;
|
||||
if ( isNaviIntent( intent ) ) {
|
||||
delay = 2_000L;
|
||||
if ( isDelay( intent ) ) {
|
||||
delay = 5_000L;
|
||||
}
|
||||
mNextIntent = new IntentWrapper( intent, delay );
|
||||
mApis.getLauncherApi().backToLauncher( mContext );
|
||||
@@ -127,13 +127,13 @@ public class SchemeIntent implements IMogoStatusChangedListener {
|
||||
mNextIntent = null;
|
||||
}
|
||||
|
||||
private boolean isNaviIntent( Intent intent ) {
|
||||
if ( intent == null || intent.getData() == null ) {
|
||||
private boolean isDelay(Intent intent ) {
|
||||
if ( mApis.getStatusManagerApi().isMainPageLaunched() || intent == null || intent.getData() == null ) {
|
||||
return false;
|
||||
}
|
||||
Uri target = intent.getData();
|
||||
String type = target.getQueryParameter( "type" );
|
||||
return TextUtils.equals( TYPE_NAVI, type );
|
||||
return TextUtils.equals(TYPE_NAVI, type) || TextUtils.equals(TYPE_SHOW_SHARE_PANEL, type);
|
||||
}
|
||||
|
||||
private void handleSwitch2Action( Uri target ) {
|
||||
|
||||
Reference in New Issue
Block a user