package com.tencent.mm.plugin.mmsight.segment;

import android.animation.ObjectAnimator;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class RecyclerThumbSeekBar$a implements Runnable {
    private Bitmap bitmap;
    private ImageView cAw;
    private RecyclerThumbSeekBar$b oyA;
    final /* synthetic */ RecyclerThumbSeekBar oyy;

    RecyclerThumbSeekBar$a(RecyclerThumbSeekBar recyclerThumbSeekBar, Bitmap bitmap, ImageView imageView, RecyclerThumbSeekBar$b recyclerThumbSeekBar$b) {
        this.oyy = recyclerThumbSeekBar;
        this.bitmap = bitmap;
        this.cAw = imageView;
        this.oyA = recyclerThumbSeekBar$b;
    }

    public final void run() {
        boolean z = true;
        AppMethodBeat.i(54985);
        if (this.bitmap == null || this.bitmap.isRecycled()) {
            String str = "RecyclerThumbSeekBar";
            String str2 = "bitmap is null %b in DrawBitmapOnViewTask";
            Object[] objArr = new Object[1];
            if (this.bitmap != null) {
                z = false;
            }
            objArr[0] = Boolean.valueOf(z);
            ab.i(str, str2, objArr);
            AppMethodBeat.o(54985);
        } else if (this.oyA == null || this.oyA.fIa || this.cAw == null) {
            ab.i("RecyclerThumbSeekBar", "bitmap in DrawBitmapOnViewTask");
            AppMethodBeat.o(54985);
        } else {
            ImageView imageView = this.cAw;
            imageView.setTag(null);
            ObjectAnimator.ofInt(imageView, "imageAlpha", new int[]{50, 255}).setDuration(200).start();
            imageView.setImageBitmap(this.bitmap);
            AppMethodBeat.o(54985);
        }
    }
}
