package com.ss.android.ugc.aweme.i18n.musically.cut;

import X.95y;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import java.io.File;

public class AvatarCutActivity$7 implements Runnable {
    public final /* synthetic */ AvatarCutActivity LIZ;

    static {
        Covode.recordClassIndex(83480);
    }

    public final void run() {
        MethodCollector.i(11667);
        if (this.LIZ.LJIJI != null) {
            try {
                this.LIZ.LJIJI.join();
            } catch (InterruptedException unused) {
            }
        }
        if (!this.LIZ.isActive()) {
            MethodCollector.o(11667);
            return;
        }
        if (this.LIZ.LJIJJ > 0) {
            long currentTimeMillis = System.currentTimeMillis() - this.LIZ.LJIJJ;
            95y.LIZ("aweme_movie_publish", "crop_time", (float) currentTimeMillis);
            if (!TextUtils.isEmpty(this.LIZ.LJIILLIIL)) {
                new File(this.LIZ.LJIILLIIL);
                if (currentTimeMillis <= 0) {
                    MethodCollector.o(11667);
                    return;
                }
            }
            this.LIZ.LJIJJ = -1;
        }
        this.LIZ.LIZJ();
        MethodCollector.o(11667);
    }

    public AvatarCutActivity$7(AvatarCutActivity avatarCutActivity) {
        this.LIZ = avatarCutActivity;
    }
}
