what-the-bank/sources/o/C15906jXf.java

81 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import o.C15906jXf;
/* renamed from: o.jXf, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C15906jXf {
public final Context c;
boolean e;
private Runnable g;
public boolean d = false;
public final BroadcastReceiver b = new RVV(this, 0);
Handler a = new Handler();
public C15906jXf(Context context, Runnable runnable) {
this.c = context;
this.g = runnable;
}
public final void e() {
this.a.removeCallbacksAndMessages(null);
if (this.e) {
this.a.postDelayed(this.g, 300000L);
}
}
public final void d() {
this.a.removeCallbacksAndMessages(null);
if (this.d) {
this.c.unregisterReceiver(this.b);
this.d = false;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.jXf$RVV */
/* loaded from: classes2.dex */
public final class RVV extends BroadcastReceiver {
final C15906jXf e;
private RVV(C15906jXf c15906jXf) {
this.e = c15906jXf;
}
/* synthetic */ RVV(C15906jXf c15906jXf, byte b) {
this(c15906jXf);
}
@Override // android.content.BroadcastReceiver
public final void onReceive(Context context, Intent intent) {
if ("android.intent.action.BATTERY_CHANGED".equals(intent.getAction())) {
final boolean z = intent.getIntExtra("plugged", -1) <= 0;
this.e.a.post(new Runnable(this, z) { // from class: o.yCT
private boolean a;
private C15906jXf.RVV e;
@Override // java.lang.Runnable
public final void run() {
C15906jXf.RVV rvv = this.e;
boolean z2 = this.a;
C15906jXf c15906jXf = rvv.e;
c15906jXf.e = z2;
if (c15906jXf.d) {
c15906jXf.e();
}
}
{
this.e = this;
this.a = z;
}
});
}
}
}
}