diff --git a/demo/build.gradle b/demo/build.gradle index b0320f9..f8c2da0 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -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' } diff --git a/globaloverlay/src/main/java/com/danialgoodwin/globaloverlay/GlobalOverlayService.java b/globaloverlay/src/main/java/com/danialgoodwin/globaloverlay/GlobalOverlayService.java index 4f125be..f30472d 100644 --- a/globaloverlay/src/main/java/com/danialgoodwin/globaloverlay/GlobalOverlayService.java +++ b/globaloverlay/src/main/java/com/danialgoodwin/globaloverlay/GlobalOverlayService.java @@ -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; }