package com.google.android.play.core.e.b;

import android.content.Intent;
import android.net.Uri;
import com.bytedance.covode.number.Covode;
import com.google.android.play.core.b.r;
import com.google.android.play.core.e.f;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

public final /* synthetic */ class d implements Runnable {
    public final a LIZ;
    public final List LIZIZ;
    public final List LIZJ;

    static {
        Covode.recordClassIndex(44364);
    }

    public d(a aVar, List list, List list2) {
        this.LIZ = aVar;
        this.LIZIZ = list;
        this.LIZJ = list2;
    }

    public final void run() {
        a aVar = this.LIZ;
        List<File> list = this.LIZIZ;
        List list2 = this.LIZJ;
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        for (File file : list) {
            String LIZ2 = r.LIZ(file);
            Uri fromFile = Uri.fromFile(file);
            Intent intent = new Intent("android.intent.action.VIEW");
            intent.setDataAndType(fromFile, aVar.LIZIZ.getContentResolver().getType(fromFile));
            intent.addFlags(1);
            intent.putExtra("module_name", a.LIZ(LIZ2));
            intent.putExtra("split_id", LIZ2);
            arrayList.add(intent);
            arrayList2.add(a.LIZ(r.LIZ(file)));
        }
        f LIZLLL = aVar.LIZLLL();
        if (LIZLLL != null) {
            aVar.LJ.execute(new i(aVar, LIZLLL.LJ(), arrayList, arrayList2, list2));
        }
    }
}
