Skip to content

分时图OneDayChart调用dynamicsAddOne动态添加节点后长按选中异常崩溃 #11

@CarryHekangkai

Description

@CarryHekangkai

在TimeDataManage.java中添加以下方法,在合适时机调用即可解决

public void addTimeData(TimeDataModel timeDatamodel) {
        timeDatamodel.setPreClose(preClose == 0 ? timeDatamodel.getOpen() : preClose);
        mAllVolume += timeDatamodel.getVolume();
        timeDatamodel.setCha(timeDatamodel.getNowPrice() - preClose);
        timeDatamodel.setPer(timeDatamodel.getCha() / preClose);
        max = Math.max(timeDatamodel.getNowPrice(), max);
        min = Math.min(timeDatamodel.getNowPrice(), min);
        perVolMaxTimeLine = volMaxTimeLine;
        volMaxTimeLine = Math.max(timeDatamodel.getVolume(), volMaxTimeLine);
        realTimeDatas.add(timeDatamodel);
        permaxmin = (max - min) / 2;
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions