107 lines
3.5 KiB
Java
107 lines
3.5 KiB
Java
package com.scb.phone.view.custom.easycash;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import com.scb.phone.view.custom.easycash.CustomDeltaSliderPressed;
|
|
import java.util.concurrent.TimeUnit;
|
|
import o.AbstractC13163fSk;
|
|
import o.C13417fZt;
|
|
import o.C6583cXR;
|
|
import o.fRR;
|
|
import o.fSJ;
|
|
import o.fSQ;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class CustomDeltaSliderPressed extends CustomDeltaSlider {
|
|
private fSJ e;
|
|
|
|
public CustomDeltaSliderPressed(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public CustomDeltaSliderPressed(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.custom.easycash.CustomDeltaSlider
|
|
protected final void c(final int i) {
|
|
this.increaseButton.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eCS
|
|
private CustomDeltaSliderPressed a;
|
|
private int e;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
CustomDeltaSliderPressed.d(this.a, this.e);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
this.e = i;
|
|
}
|
|
});
|
|
this.decreaseButton.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eCU
|
|
private CustomDeltaSliderPressed c;
|
|
private int e;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
CustomDeltaSliderPressed.b(this.c, this.e);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.e = i;
|
|
}
|
|
});
|
|
}
|
|
|
|
private void d() {
|
|
this.e = AbstractC13163fSk.timer(2000L, TimeUnit.MILLISECONDS, C13417fZt.c()).observeOn(fRR.e()).subscribe(new fSQ(this) { // from class: o.eCO
|
|
private CustomDeltaSliderPressed c;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
CustomDeltaSliderPressed customDeltaSliderPressed = this.c;
|
|
customDeltaSliderPressed.a.b(customDeltaSliderPressed.c);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onDetachedFromWindow() {
|
|
super.onDetachedFromWindow();
|
|
fSJ fsj = this.e;
|
|
if (fsj == null || fsj.isDisposed()) {
|
|
return;
|
|
}
|
|
this.e.dispose();
|
|
}
|
|
|
|
public static /* synthetic */ void b(CustomDeltaSliderPressed customDeltaSliderPressed, int i) {
|
|
fSJ fsj = customDeltaSliderPressed.e;
|
|
if (fsj != null && !fsj.isDisposed()) {
|
|
customDeltaSliderPressed.e.dispose();
|
|
}
|
|
customDeltaSliderPressed.setNewActualValue(customDeltaSliderPressed.c() - i);
|
|
C6583cXR.d(customDeltaSliderPressed);
|
|
customDeltaSliderPressed.etCustomAmount.clearFocus();
|
|
customDeltaSliderPressed.d();
|
|
}
|
|
|
|
public static /* synthetic */ void d(CustomDeltaSliderPressed customDeltaSliderPressed, int i) {
|
|
fSJ fsj = customDeltaSliderPressed.e;
|
|
if (fsj != null && !fsj.isDisposed()) {
|
|
customDeltaSliderPressed.e.dispose();
|
|
}
|
|
customDeltaSliderPressed.setNewActualValue(customDeltaSliderPressed.c() + i);
|
|
C6583cXR.d(customDeltaSliderPressed);
|
|
customDeltaSliderPressed.etCustomAmount.clearFocus();
|
|
customDeltaSliderPressed.d();
|
|
}
|
|
}
|