package o;

import android.view.ViewGroup;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class G7 implements Runnable {
    public final /* synthetic */ int l;
    public final /* synthetic */ S7 m;

    public /* synthetic */ G7(S7 s7, int i) {
        this.l = i;
        this.m = s7;
    }

    @Override // java.lang.Runnable
    public final void run() {
        ViewGroup viewGroup;
        switch (this.l) {
            case 0:
                S7 s7 = this.m;
                if ((s7.k0 & 1) != 0) {
                    s7.v(0);
                }
                if ((s7.k0 & 4096) != 0) {
                    s7.v(108);
                }
                s7.j0 = false;
                s7.k0 = 0;
                break;
            default:
                S7 s72 = this.m;
                s72.H.showAtLocation(s72.G, 55, 0, 0);
                C1698kk0 c1698kk0 = s72.J;
                if (c1698kk0 != null) {
                    c1698kk0.b();
                }
                if (!s72.K || (viewGroup = s72.L) == null || !viewGroup.isLaidOut()) {
                    s72.G.setAlpha(1.0f);
                    s72.G.setVisibility(0);
                    break;
                } else {
                    s72.G.setAlpha(0.0f);
                    C1698kk0 c1698kk0A = Oj0.a(s72.G);
                    c1698kk0A.a(1.0f);
                    s72.J = c1698kk0A;
                    c1698kk0A.d(new I7(0, this));
                    break;
                }
                break;
        }
    }
}
