Merge branch 'feature/v2.0.0' of gitlab.zhidaoauto.com:ecos/yycp-service/Launcher into feature/v2.0.0
This commit is contained in:
@@ -23,6 +23,7 @@ import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -198,8 +199,19 @@ public class EntrancePresenter extends Presenter< EntranceView > {
|
||||
if ( mIMogoAuthorizeModuleManager.needAuthorize( AUTHORIZE_TYPE_LAUNCHER_SHARE ) ) {
|
||||
mIMogoAuthorizeModuleManager.invokeAuthorization( AUTHORIZE_TYPE_LAUNCHER_SHARE );
|
||||
} else {
|
||||
uploadRoadCondition();
|
||||
Log.d( TAG, "mogoIntentListener 分享路况 唤醒 ----> " );
|
||||
JSONObject jsonObject = null;
|
||||
try {
|
||||
jsonObject = new JSONObject( data );
|
||||
String typeString = jsonObject.get( "obj" ).toString();
|
||||
Logger.d(TAG, "mogiIntentListener 准备上报拥堵: " + typeString);
|
||||
if("拥堵".equals(typeString)) {
|
||||
uploadRoadCondition();
|
||||
Log.d(TAG, "mogoIntentListener 上报拥堵 唤醒 ----> ");
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
} else if ( intentStr.equals( ExtensionsModuleConst.SHARE_DIALOG_CLOSE ) ) { //关闭分享框 唤醒
|
||||
if ( mIMogoAuthorizeModuleManager.needAuthorize( AUTHORIZE_TYPE_LAUNCHER_SHARE ) ) {
|
||||
|
||||
Reference in New Issue
Block a user