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

import android.view.View;
import android.view.View.OnFocusChangeListener;
import com.tencent.matrix.trace.core.AppMethodBeat;

class MailAddrsViewControl$7 implements OnFocusChangeListener {
    final /* synthetic */ MailAddrsViewControl pyG;

    MailAddrsViewControl$7(MailAddrsViewControl mailAddrsViewControl) {
        this.pyG = mailAddrsViewControl;
    }

    public final void onFocusChange(View view, boolean z) {
        AppMethodBeat.i(68344);
        if (MailAddrsViewControl.g(this.pyG) != null) {
            MailAddrsViewControl.g(this.pyG).jW(z);
        }
        String obj = this.pyG.pyz.getEditableText().toString();
        if (!z && obj.trim().length() > 0) {
            MailAddrsViewControl.a(this.pyG, obj, false);
        }
        if (MailAddrsViewControl.c(this.pyG) != null && MailAddrsViewControl.c(this.pyG).isSelected()) {
            MailAddrsViewControl.c(this.pyG).setSelected(z);
            MailAddrsViewControl.a(this.pyG, null);
        }
        this.pyG.cdj();
        AppMethodBeat.o(68344);
    }
}
