This commit is contained in:
wangcongtao
2021-01-06 19:49:41 +08:00
parent 88def61796
commit 3a83102f35
5 changed files with 12 additions and 9 deletions

View File

@@ -86,11 +86,17 @@ class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClickListen
public void renderSnapshotData( MogoSnapshotSetData data,
boolean machineVision ) {
if ( mLastReceiveTime != 0 ) {
mAnimationDuration = SystemClock.elapsedRealtime() - mLastReceiveTime;
mAnimationDuration = System.currentTimeMillis() - mLastReceiveTime;
if ( mAnimationDuration > 1000L ) {
mAnimationDuration = 500L;
}
} else {
mAnimationDuration = 500L;
}
mLastReceiveTime = SystemClock.elapsedRealtime();
mLastReceiveTime = System.currentTimeMillis();
if ( !MogoApisHandler.getInstance().getApis().getStatusManagerApi().isMainPageLaunched() ) {
return;
}
if ( data == null || (
( data.getAllList() == null || data.getAllList().isEmpty() ) &&
( data.getNearList() == null || data.getNearList().isEmpty() ) ) ) {