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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.friend.a.ad;
import com.tencent.mm.sdk.platformtools.ap.a;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.ytcommon.BuildConfig;

class RegSetInfoUI$1 implements a {
    final /* synthetic */ RegSetInfoUI gHM;

    RegSetInfoUI$1(RegSetInfoUI regSetInfoUI) {
        this.gHM = regSetInfoUI;
    }

    public final boolean BI() {
        String str;
        AppMethodBeat.i(125507);
        String trim = RegSetInfoUI.a(this.gHM).getText().toString().trim();
        String trim2 = RegSetInfoUI.b(this.gHM).getText().toString().trim();
        if (bo.isNullOrNil(trim) && !bo.isNullOrNil(trim2)) {
            trim = trim2.length() > 5 ? trim2.substring(0, 5) : trim2;
        }
        if (bo.isNullOrNil(trim) || !bo.isNullOrNil(trim2)) {
            str = trim2;
        } else {
            str = trim;
        }
        if (!bo.isNullOrNil(trim) && RegSetInfoUI.c(this.gHM) && RegSetInfoUI.d(this.gHM)) {
            int e = RegSetInfoUI.e(this.gHM);
            String f = RegSetInfoUI.f(this.gHM);
            g.Rg().a(429, this.gHM);
            g.Rg().a(new ad(f, RegSetInfoUI.g(this.gHM), e, str, trim, BuildConfig.FLAVOR, BuildConfig.FLAVOR), 0);
            RegSetInfoUI.h(this.gHM).setVisibility(0);
        }
        AppMethodBeat.o(125507);
        return false;
    }
}
