32 lines
1.1 KiB
Java
32 lines
1.1 KiB
Java
package c.i.a.g.k;
|
|
|
|
import android.view.ViewTreeObserver;
|
|
import com.google.android.material.timepicker.ClockFaceView;
|
|
import com.google.android.material.timepicker.ClockHandView;
|
|
/* compiled from: ClockFaceView */
|
|
public class b implements ViewTreeObserver.OnPreDrawListener {
|
|
public final /* synthetic */ ClockFaceView i;
|
|
|
|
public b(ClockFaceView clockFaceView) {
|
|
this.i = clockFaceView;
|
|
}
|
|
|
|
@Override // android.view.ViewTreeObserver.OnPreDrawListener
|
|
public boolean onPreDraw() {
|
|
if (!this.i.isShown()) {
|
|
return true;
|
|
}
|
|
this.i.getViewTreeObserver().removeOnPreDrawListener(this);
|
|
ClockFaceView clockFaceView = this.i;
|
|
int height = ((this.i.getHeight() / 2) - clockFaceView.l.q) - clockFaceView.f2427s;
|
|
if (height != clockFaceView.j) {
|
|
clockFaceView.j = height;
|
|
clockFaceView.a();
|
|
ClockHandView clockHandView = clockFaceView.l;
|
|
clockHandView.f2431z = clockFaceView.j;
|
|
clockHandView.invalidate();
|
|
}
|
|
return true;
|
|
}
|
|
}
|