From 1e8eb64f74ea52a3b493656bdb1597ece5baa74a Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Mon, 26 Nov 2012 22:33:26 +0400 Subject: [PATCH] translations + logs uncommented --- .../android/calculator/onscreen/CalculatorOnscreenView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java index aa92c995..dd29ca24 100644 --- a/calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java +++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/onscreen/CalculatorOnscreenView.java @@ -2,6 +2,7 @@ package org.solovyev.android.calculator.onscreen; import android.content.Context; import android.graphics.PixelFormat; +import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.WindowManager; @@ -385,7 +386,7 @@ public class CalculatorOnscreenView { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: - //Log.d(TAG, "0:" + toString(x0, y0) + ", 1: " + toString(x1, y1)); + Log.d(TAG, "0:" + toString(x0, y0) + ", 1: " + toString(x1, y1)); x0 = x1; y0 = y1; return true; @@ -413,7 +414,7 @@ public class CalculatorOnscreenView { final float Δy = y1 - y0; final WindowManager.LayoutParams params = (WindowManager.LayoutParams) view.getLayoutParams(); - //Log.d(TAG, "0:" + toString(x0, y0) + ", 1: " + toString(x1, y1) + ", Δ: " + toString(Δx, Δy) + ", params: " + toString(params.x, params.y)); + Log.d(TAG, "0:" + toString(x0, y0) + ", 1: " + toString(x1, y1) + ", Δ: " + toString(Δx, Δy) + ", params: " + toString(params.x, params.y)); boolean xInBounds = isDistanceInBounds(Δx); boolean yInBounds = isDistanceInBounds(Δy);