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

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.expt.d.a;
import com.tencent.mm.pointers.PBool;
import com.tencent.mm.ui.MMActivity;
import com.tencent.ytcommon.BuildConfig;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;

public class ExptDebugUI extends MMActivity {
    private Button grC;
    private Button gzI;
    private TextView lOS;
    private Button lOT;
    private Button lOU;
    private TextView lOV;
    private TextView lOW;
    private TextView lOX;
    private TextView lOY;
    private TextView lOZ;
    private EditText lPa;
    private Button lPb;
    private int lPc = 0;

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        AppMethodBeat.at(this, z);
    }

    public void onCreate(Bundle bundle) {
        AppMethodBeat.i(73639);
        super.onCreate(bundle);
        setMMTitle("Expt debug ui");
        setBackBtn(new 1(this));
        this.lOS = (TextView) findViewById(2131820998);
        this.grC = (Button) findViewById(2131820999);
        this.grC.setOnClickListener(new 2(this));
        this.lPa = (EditText) findViewById(2131821008);
        this.lPb = (Button) findViewById(2131821009);
        this.lPb.setOnClickListener(new 3(this));
        this.lOT = (Button) findViewById(2131821000);
        this.lOT.setOnClickListener(new 4(this));
        this.lOU = (Button) findViewById(2131821001);
        this.lOU.setOnClickListener(new 5(this));
        this.gzI = (Button) findViewById(2131821002);
        this.gzI.setOnClickListener(new OnClickListener() {
            public final void onClick(View view) {
                AppMethodBeat.i(73638);
                a uZ = com.tencent.mm.plugin.expt.b.a.bqR().uZ(ExptDebugUI.this.lPc);
                if (uZ != null && uZ.bro()) {
                    LinkedList linkedList = new LinkedList();
                    linkedList.add(Integer.valueOf(ExptDebugUI.this.lPc));
                    com.tencent.mm.plugin.expt.b.a.bqR();
                    com.tencent.mm.plugin.expt.b.a.a(null, null, linkedList);
                }
                ArrayList arrayList = new ArrayList();
                arrayList.add(Integer.valueOf(ExptDebugUI.this.lPc));
                ExptDebugUI.this.lOZ.setText(" del :" + ExptDebugUI.this.lPc + " " + (com.tencent.mm.plugin.expt.b.a.bqR().bB(arrayList) > 0));
                AppMethodBeat.o(73638);
            }
        });
        this.lOV = (TextView) findViewById(2131821003);
        this.lOW = (TextView) findViewById(2131821004);
        this.lOX = (TextView) findViewById(2131821005);
        this.lOY = (TextView) findViewById(2131821006);
        this.lOZ = (TextView) findViewById(2131821007);
        AppMethodBeat.o(73639);
    }

    public final int getLayoutId() {
        return 2130968625;
    }

    static /* synthetic */ void a(ExptDebugUI exptDebugUI, int i) {
        AppMethodBeat.i(73640);
        exptDebugUI.lPc = i;
        a uZ = com.tencent.mm.plugin.expt.b.a.bqR().uZ(exptDebugUI.lPc);
        if (uZ != null) {
            exptDebugUI.lOV.setText(uZ.field_exptId);
            exptDebugUI.lOW.setText(uZ.field_groupId);
            exptDebugUI.lOX.setText(uZ.field_exptSeq);
            exptDebugUI.lOY.setText(" start: " + uZ.field_startTime + " end: " + uZ.field_endTime);
        }
        HashMap a = com.tencent.mm.plugin.expt.b.a.bqR().a(exptDebugUI.lPc, false, null, new PBool());
        if (a != null) {
            exptDebugUI.lOZ.setText(" args : " + a.toString());
        }
        AppMethodBeat.o(73640);
    }

    static /* synthetic */ void b(ExptDebugUI exptDebugUI) {
        AppMethodBeat.i(73641);
        com.tencent.mm.plugin.expt.b.a.bqR().KY(exptDebugUI.lPa.getText().toString().trim());
        exptDebugUI.lPa.setText(BuildConfig.FLAVOR);
        AppMethodBeat.o(73641);
    }
}
