package com.tencent.mm.plugin.webview.ui.tools;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.sdk.platformtools.bo;
import java.util.ArrayList;

class OpenFileChooserUI$6 implements Runnable {
    final /* synthetic */ String bSt;
    final /* synthetic */ OpenFileChooserUI usf;

    OpenFileChooserUI$6(OpenFileChooserUI openFileChooserUI, String str) {
        this.usf = openFileChooserUI;
        this.bSt = str;
    }

    public final void run() {
        AppMethodBeat.i(7454);
        ArrayList arrayList = new ArrayList();
        int a = OpenFileChooserUI.a(this.usf, this.bSt);
        if (a == -50002) {
            al.d(new 1(this));
            AppMethodBeat.o(7454);
            return;
        }
        String s;
        String d;
        if (a == -50006) {
            s = OpenFileChooserUI.s(this.bSt, arrayList);
            OpenFileChooserUI.b(this.usf, this.bSt);
            d = OpenFileChooserUI.d(this.usf);
        } else if (a == 1) {
            s = OpenFileChooserUI.c(this.usf, this.bSt);
            OpenFileChooserUI.b(this.usf, this.bSt);
            d = OpenFileChooserUI.d(this.usf);
            if (bo.isNullOrNil(s) && OpenFileChooserUI.b(this.usf) == 7 && OpenFileChooserUI.c(this.usf) == 2) {
                al.d(new 2(this));
                AppMethodBeat.o(7454);
                return;
            }
        } else {
            al.d(new 3(this));
            AppMethodBeat.o(7454);
            return;
        }
        if (bo.isNullOrNil(s)) {
            al.d(new 5(this));
            AppMethodBeat.o(7454);
            return;
        }
        al.d(new 4(this, s, d));
        AppMethodBeat.o(7454);
    }
}
