Skip to content

Commit

Permalink
Merge pull request eleme#14 from JeasonWong/master
Browse files Browse the repository at this point in the history
fix targetElement NPE
  • Loading branch information
JeasonWong authored May 22, 2018
2 parents 6f37e3b + be846b8 commit c9b9291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uetool/src/main/java/me/ele/uetool/EditAttrLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public boolean onTouchEvent(MotionEvent event) {
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
targetElement = null;
if (dialog != null) {
dialog.dismiss();
}
targetElement = null;
}

public void setOnDragListener(OnDragListener onDragListener) {
Expand Down

0 comments on commit c9b9291

Please sign in to comment.