更新导航入口UI

This commit is contained in:
wangcongtao
2020-08-13 10:31:24 +08:00
parent 3643effb44
commit 17abb0864a
7 changed files with 21 additions and 17 deletions

View File

@@ -8,10 +8,14 @@ import android.view.WindowManager;
import com.mogo.commons.AbsMogoApplication;
import com.mogo.commons.debug.DebugConfig;
import com.mogo.module.common.wm.WindowManagerView;
import com.mogo.utils.CommonUtils;
import com.mogo.utils.LaunchUtils;
import com.mogo.utils.ResourcesHelper;
import com.mogo.utils.logger.Logger;
import java.util.HashMap;
import java.util.Map;
public
/**
* @author congtaowang
@@ -40,6 +44,7 @@ class AutoNaviIntentHandler {
}
private WindowManagerView mWindowManagerView;
private Map< String, Object > mProperties = new HashMap<>();
public synchronized void release() {
sInstance = null;
@@ -95,6 +100,12 @@ class AutoNaviIntentHandler {
} else {
LaunchUtils.launchByPkg( context, "com.mogo.launcher.app" );
}
if ( mProperties.isEmpty() ) {
mProperties.put( "appname", CommonUtils.getAppName( context ) );
mProperties.put( "appversion", CommonUtils.getVersionName( context ) );
mProperties.put( "from", 9 );
}
MogoWidgetManger.getInstance().getApis().getAnalyticsApi().track( "appenterfront", mProperties );
} catch ( Exception e ) {
Logger.e( TAG, e, "error." );
}
@@ -102,6 +113,7 @@ class AutoNaviIntentHandler {
}
try {
mWindowManagerView.show();
MogoWidgetManger.getInstance().getApis().getAnalyticsApi().track( "NAVI_button_show", null );
} catch ( Exception e ) {
Logger.e( TAG, e, "error." );
}