48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package o;
|
|
|
|
import android.view.GestureDetector;
|
|
import android.view.View;
|
|
import com.github.mikephil.charting.charts.Chart;
|
|
|
|
/* renamed from: o.ixU, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public abstract class AbstractViewOnTouchListenerC15838ixU<T extends Chart<?>> extends GestureDetector.SimpleOnGestureListener implements View.OnTouchListener {
|
|
protected T a;
|
|
public UAQ c;
|
|
protected GestureDetector e;
|
|
protected HBt d = HBt.NONE;
|
|
protected int b = 0;
|
|
|
|
/* renamed from: o.ixU$HBt */
|
|
/* loaded from: classes.dex */
|
|
public enum HBt {
|
|
NONE,
|
|
DRAG,
|
|
X_ZOOM,
|
|
Y_ZOOM,
|
|
PINCH_ZOOM,
|
|
ROTATE,
|
|
SINGLE_TAP,
|
|
DOUBLE_TAP,
|
|
LONG_PRESS,
|
|
FLING
|
|
}
|
|
|
|
public AbstractViewOnTouchListenerC15838ixU(T t) {
|
|
this.a = t;
|
|
this.e = new GestureDetector(t.getContext(), this);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final void a(UAQ uaq) {
|
|
UAQ uaq2;
|
|
if (uaq == null || ((uaq2 = this.c) != null && uaq.b == uaq2.b && uaq.j == uaq2.j && uaq.a == uaq2.a && uaq.d == uaq2.d)) {
|
|
this.a.c(null);
|
|
this.c = null;
|
|
} else {
|
|
this.a.c(uaq);
|
|
this.c = uaq;
|
|
}
|
|
}
|
|
}
|