package o; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.os.Handler; /* loaded from: classes2.dex */ public final class tuL implements SensorEventListener { C10943eTk a; public Sensor b; public Xad c; public Context d; private Handler e = new Handler(); @Override // android.hardware.SensorEventListener public final void onAccuracyChanged(Sensor sensor, int i) { } public tuL(Context context, C10943eTk c10943eTk, Xad xad) { this.d = context; this.a = c10943eTk; this.c = xad; } @Override // android.hardware.SensorEventListener public final void onSensorChanged(SensorEvent sensorEvent) { final boolean z = false; float f = sensorEvent.values[0]; if (this.a != null) { if (f <= 45.0f) { final boolean z2 = true; this.e.post(new Runnable(this, z2) { // from class: o.OlZ private tuL b; private boolean c; @Override // java.lang.Runnable public final void run() { tuL tul = this.b; tul.a.b(this.c); } { this.b = this; this.c = z2; } }); } else if (f >= 450.0f) { this.e.post(new Runnable(this, z) { // from class: o.OlZ private tuL b; private boolean c; @Override // java.lang.Runnable public final void run() { tuL tul = this.b; tul.a.b(this.c); } { this.b = this; this.c = z; } }); } } } }