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

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

class AddInvoiceUI$2 implements OnTouchListener {
    final /* synthetic */ AddInvoiceUI gJA;

    AddInvoiceUI$2(AddInvoiceUI addInvoiceUI) {
        this.gJA = addInvoiceUI;
    }

    public final boolean onTouch(View view, MotionEvent motionEvent) {
        AppMethodBeat.i(16788);
        if (motionEvent.getAction() == 0) {
            AppMethodBeat.o(16788);
            return true;
        } else if (motionEvent.getAction() != 1) {
            AppMethodBeat.o(16788);
            return false;
        } else {
            if (!AddInvoiceUI.b(this.gJA).isActivated()) {
                AddInvoiceUI.b(this.gJA).setActivated(true);
            }
            if (AddInvoiceUI.b(this.gJA).isActivated()) {
                AddInvoiceUI.a(this.gJA).setActivated(false);
                AddInvoiceUI.c(this.gJA).type = "1";
            }
            AddInvoiceUI.d(this.gJA);
            AppMethodBeat.o(16788);
            return true;
        }
    }
}
