package com.benq.platform.test;

import android.widget.TextView;
import com.benq.platform.test.ApiTestAdapter;

/* JADX INFO: loaded from: classes.dex */
final class ApiTestAdapter$ApiCallbackViewHolder$bind$2$1 extends kotlin.jvm.internal.m implements y1.l {
    final /* synthetic */ ApiTestAdapter.ApiCallbackViewHolder this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    ApiTestAdapter$ApiCallbackViewHolder$bind$2$1(ApiTestAdapter.ApiCallbackViewHolder apiCallbackViewHolder) {
        super(1);
        this.this$0 = apiCallbackViewHolder;
    }

    @Override // y1.l
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        m10invoke(((n1.l) obj).i());
        return n1.s.f5871a;
    }

    /* JADX INFO: renamed from: invoke, reason: collision with other method in class */
    public final void m10invoke(Object obj) {
        String message;
        String string;
        ApiTestAdapter.ApiCallbackViewHolder apiCallbackViewHolder = this.this$0;
        if (n1.l.g(obj)) {
            TextView textView = apiCallbackViewHolder.binding.callbackResultText;
            if (obj == null || (string = obj.toString()) == null) {
                string = "Success";
            }
            textView.append("\nUnregistered: " + string);
        }
        ApiTestAdapter.ApiCallbackViewHolder apiCallbackViewHolder2 = this.this$0;
        Throwable thD = n1.l.d(obj);
        if (thD != null) {
            TextView textView2 = apiCallbackViewHolder2.binding.callbackResultText;
            Throwable cause = thD.getCause();
            if (cause == null || (message = cause.getMessage()) == null) {
                message = thD.getMessage();
            }
            textView2.append("\nUnregister Error: " + message);
        }
    }
}
