mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-01 22:25:46 +01:00
Reduce usage of Log.w()
This commit is contained in:
@@ -29,6 +29,8 @@ import org.thoughtcrime.securesms.logging.Log;
|
||||
*/
|
||||
public abstract class TwoFingerGestureDetector extends BaseGestureDetector {
|
||||
|
||||
private static final String TAG = TwoFingerGestureDetector.class.getSimpleName();
|
||||
|
||||
private final float mEdgeSlop;
|
||||
protected float mPrevFingerDiffX;
|
||||
protected float mPrevFingerDiffY;
|
||||
@@ -134,7 +136,7 @@ public abstract class TwoFingerGestureDetector extends BaseGestureDetector {
|
||||
final float y1 = getRawY(event, 1);
|
||||
|
||||
|
||||
Log.w("TwoFinger",
|
||||
Log.d(TAG,
|
||||
String.format("x0: %f, y0: %f, x1: %f, y1: %f, EdgeSlop: %f, RightSlop: %f, BottomSlop: %f",
|
||||
x0, y0, x1, y1, edgeSlop, rightSlop, bottomSlop));
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class Layer {
|
||||
}
|
||||
|
||||
public void postScale(float scaleDiff) {
|
||||
Log.w("Layer", "ScaleDiff: " + scaleDiff);
|
||||
Log.i("Layer", "ScaleDiff: " + scaleDiff);
|
||||
float newVal = scale + scaleDiff;
|
||||
if (newVal >= getMinScale() && newVal <= getMaxScale()) {
|
||||
scale = newVal;
|
||||
|
||||
@@ -444,7 +444,7 @@ public class MotionView extends FrameLayout implements TextWatcher {
|
||||
public boolean onScale(ScaleGestureDetector detector) {
|
||||
if (selectedEntity != null) {
|
||||
float scaleFactorDiff = detector.getScaleFactor();
|
||||
Log.w(TAG, "ScaleFactorDiff: " + scaleFactorDiff);
|
||||
Log.d(TAG, "ScaleFactorDiff: " + scaleFactorDiff);
|
||||
selectedEntity.getLayer().postScale(scaleFactorDiff - 1.0F);
|
||||
selectedEntity.updateEntity();
|
||||
updateUI();
|
||||
|
||||
Reference in New Issue
Block a user