Skip to content

Commit

Permalink
Merge branch 'master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
guaishouN committed Jul 6, 2021
2 parents b79601c + 0e9404a commit 49a0a44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public void setViewport(int winHeight, int winWidth) {
* path->path from parent, same as paint
*/
public void performDrawLine(DrawInfo drawInfo){
baseline.draw(drawInfo);
if(baseline!=null){
baseline.draw(drawInfo);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import android.view.View;

import androidx.annotation.Nullable;

import com.gyso.treeview.model.NodeModel;

/**
Expand All @@ -17,5 +19,5 @@ public interface TreeViewControlListener {
int FREE_SCALE = 0;
int MAX_SCALE = 1;
void onScaling(int state, int percent);
void onDragMoveNodesHit(NodeModel<?> draggingNode, NodeModel<?> hittingNode, View draggingView, View hittingView);
void onDragMoveNodesHit(@Nullable NodeModel<?> draggingNode, @Nullable NodeModel<?> hittingNode, @Nullable View draggingView, @Nullable View hittingView);
}

0 comments on commit 49a0a44

Please sign in to comment.