package com.tencent.mm.plugin.appbrand.widget.desktop;

import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.widget.desktop.AppBrandDesktopView.c;
import com.tencent.mm.plugin.appbrand.widget.desktop.a.d.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class AppBrandDesktopDragView$1 implements a {
    final /* synthetic */ AppBrandDesktopDragView iWO;

    AppBrandDesktopDragView$1(AppBrandDesktopDragView appBrandDesktopDragView) {
        this.iWO = appBrandDesktopDragView;
    }

    public final Object bz(Object obj) {
        AppMethodBeat.i(133732);
        if (obj instanceof c) {
            c cVar = (c) obj;
            c cVar2 = new c(1);
            cVar2.iXW = cVar.iXW;
            cVar2.position = cVar.position;
            AppMethodBeat.o(133732);
            return cVar2;
        }
        AppMethodBeat.o(133732);
        return obj;
    }

    public final View cv(View view) {
        AppMethodBeat.i(133733);
        View findViewById = view.findViewById(2131821502);
        AppMethodBeat.o(133733);
        return findViewById;
    }

    public final float aNa() {
        AppMethodBeat.i(133734);
        float a = AppBrandDesktopDragView.a(this.iWO);
        AppMethodBeat.o(133734);
        return a;
    }

    public final float aNb() {
        AppMethodBeat.i(133735);
        float b = AppBrandDesktopDragView.b(this.iWO);
        AppMethodBeat.o(133735);
        return b;
    }

    public final void aPj() {
        AppMethodBeat.i(133736);
        ab.d("MicroMsg.AppBrandDesktopDragView", "alvinluo onInsert");
        AppBrandDesktopDragView.a(this.iWO, true);
        AppMethodBeat.o(133736);
    }

    public final void aPk() {
        AppMethodBeat.i(133737);
        ab.d("MicroMsg.AppBrandDesktopDragView", "alvinluo onCancelInsert");
        AppBrandDesktopDragView.a(this.iWO, false);
        AppMethodBeat.o(133737);
    }

    public final void f(Object obj, int i) {
        if (obj instanceof c) {
            ((c) obj).position = i;
        }
    }

    public final boolean x(Object obj, Object obj2) {
        AppMethodBeat.i(133738);
        if (obj2 == null || obj == null) {
            AppMethodBeat.o(133738);
            return false;
        }
        if ((obj2 instanceof c) && (obj instanceof c)) {
            boolean z;
            c cVar = (c) obj2;
            c cVar2 = (c) obj;
            if (cVar.iXW == null || cVar2.iXW == null || bo.isNullOrNil(cVar.iXW.username) || bo.isNullOrNil(cVar2.iXW.username) || !cVar2.iXW.e(cVar.iXW)) {
                z = false;
            } else {
                z = true;
            }
            if (z) {
                AppMethodBeat.o(133738);
                return true;
            }
        }
        AppMethodBeat.o(133738);
        return false;
    }
}
