package com.tencent.mm.plugin.sns.ui;

import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class OfflineVideoView$4 implements Runnable {
    final /* synthetic */ boolean klz;
    final /* synthetic */ OfflineVideoView rld;
    final /* synthetic */ float rle;

    OfflineVideoView$4(OfflineVideoView offlineVideoView, boolean z, float f) {
        this.rld = offlineVideoView;
        this.klz = z;
        this.rle = f;
    }

    public final void run() {
        AppMethodBeat.i(38363);
        ab.i("MicroMsg.OfflineVideoView", "%d switch video model isVideoPlay %b %f", new Object[]{Integer.valueOf(this.rld.hashCode()), Boolean.valueOf(this.klz), Float.valueOf(this.rle)});
        View view = (View) OfflineVideoView.b(this.rld);
        if (this.klz) {
            view.setAlpha(this.rle);
            view.setVisibility(0);
            OfflineVideoView.c(this.rld).setVisibility(0);
            OfflineVideoView.c(this.rld).setAlpha(this.rle);
            if (((double) this.rle) >= 1.0d) {
                OfflineVideoView.a(this.rld).setVisibility(8);
                AppMethodBeat.o(38363);
                return;
            }
        }
        view.setVisibility(0);
        OfflineVideoView.c(this.rld).setVisibility(0);
        OfflineVideoView.c(this.rld).setAlpha(0.0f);
        OfflineVideoView.a(this.rld).setVisibility(0);
        AppMethodBeat.o(38363);
    }
}
