Skip to content

Commit

Permalink
Deactivate logs
Browse files Browse the repository at this point in the history
  • Loading branch information
danialgoodwin committed Mar 16, 2015
1 parent 5b95643 commit 6024705
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'

// compile project(':globaloverlay')
compile project(':globaloverlay')
// Use the following in your own project since it's not local.
// compile 'com.github.danialgoodwin:android-global-overlay:v0.8'
compile 'com.github.danialgoodwin:android-global-overlay.globaloverlay:v0.8'
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public boolean onTouch(View v, MotionEvent event) {

/** Return true if point (x1,y1) is in the square defined by (x2,y2) with radius, otherwise false. */
private boolean isPointInArea(int x1, int y1, int x2, int y2, int radius) {
log("isPointInArea(). x1=" + x1 + ",y1=" + y1);
log("isPointInArea(). x2=" + x2 + ",y2=" + y2 + ",radius=" + radius);
// log("isPointInArea(). x1=" + x1 + ",y1=" + y1);
// log("isPointInArea(). x2=" + x2 + ",y2=" + y2 + ",radius=" + radius);
return x1 >= x2 - radius && x1 <= x2 + radius && y1 >= y2 - radius && y1 <= y2 + radius;
}

Expand Down

0 comments on commit 6024705

Please sign in to comment.