Skip to content

Commit

Permalink
Merge pull request #38 from darius-janusauskas/master
Browse files Browse the repository at this point in the history
Fix reveal layout invalidation rect refresh
  • Loading branch information
ozodrukh committed Jul 18, 2015
2 parents 4fc0f3b + f3f1409 commit 8969e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void onRevealAnimationCancel() {
@Override
public void setRevealRadius(float radius){
mRadius = radius;
mRevealInfo.getTarget().getHitRect(mTargetBounds);
invalidate(mTargetBounds);
}

Expand All @@ -75,7 +76,6 @@ public float getRevealRadius(){
*/
@Override
public void attachRevealInfo(RevealInfo info) {
info.getTarget().getHitRect(mTargetBounds);
mRevealInfo = info;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void onRevealAnimationCancel() {
@Override
public void setRevealRadius(float radius){
mRadius = radius;
mRevealInfo.getTarget().getHitRect(mTargetBounds);
invalidate(mTargetBounds);
}

Expand All @@ -75,7 +76,6 @@ public float getRevealRadius(){
*/
@Override
public void attachRevealInfo(RevealInfo info) {
info.getTarget().getHitRect(mTargetBounds);
mRevealInfo = info;
}

Expand Down

0 comments on commit 8969e1f

Please sign in to comment.