正在查看: BetterTogether v3.0.0 应用的 MainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 MainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bettertogether.screens.main;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.b0;
import androidx.fragment.app.c1;
import androidx.fragment.app.w0;
import androidx.lifecycle.w;
import androidx.viewpager.widget.ViewPager;
import aq.i;
import cf.g;
import com.bettertogether.cache.preferences.PreferenceData;
import com.bettertogether.remote.model.common.GroupData;
import com.bettertogether.remote.model.common.MacroApiParams;
import com.bettertogether.remote.model.common.UserData;
import com.bettertogether.screens.contact.ContactUsActivity;
import com.bettertogether.screens.dashboard.DashboardFragment;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.MobileAds;
import com.google.firebase.messaging.e;
import com.onesignal.y3;
import dd.s;
import dd.t;
import dd.v;
import hr.d0;
import hr.m0;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.f0;
import kotlin.jvm.internal.g0;
import kotlin.text.y;
import kr.Cc.YzboWgFC;
import lq.m;
import lq.n;
import me.r;
import mp.a0;
import nl.f;
import o9.l0;
import pe.k;
import s8.h;
import xc.d;
import xs.c;
import ye.b;
import ye.j;
import ye.o;
import zc.l;
import zs.a;
@Metadata
public final class MainActivity extends l implements o, d {
public static final String CUSTOM_STORY_LINK = "custom_story_link";
public static final String IS_RATE_US_CALLER = "rate_us";
private static String MACRO_API_PARAMS = "";
private static String MACRO_EXCLUDE_RESOURCES = "";
private static boolean MACRO_STATUS = true;
private static MacroApiParams MICRO_API_PARAMS = null;
private static final String OPEN_STORY_NEW_USER = "open_story_for_new_user";
private static final String PARAM_GROUP_DATA = "param_group_data";
private static final String PARAM_STORYLY_DATA = "param_storyly_data";
public static final int REQUEST_CODE_CONTACT_US = 7544;
private static final String SHOW_JOIN_GROUP = "param_join_group";
public static final String SHOW_RECORD_WATER = "show_water_record";
private static GroupData currentUserGroupData = null;
private static boolean isActivityDestroyed = true;
private static boolean needToShowRateUs = true;
private static UserData userProfile;
private final m binding$delegate;
private String customStoryLink;
private c1 fragmentsAdapter;
private Boolean isShowDialog = Boolean.FALSE;
private int mCurrentWeek;
private boolean mShowRateUsDialog;
private final a mainScope;
private final m preferenceData$delegate;
private final m presenter$delegate;
private final m rateUsHelper$delegate;
private boolean showJoinGroupDialog;
private boolean showWaterReminder;
private String storyLyNotificationDaySinceStarted;
private Uri storylyData;
public static final ye.a Companion = new ye.a();
private static List<String> MACRO_EXCLUDE_SOURCES = new ArrayList();
private static boolean DOES_USER_SEE_LATEST_FOOD_LOG = true;
private static String sourceDP = "";
public MainActivity() {
h s3 = e.s(this);
a a = ((ys.a) s3.a).a(e.o(), new c(g0.a(MainActivity.class)));
this.mainScope = a;
b bVar = new b(this, 5);
lq.o oVar = lq.o.d;
this.presenter$delegate = n.a(oVar, new md.l(a, bVar, 17));
this.preferenceData$delegate = n.b(new b(this, 4));
this.rateUsHelper$delegate = n.a(oVar, new s(this, 21));
this.binding$delegate = n.b(new b(this, 0));
}
private final void checkForGroupJoin() {
Intent intent;
Uri data;
et.d.d("checkingMainActivity").c(a0.g0.h("CodeVerification ", getIntent().getData()), new Object[0]);
Intent intent2 = getIntent();
if ((intent2 != null ? intent2.getData() : null) == null || (intent = getIntent()) == null || (data = intent.getData()) == null) {
return;
}
if (d0.M(data)) {
String E = d0.E(data);
if (E.length() > 0) {
getPreferenceData().z(E);
}
}
Companion.getClass();
startActivity(ye.a.d(this, true, false));
}
private final void checkWhichShopScreenDoesWeNeedToShowToUser() {
f.O(lh.d.b(m0.b), (kotlin.coroutines.a) null, 0, new ye.e(this, (oq.c) null), 3);
}
private final AdSize getAdSize() {
Display defaultDisplay = getWindowManager().getDefaultDisplay();
DisplayMetrics displayMetrics = new DisplayMetrics();
defaultDisplay.getMetrics(displayMetrics);
return AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(this, (int) (displayMetrics.widthPixels / displayMetrics.density));
}
public final PreferenceData getPreferenceData() {
return (PreferenceData) this.preferenceData$delegate.getValue();
}
public final ye.n getPresenter() {
return (ye.n) this.presenter$delegate.getValue();
}
public final g getRateUsHelper() {
return (g) this.rateUsHelper$delegate.getValue();
}
public static final boolean initViews$lambda$3$lambda$2(cd.s sVar, MenuItem menuItem) {
Intrinsics.checkNotNullParameter(sVar, "$this_apply");
Intrinsics.checkNotNullParameter(menuItem, "it");
ViewPager viewPager = sVar.e;
int itemId = menuItem.getItemId();
int i = itemId == 2131361886 ? 0 : itemId == 2131361889 ? 1 : itemId == 2131361883 ? 2 : itemId == 2131361898 ? 3 : 4;
viewPager.d0 = false;
viewPager.u(i, 0, false, false);
return true;
}
private final void loadBanner(AdView adView) {
AdRequest build = new AdRequest.Builder().build();
Intrinsics.checkNotNullExpressionValue(build, "Builder()\n //…TOR)\n .build()");
AdSize adSize = getAdSize();
et.d.a("ADVIEW_ADAPTIVE Adsize: " + adSize, new Object[0]);
if (adSize != null) {
adView.setAdSize(adSize);
}
adView.removeAllViews();
adView.loadAd(build);
}
public static void navigateToContactUs$default(MainActivity mainActivity, boolean z, int i, Object obj) {
if ((i & 1) != 0) {
z = false;
}
mainActivity.navigateToContactUs(z);
}
private final void parseDaySinceStarted(String str) {
this.storyLyNotificationDaySinceStarted = str != null ? y.R(str, "DaysFromStart=", "") : null;
et.d.d("RealTimeNotificationSet").c(a0.g0.j("the Custom Link i recived is customStoryLink?.substringAfter(\"DaysFromStart=\" , \"\") ", this.storyLyNotificationDaySinceStarted), new Object[0]);
}
private final void setupAdView() {
MobileAds.initialize(this);
View adView = new AdView(this);
getBinding().b.addView(adView);
adView.setAdUnitId(getString(2131951667));
loadBanner(adView);
adView.setAdListener(new fe.h(this, 1));
}
private final void showMessageSentDialog() {
int i = dd.b.i;
String string = getString(2131951838);
Intrinsics.checkNotNullExpressionValue(string, "getString(R.string.conta…uccessfully_sent_message)");
Intrinsics.checkNotNullParameter(string, "message");
b0 bVar = new dd.b();
((dd.b) bVar).d = string;
w0 supportFragmentManager = getSupportFragmentManager();
supportFragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
Intrinsics.checkNotNullExpressionValue(aVar, "supportFragmentManager.beginTransaction()");
aVar.d(0, bVar, null, 1);
aVar.g(true);
}
private final void showWeightTargetDialog() {
if (Intrinsics.c(this.isShowDialog, Boolean.TRUE)) {
this.isShowDialog = Boolean.FALSE;
int i = v.e;
new v().show(getSupportFragmentManager(), "WeeklyTargetWeightDialog");
}
}
public void addLogToFile(String str) {
Intrinsics.checkNotNullParameter(str, "message");
}
public void attachBaseContext(Context context) {
super/*com.bettertogether.base.BaseActivity*/.attachBaseContext(context);
fs.d.D(this, context);
}
public final void checkNotificationPermission() {
if (Build.VERSION.SDK_INT >= 33) {
jh.o.v(this, new ye.c(this, 1));
}
}
public void displayDailyTipsDialog() {
c1 c1Var = this.fragmentsAdapter;
w e3 = c1Var != null ? c1Var.e(0) : null;
if (e3 instanceof DashboardFragment) {
((DashboardFragment) e3).showTipDialog();
}
}
public void displayMigrationDialog(String str) {
Intrinsics.checkNotNullParameter(str, "userName");
int i = t.v;
Intrinsics.checkNotNullParameter(str, "userName");
t tVar = new t();
Intrinsics.checkNotNullParameter(str, "userName");
((dd.a) tVar).d = str;
tVar.show(getSupportFragmentManager(), "MigrationDialog");
}
public void displayNotificationPermission() {
c1 c1Var = this.fragmentsAdapter;
w e3 = c1Var != null ? c1Var.e(0) : null;
if (e3 instanceof DashboardFragment) {
((DashboardFragment) e3).checkNotificationPermission();
}
}
public void displayRateDialog(boolean z, boolean z2) {
Log.e("codeIS ", "displayRateDialog: " + isFinishing() + " " + (getSupportFragmentManager().D("RateUsDialog") != null));
if (getSupportFragmentManager().D("RateUsDialog") != null || isFinishing()) {
return;
}
kotlin.jvm.internal.o.Q0(this, getPreferenceData(), this, new ye.f(this, z, z2, 1));
}
public final cd.s getBinding() {
return (cd.s) this.binding$delegate.getValue();
}
public final String getCustomStoryLink() {
return this.customStoryLink;
}
public final void getGroups() {
et.d.c("refreshSelectedGroup: getGroups", new Object[0]);
ye.n presenter = getPresenter();
yd.a aVar = presenter.g;
a0 K = aVar.K();
r rVar = new r(8, k.R);
K.getClass();
i iVar = new i(K, rVar, 1);
Intrinsics.checkNotNullExpressionValue(iVar, "authorizedService.getGro…Data>> -> response.data }");
a0 A = aVar.A();
r rVar2 = new r(9, k.S);
A.getClass();
i iVar2 = new i(A, rVar2, 1);
Intrinsics.checkNotNullExpressionValue(iVar2, "authorizedService.getGro…Data>> -> response.data }");
aq.b j = a0.j(iVar, iVar2, new l0(27));
Intrinsics.checkNotNullExpressionValue(j, "zip(\n getActi…t\n }\n )");
aq.e eVar = new aq.e(new aq.e(kotlin.jvm.internal.o.D0(kotlin.jvm.internal.o.S0(j)), new pe.m(25, new ye.k(presenter, 0)), 2), new pe.m(26, new ye.k(presenter, 1)), 0);
Intrinsics.checkNotNullExpressionValue(eVar, "fun getGroups() {\n … .addDisposable()\n }");
com.bumptech.glide.d.m(presenter, eVar);
}
public final void getHealthConnectData(boolean z, Function1<? super nd.d, Unit> function1) {
Intrinsics.checkNotNullParameter(function1, "callback");
if (!((Boolean) getPresenter().h.j().d).booleanValue()) {
getPresenter().h.p(false);
} else {
et.d.a("healthConnect: Available", new Object[0]);
f.O(lh.d.b(m0.b), (kotlin.coroutines.a) null, 0, new ye.h(this, z, function1, (oq.c) null), 3);
}
}
public int getLayout() {
return 2131558446;
}
public final boolean getShowJoinGroupDialog() {
return this.showJoinGroupDialog;
}
public final boolean getShowWaterReminder() {
return this.showWaterReminder;
}
public final String getStoryLyNotificationDaySinceStarted() {
return this.storyLyNotificationDaySinceStarted;
}
public final Uri getStorylyData() {
return this.storylyData;
}
public View getView() {
ConstraintLayout constraintLayout = getBinding().a;
Intrinsics.checkNotNullExpressionValue(constraintLayout, "binding.root");
return constraintLayout;
}
public final void hideAdView(boolean z) {
et.d.c(og.m.i("BusinessUser: isHide: ", z), new Object[0]);
getBinding().b.setVisibility(z ? 8 : 0);
}
public void initViews() {
String string;
addLogToFile("OnCreate");
f0 f0Var = new f0();
f0 f0Var2 = new f0();
try {
rh.k.n(this);
Bundle extras = getIntent().getExtras();
Serializable serializable = extras != null ? extras.getSerializable(PARAM_GROUP_DATA) : null;
f0Var.d = serializable instanceof GroupData ? (GroupData) serializable : null;
Bundle extras2 = getIntent().getExtras();
this.storylyData = (extras2 == null || (string = extras2.getString(PARAM_STORYLY_DATA)) == null) ? null : Uri.parse(string);
et.a d2 = et.d.d("StoryLyLinkCodeHandling");
Bundle extras3 = getIntent().getExtras();
d2.c("the code running is " + (extras3 != null ? extras3.getString(PARAM_STORYLY_DATA) : null), new Object[0]);
if ((getIntent().getFlags() & 1048576) == 0) {
Bundle extras4 = getIntent().getExtras();
String string2 = extras4 != null ? extras4.getString(CUSTOM_STORY_LINK) : null;
this.customStoryLink = string2;
parseDaySinceStarted(string2);
}
if (getIntent().getExtras() != null) {
Bundle extras5 = getIntent().getExtras();
if (extras5 != null && extras5.containsKey("IsFromChallengeScreen")) {
PreferenceData preferenceData = getPreferenceData();
Bundle extras6 = getIntent().getExtras();
Intrinsics.e(extras6);
preferenceData.r("from_challenge", extras6.getBoolean("IsFromChallengeScreen", false));
}
}
if (getIntent().getExtras() != null) {
Bundle extras7 = getIntent().getExtras();
Boolean valueOf = extras7 != null ? Boolean.valueOf(extras7.containsKey(SHOW_JOIN_GROUP)) : null;
Intrinsics.e(valueOf);
if (valueOf.booleanValue()) {
Bundle extras8 = getIntent().getExtras();
Boolean valueOf2 = extras8 != null ? Boolean.valueOf(extras8.getBoolean(SHOW_JOIN_GROUP, false)) : null;
Intrinsics.e(valueOf2);
this.showJoinGroupDialog = valueOf2.booleanValue();
}
Bundle extras9 = getIntent().getExtras();
Boolean valueOf3 = extras9 != null ? Boolean.valueOf(extras9.containsKey(SHOW_RECORD_WATER)) : null;
Intrinsics.e(valueOf3);
if (valueOf3.booleanValue()) {
Bundle extras10 = getIntent().getExtras();
Boolean valueOf4 = extras10 != null ? Boolean.valueOf(extras10.getBoolean(SHOW_RECORD_WATER, false)) : null;
Intrinsics.e(valueOf4);
this.showWaterReminder = valueOf4.booleanValue();
}
Bundle extras11 = getIntent().getExtras();
String str = YzboWgFC.vtI;
if (extras11 != null && extras11.containsKey(str)) {
Bundle extras12 = getIntent().getExtras();
f0Var2.d = extras12 != null ? extras12.getString(str) : null;
}
}
et.d.c("GroupData: " + f0Var.d, new Object[0]);
} catch (IOException e3) {
et.d.c(a0.g0.j("GroupData: Exception ", e3.getMessage()), new Object[0]);
fs.d.o(this, new b(this, 2));
}
this.fragmentsAdapter = new ye.i(f0Var, this, f0Var2, getSupportFragmentManager());
cd.s binding = getBinding();
ViewPager viewPager = binding.e;
viewPager.setAdapter(this.fragmentsAdapter);
viewPager.setOffscreenPageLimit(4);
j jVar = new j(binding);
if (viewPager.z0 == null) {
viewPager.z0 = new ArrayList();
}
viewPager.z0.add(jVar);
binding.c.setOnNavigationItemSelectedListener(new fe.k(binding, 2));
hideAdView(true);
ye.n presenter = getPresenter();
aq.e eVar = new aq.e(new aq.e(kotlin.jvm.internal.o.D0(kotlin.jvm.internal.o.S0(presenter.e.b())), new pe.m(27, new ye.k(presenter, 2)), 2), new pe.m(28, k.T), 0);
Intrinsics.checkNotNullExpressionValue(eVar, "fun getUserDataOneSignal… .addDisposable()\n }");
com.bumptech.glide.d.m(presenter, eVar);
}
public final void loadAdd() {
if (getPreferenceData().b("corporate_user", false)) {
return;
}
setupAdView();
}
public final void navigateToContactUs(boolean z) {
Intent o = ContactUsActivity.M.o(this, (String) null);
o.putExtra(IS_RATE_US_CALLER, z);
startActivityForResult(o, REQUEST_CODE_CONTACT_US);
}
public void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i2 == -1) {
if (i != 1450) {
if (i != 7544) {
return;
}
showMessageSentDialog();
} else if (getBinding().c.getSelectedItemId() == 2131361886) {
c1 c1Var = this.fragmentsAdapter;
if ((c1Var != null ? c1Var.e(0) : null) instanceof DashboardFragment) {
String stringExtra = intent != null ? intent.getStringExtra("weeklyWeight") : null;
Float valueOf = intent != null ? Float.valueOf(intent.getFloatExtra("targetWeight", 0.0f)) : null;
int intExtra = intent != null ? intent.getIntExtra("currentWeek", 0) : 0;
this.mCurrentWeek = intExtra;
Boolean valueOf2 = Boolean.valueOf(intExtra > 0 && valueOf != null && stringExtra != null && Float.parseFloat(stringExtra) <= valueOf.floatValue());
this.isShowDialog = valueOf2;
this.mShowRateUsDialog = Intrinsics.c(valueOf2, Boolean.TRUE);
et.d.c(a0.g0.f("CURRENT_WEEK ", intExtra), new Object[0]);
}
}
}
}
public void onDestroy() {
super/*androidx.fragment.app.e0*/.onDestroy();
needToShowRateUs = true;
isActivityDestroyed = true;
}
public void onDialogDismiss() {
if (this.mShowRateUsDialog && this.mCurrentWeek == 1) {
et.d.b("Check Rate us dialog onDialogDismiss", new Object[0]);
displayRateDialog(true, true);
}
}
public void onGroupsError(String str) {
Intrinsics.checkNotNullParameter(str, "error");
et.d.b("onGroupsError : " + str, new Object[0]);
c1 c1Var = this.fragmentsAdapter;
if (c1Var != null) {
w e3 = c1Var.e(0);
c1 c1Var2 = this.fragmentsAdapter;
if ((c1Var2 != null ? c1Var2.e(0) : null) instanceof DashboardFragment) {
((DashboardFragment) e3).setGroupsFromMain(new ArrayList());
}
}
c1 c1Var3 = this.fragmentsAdapter;
if (c1Var3 != null) {
ue.b e4 = c1Var3.e(1);
c1 c1Var4 = this.fragmentsAdapter;
if ((c1Var4 != null ? c1Var4.e(1) : null) instanceof ue.b) {
ArrayList arrayList = new ArrayList();
Intrinsics.checkNotNullParameter(arrayList, "groups");
((ue.f) e4.e.getValue()).e(arrayList);
}
}
c1 c1Var5 = this.fragmentsAdapter;
if (c1Var5 != null) {
ce.b e5 = c1Var5.e(2);
c1 c1Var6 = this.fragmentsAdapter;
if ((c1Var6 != null ? c1Var6.e(2) : null) instanceof ce.b) {
ArrayList arrayList2 = new ArrayList();
Intrinsics.checkNotNullParameter(arrayList2, "groups");
((ce.e) e5.e.getValue()).d(arrayList2);
}
}
}
public void onGroupsResponse(List<GroupData> list) {
Intrinsics.checkNotNullParameter(list, "groups");
et.d.c("refreshSelectedGroup: onGroupsResponse", new Object[0]);
c1 c1Var = this.fragmentsAdapter;
if (c1Var != null) {
w e3 = c1Var.e(0);
addLogToFile("onGroupsResponse DashboardFragment");
c1 c1Var2 = this.fragmentsAdapter;
if ((c1Var2 != null ? c1Var2.e(0) : null) instanceof DashboardFragment) {
((DashboardFragment) e3).setGroupsFromMain(list);
}
}
c1 c1Var3 = this.fragmentsAdapter;
if (c1Var3 != null) {
ue.b e4 = c1Var3.e(1);
c1 c1Var4 = this.fragmentsAdapter;
if ((c1Var4 != null ? c1Var4.e(1) : null) instanceof ue.b) {
Intrinsics.checkNotNullParameter(list, "groups");
((ue.f) e4.e.getValue()).e(list);
}
}
c1 c1Var5 = this.fragmentsAdapter;
if (c1Var5 != null) {
ce.b e5 = c1Var5.e(2);
c1 c1Var6 = this.fragmentsAdapter;
if ((c1Var6 != null ? c1Var6.e(2) : null) instanceof ce.b) {
Intrinsics.checkNotNullParameter(list, "groups");
((ce.e) e5.e.getValue()).d(list);
}
}
}
public void onNewIntent(Intent intent) {
super/*androidx.activity.o*/.onNewIntent(intent);
setIntent(intent);
if (intent != null) {
Bundle extras = intent.getExtras();
this.customStoryLink = extras != null ? extras.getString(CUSTOM_STORY_LINK) : null;
et.d.d("RealTimeNotificationSet").c(a0.g0.j("the Custom Link i recived is ", this.customStoryLink), new Object[0]);
parseDaySinceStarted(this.customStoryLink);
c1 c1Var = this.fragmentsAdapter;
w e3 = c1Var != null ? c1Var.e(0) : null;
if (e3 instanceof DashboardFragment) {
((DashboardFragment) e3).refreshAndReloadStoryly();
}
}
}
public void onPause() {
super/*com.bettertogether.base.BaseActivity*/.onPause();
}
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
Intrinsics.checkNotNullParameter(strArr, "permissions");
Intrinsics.checkNotNullParameter(iArr, "grantResults");
if (i == 1003) {
if ((!(iArr.length == 0)) && iArr[0] == 0) {
et.d.a("onRequestPermissionsResult NOTIFICATION_PERMISSION granted", new Object[0]);
}
}
super.onRequestPermissionsResult(i, strArr, iArr);
}
public void onResume() {
super/*com.bettertogether.base.BaseActivity*/.onResume();
getGroups();
showWeightTargetDialog();
}
public void onStart() {
super/*androidx.fragment.app.e0*/.onStart();
checkWhichShopScreenDoesWeNeedToShowToUser();
}
public final void openRateUsDialog() {
getPresenter().d(false);
}
public void printNextScheduleTime() {
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(getRateUsHelper().b());
Intrinsics.checkNotNullExpressionValue(calendar, "getInstance().apply {\n …ScheduledTime()\n }");
Intrinsics.checkNotNullParameter(calendar, "<this>");
Toast.makeText((Context) this, (CharSequence) ("Popup time: " + new Date(calendar.getTimeInMillis())), 0).show();
}
public final void setCustomStoryLink(String str) {
this.customStoryLink = str;
}
public final void setShowJoinGroupDialog(boolean z) {
this.showJoinGroupDialog = z;
}
public final void setShowWaterReminder(boolean z) {
this.showWaterReminder = z;
}
public final void setStoryLyNotificationDaySinceStarted(String str) {
this.storyLyNotificationDaySinceStarted = str;
}
public final void setStorylyData(Uri uri) {
this.storylyData = uri;
}
public void userOneSignalTags(UserData userData) {
if (userData == null || !isAppInForeground()) {
return;
}
y3.T(String.valueOf(userData.getId()), (String) null);
y3.S(userData.getEmail(), (String) null);
if (getPreferenceData().c()) {
int id = userData.getId();
String createdAt = userData.getCreatedAt();
userData.getFirstName();
userData.getBirthDate();
qh.a.j(id, createdAt, userData.getFirstName(), userData.getGender(), userData.getSource(), getPreferenceData().c());
} else {
int id2 = userData.getId();
String createdAt2 = userData.getCreatedAt();
userData.getFirstName();
userData.getBirthDate();
qh.a.k(id2, createdAt2, userData.getFirstName(), userData.getGender(), userData.getSource());
}
et.d.a("TAGSSSSS MAIN USER: " + userData, new Object[0]);
}
public ye.n providePresenter() {
return getPresenter();
}
}