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

import android.view.MenuItem;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.exdevice.h.b;
import com.tencent.mm.plugin.exdevice.ui.ExdeviceManageDeviceUI.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.base.n.d;

class ExdeviceManageDeviceUI$a$1 implements d {
    final /* synthetic */ a lBo;

    ExdeviceManageDeviceUI$a$1(a aVar) {
        this.lBo = aVar;
    }

    public final void onMMMenuItemSelected(MenuItem menuItem, int i) {
        AppMethodBeat.i(19983);
        int itemId = menuItem.getItemId();
        ab.d("MicroMsg.ExdeviceManageDeviceUI", "onMenuItemSelected, itemId(%d), count(%d).", new Object[]{Integer.valueOf(itemId), Integer.valueOf(this.lBo.getCount())});
        if (itemId < 0 || itemId >= r1) {
            AppMethodBeat.o(19983);
            return;
        }
        a.a(this.lBo, itemId);
        a.a(this.lBo, (b) a.a(this.lBo).get(itemId));
        this.lBo.notifyDataSetChanged();
        AppMethodBeat.o(19983);
    }
}
