Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 d.java 源代码,内容仅作参考
package fp;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import by.kufar.re.ui.widget.webview.WebViewActivity;
import by.kufar.vas.limits.R$id;
import by.kufar.vas.limits.R$layout;
import by.kufar.vas.limits.ui.adapter.LimitPackagesController;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import fp.a;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.s;
import kotlin.jvm.internal.u;
import ym.LimitPackageType;
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\b\u0007\u0018\u0000 \u001d2\u00020\u0001:\u0001\fB'\b\u0007\u0012\u0006\u0010\u0016\u001a\u00020\u0015\u0012\n\b\u0002\u0010\u0018\u001a\u0004\u0018\u00010\u0017\u0012\b\b\u0002\u0010\u001a\u001a\u00020\u0019¢\u0006\u0004\b\u001b\u0010\u001cJ\u0016\u0010\u0006\u001a\u00020\u00052\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0007J\u0010\u0010\b\u001a\u00020\u00052\u0006\u0010\u0007\u001a\u00020\u0003H\u0007J\u0012\u0010\u000b\u001a\u00020\u00052\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0007J\b\u0010\f\u001a\u00020\u0005H\u0002J\b\u0010\r\u001a\u00020\u0005H\u0002R\u0016\u0010\u0010\u001a\u00020\u000e8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\r\u0010\u000fR\u0014\u0010\u0014\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0012\u0010\u0013¨\u0006\u001e"}, d2 = {"Lfp/d;", "Landroid/widget/FrameLayout;", "", "Lym/a;", "limits", "", "setLimits", "selectedLimitPackage", "setSelectedPackage", "Lfp/a$a;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "setOnLimitPackageSelectedListener", "a", "b", "Landroidx/recyclerview/widget/RecyclerView;", "Landroidx/recyclerview/widget/RecyclerView;", "recyclerView", "Lby/kufar/vas/limits/ui/adapter/LimitPackagesController;", "c", "Lby/kufar/vas/limits/ui/adapter/LimitPackagesController;", "limitsController", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "", "defStyleAttr", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "d", "vas-limits-widget_googleRelease"}, k = 1, mv = {1, 9, 0})
public final class d extends FrameLayout {
public RecyclerView recyclerView;
public final LimitPackagesController limitsController;
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
public static final class b extends u implements Function0<Unit> {
public b() {
super(0);
}
@Override
public Unit invoke() {
invoke2();
return Unit.f82492a;
}
public final void invoke2() {
Context context = d.this.getContext();
WebViewActivity.Companion companion = WebViewActivity.INSTANCE;
Context context2 = d.this.getContext();
s.i(context2, "getContext(...)");
context.startActivity(WebViewActivity.Companion.b(companion, context2, "https://www.kufar.by/limit_besplatnyh_razmeshchenij", false, null, false, false, 60, null));
}
}
public d(Context context) {
this(context, null, 0, 6, null);
s.j(context, "context");
}
public final void a() {
LayoutInflater.from(getContext()).inflate(R$layout.f19793c, (ViewGroup) this, true);
View findViewById = findViewById(R$id.f19789g);
s.i(findViewById, "findViewById(...)");
this.recyclerView = (RecyclerView) findViewById;
}
public final void b() {
RecyclerView recyclerView = this.recyclerView;
RecyclerView recyclerView2 = null;
if (recyclerView == null) {
s.B("recyclerView");
recyclerView = null;
}
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
RecyclerView recyclerView3 = this.recyclerView;
if (recyclerView3 == null) {
s.B("recyclerView");
} else {
recyclerView2 = recyclerView3;
}
recyclerView2.setAdapter(this.limitsController.getAdapter());
this.limitsController.setLimitsInfoClickListener(new b());
}
public final void setLimits(List<LimitPackageType> limits) {
s.j(limits, "limits");
this.limitsController.setLimitPackages(limits);
}
public final void setOnLimitPackageSelectedListener(a.InterfaceC0977a listener) {
this.limitsController.setLimitSelectedListener(listener);
}
public final void setSelectedPackage(LimitPackageType selectedLimitPackage) {
s.j(selectedLimitPackage, "selectedLimitPackage");
this.limitsController.setCheckedLimit(selectedLimitPackage);
}
public d(Context context, AttributeSet attributeSet, int i11, int i12, DefaultConstructorMarker defaultConstructorMarker) {
this(context, (i12 & 2) != 0 ? null : attributeSet, (i12 & 4) != 0 ? 0 : i11);
}
public d(Context context, AttributeSet attributeSet, int i11) {
super(context, attributeSet, i11);
s.j(context, "context");
this.limitsController = new LimitPackagesController();
a();
b();
}
}