package com.tencent.mm.plugin.fav.ui.detail;

import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.compatible.util.f;
import com.tencent.mm.plugin.fav.a.b;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.h;

class FavoriteFileDetailUI$14 implements OnClickListener {
    final /* synthetic */ FavoriteFileDetailUI mlX;

    FavoriteFileDetailUI$14(FavoriteFileDetailUI favoriteFileDetailUI) {
        this.mlX = favoriteFileDetailUI;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(74336);
        ab.i("MicroMsg.FavoriteFileDetailUI", "click item favid %d, localid %d, itemstatus %d", new Object[]{Integer.valueOf(FavoriteFileDetailUI.b(this.mlX).field_id), Long.valueOf(FavoriteFileDetailUI.b(this.mlX).field_localId), Integer.valueOf(FavoriteFileDetailUI.b(this.mlX).field_itemStatus)});
        if (f.Mn()) {
            if (FavoriteFileDetailUI.b(this.mlX).bux() || bo.isNullOrNil(FavoriteFileDetailUI.a(this.mlX).wfZ)) {
                b.l(FavoriteFileDetailUI.b(this.mlX));
            } else if (FavoriteFileDetailUI.f(this.mlX)) {
                FavoriteFileDetailUI.b(this.mlX).field_itemStatus = 7;
                b.b(FavoriteFileDetailUI.a(this.mlX), 18, -1);
            } else {
                b.a(FavoriteFileDetailUI.b(this.mlX), FavoriteFileDetailUI.a(this.mlX), true);
            }
            FavoriteFileDetailUI.g(this.mlX);
            AppMethodBeat.o(74336);
            return;
        }
        h.g(this.mlX.mController.ylL, 2131299671, 2131299589);
        AppMethodBeat.o(74336);
    }
}
