what-the-bank/sources/com/scb/phone/view/custom/KnockKnockView.java

59 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom;
import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/* loaded from: classes5.dex */
public class KnockKnockView extends View {
IeS d;
private GestureDetector e;
/* loaded from: classes5.dex */
public interface IeS {
}
public KnockKnockView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.e = new GestureDetector(context, new RVV(this, (byte) 0));
}
@Override // android.view.View
public boolean onTouchEvent(MotionEvent motionEvent) {
return this.e.onTouchEvent(motionEvent);
}
/* loaded from: classes5.dex */
class RVV extends GestureDetector.SimpleOnGestureListener {
private KnockKnockView c;
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
public final boolean onDown(MotionEvent motionEvent) {
return true;
}
private RVV(KnockKnockView knockKnockView) {
this.c = knockKnockView;
}
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener
public final boolean onDoubleTap(MotionEvent motionEvent) {
if (this.c.d == null) {
return true;
}
IeS ieS = this.c.d;
return true;
}
/* synthetic */ RVV(KnockKnockView knockKnockView, byte b) {
this(knockKnockView);
}
}
public void setOnKnockListener(IeS ieS) {
this.d = ieS;
}
}