正在查看: Mint v5.7.3 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.htmedia.mint.storydatailpage.viewholder;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import com.htmedia.mint.AppController;
import com.htmedia.mint.htsubscription.WebEngageAnalytices;
import com.htmedia.mint.piano.PianoAppConstant;
import com.htmedia.mint.pojo.Content;
import com.htmedia.mint.pojo.ListElement;
import com.htmedia.mint.pojo.config.mobilepaywall.Items;
import com.htmedia.mint.pojo.config.mobilepaywall.Mode;
import com.htmedia.mint.pojo.config.mobilepaywall.PaywallTypes;
import com.htmedia.mint.ui.activity.DeepLinkActivity;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import x4.az;
public class k extends RecyclerView.ViewHolder {
Activity a;
az b;
LayoutInflater c;
public k(Activity activity, az azVar, LayoutInflater layoutInflater) {
super(azVar.getRoot());
this.b = azVar;
this.a = activity;
this.c = layoutInflater;
}
public void p(Content content, Items items, Activity activity, View view) {
WebEngageAnalytices.trackClickEvents(((Object) this.b.a.getText()) + BuildConfig.FLAVOR, (String) null, "In Article Banner Clicked", content, (String) null, "Organic", BuildConfig.FLAVOR);
String androidCtaDeeplink = !TextUtils.isEmpty(items.getAndroidCtaDeeplink()) ? items.getAndroidCtaDeeplink() : "https://www.livemint.com/";
Intent intent = new Intent(activity, (Class<?>) DeepLinkActivity.class);
intent.setFlags(603979776);
intent.putExtra("APPSFLYER_DEEPLINK_URL", androidCtaDeeplink);
activity.startActivity(intent);
activity.finish();
}
public void o(final Activity activity, int i, int i2, RecyclerView.ViewHolder viewHolder, ListElement listElement, final Content content, RecyclerView.Adapter adapter) {
PaywallTypes paywallTypes = content != null ? content.getPaywallTypes() : null;
if (paywallTypes != null) {
PianoAppConstant.PIANO_STORY_TYPES pianoStoryTypes = content != null ? content.getPianoStoryTypes() : null;
if (pianoStoryTypes == null || pianoStoryTypes != PianoAppConstant.PIANO_STORY_TYPES.ARTICLE_IN_TEMPLATE) {
return;
}
final Items items = paywallTypes.getItems();
Mode dayMode = paywallTypes.getDayMode();
if (AppController.j().E()) {
dayMode = paywallTypes.getNightMode();
}
if (items == null || dayMode == null) {
return;
}
this.b.e(items);
this.b.f(dayMode);
this.b.a.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
k.this.p(content, items, activity, view);
}
});
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor(dayMode.getCtaBGColor()));
gradientDrawable.setCornerRadius(com.htmedia.mint.utils.f0.a0(25));
this.b.a.setBackground(gradientDrawable);
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(Color.parseColor(dayMode.getAndroidBgColor()));
gradientDrawable2.setCornerRadius(com.htmedia.mint.utils.f0.a0(5));
this.b.getRoot().setBackground(gradientDrawable2);
}
}
}