add car series D801B-802B(2+16G)
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -33,6 +33,9 @@ public class CarSeries {
|
||||
CAR_SERIES = CAR_SERIES_C80X;
|
||||
} else if ( "D801-802".equals( device ) ) {
|
||||
CAR_SERIES = CAR_SERIES_D80X;
|
||||
} else if( "D801B-802B".equals( device )){
|
||||
// 2+16G
|
||||
CAR_SERIES = CAR_SERIES_D80X;
|
||||
} else if ( "D811-812".equals( device ) ) {
|
||||
CAR_SERIES = CAR_SERIES_D81X;
|
||||
} else if ( "D821-822".equals( device ) ) {
|
||||
|
||||
@@ -186,31 +186,43 @@ public class CarIconDisplayStrategy {
|
||||
}
|
||||
|
||||
private void playAnim() {
|
||||
for ( int i : sFrame ) {
|
||||
mBitmapFrames.add( BitmapFactory.decodeResource( AbsMogoApplication.getApp().getResources(), i ) );
|
||||
try {
|
||||
for ( int i : sFrame ) {
|
||||
mBitmapFrames.add( BitmapFactory.decodeResource( AbsMogoApplication.getApp().getResources(), i ) );
|
||||
}
|
||||
mSeekHelpingMarker = MarkerServiceHandler.getMarkerManager().addMarker( TAG, new MogoMarkerOptions()
|
||||
.icons( mBitmapFrames )
|
||||
.period( 1 )
|
||||
.zIndex( 1000 )
|
||||
.autoManager( false )
|
||||
.anchor( 0.5f, 0.5f )
|
||||
.position( MarkerServiceHandler.getMapService().getNavi( AbsMogoApplication.getApp() ).getCarLocation2() ) );
|
||||
} catch ( Exception e ) {
|
||||
MarkerServiceHandler.getMapUIController().setCarCursorOption( new CarCursorOption.Builder().carCursorRes( R.drawable.module_service_ic_seek_helping_00036 ).build() );
|
||||
}
|
||||
mSeekHelpingMarker = MarkerServiceHandler.getMarkerManager().addMarker( TAG, new MogoMarkerOptions()
|
||||
.icons( mBitmapFrames )
|
||||
.period( 1 )
|
||||
.zIndex( 1000 )
|
||||
.autoManager( false )
|
||||
.anchor( 0.5f, 0.5f )
|
||||
.position( MarkerServiceHandler.getMapService().getNavi( AbsMogoApplication.getApp() ).getCarLocation2() ) );
|
||||
MarkerServiceHandler.getMapUIController().showMyLocation( false );
|
||||
}
|
||||
|
||||
private void stopAnim() {
|
||||
if ( mSeekHelpingMarker != null ) {
|
||||
mSeekHelpingMarker.destroy();
|
||||
mSeekHelpingMarker = null;
|
||||
}
|
||||
if ( !mBitmapFrames.isEmpty() ) {
|
||||
for ( Bitmap bitmapFrame : mBitmapFrames ) {
|
||||
if ( bitmapFrame != null && !bitmapFrame.isRecycled() ) {
|
||||
bitmapFrame.recycle();
|
||||
}
|
||||
try {
|
||||
if ( mSeekHelpingMarker != null ) {
|
||||
mSeekHelpingMarker.destroy();
|
||||
mSeekHelpingMarker = null;
|
||||
}
|
||||
mBitmapFrames.clear();
|
||||
} catch ( Exception e ) {
|
||||
|
||||
}
|
||||
try {
|
||||
if ( !mBitmapFrames.isEmpty() ) {
|
||||
for ( Bitmap bitmapFrame : mBitmapFrames ) {
|
||||
if ( bitmapFrame != null && !bitmapFrame.isRecycled() ) {
|
||||
bitmapFrame.recycle();
|
||||
}
|
||||
}
|
||||
mBitmapFrames.clear();
|
||||
}
|
||||
} catch ( Exception e ) {
|
||||
|
||||
}
|
||||
MarkerServiceHandler.getMapUIController().showMyLocation( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user