opt
This commit is contained in:
@@ -1104,8 +1104,36 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
});
|
||||
}
|
||||
|
||||
private boolean mLastStatusIsVr = false;
|
||||
|
||||
@Override
|
||||
public void onMapModeChanged(EnumMapUI ui) {
|
||||
Log.d("liyz", "fragment onMapModeChanged -----> ");
|
||||
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO ) {
|
||||
if ( ui == EnumMapUI.Type_VR ) {
|
||||
Log.d("liyz", "onMapModeChanged mLastStatusIsVr = " + mLastStatusIsVr + "--ui = " +ui);
|
||||
if ( !mLastStatusIsVr ) {
|
||||
MogoApisHandler.getInstance().getApis().getStatusManagerApi().setVrMode( TAG, true );
|
||||
MapCenterPointStrategy.resetByChangeMode();
|
||||
// MapMarkerManager.getInstance().redrawMarkerByStyleChanged();
|
||||
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO ) {
|
||||
AIAssist.getInstance( getContext() ).speakTTSVoice( "已开启鹰眼模式" );
|
||||
}
|
||||
mLastStatusIsVr = true;
|
||||
}
|
||||
} else {
|
||||
if ( mLastStatusIsVr ) {
|
||||
mLastStatusIsVr = false;
|
||||
MogoApisHandler.getInstance().getApis().getStatusManagerApi().setVrMode( TAG, false );
|
||||
MapCenterPointStrategy.resetByChangeMode();
|
||||
// MapMarkerManager.getInstance().redrawMarkerByStyleChanged();
|
||||
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO ) {
|
||||
AIAssist.getInstance( getContext() ).speakTTSVoice( "已退出鹰眼模式" );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (mCameraMode == null) {
|
||||
return;
|
||||
}
|
||||
@@ -1117,6 +1145,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
// } else if( ui == EnumMapUI.NorthUP_2D ){
|
||||
// mMove2CurrentLocation.setImageResource( R.drawable.icon_car_up );
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.mogo.module.main;
|
||||
|
||||
import android.location.Location;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
import com.mogo.map.MogoLatLng;
|
||||
|
||||
@@ -445,14 +445,12 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
|
||||
boolean isAllGranted = true;
|
||||
// 判断是否所有的权限都已经授予了
|
||||
for (int grant : grantResults) {
|
||||
Log.d("liyz", "grant =" + grant);
|
||||
if (grant != PackageManager.PERMISSION_GRANTED) {
|
||||
isAllGranted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Log.d("liyz", "onRequestPermissionsResult isAllGranted = " + isAllGranted);
|
||||
if (isAllGranted) {
|
||||
isFirst = false;
|
||||
} else {
|
||||
|
||||
@@ -938,8 +938,9 @@ public class MogoServices implements IMogoMapListener,
|
||||
|
||||
@Override
|
||||
public void onMapModeChanged( EnumMapUI ui ) {
|
||||
Log.d("liyz", "onMapModeChanged ----> ui = " + ui);
|
||||
if ( ui == EnumMapUI.Type_VR ) {
|
||||
Log.d("liyz", "mLastStatusIsVr = " + mLastStatusIsVr + "--ui = " +ui);
|
||||
Log.d("liyz", "onMapModeChanged mLastStatusIsVr = " + mLastStatusIsVr + "--ui = " +ui);
|
||||
if ( !mLastStatusIsVr ) {
|
||||
MogoApisHandler.getInstance().getApis().getStatusManagerApi().setVrMode( TAG, true );
|
||||
MapCenterPointStrategy.resetByChangeMode();
|
||||
|
||||
@@ -12,6 +12,7 @@ import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.module.v2x.R;
|
||||
|
||||
/**
|
||||
@@ -39,6 +40,12 @@ public class V2XEventPanelHistoryCountView extends LinearLayout {
|
||||
mLlEventMore = (RelativeLayout) findViewById(R.id.llEventMore);
|
||||
mBtnShowOrHidePanels = (ImageView) findViewById(R.id.btnShowOrHidePanels);
|
||||
mTvEventCount = (TextView) findViewById(R.id.tvEventCount);
|
||||
|
||||
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO) {
|
||||
mLlEventMore.setVisibility(VISIBLE);
|
||||
} else {
|
||||
mLlEventMore.setVisibility(GONE);
|
||||
}
|
||||
}
|
||||
|
||||
public void changeMsgCount(int count) {
|
||||
|
||||
Reference in New Issue
Block a user