package com.vinfast.companion.main.widget;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\b\n\u0018\u00002\u00020\u0001J\u000f\u0010\u0003\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"com/vinfast/companion/main/widget/VehicleInfoView$waitForLayout$1", "Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "onGlobalLayout", "()V", "main_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class VehicleInfoView$waitForLayout$1 implements android.view.ViewTreeObserver.OnGlobalLayoutListener {
    final /* synthetic */ android.view.ViewTreeObserver a;
    final /* synthetic */ kotlin.jvm.functions.Function0 b;
    final /* synthetic */ android.view.View c;

    @Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
    public void onGlobalLayout() {
        if (!this.a.isAlive()) {
            this.c.getViewTreeObserver().removeOnGlobalLayoutListener(this);
        } else {
            this.a.removeOnGlobalLayoutListener(this);
            this.b.invoke();
        }
    }
}
