Skip to content

Commit

Permalink
1. remove call to invalidate since changing visibility of child seems…
Browse files Browse the repository at this point in the history
… to be

invoking it automatically
2. remove dependency on support lib
  • Loading branch information
rajasharan committed Jun 26, 2015
1 parent 205d42a commit 448c51f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions demo/src/main/java/com/rajasharan/demo/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ public void onDraw() {

}
});

root.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
@Override
public boolean onPreDraw() {
Log.d(TAG, "onPreDraw");
return true;
}
});
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
//compile 'com.android.support:appcompat-v7:21.0.3'
}
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public boolean onTouchEvent(MotionEvent event) {
if (mSelectedChild != null) {
mSelectedChild.setVisibility(View.VISIBLE);
mSelectedChild = null;
invalidate();
//invalidate();
}
break;
}
Expand Down

0 comments on commit 448c51f

Please sign in to comment.