正在查看: CallApp v2.226 应用的 ReferAndEarnActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CallApp v2.226 应用的 ReferAndEarnActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.callapp.contacts.widget.referandearn;
import a1.d0;
import aa.g;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.SpannableString;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.fragment.app.FragmentManager;
import com.callapp.contacts.R;
import com.callapp.contacts.activity.base.BaseActivity;
import com.callapp.contacts.databinding.ReferAndEarnLayoutBinding;
import com.callapp.contacts.manager.analytics.AnalyticsManager;
import com.callapp.contacts.manager.preferences.Prefs;
import com.callapp.contacts.model.Constants;
import com.callapp.contacts.popup.contact.DialogMessageWithTopImageNew;
import com.callapp.contacts.util.Activities;
import com.callapp.contacts.util.ThemeUtils;
import com.callapp.contacts.util.ViewUtils;
import com.callapp.contacts.widget.referandearn.ReferAndEarnTrophyView;
import com.callapp.contacts.widget.referandearn.ShareCallAppDialogFragment;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 \u00122\u00020\u0001:\u0001\u0012B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0019\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014¢\u0006\u0004\b\u0007\u0010\bJ\u000f\u0010\n\u001a\u00020\tH\u0014¢\u0006\u0004\b\n\u0010\u000bJ\u000f\u0010\r\u001a\u00020\fH\u0016¢\u0006\u0004\b\r\u0010\u000eR\u0016\u0010\u0010\u001a\u00020\u000f8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u0010\u0010\u0011¨\u0006\u0013"}, d2 = {"Lcom/callapp/contacts/widget/referandearn/ReferAndEarnActivity;", "Lcom/callapp/contacts/activity/base/BaseActivity;", "<init>", "()V", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "(Landroid/os/Bundle;)V", "", "getLayoutResourceId", "()I", "Li5/a;", "getViewBinder", "()Li5/a;", "Lcom/callapp/contacts/databinding/ReferAndEarnLayoutBinding;", "binding", "Lcom/callapp/contacts/databinding/ReferAndEarnLayoutBinding;", "Companion", "callapp-client_playRelease"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class ReferAndEarnActivity extends BaseActivity {
@NotNull
public static final String EXTRA_ENTRY_POINT = "EXTRA_ENTRY_POINT";
private ReferAndEarnLayoutBinding binding;
public static final void onCreate$lambda$1(String str, ReferAndEarnActivity referAndEarnActivity, View view) {
ShareCallAppDialogFragment.Companion companion = ShareCallAppDialogFragment.i;
Intrinsics.c(str);
companion.getClass();
ShareCallAppDialogFragment.Companion.a(1, null, str).show(referAndEarnActivity.getSupportFragmentManager(), companion.getTAG());
AnalyticsManager.get().o(Constants.REFER_AND_EARN, "ClickMoreGifts");
}
@Override
public int getLayoutResourceId() {
return 0;
}
@Override
@NotNull
public i5.a getViewBinder() {
ReferAndEarnLayoutBinding referAndEarnLayoutBinding = this.binding;
if (referAndEarnLayoutBinding != null) {
return referAndEarnLayoutBinding;
}
Intrinsics.l("binding");
throw null;
}
@Override
public void onCreate(Bundle savedInstanceState) {
this.binding = ReferAndEarnLayoutBinding.a(getLayoutInflater());
super.onCreate(savedInstanceState);
FragmentManager supportFragmentManager = getSupportFragmentManager();
androidx.fragment.app.a f = d0.f(supportFragmentManager, supportFragmentManager);
ReferAndEarnTrophyView.Companion companion = ReferAndEarnTrophyView.d;
ReferAndEarnTrophyView.TrophyViewType trophyViewType = ReferAndEarnTrophyView.TrophyViewType.EXPENDED;
companion.getClass();
Intrinsics.checkNotNullParameter(trophyViewType, "trophyViewType");
ReferAndEarnTrophyView referAndEarnTrophyView = new ReferAndEarnTrophyView();
Bundle bundle = new Bundle();
bundle.putString("extra_trophy_view", trophyViewType.name());
referAndEarnTrophyView.setArguments(bundle);
f.i(R.id.referAndEarnTrophyContainerView, referAndEarnTrophyView, (String) null);
f.d();
FragmentManager supportFragmentManager2 = getSupportFragmentManager();
supportFragmentManager2.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager2);
aVar.i(R.id.inviteFragmentContainerView, new ReferAndEarnFragment(), (String) null);
aVar.d();
ActionBar supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.w("");
Drawable i = ViewUtils.i(R.drawable.ic_top_bar_back, Integer.valueOf(ThemeUtils.getColor(R.color.icon)));
i.setAutoMirrored(true);
supportActionBar.u(i);
supportActionBar.r(true);
supportActionBar.o(new ColorDrawable(ThemeUtils.getColor(R.color.background)));
}
ReferAndEarnLayoutBinding referAndEarnLayoutBinding = this.binding;
if (referAndEarnLayoutBinding == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding.b.c.setBackgroundColor(ThemeUtils.isThemeLight() ? ThemeUtils.getColor(R.color.refer_and_earn_header_light) : ThemeUtils.getColor(R.color.refer_and_earn_header_dark));
DialogMessageWithTopImageNew.Companion companion2 = DialogMessageWithTopImageNew.b;
ReferAndEarnLayoutBinding referAndEarnLayoutBinding2 = this.binding;
if (referAndEarnLayoutBinding2 == null) {
Intrinsics.l("binding");
throw null;
}
TextView textView = referAndEarnLayoutBinding2.b.b;
int color = ThemeUtils.getColor(R.color.vonage_color);
int color2 = ThemeUtils.getColor(2131101228);
DialogMessageWithTopImageNew.Companion.b(companion2, textView, Integer.valueOf(color), Integer.valueOf(ThemeUtils.getColor(R.color.vonage_color)), 2, Integer.valueOf(color2), new SpannableString(Activities.getString(R.string.refer_and_earn_more)));
String string = Activities.getString(R.string.refer_and_earn_store_lock);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
String string2 = Activities.getString(R.string.refer_and_earn_store_unlock_description);
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
if (Prefs.S2.get().booleanValue() && Prefs.Z2.get().booleanValue()) {
string = Activities.getString(R.string.refer_and_earn_contributor);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
string2 = Activities.getString(R.string.refer_and_earn_contributor_description);
Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
}
ReferAndEarnLayoutBinding referAndEarnLayoutBinding3 = this.binding;
if (referAndEarnLayoutBinding3 == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding3.b.e.setText(string);
ReferAndEarnLayoutBinding referAndEarnLayoutBinding4 = this.binding;
if (referAndEarnLayoutBinding4 == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding4.b.e.setTextColor(ThemeUtils.getColor(R.color.text_color));
ReferAndEarnLayoutBinding referAndEarnLayoutBinding5 = this.binding;
if (referAndEarnLayoutBinding5 == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding5.b.d.setText(string2);
ReferAndEarnLayoutBinding referAndEarnLayoutBinding6 = this.binding;
if (referAndEarnLayoutBinding6 == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding6.b.d.setTextColor(ThemeUtils.getColor(R.color.text_color));
String stringExtra = getIntent().hasExtra(EXTRA_ENTRY_POINT) ? getIntent().getStringExtra(EXTRA_ENTRY_POINT) : "ref";
ReferAndEarnLayoutBinding referAndEarnLayoutBinding7 = this.binding;
if (referAndEarnLayoutBinding7 == null) {
Intrinsics.l("binding");
throw null;
}
referAndEarnLayoutBinding7.b.b.setOnClickListener(new g(17, stringExtra, this));
AnalyticsManager.get().t(Constants.INVITE_SCREEN, stringExtra);
}
}