diff --git a/app/build.gradle b/app/build.gradle index 64ac0a728e..6b5583f0e3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId 'com.discord' minSdkVersion 21 targetSdkVersion 30 - versionCode 100017 - versionName "100.17 - Stable" + versionCode 101009 + versionName "101.9 - Stable" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 36d9de1fe5..3522a415f0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + @@ -206,7 +206,7 @@ - + diff --git a/app/src/main/java/c/a/a/a.java b/app/src/main/java/c/a/a/a.java index 9ab994b972..2cf31dcf0e 100644 --- a/app/src/main/java/c/a/a/a.java +++ b/app/src/main/java/c/a/a/a.java @@ -182,8 +182,8 @@ public final class a extends AppDialog { return (v) this.k.getValue((Fragment) this, i[0]); } - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0169: APUT (r3v2 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v7 java.lang.CharSequence) */ - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0189: APUT (r3v1 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v4 java.lang.CharSequence) */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0161: APUT (r3v2 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v7 java.lang.CharSequence) */ + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0181: APUT (r3v1 java.lang.Object[]), (0 ??[int, short, byte, char]), (r10v4 java.lang.CharSequence) */ @Override // com.discord.app.AppDialog public void onViewBound(View view) { m.checkNotNullParameter(view, "view"); @@ -192,7 +192,7 @@ public final class a extends AppDialog { boolean z2 = getArgumentsOrDefault().getBoolean("PARAM_IS_USER_PREMIUM"); boolean z3 = this.l != null && getArgumentsOrDefault().getBoolean("PARAM_CAN_COMPRESS"); int i3 = 8; - int i4 = i2 != 8 ? i2 != 50 ? i2 != 100 ? i2 != 200 ? 0 : R.string.file_upload_limit_staff : R.string.file_upload_limit_premium_tier_2 : R.string.file_upload_limit_premium_tier_1 : R.string.file_upload_limit_standard; + int i4 = i2 != 8 ? i2 != 50 ? i2 != 100 ? 0 : R.string.file_upload_limit_premium_tier_2 : R.string.file_upload_limit_premium_tier_1 : R.string.file_upload_limit_standard; MaterialButton materialButton = g().i; m.checkNotNullExpressionValue(materialButton, "binding.imageUploadFailedSendCompress"); materialButton.setVisibility(z3 ? 0 : 8); diff --git a/app/src/main/java/c/a/i/n4.java b/app/src/main/java/c/a/i/n4.java index 2fdc2f52c9..210f53d843 100644 --- a/app/src/main/java/c/a/i/n4.java +++ b/app/src/main/java/c/a/i/n4.java @@ -16,12 +16,15 @@ public final class n4 implements ViewBinding { @NonNull /* renamed from: c reason: collision with root package name */ - public final TextView f136c; + public final ImageView f136c; + @NonNull + public final TextView d; public n4(@NonNull RelativeLayout relativeLayout, @NonNull CardView cardView, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull TextView textView) { this.a = relativeLayout; - this.b = imageView2; - this.f136c = textView; + this.b = imageView; + this.f136c = imageView2; + this.d = textView; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/c/d/a/a/a.java b/app/src/main/java/c/d/a/a/a.java index b9d8b64c0e..0986202023 100644 --- a/app/src/main/java/c/d/a/a/a.java +++ b/app/src/main/java/c/d/a/a/a.java @@ -16,11 +16,13 @@ import android.text.TextUtils; import androidx.annotation.AnyThread; import androidx.annotation.Nullable; import c.i.a.f.h.n.d; +import c.i.a.f.h.n.k; +import c.i.a.f.h.n.l; +import c.i.a.f.h.n.m; import com.android.billingclient.api.BillingClient; import com.android.billingclient.api.BillingFlowParams; import com.android.billingclient.api.BillingResult; import com.android.billingclient.api.ProxyBillingActivity; -import com.android.billingclient.api.Purchase; import com.android.billingclient.api.SkuDetails; import java.util.ArrayList; import java.util.Arrays; @@ -42,10 +44,10 @@ public class a extends BillingClient { /* renamed from: c reason: collision with root package name */ public final Handler f350c; - public volatile q d; + public volatile s d; public Context e; public volatile d f; - public volatile l g; + public volatile n g; public boolean h; public int i; public boolean j; @@ -58,7 +60,7 @@ public class a extends BillingClient { public ExecutorService q; @AnyThread - public a(@Nullable String str, boolean z2, Context context, f fVar) { + public a(@Nullable String str, boolean z2, Context context, g gVar) { String str2; try { str2 = (String) Class.forName("c.d.a.b.a").getField("VERSION_NAME").get(null); @@ -71,16 +73,16 @@ public class a extends BillingClient { this.b = str2; Context applicationContext = context.getApplicationContext(); this.e = applicationContext; - this.d = new q(applicationContext, fVar); + this.d = new s(applicationContext, gVar); this.p = z2; } @Override // com.android.billingclient.api.BillingClient public final void a(d dVar, e eVar) { - if (!c()) { - eVar.onConsumeResponse(n.j, dVar.a); - } else if (k(new r(this, dVar, eVar), 30000, new v(eVar, dVar), h()) == null) { - eVar.onConsumeResponse(j(), dVar.a); + if (!d()) { + eVar.onConsumeResponse(p.j, dVar.a); + } else if (l(new t(this, dVar, eVar), 30000, new x(eVar, dVar), i()) == null) { + eVar.onConsumeResponse(k(), dVar.a); } } @@ -90,10 +92,10 @@ public class a extends BillingClient { try { this.d.a(); if (this.g != null) { - l lVar = this.g; - synchronized (lVar.i) { - lVar.k = null; - lVar.j = true; + n nVar = this.g; + synchronized (nVar.i) { + nVar.k = null; + nVar.j = true; } } if (!(this.g == null || this.f == null)) { @@ -119,7 +121,12 @@ public class a extends BillingClient { } @Override // com.android.billingclient.api.BillingClient - public final boolean c() { + public final int c() { + return this.a; + } + + @Override // com.android.billingclient.api.BillingClient + public final boolean d() { return (this.a != 2 || this.f == null || this.g == null) ? false : true; } @@ -132,7 +139,7 @@ public class a extends BillingClient { /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Removed duplicated region for block: B:152:? A[ExcHandler: Exception (unused java.lang.Exception), SYNTHETIC, Splitter:B:134:0x0387] */ @Override // com.android.billingclient.api.BillingClient - public final BillingResult d(Activity activity, BillingFlowParams billingFlowParams) { + public final BillingResult e(Activity activity, BillingFlowParams billingFlowParams) { String str; String str2; String str3; @@ -144,9 +151,9 @@ public class a extends BillingClient { boolean z2; String str8; String str9; - if (!c()) { - BillingResult billingResult = n.j; - i(billingResult); + if (!d()) { + BillingResult billingResult = p.j; + j(billingResult); return billingResult; } Objects.requireNonNull(billingFlowParams); @@ -157,13 +164,13 @@ public class a extends BillingClient { String str10 = "BillingClient"; if (e.equals("subs") && !this.h) { c.i.a.f.h.n.a.f(str10, "Current client doesn't support subscriptions."); - BillingResult billingResult2 = n.l; - i(billingResult2); + BillingResult billingResult2 = p.l; + j(billingResult2); return billingResult2; } else if (((!billingFlowParams.g && billingFlowParams.b == null && billingFlowParams.d == null && billingFlowParams.e == 0 && !billingFlowParams.a) ? false : true) && !this.j) { c.i.a.f.h.n.a.f(str10, "Current client doesn't support extra params for buy intent."); - BillingResult billingResult3 = n.f; - i(billingResult3); + BillingResult billingResult3 = p.f; + j(billingResult3); return billingResult3; } else if (arrayList.size() <= 1 || this.o) { String str11 = ""; @@ -266,8 +273,8 @@ public class a extends BillingClient { } if (z5) { if (!this.m) { - BillingResult billingResult4 = n.g; - i(billingResult4); + BillingResult billingResult4 = p.g; + j(billingResult4); return billingResult4; } bundle.putStringArrayList("SKU_OFFER_ID_TOKEN_LIST", arrayList3); @@ -311,13 +318,13 @@ public class a extends BillingClient { bundle.putString("proxyPackageVersion", "package not found"); } } - future = k(new y(this, (!this.n || !z2) ? this.k ? 9 : billingFlowParams.g ? 7 : 6 : 15, skuDetails, e, billingFlowParams, bundle), 5000, null, this.f350c); + future = l(new b0(this, (!this.n || !z2) ? this.k ? 9 : billingFlowParams.g ? 7 : 6 : 15, skuDetails, e, billingFlowParams, bundle), 5000, null, this.f350c); } else { str = "BUY_INTENT"; str4 = "; try to reconnect"; str2 = str10; str3 = str12; - future = k(new s(this, skuDetails, e), 5000, null, this.f350c); + future = l(new u(this, skuDetails, e), 5000, null, this.f350c); } try { Bundle bundle2 = (Bundle) future.get(5000, TimeUnit.MILLISECONDS); @@ -333,13 +340,13 @@ public class a extends BillingClient { BillingResult billingResult5 = new BillingResult(); billingResult5.a = a; billingResult5.b = d; - i(billingResult5); + j(billingResult5); return billingResult5; } Intent intent = new Intent(activity, ProxyBillingActivity.class); intent.putExtra(str, (PendingIntent) bundle2.getParcelable(str)); activity.startActivity(intent); - return n.i; + return p.i; } catch (CancellationException | TimeoutException unused3) { str7 = str4; str5 = str3; @@ -348,8 +355,8 @@ public class a extends BillingClient { sb3.append(str5); sb3.append(str7); c.i.a.f.h.n.a.f(str6, sb3.toString()); - BillingResult billingResult6 = n.k; - i(billingResult6); + BillingResult billingResult6 = p.k; + j(billingResult6); return billingResult6; } catch (Exception unused4) { StringBuilder sb4 = new StringBuilder(String.valueOf(str3).length() + 69); @@ -357,8 +364,8 @@ public class a extends BillingClient { sb4.append(str3); sb4.append(str4); c.i.a.f.h.n.a.f(str6, sb4.toString()); - BillingResult billingResult7 = n.j; - i(billingResult7); + BillingResult billingResult7 = p.j; + j(billingResult7); return billingResult7; } } catch (CancellationException | TimeoutException unused5) { @@ -370,90 +377,90 @@ public class a extends BillingClient { sb3.append(str5); sb3.append(str7); c.i.a.f.h.n.a.f(str6, sb3.toString()); - BillingResult billingResult6 = n.k; - i(billingResult6); + BillingResult billingResult6 = p.k; + j(billingResult6); return billingResult6; } catch (Exception unused6) { } } else { c.i.a.f.h.n.a.f(str10, "Current client doesn't support multi-item purchases."); - BillingResult billingResult8 = n.m; - i(billingResult8); + BillingResult billingResult8 = p.m; + j(billingResult8); return billingResult8; } } @Override // com.android.billingclient.api.BillingClient - public final Purchase.a e(String str) { - if (!c()) { - return new Purchase.a(n.j, null); - } - if (TextUtils.isEmpty(str)) { + public void f(String str, f fVar) { + if (!d()) { + BillingResult billingResult = p.j; + m mVar = k.j; + fVar.onQueryPurchasesResponse(billingResult, l.k); + } else if (TextUtils.isEmpty(str)) { c.i.a.f.h.n.a.f("BillingClient", "Please provide a valid SKU type."); - return new Purchase.a(n.e, null); - } - try { - return (Purchase.a) k(new z(this, str), 5000, null, this.f350c).get(5000, TimeUnit.MILLISECONDS); - } catch (CancellationException | TimeoutException unused) { - return new Purchase.a(n.k, null); - } catch (Exception unused2) { - return new Purchase.a(n.h, null); + BillingResult billingResult2 = p.e; + m mVar2 = k.j; + fVar.onQueryPurchasesResponse(billingResult2, l.k); + } else if (l(new j(this, str, fVar), 30000, new y(fVar), i()) == null) { + BillingResult k = k(); + m mVar3 = k.j; + fVar.onQueryPurchasesResponse(k, l.k); } } @Override // com.android.billingclient.api.BillingClient - public final void f(g gVar, h hVar) { - if (!c()) { - hVar.onSkuDetailsResponse(n.j, null); + public final void g(h hVar, i iVar) { + if (!d()) { + iVar.onSkuDetailsResponse(p.j, null); return; } - String str = gVar.a; - List list = gVar.b; + String str = hVar.a; + List list = hVar.b; if (TextUtils.isEmpty(str)) { c.i.a.f.h.n.a.f("BillingClient", "Please fix the input params. SKU type can't be empty."); - hVar.onSkuDetailsResponse(n.e, null); + iVar.onSkuDetailsResponse(p.e, null); } else if (list != null) { ArrayList arrayList = new ArrayList(); for (String str2 : list) { if (!TextUtils.isEmpty(str2)) { - arrayList.add(new o(str2)); + arrayList.add(new q(str2)); } else { throw new IllegalArgumentException("SKU must be set."); } } - if (k(new t(this, str, arrayList, hVar), 30000, new w(hVar), h()) == null) { - hVar.onSkuDetailsResponse(j(), null); + if (l(new v(this, str, arrayList, iVar), 30000, new z(iVar), i()) == null) { + iVar.onSkuDetailsResponse(k(), null); } } else { c.i.a.f.h.n.a.f("BillingClient", "Please fix the input params. The list of SKUs can't be empty - set SKU list or SkuWithOffer list."); - hVar.onSkuDetailsResponse(n.d, null); + iVar.onSkuDetailsResponse(p.d, null); } } @Override // com.android.billingclient.api.BillingClient - public final void g(b bVar) { + public final void h(b bVar) { ServiceInfo serviceInfo; - if (c()) { + if (d()) { c.i.a.f.h.n.a.e("BillingClient", "Service connection is valid. No need to re-initialize."); - bVar.onBillingSetupFinished(n.i); + bVar.onBillingSetupFinished(p.i); } else if (this.a == 1) { c.i.a.f.h.n.a.f("BillingClient", "Client is already in the process of connecting to billing service."); - bVar.onBillingSetupFinished(n.f351c); + bVar.onBillingSetupFinished(p.f351c); } else if (this.a == 3) { c.i.a.f.h.n.a.f("BillingClient", "Client was already closed and can't be reused. Please create another instance."); - bVar.onBillingSetupFinished(n.j); + bVar.onBillingSetupFinished(p.j); } else { this.a = 1; - q qVar = this.d; - p pVar = qVar.b; - Context context = qVar.a; + s sVar = this.d; + r rVar = sVar.b; + Context context = sVar.a; IntentFilter intentFilter = new IntentFilter("com.android.vending.billing.PURCHASES_UPDATED"); - if (!pVar.b) { - context.registerReceiver(pVar.f352c.b, intentFilter); - pVar.b = true; + if (!rVar.b) { + context.registerReceiver(rVar.f352c.b, intentFilter); + rVar.b = true; } c.i.a.f.h.n.a.e("BillingClient", "Starting in-app billing setup."); - this.g = new l(this, bVar); + this.g = new n(this, bVar); Intent intent = new Intent("com.android.vending.billing.InAppBillingService.BIND"); intent.setPackage("com.android.vending"); List queryIntentServices = this.e.getPackageManager().queryIntentServices(intent, 0); @@ -476,35 +483,35 @@ public class a extends BillingClient { } this.a = 0; c.i.a.f.h.n.a.e("BillingClient", "Billing service unavailable on device."); - bVar.onBillingSetupFinished(n.b); + bVar.onBillingSetupFinished(p.b); } } - public final Handler h() { + public final Handler i() { return Looper.myLooper() == null ? this.f350c : new Handler(Looper.myLooper()); } - public final BillingResult i(BillingResult billingResult) { + public final BillingResult j(BillingResult billingResult) { if (Thread.interrupted()) { return billingResult; } - this.f350c.post(new u(this, billingResult)); + this.f350c.post(new w(this, billingResult)); return billingResult; } - public final BillingResult j() { - return (this.a == 0 || this.a == 3) ? n.j : n.h; + public final BillingResult k() { + return (this.a == 0 || this.a == 3) ? p.j : p.h; } @Nullable - public final Future k(Callable callable, long j, @Nullable Runnable runnable, Handler handler) { + public final Future l(Callable callable, long j, @Nullable Runnable runnable, Handler handler) { long j2 = (long) (((double) j) * 0.95d); if (this.q == null) { - this.q = Executors.newFixedThreadPool(c.i.a.f.h.n.a.a, new i(this)); + this.q = Executors.newFixedThreadPool(c.i.a.f.h.n.a.a, new k(this)); } try { Future submit = this.q.submit(callable); - handler.postDelayed(new x(submit, runnable), j2); + handler.postDelayed(new a0(submit, runnable), j2); return submit; } catch (Exception e) { String valueOf = String.valueOf(e); diff --git a/app/src/main/java/c/d/a/a/a0.java b/app/src/main/java/c/d/a/a/a0.java new file mode 100644 index 0000000000..23ab80f042 --- /dev/null +++ b/app/src/main/java/c/d/a/a/a0.java @@ -0,0 +1,27 @@ +package c.d.a.a; + +import c.i.a.f.h.n.a; +import java.util.concurrent.Future; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class a0 implements Runnable { + public final /* synthetic */ Future i; + public final /* synthetic */ Runnable j; + + public /* synthetic */ a0(Future future, Runnable runnable) { + this.i = future; + this.j = runnable; + } + + @Override // java.lang.Runnable + public final void run() { + Future future = this.i; + Runnable runnable = this.j; + if (!future.isDone() && !future.isCancelled()) { + future.cancel(true); + a.f("BillingClient", "Async task is taking too long, cancel it!"); + if (runnable != null) { + runnable.run(); + } + } + } +} diff --git a/app/src/main/java/c/d/a/a/b0.java b/app/src/main/java/c/d/a/a/b0.java new file mode 100644 index 0000000000..3eb789fed2 --- /dev/null +++ b/app/src/main/java/c/d/a/a/b0.java @@ -0,0 +1,32 @@ +package c.d.a.a; + +import android.os.Bundle; +import com.android.billingclient.api.BillingFlowParams; +import com.android.billingclient.api.SkuDetails; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class b0 implements Callable { + public final /* synthetic */ a i; + public final /* synthetic */ int j; + public final /* synthetic */ SkuDetails k; + public final /* synthetic */ String l; + public final /* synthetic */ BillingFlowParams m; + public final /* synthetic */ Bundle n; + + public /* synthetic */ b0(a aVar, int i, SkuDetails skuDetails, String str, BillingFlowParams billingFlowParams, Bundle bundle) { + this.i = aVar; + this.j = i; + this.k = skuDetails; + this.l = str; + this.m = billingFlowParams; + this.n = bundle; + } + + @Override // java.util.concurrent.Callable + public final Object call() { + a aVar = this.i; + int i = this.j; + SkuDetails skuDetails = this.k; + return aVar.f.e0(i, aVar.e.getPackageName(), skuDetails.d(), this.l, null, this.n); + } +} diff --git a/app/src/main/java/c/d/a/a/f.java b/app/src/main/java/c/d/a/a/f.java index 3c2d3405c2..23418c605e 100644 --- a/app/src/main/java/c/d/a/a/f.java +++ b/app/src/main/java/c/d/a/a/f.java @@ -1,11 +1,10 @@ package c.d.a.a; import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import com.android.billingclient.api.BillingResult; import com.android.billingclient.api.Purchase; import java.util.List; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public interface f { - void onPurchasesUpdated(@NonNull BillingResult billingResult, @Nullable List list); + void onQueryPurchasesResponse(@NonNull BillingResult billingResult, @NonNull List list); } diff --git a/app/src/main/java/c/d/a/a/g.java b/app/src/main/java/c/d/a/a/g.java index bc94a91569..3d16950b6b 100644 --- a/app/src/main/java/c/d/a/a/g.java +++ b/app/src/main/java/c/d/a/a/g.java @@ -1,8 +1,11 @@ package c.d.a.a; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; import java.util.List; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public class g { - public String a; - public List b; +public interface g { + void onPurchasesUpdated(@NonNull BillingResult billingResult, @Nullable List list); } diff --git a/app/src/main/java/c/d/a/a/h.java b/app/src/main/java/c/d/a/a/h.java index 7ffeb38658..d454cec795 100644 --- a/app/src/main/java/c/d/a/a/h.java +++ b/app/src/main/java/c/d/a/a/h.java @@ -1,11 +1,8 @@ package c.d.a.a; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import com.android.billingclient.api.BillingResult; -import com.android.billingclient.api.SkuDetails; import java.util.List; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public interface h { - void onSkuDetailsResponse(@NonNull BillingResult billingResult, @Nullable List list); +public class h { + public String a; + public List b; } diff --git a/app/src/main/java/c/d/a/a/i.java b/app/src/main/java/c/d/a/a/i.java index edf649bbd1..3e49ff9cfc 100644 --- a/app/src/main/java/c/d/a/a/i.java +++ b/app/src/main/java/c/d/a/a/i.java @@ -1,24 +1,11 @@ package c.d.a.a; -import java.util.concurrent.Executors; -import java.util.concurrent.ThreadFactory; -import java.util.concurrent.atomic.AtomicInteger; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.SkuDetails; +import java.util.List; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class i implements ThreadFactory { - public final ThreadFactory i = Executors.defaultThreadFactory(); - public final AtomicInteger j = new AtomicInteger(1); - - public i(a aVar) { - } - - @Override // java.util.concurrent.ThreadFactory - public final Thread newThread(Runnable runnable) { - Thread newThread = this.i.newThread(runnable); - int andIncrement = this.j.getAndIncrement(); - StringBuilder sb = new StringBuilder(30); - sb.append("PlayBillingLibrary-"); - sb.append(andIncrement); - newThread.setName(sb.toString()); - return newThread; - } +public interface i { + void onSkuDetailsResponse(@NonNull BillingResult billingResult, @Nullable List list); } diff --git a/app/src/main/java/c/d/a/a/j.java b/app/src/main/java/c/d/a/a/j.java index a7fc308ac6..d1c36cde29 100644 --- a/app/src/main/java/c/d/a/a/j.java +++ b/app/src/main/java/c/d/a/a/j.java @@ -1,17 +1,141 @@ package c.d.a.a; -/* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class j implements Runnable { - public final /* synthetic */ l i; - public /* synthetic */ j(l lVar) { - this.i = lVar; +import android.os.Bundle; +import android.text.TextUtils; +import c.i.a.f.h.n.a; +import c.i.a.f.h.n.k; +import c.i.a.f.h.n.l; +import c.i.a.f.h.n.m; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.Callable; +import org.json.JSONException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class j implements Callable { + public final /* synthetic */ String i; + public final /* synthetic */ f j; + public final /* synthetic */ a k; + + public j(a aVar, String str, f fVar) { + this.k = aVar; + this.i = str; + this.j = fVar; } - @Override // java.lang.Runnable - public final void run() { - l lVar = this.i; - lVar.l.a = 0; - lVar.l.f = null; - lVar.a(n.k); + /* Return type fixed from 'java.lang.Object' to match base method */ + @Override // java.util.concurrent.Callable + public final Void call() throws Exception { + Purchase.a aVar; + a aVar2 = this.k; + String str = this.i; + String valueOf = String.valueOf(str); + a.e("BillingClient", valueOf.length() != 0 ? "Querying owned items, item type: ".concat(valueOf) : new String("Querying owned items, item type: ")); + ArrayList arrayList = new ArrayList(); + boolean z2 = aVar2.k; + boolean z3 = aVar2.p; + String str2 = aVar2.b; + Bundle bundle = new Bundle(); + bundle.putString("playBillingLibraryVersion", str2); + int i = 1; + if (z2 && z3) { + bundle.putBoolean("enablePendingPurchases", true); + } + String str3 = null; + while (true) { + try { + Bundle s0 = aVar2.k ? aVar2.f.s0(9, aVar2.e.getPackageName(), str, str3, bundle) : aVar2.f.F(3, aVar2.e.getPackageName(), str, str3); + BillingResult billingResult = p.h; + if (s0 == null) { + Object[] objArr = new Object[i]; + objArr[0] = "getPurchase()"; + a.f("BillingClient", String.format("%s got null owned items list", objArr)); + } else { + int a = a.a(s0, "BillingClient"); + String d = a.d(s0, "BillingClient"); + BillingResult billingResult2 = new BillingResult(); + billingResult2.a = a; + billingResult2.b = d; + if (a != 0) { + a.f("BillingClient", String.format("%s failed. Response code: %s", "getPurchase()", Integer.valueOf(a))); + billingResult = billingResult2; + i = 1; + } else if (!s0.containsKey("INAPP_PURCHASE_ITEM_LIST") || !s0.containsKey("INAPP_PURCHASE_DATA_LIST") || !s0.containsKey("INAPP_DATA_SIGNATURE_LIST")) { + i = 1; + a.f("BillingClient", String.format("Bundle returned from %s doesn't contain required fields.", "getPurchase()")); + } else { + ArrayList stringArrayList = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); + ArrayList stringArrayList2 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList3 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + if (stringArrayList == null) { + i = 1; + a.f("BillingClient", String.format("Bundle returned from %s contains null SKUs list.", "getPurchase()")); + } else { + i = 1; + if (stringArrayList2 == null) { + a.f("BillingClient", String.format("Bundle returned from %s contains null purchases list.", "getPurchase()")); + } else if (stringArrayList3 == null) { + a.f("BillingClient", String.format("Bundle returned from %s contains null signatures list.", "getPurchase()")); + } else { + billingResult = p.i; + } + } + } + } + if (billingResult != p.i) { + aVar = new Purchase.a(billingResult, null); + break; + } + ArrayList stringArrayList4 = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); + ArrayList stringArrayList5 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList6 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + for (int i2 = 0; i2 < stringArrayList5.size(); i2++) { + String str4 = stringArrayList5.get(i2); + String str5 = stringArrayList6.get(i2); + String valueOf2 = String.valueOf(stringArrayList4.get(i2)); + a.e("BillingClient", valueOf2.length() != 0 ? "Sku is owned: ".concat(valueOf2) : new String("Sku is owned: ")); + try { + Purchase purchase = new Purchase(str4, str5); + if (TextUtils.isEmpty(purchase.a())) { + a.f("BillingClient", "BUG: empty/null token!"); + } + arrayList.add(purchase); + } catch (JSONException e) { + String valueOf3 = String.valueOf(e); + StringBuilder sb = new StringBuilder(valueOf3.length() + 48); + sb.append("Got an exception trying to decode the purchase: "); + sb.append(valueOf3); + a.f("BillingClient", sb.toString()); + aVar = new Purchase.a(p.h, null); + } + } + str3 = s0.getString("INAPP_CONTINUATION_TOKEN"); + String valueOf4 = String.valueOf(str3); + a.e("BillingClient", valueOf4.length() != 0 ? "Continuation token: ".concat(valueOf4) : new String("Continuation token: ")); + if (TextUtils.isEmpty(str3)) { + aVar = new Purchase.a(p.i, arrayList); + break; + } + } catch (Exception e2) { + String valueOf5 = String.valueOf(e2); + StringBuilder sb2 = new StringBuilder(valueOf5.length() + 57); + sb2.append("Got exception trying to get purchases: "); + sb2.append(valueOf5); + sb2.append("; try to reconnect"); + a.f("BillingClient", sb2.toString()); + aVar = new Purchase.a(p.j, null); + } + } + List list = aVar.a; + if (list != null) { + this.j.onQueryPurchasesResponse(aVar.b, list); + return null; + } + f fVar = this.j; + BillingResult billingResult3 = aVar.b; + m mVar = k.j; + fVar.onQueryPurchasesResponse(billingResult3, l.k); + return null; } } diff --git a/app/src/main/java/c/d/a/a/k.java b/app/src/main/java/c/d/a/a/k.java index 861b0dc0a7..6dbf8a94c9 100644 --- a/app/src/main/java/c/d/a/a/k.java +++ b/app/src/main/java/c/d/a/a/k.java @@ -1,105 +1,24 @@ package c.d.a.a; -import c.i.a.f.h.n.a; -import java.util.Objects; -import java.util.concurrent.Callable; +import java.util.concurrent.Executors; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.atomic.AtomicInteger; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class k implements Callable { - public final /* synthetic */ l i; +public final class k implements ThreadFactory { + public final ThreadFactory i = Executors.defaultThreadFactory(); + public final AtomicInteger j = new AtomicInteger(1); - public /* synthetic */ k(l lVar) { - this.i = lVar; + public k(a aVar) { } - /* JADX WARNING: Removed duplicated region for block: B:67:0x00c6 */ - /* JADX WARNING: Removed duplicated region for block: B:68:0x00cc */ - @Override // java.util.concurrent.Callable - public final Object call() { - int i; - l lVar = this.i; - synchronized (lVar.i) { - if (!lVar.j) { - int i2 = 3; - try { - String packageName = lVar.l.e.getPackageName(); - int i3 = 16; - i = 3; - while (true) { - if (i3 < 3) { - i3 = 0; - break; - } - try { - i = lVar.l.f.N(i3, packageName, "subs"); - if (i == 0) { - break; - } - i3--; - } catch (Exception unused) { - i2 = i; - a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); - lVar.l.a = 0; - lVar.l.f = null; - i = i2; - if (i == 0) { - } - return null; - } - } - Objects.requireNonNull(lVar.l); - boolean z2 = true; - lVar.l.h = i3 >= 3; - if (i3 < 3) { - a.e("BillingClient", "In-app billing API does not support subscription on this device."); - } - int i4 = 16; - while (true) { - if (i4 < 3) { - break; - } - i = lVar.l.f.N(i4, packageName, "inapp"); - if (i == 0) { - lVar.l.i = i4; - break; - } - i4--; - } - a aVar = lVar.l; - int i5 = aVar.i; - aVar.o = i5 >= 16; - aVar.n = i5 >= 15; - aVar.m = i5 >= 14; - aVar.l = i5 >= 10; - aVar.k = i5 >= 9; - if (i5 < 6) { - z2 = false; - } - aVar.j = z2; - if (i5 < 3) { - a.f("BillingClient", "In-app billing API version 3 is not supported on this device."); - } - if (i == 0) { - lVar.l.a = 2; - } else { - lVar.l.a = 0; - lVar.l.f = null; - } - } catch (Exception unused2) { - a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); - lVar.l.a = 0; - lVar.l.f = null; - i = i2; - if (i == 0) { - } - return null; - } - if (i == 0) { - lVar.a(n.i); - } else { - lVar.a(n.a); - } - } - } - return null; + @Override // java.util.concurrent.ThreadFactory + public final Thread newThread(Runnable runnable) { + Thread newThread = this.i.newThread(runnable); + int andIncrement = this.j.getAndIncrement(); + StringBuilder sb = new StringBuilder(30); + sb.append("PlayBillingLibrary-"); + sb.append(andIncrement); + newThread.setName(sb.toString()); + return newThread; } } diff --git a/app/src/main/java/c/d/a/a/l.java b/app/src/main/java/c/d/a/a/l.java index 6bcd46ca7e..04722fef60 100644 --- a/app/src/main/java/c/d/a/a/l.java +++ b/app/src/main/java/c/d/a/a/l.java @@ -1,64 +1,17 @@ package c.d.a.a; - -import android.content.ComponentName; -import android.content.ServiceConnection; -import android.os.IBinder; -import android.os.IInterface; -import c.i.a.f.h.n.a; -import c.i.a.f.h.n.b; -import c.i.a.f.h.n.c; -import c.i.a.f.h.n.d; -import com.android.billingclient.api.BillingResult; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class l implements ServiceConnection { - public final Object i = new Object(); - public boolean j = false; - public b k; - public final /* synthetic */ a l; +public final /* synthetic */ class l implements Runnable { + public final /* synthetic */ n i; - public /* synthetic */ l(a aVar, b bVar) { - this.l = aVar; - this.k = bVar; + public /* synthetic */ l(n nVar) { + this.i = nVar; } - public final void a(BillingResult billingResult) { - synchronized (this.i) { - b bVar = this.k; - if (bVar != null) { - bVar.onBillingSetupFinished(billingResult); - } - } - } - - @Override // android.content.ServiceConnection - public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { - d dVar; - a.e("BillingClient", "Billing service connected."); - a aVar = this.l; - int i = c.a; - if (iBinder == null) { - dVar = null; - } else { - IInterface queryLocalInterface = iBinder.queryLocalInterface("com.android.vending.billing.IInAppBillingService"); - dVar = queryLocalInterface instanceof d ? (d) queryLocalInterface : new b(iBinder); - } - aVar.f = dVar; - a aVar2 = this.l; - if (aVar2.k(new k(this), 30000, new j(this), aVar2.h()) == null) { - a(this.l.j()); - } - } - - @Override // android.content.ServiceConnection - public final void onServiceDisconnected(ComponentName componentName) { - a.f("BillingClient", "Billing service disconnected."); - this.l.f = null; - this.l.a = 0; - synchronized (this.i) { - b bVar = this.k; - if (bVar != null) { - bVar.onBillingServiceDisconnected(); - } - } + @Override // java.lang.Runnable + public final void run() { + n nVar = this.i; + nVar.l.a = 0; + nVar.l.f = null; + nVar.a(p.k); } } diff --git a/app/src/main/java/c/d/a/a/m.java b/app/src/main/java/c/d/a/a/m.java new file mode 100644 index 0000000000..bcfda00709 --- /dev/null +++ b/app/src/main/java/c/d/a/a/m.java @@ -0,0 +1,105 @@ +package c.d.a.a; + +import c.i.a.f.h.n.a; +import java.util.Objects; +import java.util.concurrent.Callable; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class m implements Callable { + public final /* synthetic */ n i; + + public /* synthetic */ m(n nVar) { + this.i = nVar; + } + + /* JADX WARNING: Removed duplicated region for block: B:67:0x00c6 */ + /* JADX WARNING: Removed duplicated region for block: B:68:0x00cc */ + @Override // java.util.concurrent.Callable + public final Object call() { + int i; + n nVar = this.i; + synchronized (nVar.i) { + if (!nVar.j) { + int i2 = 3; + try { + String packageName = nVar.l.e.getPackageName(); + int i3 = 16; + i = 3; + while (true) { + if (i3 < 3) { + i3 = 0; + break; + } + try { + i = nVar.l.f.N(i3, packageName, "subs"); + if (i == 0) { + break; + } + i3--; + } catch (Exception unused) { + i2 = i; + a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); + nVar.l.a = 0; + nVar.l.f = null; + i = i2; + if (i == 0) { + } + return null; + } + } + Objects.requireNonNull(nVar.l); + boolean z2 = true; + nVar.l.h = i3 >= 3; + if (i3 < 3) { + a.e("BillingClient", "In-app billing API does not support subscription on this device."); + } + int i4 = 16; + while (true) { + if (i4 < 3) { + break; + } + i = nVar.l.f.N(i4, packageName, "inapp"); + if (i == 0) { + nVar.l.i = i4; + break; + } + i4--; + } + a aVar = nVar.l; + int i5 = aVar.i; + aVar.o = i5 >= 16; + aVar.n = i5 >= 15; + aVar.m = i5 >= 14; + aVar.l = i5 >= 10; + aVar.k = i5 >= 9; + if (i5 < 6) { + z2 = false; + } + aVar.j = z2; + if (i5 < 3) { + a.f("BillingClient", "In-app billing API version 3 is not supported on this device."); + } + if (i == 0) { + nVar.l.a = 2; + } else { + nVar.l.a = 0; + nVar.l.f = null; + } + } catch (Exception unused2) { + a.f("BillingClient", "Exception while checking if billing is supported; try to reconnect"); + nVar.l.a = 0; + nVar.l.f = null; + i = i2; + if (i == 0) { + } + return null; + } + if (i == 0) { + nVar.a(p.i); + } else { + nVar.a(p.a); + } + } + } + return null; + } +} diff --git a/app/src/main/java/c/d/a/a/n.java b/app/src/main/java/c/d/a/a/n.java index c2dc039321..0614f09b81 100644 --- a/app/src/main/java/c/d/a/a/n.java +++ b/app/src/main/java/c/d/a/a/n.java @@ -1,103 +1,64 @@ package c.d.a.a; +import android.content.ComponentName; +import android.content.ServiceConnection; +import android.os.IBinder; +import android.os.IInterface; +import c.i.a.f.h.n.a; +import c.i.a.f.h.n.b; +import c.i.a.f.h.n.c; +import c.i.a.f.h.n.d; import com.android.billingclient.api.BillingResult; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class n { - public static final BillingResult a; - public static final BillingResult b; +public final class n implements ServiceConnection { + public final Object i = new Object(); + public boolean j = false; + public b k; + public final /* synthetic */ a l; - /* renamed from: c reason: collision with root package name */ - public static final BillingResult f351c; - public static final BillingResult d; - public static final BillingResult e; - public static final BillingResult f; - public static final BillingResult g; - public static final BillingResult h; - public static final BillingResult i; - public static final BillingResult j; - public static final BillingResult k; - public static final BillingResult l; - public static final BillingResult m; + public /* synthetic */ n(a aVar, b bVar) { + this.l = aVar; + this.k = bVar; + } - static { - BillingResult billingResult = new BillingResult(); - billingResult.a = 3; - billingResult.b = "Google Play In-app Billing API version is less than 3"; - a = billingResult; - BillingResult billingResult2 = new BillingResult(); - billingResult2.a = 3; - billingResult2.b = "Google Play In-app Billing API version is less than 9"; - BillingResult billingResult3 = new BillingResult(); - billingResult3.a = 3; - billingResult3.b = "Billing service unavailable on device."; - b = billingResult3; - BillingResult billingResult4 = new BillingResult(); - billingResult4.a = 5; - billingResult4.b = "Client is already in the process of connecting to billing service."; - f351c = billingResult4; - BillingResult billingResult5 = new BillingResult(); - billingResult5.a = 3; - billingResult5.b = "Play Store version installed does not support cross selling products."; - BillingResult billingResult6 = new BillingResult(); - billingResult6.a = 5; - billingResult6.b = "The list of SKUs can't be empty."; - d = billingResult6; - BillingResult billingResult7 = new BillingResult(); - billingResult7.a = 5; - billingResult7.b = "SKU type can't be empty."; - e = billingResult7; - BillingResult billingResult8 = new BillingResult(); - billingResult8.a = -2; - billingResult8.b = "Client does not support extra params."; - f = billingResult8; - BillingResult billingResult9 = new BillingResult(); - billingResult9.a = -2; - billingResult9.b = "Client does not support the feature."; - g = billingResult9; - BillingResult billingResult10 = new BillingResult(); - billingResult10.a = -2; - billingResult10.b = "Client does not support get purchase history."; - BillingResult billingResult11 = new BillingResult(); - billingResult11.a = 5; - billingResult11.b = "Invalid purchase token."; - BillingResult billingResult12 = new BillingResult(); - billingResult12.a = 6; - billingResult12.b = "An internal error occurred."; - h = billingResult12; - BillingResult billingResult13 = new BillingResult(); - billingResult13.a = 4; - billingResult13.b = "Item is unavailable for purchase."; - BillingResult billingResult14 = new BillingResult(); - billingResult14.a = 5; - billingResult14.b = "SKU can't be null."; - BillingResult billingResult15 = new BillingResult(); - billingResult15.a = 5; - billingResult15.b = "SKU type can't be null."; - BillingResult billingResult16 = new BillingResult(); - billingResult16.a = 0; - billingResult16.b = ""; - i = billingResult16; - BillingResult billingResult17 = new BillingResult(); - billingResult17.a = -1; - billingResult17.b = "Service connection is disconnected."; - j = billingResult17; - BillingResult billingResult18 = new BillingResult(); - billingResult18.a = -3; - billingResult18.b = "Timeout communicating with service."; - k = billingResult18; - BillingResult billingResult19 = new BillingResult(); - billingResult19.a = -2; - billingResult19.b = "Client doesn't support subscriptions."; - l = billingResult19; - BillingResult billingResult20 = new BillingResult(); - billingResult20.a = -2; - billingResult20.b = "Client doesn't support subscriptions update."; - BillingResult billingResult21 = new BillingResult(); - billingResult21.a = -2; - billingResult21.b = "Client doesn't support multi-item purchases."; - m = billingResult21; - BillingResult billingResult22 = new BillingResult(); - billingResult22.a = 5; - billingResult22.b = "Unknown feature"; + public final void a(BillingResult billingResult) { + synchronized (this.i) { + b bVar = this.k; + if (bVar != null) { + bVar.onBillingSetupFinished(billingResult); + } + } + } + + @Override // android.content.ServiceConnection + public final void onServiceConnected(ComponentName componentName, IBinder iBinder) { + d dVar; + a.e("BillingClient", "Billing service connected."); + a aVar = this.l; + int i = c.a; + if (iBinder == null) { + dVar = null; + } else { + IInterface queryLocalInterface = iBinder.queryLocalInterface("com.android.vending.billing.IInAppBillingService"); + dVar = queryLocalInterface instanceof d ? (d) queryLocalInterface : new b(iBinder); + } + aVar.f = dVar; + a aVar2 = this.l; + if (aVar2.l(new m(this), 30000, new l(this), aVar2.i()) == null) { + a(this.l.k()); + } + } + + @Override // android.content.ServiceConnection + public final void onServiceDisconnected(ComponentName componentName) { + a.f("BillingClient", "Billing service disconnected."); + this.l.f = null; + this.l.a = 0; + synchronized (this.i) { + b bVar = this.k; + if (bVar != null) { + bVar.onBillingServiceDisconnected(); + } + } } } diff --git a/app/src/main/java/c/d/a/a/o.java b/app/src/main/java/c/d/a/a/o.java deleted file mode 100644 index 59f932716b..0000000000 --- a/app/src/main/java/c/d/a/a/o.java +++ /dev/null @@ -1,9 +0,0 @@ -package c.d.a.a; -/* compiled from: com.android.billingclient:billing@@4.0.0 */ -public class o { - public final String a; - - public /* synthetic */ o(String str) { - this.a = str; - } -} diff --git a/app/src/main/java/c/d/a/a/p.java b/app/src/main/java/c/d/a/a/p.java index 54e902a4de..1c635a4119 100644 --- a/app/src/main/java/c/d/a/a/p.java +++ b/app/src/main/java/c/d/a/a/p.java @@ -1,55 +1,103 @@ package c.d.a.a; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import c.i.a.f.h.n.a; import com.android.billingclient.api.BillingResult; -import com.android.billingclient.api.Purchase; -import java.util.ArrayList; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class p extends BroadcastReceiver { - public final f a; - public boolean b; +public final class p { + public static final BillingResult a; + public static final BillingResult b; /* renamed from: c reason: collision with root package name */ - public final /* synthetic */ q f352c; + public static final BillingResult f351c; + public static final BillingResult d; + public static final BillingResult e; + public static final BillingResult f; + public static final BillingResult g; + public static final BillingResult h; + public static final BillingResult i; + public static final BillingResult j; + public static final BillingResult k; + public static final BillingResult l; + public static final BillingResult m; - public /* synthetic */ p(q qVar, f fVar) { - this.f352c = qVar; - this.a = fVar; - } - - @Override // android.content.BroadcastReceiver - public final void onReceive(Context context, Intent intent) { - BillingResult c2 = a.c(intent, "BillingBroadcastManager"); - Bundle extras = intent.getExtras(); - ArrayList arrayList = null; - if (extras != null) { - ArrayList stringArrayList = extras.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); - ArrayList stringArrayList2 = extras.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); - ArrayList arrayList2 = new ArrayList(); - if (stringArrayList == null || stringArrayList2 == null) { - a.f("BillingHelper", "Couldn't find purchase lists, trying to find single data."); - Purchase g = a.g(extras.getString("INAPP_PURCHASE_DATA"), extras.getString("INAPP_DATA_SIGNATURE")); - if (g == null) { - a.f("BillingHelper", "Couldn't find single purchase data as well."); - } else { - arrayList2.add(g); - } - } else { - int i = 0; - while (i < stringArrayList.size() && i < stringArrayList2.size()) { - Purchase g2 = a.g(stringArrayList.get(i), stringArrayList2.get(i)); - if (g2 != null) { - arrayList2.add(g2); - } - i++; - } - } - arrayList = arrayList2; - } - this.a.onPurchasesUpdated(c2, arrayList); + static { + BillingResult billingResult = new BillingResult(); + billingResult.a = 3; + billingResult.b = "Google Play In-app Billing API version is less than 3"; + a = billingResult; + BillingResult billingResult2 = new BillingResult(); + billingResult2.a = 3; + billingResult2.b = "Google Play In-app Billing API version is less than 9"; + BillingResult billingResult3 = new BillingResult(); + billingResult3.a = 3; + billingResult3.b = "Billing service unavailable on device."; + b = billingResult3; + BillingResult billingResult4 = new BillingResult(); + billingResult4.a = 5; + billingResult4.b = "Client is already in the process of connecting to billing service."; + f351c = billingResult4; + BillingResult billingResult5 = new BillingResult(); + billingResult5.a = 3; + billingResult5.b = "Play Store version installed does not support cross selling products."; + BillingResult billingResult6 = new BillingResult(); + billingResult6.a = 5; + billingResult6.b = "The list of SKUs can't be empty."; + d = billingResult6; + BillingResult billingResult7 = new BillingResult(); + billingResult7.a = 5; + billingResult7.b = "SKU type can't be empty."; + e = billingResult7; + BillingResult billingResult8 = new BillingResult(); + billingResult8.a = -2; + billingResult8.b = "Client does not support extra params."; + f = billingResult8; + BillingResult billingResult9 = new BillingResult(); + billingResult9.a = -2; + billingResult9.b = "Client does not support the feature."; + g = billingResult9; + BillingResult billingResult10 = new BillingResult(); + billingResult10.a = -2; + billingResult10.b = "Client does not support get purchase history."; + BillingResult billingResult11 = new BillingResult(); + billingResult11.a = 5; + billingResult11.b = "Invalid purchase token."; + BillingResult billingResult12 = new BillingResult(); + billingResult12.a = 6; + billingResult12.b = "An internal error occurred."; + h = billingResult12; + BillingResult billingResult13 = new BillingResult(); + billingResult13.a = 4; + billingResult13.b = "Item is unavailable for purchase."; + BillingResult billingResult14 = new BillingResult(); + billingResult14.a = 5; + billingResult14.b = "SKU can't be null."; + BillingResult billingResult15 = new BillingResult(); + billingResult15.a = 5; + billingResult15.b = "SKU type can't be null."; + BillingResult billingResult16 = new BillingResult(); + billingResult16.a = 0; + billingResult16.b = ""; + i = billingResult16; + BillingResult billingResult17 = new BillingResult(); + billingResult17.a = -1; + billingResult17.b = "Service connection is disconnected."; + j = billingResult17; + BillingResult billingResult18 = new BillingResult(); + billingResult18.a = -3; + billingResult18.b = "Timeout communicating with service."; + k = billingResult18; + BillingResult billingResult19 = new BillingResult(); + billingResult19.a = -2; + billingResult19.b = "Client doesn't support subscriptions."; + l = billingResult19; + BillingResult billingResult20 = new BillingResult(); + billingResult20.a = -2; + billingResult20.b = "Client doesn't support subscriptions update."; + BillingResult billingResult21 = new BillingResult(); + billingResult21.a = -2; + billingResult21.b = "Client doesn't support multi-item purchases."; + m = billingResult21; + BillingResult billingResult22 = new BillingResult(); + billingResult22.a = 5; + billingResult22.b = "Unknown feature"; } } diff --git a/app/src/main/java/c/d/a/a/q.java b/app/src/main/java/c/d/a/a/q.java index 6036ab753d..194a58ffae 100644 --- a/app/src/main/java/c/d/a/a/q.java +++ b/app/src/main/java/c/d/a/a/q.java @@ -1,25 +1,9 @@ package c.d.a.a; - -import android.content.Context; -import c.i.a.f.h.n.a; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class q { - public final Context a; - public final p b; +public class q { + public final String a; - public q(Context context, f fVar) { - this.a = context; - this.b = new p(this, fVar); - } - - public final void a() { - p pVar = this.b; - Context context = this.a; - if (pVar.b) { - context.unregisterReceiver(pVar.f352c.b); - pVar.b = false; - return; - } - a.f("BillingBroadcastManager", "Receiver is not registered."); + public /* synthetic */ q(String str) { + this.a = str; } } diff --git a/app/src/main/java/c/d/a/a/r.java b/app/src/main/java/c/d/a/a/r.java index ed4526cb88..28a941fc47 100644 --- a/app/src/main/java/c/d/a/a/r.java +++ b/app/src/main/java/c/d/a/a/r.java @@ -1,73 +1,55 @@ package c.d.a.a; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; import android.os.Bundle; import c.i.a.f.h.n.a; -import c.i.a.f.h.n.d; import com.android.billingclient.api.BillingResult; -import java.util.Objects; -import java.util.concurrent.Callable; +import com.android.billingclient.api.Purchase; +import java.util.ArrayList; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class r implements Callable { - public final /* synthetic */ a i; - public final /* synthetic */ d j; - public final /* synthetic */ e k; +public final class r extends BroadcastReceiver { + public final g a; + public boolean b; - public /* synthetic */ r(a aVar, d dVar, e eVar) { - this.i = aVar; - this.j = dVar; - this.k = eVar; + /* renamed from: c reason: collision with root package name */ + public final /* synthetic */ s f352c; + + public /* synthetic */ r(s sVar, g gVar) { + this.f352c = sVar; + this.a = gVar; } - @Override // java.util.concurrent.Callable - public final Object call() { - int i; - String str; - a aVar = this.i; - d dVar = this.j; - e eVar = this.k; - Objects.requireNonNull(aVar); - String str2 = dVar.a; - try { - String valueOf = String.valueOf(str2); - a.e("BillingClient", valueOf.length() != 0 ? "Consuming purchase with token: ".concat(valueOf) : new String("Consuming purchase with token: ")); - if (aVar.k) { - d dVar2 = aVar.f; - String packageName = aVar.e.getPackageName(); - boolean z2 = aVar.k; - String str3 = aVar.b; - Bundle bundle = new Bundle(); - if (z2) { - bundle.putString("playBillingLibraryVersion", str3); + @Override // android.content.BroadcastReceiver + public final void onReceive(Context context, Intent intent) { + BillingResult c2 = a.c(intent, "BillingBroadcastManager"); + Bundle extras = intent.getExtras(); + ArrayList arrayList = null; + if (extras != null) { + ArrayList stringArrayList = extras.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); + ArrayList stringArrayList2 = extras.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); + ArrayList arrayList2 = new ArrayList(); + if (stringArrayList == null || stringArrayList2 == null) { + a.f("BillingHelper", "Couldn't find purchase lists, trying to find single data."); + Purchase g = a.g(extras.getString("INAPP_PURCHASE_DATA"), extras.getString("INAPP_DATA_SIGNATURE")); + if (g == null) { + a.f("BillingHelper", "Couldn't find single purchase data as well."); + } else { + arrayList2.add(g); } - Bundle q = dVar2.q(9, packageName, str2, bundle); - i = q.getInt("RESPONSE_CODE"); - str = a.d(q, "BillingClient"); } else { - i = aVar.f.p(3, aVar.e.getPackageName(), str2); - str = ""; + int i = 0; + while (i < stringArrayList.size() && i < stringArrayList2.size()) { + Purchase g2 = a.g(stringArrayList.get(i), stringArrayList2.get(i)); + if (g2 != null) { + arrayList2.add(g2); + } + i++; + } } - BillingResult billingResult = new BillingResult(); - billingResult.a = i; - billingResult.b = str; - if (i == 0) { - a.e("BillingClient", "Successfully consumed purchase."); - eVar.onConsumeResponse(billingResult, str2); - return null; - } - StringBuilder sb = new StringBuilder(63); - sb.append("Error consuming purchase with token. Response code: "); - sb.append(i); - a.f("BillingClient", sb.toString()); - eVar.onConsumeResponse(billingResult, str2); - return null; - } catch (Exception e) { - String valueOf2 = String.valueOf(e); - StringBuilder sb2 = new StringBuilder(valueOf2.length() + 30); - sb2.append("Error consuming purchase; ex: "); - sb2.append(valueOf2); - a.f("BillingClient", sb2.toString()); - eVar.onConsumeResponse(n.j, str2); - return null; + arrayList = arrayList2; } + this.a.onPurchasesUpdated(c2, arrayList); } } diff --git a/app/src/main/java/c/d/a/a/s.java b/app/src/main/java/c/d/a/a/s.java index eff237a9c0..49ed41c5da 100644 --- a/app/src/main/java/c/d/a/a/s.java +++ b/app/src/main/java/c/d/a/a/s.java @@ -1,23 +1,25 @@ package c.d.a.a; -import com.android.billingclient.api.SkuDetails; -import java.util.concurrent.Callable; +import android.content.Context; +import c.i.a.f.h.n.a; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class s implements Callable { - public final /* synthetic */ a i; - public final /* synthetic */ SkuDetails j; - public final /* synthetic */ String k; +public final class s { + public final Context a; + public final r b; - public /* synthetic */ s(a aVar, SkuDetails skuDetails, String str) { - this.i = aVar; - this.j = skuDetails; - this.k = str; + public s(Context context, g gVar) { + this.a = context; + this.b = new r(this, gVar); } - @Override // java.util.concurrent.Callable - public final Object call() { - a aVar = this.i; - SkuDetails skuDetails = this.j; - return aVar.f.G(3, aVar.e.getPackageName(), skuDetails.d(), this.k, null); + public final void a() { + r rVar = this.b; + Context context = this.a; + if (rVar.b) { + context.unregisterReceiver(rVar.f352c.b); + rVar.b = false; + return; + } + a.f("BillingBroadcastManager", "Receiver is not registered."); } } diff --git a/app/src/main/java/c/d/a/a/t.java b/app/src/main/java/c/d/a/a/t.java index 91a86b786b..101d895b1a 100644 --- a/app/src/main/java/c/d/a/a/t.java +++ b/app/src/main/java/c/d/a/a/t.java @@ -2,132 +2,72 @@ package c.d.a.a; import android.os.Bundle; import c.i.a.f.h.n.a; +import c.i.a.f.h.n.d; import com.android.billingclient.api.BillingResult; -import com.android.billingclient.api.SkuDetails; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; import java.util.concurrent.Callable; -import org.json.JSONException; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public final /* synthetic */ class t implements Callable { public final /* synthetic */ a i; - public final /* synthetic */ String j; - public final /* synthetic */ List k; - public final /* synthetic */ h l; + public final /* synthetic */ d j; + public final /* synthetic */ e k; - public /* synthetic */ t(a aVar, String str, List list, h hVar) { + public /* synthetic */ t(a aVar, d dVar, e eVar) { this.i = aVar; - this.j = str; - this.k = list; - this.l = hVar; + this.j = dVar; + this.k = eVar; } - /* JADX WARNING: Code restructure failed: missing block: B:26:0x00cd, code lost: - r14 = 4; - r0 = "Item is unavailable for purchase."; - */ @Override // java.util.concurrent.Callable public final Object call() { - String str; int i; - Bundle bundle; - int i2; + String str; a aVar = this.i; - String str2 = this.j; - List list = this.k; - h hVar = this.l; + d dVar = this.j; + e eVar = this.k; Objects.requireNonNull(aVar); - ArrayList arrayList = new ArrayList(); - int size = list.size(); - int i3 = 0; - while (true) { - if (i3 >= size) { + String str2 = dVar.a; + try { + String valueOf = String.valueOf(str2); + a.e("BillingClient", valueOf.length() != 0 ? "Consuming purchase with token: ".concat(valueOf) : new String("Consuming purchase with token: ")); + if (aVar.k) { + d dVar2 = aVar.f; + String packageName = aVar.e.getPackageName(); + boolean z2 = aVar.k; + String str3 = aVar.b; + Bundle bundle = new Bundle(); + if (z2) { + bundle.putString("playBillingLibraryVersion", str3); + } + Bundle q = dVar2.q(9, packageName, str2, bundle); + i = q.getInt("RESPONSE_CODE"); + str = a.d(q, "BillingClient"); + } else { + i = aVar.f.p(3, aVar.e.getPackageName(), str2); str = ""; - i = 0; - break; } - int i4 = i3 + 20; - ArrayList arrayList2 = new ArrayList(list.subList(i3, i4 > size ? size : i4)); - ArrayList arrayList3 = new ArrayList<>(); - int size2 = arrayList2.size(); - for (int i5 = 0; i5 < size2; i5++) { - arrayList3.add(((o) arrayList2.get(i5)).a); - } - Bundle bundle2 = new Bundle(); - bundle2.putStringArrayList("ITEM_ID_LIST", arrayList3); - bundle2.putString("playBillingLibraryVersion", aVar.b); - try { - if (aVar.l) { - i2 = i4; - bundle = aVar.f.n(10, aVar.e.getPackageName(), str2, bundle2, a.b(aVar.i, aVar.p, aVar.b, null, arrayList2)); - } else { - i2 = i4; - bundle = aVar.f.g0(3, aVar.e.getPackageName(), str2, bundle2); - } - if (bundle == null) { - a.f("BillingClient", "querySkuDetailsAsync got null sku details list"); - break; - } else if (!bundle.containsKey("DETAILS_LIST")) { - i = a.a(bundle, "BillingClient"); - str = a.d(bundle, "BillingClient"); - if (i != 0) { - StringBuilder sb = new StringBuilder(50); - sb.append("getSkuDetails() failed. Response code: "); - sb.append(i); - a.f("BillingClient", sb.toString()); - } else { - a.f("BillingClient", "getSkuDetails() returned a bundle with neither an error nor a detail list."); - } - } else { - ArrayList stringArrayList = bundle.getStringArrayList("DETAILS_LIST"); - if (stringArrayList == null) { - a.f("BillingClient", "querySkuDetailsAsync got null response list"); - break; - } - for (int i6 = 0; i6 < stringArrayList.size(); i6++) { - try { - SkuDetails skuDetails = new SkuDetails(stringArrayList.get(i6)); - String valueOf = String.valueOf(skuDetails); - StringBuilder sb2 = new StringBuilder(valueOf.length() + 17); - sb2.append("Got sku details: "); - sb2.append(valueOf); - a.e("BillingClient", sb2.toString()); - arrayList.add(skuDetails); - } catch (JSONException unused) { - a.f("BillingClient", "Got a JSON exception trying to decode SkuDetails."); - str = "Error trying to decode SkuDetails."; - arrayList = null; - i = 6; - BillingResult billingResult = new BillingResult(); - billingResult.a = i; - billingResult.b = str; - hVar.onSkuDetailsResponse(billingResult, arrayList); - return null; - } - } - i3 = i2; - } - } catch (Exception e) { - String valueOf2 = String.valueOf(e); - StringBuilder sb3 = new StringBuilder(valueOf2.length() + 63); - sb3.append("querySkuDetailsAsync got a remote exception (try to reconnect)."); - sb3.append(valueOf2); - a.f("BillingClient", sb3.toString()); - i = -1; - str = "Service connection is disconnected."; + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.b = str; + if (i == 0) { + a.e("BillingClient", "Successfully consumed purchase."); + eVar.onConsumeResponse(billingResult, str2); + return null; } + StringBuilder sb = new StringBuilder(63); + sb.append("Error consuming purchase with token. Response code: "); + sb.append(i); + a.f("BillingClient", sb.toString()); + eVar.onConsumeResponse(billingResult, str2); + return null; + } catch (Exception e) { + String valueOf2 = String.valueOf(e); + StringBuilder sb2 = new StringBuilder(valueOf2.length() + 30); + sb2.append("Error consuming purchase; ex: "); + sb2.append(valueOf2); + a.f("BillingClient", sb2.toString()); + eVar.onConsumeResponse(p.j, str2); + return null; } - BillingResult billingResult = new BillingResult(); - billingResult.a = i; - billingResult.b = str; - hVar.onSkuDetailsResponse(billingResult, arrayList); - return null; - arrayList = null; - BillingResult billingResult = new BillingResult(); - billingResult.a = i; - billingResult.b = str; - hVar.onSkuDetailsResponse(billingResult, arrayList); - return null; } } diff --git a/app/src/main/java/c/d/a/a/u.java b/app/src/main/java/c/d/a/a/u.java index 6e8bbf0d65..b13576bd67 100644 --- a/app/src/main/java/c/d/a/a/u.java +++ b/app/src/main/java/c/d/a/a/u.java @@ -1,19 +1,23 @@ package c.d.a.a; -import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.SkuDetails; +import java.util.concurrent.Callable; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class u implements Runnable { +public final /* synthetic */ class u implements Callable { public final /* synthetic */ a i; - public final /* synthetic */ BillingResult j; + public final /* synthetic */ SkuDetails j; + public final /* synthetic */ String k; - public /* synthetic */ u(a aVar, BillingResult billingResult) { + public /* synthetic */ u(a aVar, SkuDetails skuDetails, String str) { this.i = aVar; - this.j = billingResult; + this.j = skuDetails; + this.k = str; } - @Override // java.lang.Runnable - public final void run() { + @Override // java.util.concurrent.Callable + public final Object call() { a aVar = this.i; - aVar.d.b.a.onPurchasesUpdated(this.j, null); + SkuDetails skuDetails = this.j; + return aVar.f.G(3, aVar.e.getPackageName(), skuDetails.d(), this.k, null); } } diff --git a/app/src/main/java/c/d/a/a/v.java b/app/src/main/java/c/d/a/a/v.java index e49c6f13ce..646f389d0d 100644 --- a/app/src/main/java/c/d/a/a/v.java +++ b/app/src/main/java/c/d/a/a/v.java @@ -1,16 +1,133 @@ package c.d.a.a; -/* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class v implements Runnable { - public final /* synthetic */ e i; - public final /* synthetic */ d j; - public /* synthetic */ v(e eVar, d dVar) { - this.i = eVar; - this.j = dVar; +import android.os.Bundle; +import c.i.a.f.h.n.a; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.SkuDetails; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.Callable; +import org.json.JSONException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final /* synthetic */ class v implements Callable { + public final /* synthetic */ a i; + public final /* synthetic */ String j; + public final /* synthetic */ List k; + public final /* synthetic */ i l; + + public /* synthetic */ v(a aVar, String str, List list, i iVar) { + this.i = aVar; + this.j = str; + this.k = list; + this.l = iVar; } - @Override // java.lang.Runnable - public final void run() { - this.i.onConsumeResponse(n.k, this.j.a); + /* JADX WARNING: Code restructure failed: missing block: B:26:0x00cd, code lost: + r14 = 4; + r0 = "Item is unavailable for purchase."; + */ + @Override // java.util.concurrent.Callable + public final Object call() { + String str; + int i; + Bundle bundle; + int i2; + a aVar = this.i; + String str2 = this.j; + List list = this.k; + i iVar = this.l; + Objects.requireNonNull(aVar); + ArrayList arrayList = new ArrayList(); + int size = list.size(); + int i3 = 0; + while (true) { + if (i3 >= size) { + str = ""; + i = 0; + break; + } + int i4 = i3 + 20; + ArrayList arrayList2 = new ArrayList(list.subList(i3, i4 > size ? size : i4)); + ArrayList arrayList3 = new ArrayList<>(); + int size2 = arrayList2.size(); + for (int i5 = 0; i5 < size2; i5++) { + arrayList3.add(((q) arrayList2.get(i5)).a); + } + Bundle bundle2 = new Bundle(); + bundle2.putStringArrayList("ITEM_ID_LIST", arrayList3); + bundle2.putString("playBillingLibraryVersion", aVar.b); + try { + if (aVar.l) { + i2 = i4; + bundle = aVar.f.n(10, aVar.e.getPackageName(), str2, bundle2, a.b(aVar.i, aVar.p, aVar.b, null, arrayList2)); + } else { + i2 = i4; + bundle = aVar.f.g0(3, aVar.e.getPackageName(), str2, bundle2); + } + if (bundle == null) { + a.f("BillingClient", "querySkuDetailsAsync got null sku details list"); + break; + } else if (!bundle.containsKey("DETAILS_LIST")) { + i = a.a(bundle, "BillingClient"); + str = a.d(bundle, "BillingClient"); + if (i != 0) { + StringBuilder sb = new StringBuilder(50); + sb.append("getSkuDetails() failed. Response code: "); + sb.append(i); + a.f("BillingClient", sb.toString()); + } else { + a.f("BillingClient", "getSkuDetails() returned a bundle with neither an error nor a detail list."); + } + } else { + ArrayList stringArrayList = bundle.getStringArrayList("DETAILS_LIST"); + if (stringArrayList == null) { + a.f("BillingClient", "querySkuDetailsAsync got null response list"); + break; + } + for (int i6 = 0; i6 < stringArrayList.size(); i6++) { + try { + SkuDetails skuDetails = new SkuDetails(stringArrayList.get(i6)); + String valueOf = String.valueOf(skuDetails); + StringBuilder sb2 = new StringBuilder(valueOf.length() + 17); + sb2.append("Got sku details: "); + sb2.append(valueOf); + a.e("BillingClient", sb2.toString()); + arrayList.add(skuDetails); + } catch (JSONException unused) { + a.f("BillingClient", "Got a JSON exception trying to decode SkuDetails."); + str = "Error trying to decode SkuDetails."; + arrayList = null; + i = 6; + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; + } + } + i3 = i2; + } + } catch (Exception e) { + String valueOf2 = String.valueOf(e); + StringBuilder sb3 = new StringBuilder(valueOf2.length() + 63); + sb3.append("querySkuDetailsAsync got a remote exception (try to reconnect)."); + sb3.append(valueOf2); + a.f("BillingClient", sb3.toString()); + i = -1; + str = "Service connection is disconnected."; + } + } + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; + arrayList = null; + BillingResult billingResult = new BillingResult(); + billingResult.a = i; + billingResult.b = str; + iVar.onSkuDetailsResponse(billingResult, arrayList); + return null; } } diff --git a/app/src/main/java/c/d/a/a/w.java b/app/src/main/java/c/d/a/a/w.java index 474115f4dd..e8685c1fab 100644 --- a/app/src/main/java/c/d/a/a/w.java +++ b/app/src/main/java/c/d/a/a/w.java @@ -1,14 +1,19 @@ package c.d.a.a; + +import com.android.billingclient.api.BillingResult; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public final /* synthetic */ class w implements Runnable { - public final /* synthetic */ h i; + public final /* synthetic */ a i; + public final /* synthetic */ BillingResult j; - public /* synthetic */ w(h hVar) { - this.i = hVar; + public /* synthetic */ w(a aVar, BillingResult billingResult) { + this.i = aVar; + this.j = billingResult; } @Override // java.lang.Runnable public final void run() { - this.i.onSkuDetailsResponse(n.k, null); + a aVar = this.i; + aVar.d.b.a.onPurchasesUpdated(this.j, null); } } diff --git a/app/src/main/java/c/d/a/a/x.java b/app/src/main/java/c/d/a/a/x.java index 4e567d2475..e99c7ab2fb 100644 --- a/app/src/main/java/c/d/a/a/x.java +++ b/app/src/main/java/c/d/a/a/x.java @@ -1,27 +1,16 @@ package c.d.a.a; - -import c.i.a.f.h.n.a; -import java.util.concurrent.Future; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public final /* synthetic */ class x implements Runnable { - public final /* synthetic */ Future i; - public final /* synthetic */ Runnable j; + public final /* synthetic */ e i; + public final /* synthetic */ d j; - public /* synthetic */ x(Future future, Runnable runnable) { - this.i = future; - this.j = runnable; + public /* synthetic */ x(e eVar, d dVar) { + this.i = eVar; + this.j = dVar; } @Override // java.lang.Runnable public final void run() { - Future future = this.i; - Runnable runnable = this.j; - if (!future.isDone() && !future.isCancelled()) { - future.cancel(true); - a.f("BillingClient", "Async task is taking too long, cancel it!"); - if (runnable != null) { - runnable.run(); - } - } + this.i.onConsumeResponse(p.k, this.j.a); } } diff --git a/app/src/main/java/c/d/a/a/y.java b/app/src/main/java/c/d/a/a/y.java index abc1540418..b7d714c3e7 100644 --- a/app/src/main/java/c/d/a/a/y.java +++ b/app/src/main/java/c/d/a/a/y.java @@ -1,32 +1,22 @@ package c.d.a.a; -import android.os.Bundle; -import com.android.billingclient.api.BillingFlowParams; -import com.android.billingclient.api.SkuDetails; -import java.util.concurrent.Callable; +import c.i.a.f.h.n.k; +import c.i.a.f.h.n.l; +import c.i.a.f.h.n.m; +import com.android.billingclient.api.BillingResult; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final /* synthetic */ class y implements Callable { - public final /* synthetic */ a i; - public final /* synthetic */ int j; - public final /* synthetic */ SkuDetails k; - public final /* synthetic */ String l; - public final /* synthetic */ BillingFlowParams m; - public final /* synthetic */ Bundle n; +public final /* synthetic */ class y implements Runnable { + public final /* synthetic */ f i; - public /* synthetic */ y(a aVar, int i, SkuDetails skuDetails, String str, BillingFlowParams billingFlowParams, Bundle bundle) { - this.i = aVar; - this.j = i; - this.k = skuDetails; - this.l = str; - this.m = billingFlowParams; - this.n = bundle; + public /* synthetic */ y(f fVar) { + this.i = fVar; } - @Override // java.util.concurrent.Callable - public final Object call() { - a aVar = this.i; - int i = this.j; - SkuDetails skuDetails = this.k; - return aVar.f.e0(i, aVar.e.getPackageName(), skuDetails.d(), this.l, null, this.n); + @Override // java.lang.Runnable + public final void run() { + f fVar = this.i; + BillingResult billingResult = p.k; + m mVar = k.j; + fVar.onQueryPurchasesResponse(billingResult, l.k); } } diff --git a/app/src/main/java/c/d/a/a/z.java b/app/src/main/java/c/d/a/a/z.java index 718a91b6bb..dc04f0c4d1 100644 --- a/app/src/main/java/c/d/a/a/z.java +++ b/app/src/main/java/c/d/a/a/z.java @@ -1,120 +1,14 @@ package c.d.a.a; - -import android.os.Bundle; -import android.text.TextUtils; -import c.i.a.f.h.n.a; -import com.android.billingclient.api.BillingResult; -import com.android.billingclient.api.Purchase; -import java.util.ArrayList; -import java.util.concurrent.Callable; -import org.json.JSONException; /* compiled from: com.android.billingclient:billing@@4.0.0 */ -public final class z implements Callable { - public final /* synthetic */ String i; - public final /* synthetic */ a j; +public final /* synthetic */ class z implements Runnable { + public final /* synthetic */ i i; - public z(a aVar, String str) { - this.j = aVar; - this.i = str; + public /* synthetic */ z(i iVar) { + this.i = iVar; } - /* Return type fixed from 'java.lang.Object' to match base method */ - @Override // java.util.concurrent.Callable - public final Purchase.a call() throws Exception { - a aVar = this.j; - String str = this.i; - String valueOf = String.valueOf(str); - a.e("BillingClient", valueOf.length() != 0 ? "Querying owned items, item type: ".concat(valueOf) : new String("Querying owned items, item type: ")); - ArrayList arrayList = new ArrayList(); - boolean z2 = aVar.k; - boolean z3 = aVar.p; - String str2 = aVar.b; - Bundle bundle = new Bundle(); - bundle.putString("playBillingLibraryVersion", str2); - int i = 1; - if (z2 && z3) { - bundle.putBoolean("enablePendingPurchases", true); - } - String str3 = null; - do { - try { - Bundle s0 = aVar.k ? aVar.f.s0(9, aVar.e.getPackageName(), str, str3, bundle) : aVar.f.F(3, aVar.e.getPackageName(), str, str3); - BillingResult billingResult = n.h; - if (s0 == null) { - Object[] objArr = new Object[i]; - objArr[0] = "getPurchase()"; - a.f("BillingClient", String.format("%s got null owned items list", objArr)); - } else { - int a = a.a(s0, "BillingClient"); - String d = a.d(s0, "BillingClient"); - BillingResult billingResult2 = new BillingResult(); - billingResult2.a = a; - billingResult2.b = d; - if (a != 0) { - a.f("BillingClient", String.format("%s failed. Response code: %s", "getPurchase()", Integer.valueOf(a))); - billingResult = billingResult2; - i = 1; - } else if (!s0.containsKey("INAPP_PURCHASE_ITEM_LIST") || !s0.containsKey("INAPP_PURCHASE_DATA_LIST") || !s0.containsKey("INAPP_DATA_SIGNATURE_LIST")) { - i = 1; - a.f("BillingClient", String.format("Bundle returned from %s doesn't contain required fields.", "getPurchase()")); - } else { - ArrayList stringArrayList = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); - ArrayList stringArrayList2 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); - ArrayList stringArrayList3 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); - if (stringArrayList == null) { - i = 1; - a.f("BillingClient", String.format("Bundle returned from %s contains null SKUs list.", "getPurchase()")); - } else { - i = 1; - if (stringArrayList2 == null) { - a.f("BillingClient", String.format("Bundle returned from %s contains null purchases list.", "getPurchase()")); - } else if (stringArrayList3 == null) { - a.f("BillingClient", String.format("Bundle returned from %s contains null signatures list.", "getPurchase()")); - } else { - billingResult = n.i; - } - } - } - } - if (billingResult != n.i) { - return new Purchase.a(billingResult, null); - } - ArrayList stringArrayList4 = s0.getStringArrayList("INAPP_PURCHASE_ITEM_LIST"); - ArrayList stringArrayList5 = s0.getStringArrayList("INAPP_PURCHASE_DATA_LIST"); - ArrayList stringArrayList6 = s0.getStringArrayList("INAPP_DATA_SIGNATURE_LIST"); - for (int i2 = 0; i2 < stringArrayList5.size(); i2++) { - String str4 = stringArrayList5.get(i2); - String str5 = stringArrayList6.get(i2); - String valueOf2 = String.valueOf(stringArrayList4.get(i2)); - a.e("BillingClient", valueOf2.length() != 0 ? "Sku is owned: ".concat(valueOf2) : new String("Sku is owned: ")); - try { - Purchase purchase = new Purchase(str4, str5); - if (TextUtils.isEmpty(purchase.a())) { - a.f("BillingClient", "BUG: empty/null token!"); - } - arrayList.add(purchase); - } catch (JSONException e) { - String valueOf3 = String.valueOf(e); - StringBuilder sb = new StringBuilder(valueOf3.length() + 48); - sb.append("Got an exception trying to decode the purchase: "); - sb.append(valueOf3); - a.f("BillingClient", sb.toString()); - return new Purchase.a(n.h, null); - } - } - str3 = s0.getString("INAPP_CONTINUATION_TOKEN"); - String valueOf4 = String.valueOf(str3); - a.e("BillingClient", valueOf4.length() != 0 ? "Continuation token: ".concat(valueOf4) : new String("Continuation token: ")); - } catch (Exception e2) { - String valueOf5 = String.valueOf(e2); - StringBuilder sb2 = new StringBuilder(valueOf5.length() + 57); - sb2.append("Got exception trying to get purchases: "); - sb2.append(valueOf5); - sb2.append("; try to reconnect"); - a.f("BillingClient", sb2.toString()); - return new Purchase.a(n.j, null); - } - } while (!TextUtils.isEmpty(str3)); - return new Purchase.a(n.i, arrayList); + @Override // java.lang.Runnable + public final void run() { + this.i.onSkuDetailsResponse(p.k, null); } } diff --git a/app/src/main/java/c/i/a/f/e/o/f.java b/app/src/main/java/c/i/a/f/e/o/f.java index a88e37a9ac..66e29eb76e 100644 --- a/app/src/main/java/c/i/a/f/e/o/f.java +++ b/app/src/main/java/c/i/a/f/e/o/f.java @@ -273,19 +273,15 @@ public final class f { return l1(new c(i)); } - public static V A1(d2 d2Var) { - long clearCallingIdentity; - try { - return d2Var.a(); - } catch (SecurityException unused) { - clearCallingIdentity = Binder.clearCallingIdentity(); - V a2 = d2Var.a(); - Binder.restoreCallingIdentity(clearCallingIdentity); - return a2; - } catch (Throwable th) { - Binder.restoreCallingIdentity(clearCallingIdentity); - throw th; + public static T A1(@NonNull Bundle bundle, String str, Class cls, T t) { + T t2 = (T) bundle.get(str); + if (t2 == null) { + return t; } + if (cls.isAssignableFrom(t2.getClass())) { + return t2; + } + throw new IllegalStateException(String.format("Invalid conditional user property field type. '%s' expected [%s] but was [%s]", str, cls.getCanonicalName(), t2.getClass().getCanonicalName())); } public static void B(boolean z2, @NullableDecl String str, @NullableDecl Object obj) { @@ -299,14 +295,19 @@ public final class f { return l1(new a(i)); } - public static TResult B1(@NonNull Task task) throws ExecutionException { - if (task.p()) { - return task.l(); + public static V B1(d2 d2Var) { + long clearCallingIdentity; + try { + return d2Var.a(); + } catch (SecurityException unused) { + clearCallingIdentity = Binder.clearCallingIdentity(); + V a2 = d2Var.a(); + Binder.restoreCallingIdentity(clearCallingIdentity); + return a2; + } catch (Throwable th) { + Binder.restoreCallingIdentity(clearCallingIdentity); + throw th; } - if (task.n()) { - throw new CancellationException("Task is already canceled"); - } - throw new ExecutionException(task.k()); } public static int C(long j) { @@ -322,17 +323,14 @@ public final class f { return l1(new d(i)); } - public static String C1(Context context, String str) { - try { - Objects.requireNonNull(context, "null reference"); - Resources resources = context.getResources(); - int identifier = resources.getIdentifier(str, "string", resources.getResourcePackageName(R.a.common_google_play_services_unknown_issue)); - if (identifier == 0) { - return null; - } - return resources.getString(identifier); - } catch (Resources.NotFoundException unused) { + public static TResult C1(@NonNull Task task) throws ExecutionException { + if (task.p()) { + return task.l(); } + if (task.n()) { + throw new CancellationException("Task is already canceled"); + } + throw new ExecutionException(task.k()); } public static int D(int i, int i2) { @@ -363,55 +361,17 @@ public final class f { return l1(new b(i)); } - public static String D1(t3 t3Var) { - b7 b7Var = new b7(t3Var); - StringBuilder sb = new StringBuilder(t3Var.d()); - for (int i = 0; i < b7Var.a.d(); i++) { - byte c2 = b7Var.a.c(i); - if (c2 == 34) { - sb.append("\\\""); - } else if (c2 == 39) { - sb.append("\\'"); - } else if (c2 != 92) { - switch (c2) { - case 7: - sb.append("\\a"); - continue; - case 8: - sb.append("\\b"); - continue; - case 9: - sb.append("\\t"); - continue; - case 10: - sb.append("\\n"); - continue; - case 11: - sb.append("\\v"); - continue; - case 12: - sb.append("\\f"); - continue; - case 13: - sb.append("\\r"); - continue; - default: - if (c2 < 32 || c2 > 126) { - sb.append('\\'); - sb.append((char) (((c2 >>> 6) & 3) + 48)); - sb.append((char) (((c2 >>> 3) & 7) + 48)); - sb.append((char) ((c2 & 7) + 48)); - break; - } else { - sb.append((char) c2); - continue; - } - } - } else { - sb.append("\\\\"); + public static String D1(Context context, String str) { + try { + Objects.requireNonNull(context, "null reference"); + Resources resources = context.getResources(); + int identifier = resources.getIdentifier(str, "string", resources.getResourcePackageName(R.a.common_google_play_services_unknown_issue)); + if (identifier == 0) { + return null; } + return resources.getString(identifier); + } catch (Resources.NotFoundException unused) { } - return sb.toString(); } public static final byte[] E(String str) { @@ -491,14 +451,53 @@ public final class f { flexInputViewModel.onContentDialogDismissed(z2); } - public static final String E1(String str) { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < str.length(); i++) { - char charAt = str.charAt(i); - if (Character.isUpperCase(charAt)) { - sb.append("_"); + public static String E1(t3 t3Var) { + b7 b7Var = new b7(t3Var); + StringBuilder sb = new StringBuilder(t3Var.d()); + for (int i = 0; i < b7Var.a.d(); i++) { + byte c2 = b7Var.a.c(i); + if (c2 == 34) { + sb.append("\\\""); + } else if (c2 == 39) { + sb.append("\\'"); + } else if (c2 != 92) { + switch (c2) { + case 7: + sb.append("\\a"); + continue; + case 8: + sb.append("\\b"); + continue; + case 9: + sb.append("\\t"); + continue; + case 10: + sb.append("\\n"); + continue; + case 11: + sb.append("\\v"); + continue; + case 12: + sb.append("\\f"); + continue; + case 13: + sb.append("\\r"); + continue; + default: + if (c2 < 32 || c2 > 126) { + sb.append('\\'); + sb.append((char) (((c2 >>> 6) & 3) + 48)); + sb.append((char) (((c2 >>> 3) & 7) + 48)); + sb.append((char) ((c2 & 7) + 48)); + break; + } else { + sb.append((char) c2); + continue; + } + } + } else { + sb.append("\\\\"); } - sb.append(Character.toLowerCase(charAt)); } return sb.toString(); } @@ -530,16 +529,16 @@ public final class f { flexInputViewModel.onInputTextChanged(str, null); } - @Nullable - public static String F1(String str, String[] strArr, String[] strArr2) { - int min = Math.min(strArr.length, strArr2.length); - for (int i = 0; i < min; i++) { - String str2 = strArr[i]; - if ((str == null && str2 == null) ? true : str == null ? false : str.equals(str2)) { - return strArr2[i]; + public static final String F1(String str) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < str.length(); i++) { + char charAt = str.charAt(i); + if (Character.isUpperCase(charAt)) { + sb.append("_"); } + sb.append(Character.toLowerCase(charAt)); } - return null; + return sb.toString(); } public static c.i.c.l.d G(String str, String str2) { @@ -555,16 +554,16 @@ public final class f { return new l(cVarArr, null); } - @WorkerThread - public static Set G1(SQLiteDatabase sQLiteDatabase, String str) { - HashSet hashSet = new HashSet(); - Cursor rawQuery = sQLiteDatabase.rawQuery(c.d.b.a.a.j(c.d.b.a.a.b(str, 22), "SELECT * FROM ", str, " LIMIT 0"), null); - try { - Collections.addAll(hashSet, rawQuery.getColumnNames()); - return hashSet; - } finally { - rawQuery.close(); + @Nullable + public static String G1(String str, String[] strArr, String[] strArr2) { + int min = Math.min(strArr.length, strArr2.length); + for (int i = 0; i < min; i++) { + String str2 = strArr[i]; + if ((str == null && str2 == null) ? true : str == null ? false : str.equals(str2)) { + return strArr2[i]; + } } + return null; } /* JADX WARNING: Code restructure failed: missing block: B:40:0x00a0, code lost: @@ -699,16 +698,16 @@ public final class f { return 1; } - public static void H1(byte b2, byte b3, byte b4, byte b5, char[] cArr, int i) throws zzij { - if (!Y1(b3)) { - if ((((b3 + 112) + (b2 << 28)) >> 30) == 0 && !Y1(b4) && !Y1(b5)) { - int i2 = ((b2 & 7) << 18) | ((b3 & 63) << 12) | ((b4 & 63) << 6) | (b5 & 63); - cArr[i] = (char) ((i2 >>> 10) + 55232); - cArr[i + 1] = (char) ((i2 & AudioAttributesCompat.FLAG_ALL) + 56320); - return; - } + @WorkerThread + public static Set H1(SQLiteDatabase sQLiteDatabase, String str) { + HashSet hashSet = new HashSet(); + Cursor rawQuery = sQLiteDatabase.rawQuery(c.d.b.a.a.j(c.d.b.a.a.b(str, 22), "SELECT * FROM ", str, " LIMIT 0"), null); + try { + Collections.addAll(hashSet, rawQuery.getColumnNames()); + return hashSet; + } finally { + rawQuery.close(); } - throw zzij.e(); } public static final Object I(long j, Continuation continuation) { @@ -777,11 +776,16 @@ public final class f { } } - public static void I1(byte b2, byte b3, byte b4, char[] cArr, int i) throws zzij { - if (Y1(b3) || ((b2 == -32 && b3 < -96) || ((b2 == -19 && b3 >= -96) || Y1(b4)))) { - throw zzij.e(); + public static void I1(byte b2, byte b3, byte b4, byte b5, char[] cArr, int i) throws zzij { + if (!d2(b3)) { + if ((((b3 + 112) + (b2 << 28)) >> 30) == 0 && !d2(b4) && !d2(b5)) { + int i2 = ((b2 & 7) << 18) | ((b3 & 63) << 12) | ((b4 & 63) << 6) | (b5 & 63); + cArr[i] = (char) ((i2 >>> 10) + 55232); + cArr[i + 1] = (char) ((i2 & AudioAttributesCompat.FLAG_ALL) + 56320); + return; + } } - cArr[i] = (char) (((b2 & 15) << 12) | ((b3 & 63) << 6) | (b4 & 63)); + throw zzij.e(); } public static float J(float f, float f2, float f3, float f4) { @@ -861,11 +865,11 @@ public final class f { throw new UnsupportedOperationException("Method not decompiled: c.i.a.f.e.o.f.J0(int, h0.a.a.c):void"); } - public static void J1(byte b2, byte b3, char[] cArr, int i) throws zzij { - if (b2 < -62 || Y1(b3)) { + public static void J1(byte b2, byte b3, byte b4, char[] cArr, int i) throws zzij { + if (d2(b3) || ((b2 == -32 && b3 < -96) || ((b2 == -19 && b3 >= -96) || d2(b4)))) { throw zzij.e(); } - cArr[i] = (char) (((b2 & 31) << 6) | (b3 & 63)); + cArr[i] = (char) (((b2 & 15) << 12) | ((b3 & 63) << 6) | (b4 & 63)); } public static float K(int i, int i2, int i3, int i4) { @@ -883,14 +887,11 @@ public final class f { return d0.k.m72constructorimpl(obj); } - public static void K1(@NonNull Bundle bundle, @NonNull Object obj) { - if (obj instanceof Double) { - bundle.putDouble("value", ((Double) obj).doubleValue()); - } else if (obj instanceof Long) { - bundle.putLong("value", ((Long) obj).longValue()); - } else { - bundle.putString("value", obj.toString()); + public static void K1(byte b2, byte b3, char[] cArr, int i) throws zzij { + if (b2 < -62 || d2(b3)) { + throw zzij.e(); } + cArr[i] = (char) (((b2 & 31) << 6) | (b3 & 63)); } public static int L(Context context, float f) { @@ -929,6 +930,30 @@ public final class f { } } + public static void L1(@NonNull Bundle bundle, @NonNull Object obj) { + if (obj instanceof Double) { + bundle.putDouble("value", ((Double) obj).doubleValue()); + } else if (obj instanceof Long) { + bundle.putLong("value", ((Long) obj).longValue()); + } else { + bundle.putString("value", obj.toString()); + } + } + + public static float M(float f, float f2, float f3, float f4) { + float f5 = f / (f4 / 2.0f); + float f6 = f3 / 2.0f; + if (f5 < 1.0f) { + return (f6 * f5 * f5 * f5) + f2; + } + float f7 = f5 - 2.0f; + return (((f7 * f7 * f7) + 2.0f) * f6) + f2; + } + + public static int M0(float f) { + return (int) (f + (f < 0.0f ? -0.5f : 0.5f)); + } + /* JADX WARNING: Code restructure failed: missing block: B:81:0x01e5, code lost: if (((java.lang.Boolean) r4).booleanValue() == false) goto L_0x024a; */ @@ -942,7 +967,7 @@ public final class f { if (((java.lang.Double) r4).doubleValue() == com.google.android.material.shadow.ShadowDrawableWrapper.COS_45) goto L_0x024a; */ /* JADX WARNING: Removed duplicated region for block: B:111:0x0250 */ - public static void L1(c6 c6Var, StringBuilder sb, int i) { + public static void M1(c6 c6Var, StringBuilder sb, int i) { boolean z2; HashMap hashMap = new HashMap(); HashMap hashMap2 = new HashMap(); @@ -968,7 +993,7 @@ public final class f { String concat = valueOf2.length() != 0 ? valueOf.concat(valueOf2) : new String(valueOf); Method method2 = (Method) hashMap.get(str); if (method2 != null && method2.getReturnType().equals(List.class)) { - P1(sb, i, E1(concat), u4.q(method2, c6Var, new Object[0])); + Q1(sb, i, F1(concat), u4.q(method2, c6Var, new Object[0])); } } if (substring.endsWith("Map") && !substring.equals("Map")) { @@ -977,7 +1002,7 @@ public final class f { String concat2 = valueOf4.length() != 0 ? valueOf3.concat(valueOf4) : new String(valueOf3); Method method3 = (Method) hashMap.get(str); if (method3 != null && method3.getReturnType().equals(Map.class) && !method3.isAnnotationPresent(Deprecated.class) && Modifier.isPublic(method3.getModifiers())) { - P1(sb, i, E1(concat2), u4.q(method3, c6Var, new Object[0])); + Q1(sb, i, F1(concat2), u4.q(method3, c6Var, new Object[0])); } } if (((Method) hashMap2.get(substring.length() != 0 ? "set".concat(substring) : new String("set"))) != null) { @@ -1019,7 +1044,7 @@ public final class f { z3 = ((Boolean) u4.q(method5, c6Var, new Object[0])).booleanValue(); } if (z3) { - P1(sb, i, E1(concat3), q); + Q1(sb, i, F1(concat3), q); } } } @@ -1034,46 +1059,11 @@ public final class f { c7 c7Var = ((u4) c6Var).zzb; if (c7Var != null) { for (int i2 = 0; i2 < c7Var.b; i2++) { - P1(sb, i, String.valueOf(c7Var.f1129c[i2] >>> 3), c7Var.d[i2]); + Q1(sb, i, String.valueOf(c7Var.f1129c[i2] >>> 3), c7Var.d[i2]); } } } - public static float M(float f, float f2, float f3, float f4) { - float f5 = f / (f4 / 2.0f); - float f6 = f3 / 2.0f; - if (f5 < 1.0f) { - return (f6 * f5 * f5 * f5) + f2; - } - float f7 = f5 - 2.0f; - return (((f7 * f7 * f7) + 2.0f) * f6) + f2; - } - - public static int M0(float f) { - return (int) (f + (f < 0.0f ? -0.5f : 0.5f)); - } - - public static void M1(q3 q3Var, SQLiteDatabase sQLiteDatabase) { - if (q3Var != null) { - File file = new File(sQLiteDatabase.getPath()); - if (!file.setReadable(false, false)) { - q3Var.i.a("Failed to turn off database read permission"); - } - if (!file.setWritable(false, false)) { - q3Var.i.a("Failed to turn off database write permission"); - } - if (!file.setReadable(true, true)) { - q3Var.i.a("Failed to turn on database read permission for owner"); - } - if (!file.setWritable(true, true)) { - q3Var.i.a("Failed to turn on database write permission for owner"); - return; - } - return; - } - throw new IllegalArgumentException("Monitor must not be null"); - } - public static boolean N(@NullableDecl Object obj, @NullableDecl Object obj2) { return obj == obj2 || (obj != null && obj.equals(obj2)); } @@ -1107,8 +1097,47 @@ public final class f { return i2 >= 0 ? i2 : ~i2; } + public static void N1(q3 q3Var, SQLiteDatabase sQLiteDatabase) { + if (q3Var != null) { + File file = new File(sQLiteDatabase.getPath()); + if (!file.setReadable(false, false)) { + q3Var.i.a("Failed to turn off database read permission"); + } + if (!file.setWritable(false, false)) { + q3Var.i.a("Failed to turn off database write permission"); + } + if (!file.setReadable(true, true)) { + q3Var.i.a("Failed to turn on database read permission for owner"); + } + if (!file.setWritable(true, true)) { + q3Var.i.a("Failed to turn on database write permission for owner"); + return; + } + return; + } + throw new IllegalArgumentException("Monitor must not be null"); + } + + public static T O(@NullableDecl T t, @NullableDecl T t2) { + if (t != null) { + return t; + } + Objects.requireNonNull(t2, "Both parameters are null"); + return t2; + } + + public static final g0.v O0(Socket socket) throws IOException { + m.checkParameterIsNotNull(socket, "$this$sink"); + w wVar = new w(socket); + OutputStream outputStream = socket.getOutputStream(); + m.checkExpressionValueIsNotNull(outputStream, "getOutputStream()"); + p pVar = new p(outputStream, wVar); + m.checkParameterIsNotNull(pVar, "sink"); + return new g0.c(wVar, pVar); + } + @WorkerThread - public static void N1(q3 q3Var, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) throws SQLiteException { + public static void O1(q3 q3Var, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) throws SQLiteException { boolean z2; if (q3Var != null) { Cursor cursor = null; @@ -1132,10 +1161,10 @@ public final class f { sQLiteDatabase.execSQL(str2); } try { - Set G1 = G1(sQLiteDatabase, str); + Set H1 = H1(sQLiteDatabase, str); String[] split = str3.split(","); for (String str4 : split) { - if (!((HashSet) G1).remove(str4)) { + if (!((HashSet) H1).remove(str4)) { StringBuilder sb = new StringBuilder(str.length() + 35 + String.valueOf(str4).length()); sb.append("Table "); sb.append(str); @@ -1146,13 +1175,13 @@ public final class f { } if (strArr != null) { for (int i = 0; i < strArr.length; i += 2) { - if (!((HashSet) G1).remove(strArr[i])) { + if (!((HashSet) H1).remove(strArr[i])) { sQLiteDatabase.execSQL(strArr[i + 1]); } } } - if (!((HashSet) G1).isEmpty()) { - q3Var.i.c("Table has extra columns. table, columns", str, TextUtils.join(", ", G1)); + if (!((HashSet) H1).isEmpty()) { + q3Var.i.c("Table has extra columns. table, columns", str, TextUtils.join(", ", H1)); } } catch (SQLiteException e3) { q3Var.f.b("Failed to verify columns on table that was just created", str); @@ -1163,31 +1192,6 @@ public final class f { } } - public static T O(@NullableDecl T t, @NullableDecl T t2) { - if (t != null) { - return t; - } - Objects.requireNonNull(t2, "Both parameters are null"); - return t2; - } - - public static final g0.v O0(Socket socket) throws IOException { - m.checkParameterIsNotNull(socket, "$this$sink"); - w wVar = new w(socket); - OutputStream outputStream = socket.getOutputStream(); - m.checkExpressionValueIsNotNull(outputStream, "getOutputStream()"); - p pVar = new p(outputStream, wVar); - m.checkParameterIsNotNull(pVar, "sink"); - return new g0.c(wVar, pVar); - } - - public static void O1(Task task, h hVar) { - Executor executor = c.i.a.f.n.g.b; - task.g(executor, hVar); - task.e(executor, hVar); - task.a(executor, hVar); - } - public static final FloatBuffer P(int i) { ByteBuffer order = ByteBuffer.allocateDirect(i * 4 * 1).order(ByteOrder.nativeOrder()); order.limit(order.capacity()); @@ -1201,57 +1205,11 @@ public final class f { return (int) (((long) Integer.rotateLeft((int) (((long) i) * -862048943), 15)) * 461845907); } - public static final void P1(StringBuilder sb, int i, String str, Object obj) { - if (obj instanceof List) { - for (Object obj2 : (List) obj) { - P1(sb, i, str, obj2); - } - } else if (obj instanceof Map) { - for (Map.Entry entry : ((Map) obj).entrySet()) { - P1(sb, i, str, entry); - } - } else { - sb.append('\n'); - int i2 = 0; - for (int i3 = 0; i3 < i; i3++) { - sb.append(' '); - } - sb.append(str); - if (obj instanceof String) { - sb.append(": \""); - t3 t3Var = t3.i; - sb.append(D1(new z3(((String) obj).getBytes(w4.a)))); - sb.append('\"'); - } else if (obj instanceof t3) { - sb.append(": \""); - sb.append(D1((t3) obj)); - sb.append('\"'); - } else if (obj instanceof u4) { - sb.append(" {"); - L1((u4) obj, sb, i + 2); - sb.append("\n"); - while (i2 < i) { - sb.append(' '); - i2++; - } - sb.append("}"); - } else if (obj instanceof Map.Entry) { - sb.append(" {"); - Map.Entry entry2 = (Map.Entry) obj; - int i4 = i + 2; - P1(sb, i4, "key", entry2.getKey()); - P1(sb, i4, "value", entry2.getValue()); - sb.append("\n"); - while (i2 < i) { - sb.append(' '); - i2++; - } - sb.append("}"); - } else { - sb.append(": "); - sb.append(obj.toString()); - } - } + public static void P1(Task task, h hVar) { + Executor executor = c.i.a.f.n.g.b; + task.g(executor, hVar); + task.e(executor, hVar); + task.a(executor, hVar); } @NonNull @@ -1271,8 +1229,57 @@ public final class f { return new g0.d(wVar, nVar); } - public static boolean Q1(byte b2) { - return b2 >= 0; + public static final void Q1(StringBuilder sb, int i, String str, Object obj) { + if (obj instanceof List) { + for (Object obj2 : (List) obj) { + Q1(sb, i, str, obj2); + } + } else if (obj instanceof Map) { + for (Map.Entry entry : ((Map) obj).entrySet()) { + Q1(sb, i, str, entry); + } + } else { + sb.append('\n'); + int i2 = 0; + for (int i3 = 0; i3 < i; i3++) { + sb.append(' '); + } + sb.append(str); + if (obj instanceof String) { + sb.append(": \""); + t3 t3Var = t3.i; + sb.append(E1(new z3(((String) obj).getBytes(w4.a)))); + sb.append('\"'); + } else if (obj instanceof t3) { + sb.append(": \""); + sb.append(E1((t3) obj)); + sb.append('\"'); + } else if (obj instanceof u4) { + sb.append(" {"); + M1((u4) obj, sb, i + 2); + sb.append("\n"); + while (i2 < i) { + sb.append(' '); + i2++; + } + sb.append("}"); + } else if (obj instanceof Map.Entry) { + sb.append(" {"); + Map.Entry entry2 = (Map.Entry) obj; + int i4 = i + 2; + Q1(sb, i4, "key", entry2.getKey()); + Q1(sb, i4, "value", entry2.getValue()); + sb.append("\n"); + while (i2 < i) { + sb.append(' '); + i2++; + } + sb.append("}"); + } else { + sb.append(": "); + sb.append(obj.toString()); + } + } } @NonNull @@ -1293,11 +1300,8 @@ public final class f { } } - public static boolean R1(@NullableDecl Object obj, @NullableDecl Object obj2) { - if (obj != obj2) { - return obj != null && obj.equals(obj2); - } - return true; + public static boolean R1(byte b2) { + return b2 >= 0; } public static final String S(long j) { @@ -1332,27 +1336,11 @@ public final class f { } } - public static int S1(byte[] bArr, int i, s3 s3Var) { - int i2 = i + 1; - long j = (long) bArr[i]; - if (j >= 0) { - s3Var.b = j; - return i2; + public static boolean S1(@NullableDecl Object obj, @NullableDecl Object obj2) { + if (obj != obj2) { + return obj != null && obj.equals(obj2); } - int i3 = i2 + 1; - byte b2 = bArr[i2]; - long j2 = (j & 127) | (((long) (b2 & Byte.MAX_VALUE)) << 7); - int i4 = 7; - while (b2 < 0) { - int i5 = i3 + 1; - byte b3 = bArr[i3]; - i4 += 7; - j2 |= ((long) (b3 & Byte.MAX_VALUE)) << i4; - b2 = b3; - i3 = i5; - } - s3Var.b = j2; - return i3; + return true; } public static c.i.c.l.d T(String str, c.i.c.x.g gVar) { @@ -1387,8 +1375,69 @@ public final class f { throw new NullPointerException("null cannot be cast to non-null type (R, kotlin.coroutines.Continuation) -> kotlin.Any?"); } - public static long T1(byte[] bArr, int i) { - return ((((long) bArr[i + 7]) & 255) << 56) | (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48); + public static String T1(String str, Object... objArr) { + int length; + int length2; + int indexOf; + String str2; + int i = 0; + int i2 = 0; + while (true) { + length = objArr.length; + if (i2 >= length) { + break; + } + Object obj = objArr[i2]; + if (obj == null) { + str2 = "null"; + } else { + try { + str2 = obj.toString(); + } catch (Exception e2) { + String name = obj.getClass().getName(); + String hexString = Integer.toHexString(System.identityHashCode(obj)); + StringBuilder sb = new StringBuilder(name.length() + 1 + String.valueOf(hexString).length()); + sb.append(name); + sb.append(MentionUtilsKt.MENTIONS_CHAR); + sb.append(hexString); + String sb2 = sb.toString(); + Logger logger = Logger.getLogger("com.google.common.base.Strings"); + Level level = Level.WARNING; + String valueOf = String.valueOf(sb2); + logger.logp(level, "com.google.common.base.Strings", "lenientToString", valueOf.length() != 0 ? "Exception during lenientFormat for ".concat(valueOf) : new String("Exception during lenientFormat for "), (Throwable) e2); + String name2 = e2.getClass().getName(); + StringBuilder sb3 = new StringBuilder(String.valueOf(sb2).length() + 9 + name2.length()); + c.d.b.a.a.o0(sb3, "<", sb2, " threw ", name2); + sb3.append(">"); + str2 = sb3.toString(); + } + } + objArr[i2] = str2; + i2++; + } + StringBuilder sb4 = new StringBuilder((length * 16) + str.length()); + int i3 = 0; + while (true) { + length2 = objArr.length; + if (i >= length2 || (indexOf = str.indexOf("%s", i3)) == -1) { + break; + } + sb4.append((CharSequence) str, i3, indexOf); + sb4.append(objArr[i]); + i3 = indexOf + 2; + i++; + } + sb4.append((CharSequence) str, i3, str.length()); + if (i < length2) { + sb4.append(" ["); + sb4.append(objArr[i]); + for (int i4 = i + 1; i4 < objArr.length; i4++) { + sb4.append(", "); + sb4.append(objArr[i4]); + } + sb4.append(']'); + } + return sb4.toString(); } public static float[] U(RectF rectF) { @@ -1403,10 +1452,8 @@ public final class f { return i; } - public static void U1(boolean z2, @NullableDecl Object obj) { - if (!z2) { - throw new IllegalStateException(String.valueOf(obj)); - } + public static boolean U1(Object obj, Object obj2) { + return obj == obj2 || (obj != null && obj.equals(obj2)); } public static final String V(Object obj) { @@ -1429,18 +1476,27 @@ public final class f { throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + W0 + '\'').toString()); } - public static int V1(byte[] bArr, int i, s3 s3Var) throws zzij { - int v1 = v1(bArr, i, s3Var); - int i2 = s3Var.a; - if (i2 < 0) { - throw zzij.b(); - } else if (i2 == 0) { - s3Var.f1168c = ""; - return v1; - } else { - s3Var.f1168c = new String(bArr, v1, i2, w4.a); - return v1 + i2; + public static int V1(byte[] bArr, int i, s3 s3Var) { + int i2 = i + 1; + long j = (long) bArr[i]; + if (j >= 0) { + s3Var.b = j; + return i2; } + int i3 = i2 + 1; + byte b2 = bArr[i2]; + long j2 = (j & 127) | (((long) (b2 & Byte.MAX_VALUE)) << 7); + int i4 = 7; + while (b2 < 0) { + int i5 = i3 + 1; + byte b3 = bArr[i3]; + i4 += 7; + j2 |= ((long) (b3 & Byte.MAX_VALUE)) << i4; + b2 = b3; + i3 = i5; + } + s3Var.b = j2; + return i3; } public static float[] W(RectF rectF) { @@ -1460,18 +1516,8 @@ public final class f { } } - public static int W1(byte[] bArr, int i, s3 s3Var) throws zzij { - int v1 = v1(bArr, i, s3Var); - int i2 = s3Var.a; - if (i2 < 0) { - throw zzij.b(); - } else if (i2 == 0) { - s3Var.f1168c = ""; - return v1; - } else { - s3Var.f1168c = k7.a.c(bArr, v1, i2); - return v1 + i2; - } + public static long W1(byte[] bArr, int i) { + return ((((long) bArr[i + 7]) & 255) << 56) | (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48); } public static String X(long j) { @@ -1488,19 +1534,9 @@ public final class f { return (int) V0(str, (long) i, (long) i2, (long) i3); } - public static int X1(byte[] bArr, int i, s3 s3Var) throws zzij { - int v1 = v1(bArr, i, s3Var); - int i2 = s3Var.a; - if (i2 < 0) { - throw zzij.b(); - } else if (i2 > bArr.length - v1) { - throw zzij.a(); - } else if (i2 == 0) { - s3Var.f1168c = t3.i; - return v1; - } else { - s3Var.f1168c = t3.h(bArr, v1, i2); - return v1 + i2; + public static void X1(boolean z2, @NullableDecl Object obj) { + if (!z2) { + throw new IllegalStateException(String.valueOf(obj)); } } @@ -1521,8 +1557,18 @@ public final class f { return V0(str, j, j2, j3); } - public static boolean Y1(byte b2) { - return b2 > -65; + public static int Y1(byte[] bArr, int i, s3 s3Var) throws zzij { + int w1 = w1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 == 0) { + s3Var.f1168c = ""; + return w1; + } else { + s3Var.f1168c = new String(bArr, w1, i2, w4.a); + return w1 + i2; + } } public static final g0 Z(CoroutineContext coroutineContext) { @@ -1551,11 +1597,10 @@ public final class f { return iArr; } - public static int Z1(String str) { - if (Log.isLoggable("FirebaseAppIndex", 3) ? true : Log.isLoggable("FirebaseAppIndex", 3)) { - return Log.d("FirebaseAppIndex", str); + public static void Z1(int i, int i2, int i3) { + if (i < 0 || i2 < i || i2 > i3) { + throw new IndexOutOfBoundsException((i < 0 || i > i3) ? b2(i, i3, "start index") : (i2 < 0 || i2 > i3) ? b2(i2, i3, "end index") : T1("end index (%s) must not be less than start index (%s)", Integer.valueOf(i2), Integer.valueOf(i))); } - return 0; } public static final CoroutineScope a(CoroutineContext coroutineContext) { @@ -1664,6 +1709,20 @@ public final class f { } } + public static int a2(byte[] bArr, int i, s3 s3Var) throws zzij { + int w1 = w1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 == 0) { + s3Var.f1168c = ""; + return w1; + } else { + s3Var.f1168c = k7.a.c(bArr, w1, i2); + return w1 + i2; + } + } + public static s.a.t b(Job job, int i) { int i2 = i & 1; return new r1(null); @@ -1693,6 +1752,16 @@ public final class f { return (String) obj; } + public static String b2(int i, int i2, @NullableDecl String str) { + if (i < 0) { + return T1("%s (%s) must not be negative", str, Integer.valueOf(i)); + } + if (i2 >= 0) { + return T1("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2)); + } + throw new IllegalArgumentException(c.d.b.a.a.f(26, "negative size: ", i2)); + } + public static final void c(f0.e0.f.a aVar, f0.e0.f.c cVar, String str) { d.b bVar = f0.e0.f.d.f2815c; Logger logger = f0.e0.f.d.b; @@ -1716,6 +1785,22 @@ public final class f { return new String(new char[]{cArr[(b2 >> 4) & 15], cArr[b2 & 15]}); } + public static int c2(byte[] bArr, int i, s3 s3Var) throws zzij { + int w1 = w1(bArr, i, s3Var); + int i2 = s3Var.a; + if (i2 < 0) { + throw zzij.b(); + } else if (i2 > bArr.length - w1) { + throw zzij.a(); + } else if (i2 == 0) { + s3Var.f1168c = t3.i; + return w1; + } else { + s3Var.f1168c = t3.h(bArr, w1, i2); + return w1 + i2; + } + } + @NonNull public static c.o.a.x.c d(c.o.a.x.c... cVarArr) { return new i(cVarArr, null); @@ -1767,6 +1852,10 @@ public final class f { return str; } + public static boolean d2(byte b2) { + return b2 > -65; + } + public static final boolean e(byte[] bArr, int i, byte[] bArr2, int i2, int i3) { m.checkParameterIsNotNull(bArr, "a"); m.checkParameterIsNotNull(bArr2, "b"); @@ -1805,6 +1894,13 @@ public final class f { return r0 == null ? function1 != null ? new s.a.w(obj, function1) : obj : new v(r0, false, 2); } + public static int e2(String str) { + if (Log.isLoggable("FirebaseAppIndex", 3) ? true : Log.isLoggable("FirebaseAppIndex", 3)) { + return Log.d("FirebaseAppIndex", str); + } + return 0; + } + public static s.a.e0 f(CoroutineScope coroutineScope, CoroutineContext coroutineContext, CoroutineStart coroutineStart, Function2 function2, int i, Object obj) { CoroutineStart coroutineStart2 = null; d0.w.f fVar = (i & 1) != 0 ? d0.w.f.i : null; @@ -1892,12 +1988,12 @@ public final class f { c.c.a.a0.d.x("Must not be called on the main application thread"); c.c.a.a0.d.z(task, "Task must not be null"); if (task.o()) { - return (TResult) B1(task); + return (TResult) C1(task); } c.i.a.f.n.i iVar = new c.i.a.f.n.i(null); - O1(task, iVar); + P1(task, iVar); iVar.a.await(); - return (TResult) B1(task); + return (TResult) C1(task); } public static int g0(Context context) { @@ -1918,12 +2014,12 @@ public final class f { c.c.a.a0.d.z(task, "Task must not be null"); c.c.a.a0.d.z(timeUnit, "TimeUnit must not be null"); if (task.o()) { - return (TResult) B1(task); + return (TResult) C1(task); } c.i.a.f.n.i iVar = new c.i.a.f.n.i(null); - O1(task, iVar); + P1(task, iVar); if (iVar.a.await(j, timeUnit)) { - return (TResult) B1(task); + return (TResult) C1(task); } throw new TimeoutException("Timed out waiting for Task"); } @@ -2134,7 +2230,7 @@ public final class f { c.i.a.f.n.j jVar = new c.i.a.f.n.j(collection.size(), b0Var); Iterator> it2 = collection.iterator(); while (it2.hasNext()) { - O1((Task) it2.next(), jVar); + P1((Task) it2.next(), jVar); } return b0Var; } @@ -2283,41 +2379,19 @@ public final class f { return d0.a.u(j, runnable, coroutineContext); } - public static int n1(int i, byte[] bArr, int i2, int i3, s3 s3Var) throws zzij { - if ((i >>> 3) != 0) { - int i4 = i & 7; - if (i4 == 0) { - return S1(bArr, i2, s3Var); - } - if (i4 == 1) { - return i2 + 8; - } - if (i4 == 2) { - return v1(bArr, i2, s3Var) + s3Var.a; - } - if (i4 == 3) { - int i5 = (i & -8) | 4; - int i6 = 0; - while (i2 < i3) { - i2 = v1(bArr, i2, s3Var); - i6 = s3Var.a; - if (i6 == i5) { - break; - } - i2 = n1(i6, bArr, i2, i3, s3Var); - } - if (i2 <= i3 && i6 == i5) { - return i2; - } - throw zzij.d(); - } else if (i4 == 5) { - return i2 + 4; - } else { - throw zzij.c(); - } - } else { - throw zzij.c(); + public static int n1(int i, int i2, @NullableDecl String str) { + String str2; + if (i >= 0 && i < i2) { + return i; } + if (i < 0) { + str2 = T1("%s (%s) must not be negative", "index", Integer.valueOf(i)); + } else if (i2 < 0) { + throw new IllegalArgumentException(c.d.b.a.a.f(26, "negative size: ", i2)); + } else { + str2 = T1("%s (%s) must be less than size (%s)", "index", Integer.valueOf(i), Integer.valueOf(i2)); + } + throw new IndexOutOfBoundsException(str2); } public static void o(CoroutineContext coroutineContext, CancellationException cancellationException, int i, Object obj) { @@ -2336,19 +2410,41 @@ public final class f { return true; } - public static int o1(int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) { - x4 x4Var = (x4) b5Var; - int v1 = v1(bArr, i2, s3Var); - x4Var.g(s3Var.a); - while (v1 < i3) { - int v12 = v1(bArr, v1, s3Var); - if (i != s3Var.a) { - break; + public static int o1(int i, byte[] bArr, int i2, int i3, s3 s3Var) throws zzij { + if ((i >>> 3) != 0) { + int i4 = i & 7; + if (i4 == 0) { + return V1(bArr, i2, s3Var); } - v1 = v1(bArr, v12, s3Var); - x4Var.g(s3Var.a); + if (i4 == 1) { + return i2 + 8; + } + if (i4 == 2) { + return w1(bArr, i2, s3Var) + s3Var.a; + } + if (i4 == 3) { + int i5 = (i & -8) | 4; + int i6 = 0; + while (i2 < i3) { + i2 = w1(bArr, i2, s3Var); + i6 = s3Var.a; + if (i6 == i5) { + break; + } + i2 = o1(i6, bArr, i2, i3, s3Var); + } + if (i2 <= i3 && i6 == i5) { + return i2; + } + throw zzij.d(); + } else if (i4 == 5) { + return i2 + 4; + } else { + throw zzij.c(); + } + } else { + throw zzij.c(); } - return v1; } public static /* synthetic */ void p(Job job, CancellationException cancellationException, int i, Object obj) { @@ -2365,63 +2461,19 @@ public final class f { return message != null ? d0.g0.w.contains$default(message, "getsockname failed", false, 2, null) : false; } - public static int p1(int i, byte[] bArr, int i2, int i3, c7 c7Var, s3 s3Var) throws zzij { - if ((i >>> 3) != 0) { - int i4 = i & 7; - if (i4 == 0) { - int S1 = S1(bArr, i2, s3Var); - c7Var.a(i, Long.valueOf(s3Var.b)); - return S1; - } else if (i4 == 1) { - c7Var.a(i, Long.valueOf(T1(bArr, i2))); - return i2 + 8; - } else if (i4 == 2) { - int v1 = v1(bArr, i2, s3Var); - int i5 = s3Var.a; - if (i5 < 0) { - throw zzij.b(); - } else if (i5 <= bArr.length - v1) { - if (i5 == 0) { - c7Var.a(i, t3.i); - } else { - c7Var.a(i, t3.h(bArr, v1, i5)); - } - return v1 + i5; - } else { - throw zzij.a(); - } - } else if (i4 == 3) { - c7 c2 = c7.c(); - int i6 = (i & -8) | 4; - int i7 = 0; - while (true) { - if (i2 >= i3) { - break; - } - int v12 = v1(bArr, i2, s3Var); - int i8 = s3Var.a; - if (i8 == i6) { - i7 = i8; - i2 = v12; - break; - } - i7 = i8; - i2 = p1(i8, bArr, v12, i3, c2, s3Var); - } - if (i2 > i3 || i7 != i6) { - throw zzij.d(); - } - c7Var.a(i, c2); - return i2; - } else if (i4 == 5) { - c7Var.a(i, Integer.valueOf(u1(bArr, i2))); - return i2 + 4; - } else { - throw zzij.c(); + public static int p1(int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) { + x4 x4Var = (x4) b5Var; + int w1 = w1(bArr, i2, s3Var); + x4Var.g(s3Var.a); + while (w1 < i3) { + int w12 = w1(bArr, w1, s3Var); + if (i != s3Var.a) { + break; } - } else { - throw zzij.c(); + w1 = w1(bArr, w12, s3Var); + x4Var.g(s3Var.a); } + return w1; } public static void q(boolean z2) { @@ -2435,7 +2487,76 @@ public final class f { return Build.VERSION.SDK_INT >= 26; } - public static int q1(int i, byte[] bArr, int i2, s3 s3Var) { + public static int q1(int i, byte[] bArr, int i2, int i3, c7 c7Var, s3 s3Var) throws zzij { + if ((i >>> 3) != 0) { + int i4 = i & 7; + if (i4 == 0) { + int V1 = V1(bArr, i2, s3Var); + c7Var.a(i, Long.valueOf(s3Var.b)); + return V1; + } else if (i4 == 1) { + c7Var.a(i, Long.valueOf(W1(bArr, i2))); + return i2 + 8; + } else if (i4 == 2) { + int w1 = w1(bArr, i2, s3Var); + int i5 = s3Var.a; + if (i5 < 0) { + throw zzij.b(); + } else if (i5 <= bArr.length - w1) { + if (i5 == 0) { + c7Var.a(i, t3.i); + } else { + c7Var.a(i, t3.h(bArr, w1, i5)); + } + return w1 + i5; + } else { + throw zzij.a(); + } + } else if (i4 == 3) { + c7 c2 = c7.c(); + int i6 = (i & -8) | 4; + int i7 = 0; + while (true) { + if (i2 >= i3) { + break; + } + int w12 = w1(bArr, i2, s3Var); + int i8 = s3Var.a; + if (i8 == i6) { + i7 = i8; + i2 = w12; + break; + } + i7 = i8; + i2 = q1(i8, bArr, w12, i3, c2, s3Var); + } + if (i2 > i3 || i7 != i6) { + throw zzij.d(); + } + c7Var.a(i, c2); + return i2; + } else if (i4 == 5) { + c7Var.a(i, Integer.valueOf(v1(bArr, i2))); + return i2 + 4; + } else { + throw zzij.c(); + } + } else { + throw zzij.c(); + } + } + + public static void r(boolean z2) { + if (!z2) { + throw new IllegalArgumentException(); + } + } + + public static final boolean r0(int i) { + return i == 1 || i == 2; + } + + public static int r1(int i, byte[] bArr, int i2, s3 s3Var) { int i3 = i & 127; int i4 = i2 + 1; byte b2 = bArr[i2]; @@ -2475,30 +2596,6 @@ public final class f { } } - public static void r(boolean z2) { - if (!z2) { - throw new IllegalArgumentException(); - } - } - - public static final boolean r0(int i) { - return i == 1 || i == 2; - } - - public static int r1(q6 q6Var, int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) throws IOException { - int t1 = t1(q6Var, bArr, i2, i3, s3Var); - b5Var.add(s3Var.f1168c); - while (t1 < i3) { - int v1 = v1(bArr, t1, s3Var); - if (i != s3Var.a) { - break; - } - t1 = t1(q6Var, bArr, v1, i3, s3Var); - b5Var.add(s3Var.f1168c); - } - return t1; - } - @CanIgnoreReturnValue public static int s(int i, int i2) { String str; @@ -2526,13 +2623,18 @@ public final class f { return false; } - public static int s1(q6 q6Var, byte[] bArr, int i, int i2, int i3, s3 s3Var) throws IOException { - e6 e6Var = (e6) q6Var; - Object b2 = e6Var.m.b(e6Var.g); - int m = e6Var.m(b2, bArr, i, i2, i3, s3Var); - e6Var.d(b2); - s3Var.f1168c = b2; - return m; + public static int s1(q6 q6Var, int i, byte[] bArr, int i2, int i3, b5 b5Var, s3 s3Var) throws IOException { + int u1 = u1(q6Var, bArr, i2, i3, s3Var); + b5Var.add(s3Var.f1168c); + while (u1 < i3) { + int w1 = w1(bArr, u1, s3Var); + if (i != s3Var.a) { + break; + } + u1 = u1(q6Var, bArr, w1, i3, s3Var); + b5Var.add(s3Var.f1168c); + } + return u1; } @CanIgnoreReturnValue @@ -2573,23 +2675,13 @@ public final class f { } } - public static int t1(q6 q6Var, byte[] bArr, int i, int i2, s3 s3Var) throws IOException { - int i3 = i + 1; - byte b2 = bArr[i]; - byte b3 = b2; - if (b2 < 0) { - i3 = q1(b2, bArr, i3, s3Var); - b3 = s3Var.a; - } - if (b3 < 0 || b3 > i2 - i3) { - throw zzij.a(); - } - Object a2 = q6Var.a(); - int i4 = (b3 == 1 ? 1 : 0) + i3; - q6Var.h(a2, bArr, i3, i4, s3Var); - q6Var.d(a2); - s3Var.f1168c = a2; - return i4; + public static int t1(q6 q6Var, byte[] bArr, int i, int i2, int i3, s3 s3Var) throws IOException { + e6 e6Var = (e6) q6Var; + Object b2 = e6Var.m.b(e6Var.g); + int m = e6Var.m(b2, bArr, i, i2, i3, s3Var); + e6Var.d(b2); + s3Var.f1168c = b2; + return m; } public static void u(Object obj, Object obj2) { @@ -2625,8 +2717,23 @@ public final class f { } } - public static int u1(byte[] bArr, int i) { - return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16); + public static int u1(q6 q6Var, byte[] bArr, int i, int i2, s3 s3Var) throws IOException { + int i3 = i + 1; + byte b2 = bArr[i]; + byte b3 = b2; + if (b2 < 0) { + i3 = r1(b2, bArr, i3, s3Var); + b3 = s3Var.a; + } + if (b3 < 0 || b3 > i2 - i3) { + throw zzij.a(); + } + Object a2 = q6Var.a(); + int i4 = (b3 == 1 ? 1 : 0) + i3; + q6Var.h(a2, bArr, i3, i4, s3Var); + q6Var.d(a2); + s3Var.f1168c = a2; + return i4; } @CanIgnoreReturnValue @@ -2657,14 +2764,8 @@ public final class f { } } - public static int v1(byte[] bArr, int i, s3 s3Var) { - int i2 = i + 1; - byte b2 = bArr[i]; - if (b2 < 0) { - return q1(b2, bArr, i2, s3Var); - } - s3Var.a = b2; - return i2; + public static int v1(byte[] bArr, int i) { + return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16); } public static final void w(long j, long j2, long j3) { @@ -2681,18 +2782,14 @@ public final class f { return j1Var; } - public static int w1(byte[] bArr, int i, b5 b5Var, s3 s3Var) throws IOException { - x4 x4Var = (x4) b5Var; - int v1 = v1(bArr, i, s3Var); - int i2 = s3Var.a + v1; - while (v1 < i2) { - v1 = v1(bArr, v1, s3Var); - x4Var.g(s3Var.a); + public static int w1(byte[] bArr, int i, s3 s3Var) { + int i2 = i + 1; + byte b2 = bArr[i]; + if (b2 < 0) { + return r1(b2, bArr, i2, s3Var); } - if (v1 == i2) { - return v1; - } - throw zzij.a(); + s3Var.a = b2; + return i2; } @CanIgnoreReturnValue @@ -2710,8 +2807,18 @@ public final class f { return w0(coroutineScope, coroutineContext, (i & 2) != 0 ? CoroutineStart.DEFAULT : null, function2); } - public static z2 x1(z2 z2Var) { - return ((z2Var instanceof c3) || (z2Var instanceof a3)) ? z2Var : z2Var instanceof Serializable ? new a3(z2Var) : new c3(z2Var); + public static int x1(byte[] bArr, int i, b5 b5Var, s3 s3Var) throws IOException { + x4 x4Var = (x4) b5Var; + int w1 = w1(bArr, i, s3Var); + int i2 = s3Var.a + w1; + while (w1 < i2) { + w1 = w1(bArr, w1, s3Var); + x4Var.g(s3Var.a); + } + if (w1 == i2) { + return w1; + } + throw zzij.a(); } public static void y(int i, int i2, int i3) { @@ -2757,7 +2864,22 @@ public final class f { return sb.toString(); } - public static FirebaseAppIndexingException y1(@NonNull Status status, String str) { + public static z2 y1(z2 z2Var) { + return ((z2Var instanceof c3) || (z2Var instanceof a3)) ? z2Var : z2Var instanceof Serializable ? new a3(z2Var) : new c3(z2Var); + } + + public static void z(boolean z2) { + if (!z2) { + throw new IllegalStateException("no calls to next() since the last call to remove()"); + } + } + + public static final float[] z0(float[] fArr) { + m.checkNotNullParameter(fArr, "matrix"); + return (float[]) fArr.clone(); + } + + public static FirebaseAppIndexingException z1(@NonNull Status status, String str) { String str2 = status.p; if (str2 != null && !str2.isEmpty()) { str = str2; @@ -2791,26 +2913,4 @@ public final class f { return new FirebaseAppIndexingException(str); } } - - public static void z(boolean z2) { - if (!z2) { - throw new IllegalStateException("no calls to next() since the last call to remove()"); - } - } - - public static final float[] z0(float[] fArr) { - m.checkNotNullParameter(fArr, "matrix"); - return (float[]) fArr.clone(); - } - - public static T z1(@NonNull Bundle bundle, String str, Class cls, T t) { - T t2 = (T) bundle.get(str); - if (t2 == null) { - return t; - } - if (cls.isAssignableFrom(t2.getClass())) { - return t2; - } - throw new IllegalStateException(String.format("Invalid conditional user property field type. '%s' expected [%s] but was [%s]", str, cls.getCanonicalName(), t2.getClass().getCanonicalName())); - } } diff --git a/app/src/main/java/c/i/a/f/h/l/a9.java b/app/src/main/java/c/i/a/f/h/l/a9.java index 426c63c98f..d94038f6be 100644 --- a/app/src/main/java/c/i/a/f/h/l/a9.java +++ b/app/src/main/java/c/i/a/f/h/l/a9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class a9 implements z2 { public static a9 i = new a9(); - public final z2 j = f.x1(new b3(new c9())); + public final z2 j = f.y1(new b3(new c9())); public static boolean b() { return ((d9) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/b3.java b/app/src/main/java/c/i/a/f/h/l/b3.java index 1985b19a36..6c3429383c 100644 --- a/app/src/main/java/c/i/a/f/h/l/b3.java +++ b/app/src/main/java/c/i/a/f/h/l/b3.java @@ -22,7 +22,7 @@ public final class b3 implements z2, Serializable { @Override // java.lang.Object public final boolean equals(@NullableDecl Object obj) { if (obj instanceof b3) { - return f.R1(this.zza, ((b3) obj).zza); + return f.S1(this.zza, ((b3) obj).zza); } return false; } diff --git a/app/src/main/java/c/i/a/f/h/l/b8.java b/app/src/main/java/c/i/a/f/h/l/b8.java index e4b3dbbcdb..f36e73075f 100644 --- a/app/src/main/java/c/i/a/f/h/l/b8.java +++ b/app/src/main/java/c/i/a/f/h/l/b8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class b8 implements z2 { public static b8 i = new b8(); - public final z2 j = f.x1(new b3(new d8())); + public final z2 j = f.y1(new b3(new d8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/bb.java b/app/src/main/java/c/i/a/f/h/l/bb.java index 130744798d..aef1f86892 100644 --- a/app/src/main/java/c/i/a/f/h/l/bb.java +++ b/app/src/main/java/c/i/a/f/h/l/bb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class bb implements z2 { public static bb i = new bb(); - public final z2 j = f.x1(new b3(new db())); + public final z2 j = f.y1(new b3(new db())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/c2.java b/app/src/main/java/c/i/a/f/h/l/c2.java index 4090177ec8..fe96c82c45 100644 --- a/app/src/main/java/c/i/a/f/h/l/c2.java +++ b/app/src/main/java/c/i/a/f/h/l/c2.java @@ -44,7 +44,7 @@ public final class c2 implements b2 { return null; } try { - return (String) f.A1(new g2(this, str)); + return (String) f.B1(new g2(this, str)); } catch (IllegalStateException | SecurityException e) { String valueOf = String.valueOf(str); Log.e("GservicesLoader", valueOf.length() != 0 ? "Unable to read GServices for: ".concat(valueOf) : new String("Unable to read GServices for: "), e); diff --git a/app/src/main/java/c/i/a/f/h/l/c8.java b/app/src/main/java/c/i/a/f/h/l/c8.java index 1039379da2..c90045946b 100644 --- a/app/src/main/java/c/i/a/f/h/l/c8.java +++ b/app/src/main/java/c/i/a/f/h/l/c8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class c8 implements z2 { public static c8 i = new c8(); - public final z2 j = f.x1(new b3(new e8())); + public final z2 j = f.y1(new b3(new e8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/cb.java b/app/src/main/java/c/i/a/f/h/l/cb.java index 4d9fa21007..7761245f87 100644 --- a/app/src/main/java/c/i/a/f/h/l/cb.java +++ b/app/src/main/java/c/i/a/f/h/l/cb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class cb implements z2 { public static cb i = new cb(); - public final z2 j = f.x1(new b3(new eb())); + public final z2 j = f.y1(new b3(new eb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/da.java b/app/src/main/java/c/i/a/f/h/l/da.java index 773df53a4c..3bfcd8c82b 100644 --- a/app/src/main/java/c/i/a/f/h/l/da.java +++ b/app/src/main/java/c/i/a/f/h/l/da.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class da implements z2 { public static da i = new da(); - public final z2 j = f.x1(new b3(new fa())); + public final z2 j = f.y1(new b3(new fa())); public static boolean b() { return ((ca) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/e6.java b/app/src/main/java/c/i/a/f/h/l/e6.java index afeaa9e338..a6e09d56b1 100644 --- a/app/src/main/java/c/i/a/f/h/l/e6.java +++ b/app/src/main/java/c/i/a/f/h/l/e6.java @@ -3252,7 +3252,7 @@ public final class e6 implements q6 { int i25 = i20 + 1; byte b3 = bArr3[i20]; if (b3 < 0) { - i3 = f.q1(b3, bArr3, i25, s3Var7); + i3 = f.r1(b3, bArr3, i25, s3Var7); b2 = s3Var7.a; } else { b2 = b3; @@ -3298,7 +3298,7 @@ public final class e6 implements q6 { bArr3 = bArr2; e6Var = e6Var6; if (i27 == 1) { - j7.d(t7, j, Double.longBitsToDouble(f.T1(bArr3, i3))); + j7.d(t7, j, Double.longBitsToDouble(f.W1(bArr3, i3))); i20 = i3 + 8; i7 = i24 | i32; t7 = t7; @@ -3323,7 +3323,7 @@ public final class e6 implements q6 { bArr3 = bArr2; e6Var3 = e6Var6; if (i27 == 5) { - j7.e.d(t3, j, Float.intBitsToFloat(f.u1(bArr3, i3))); + j7.e.d(t3, j, Float.intBitsToFloat(f.v1(bArr3, i3))); i20 = i3 + 4; i15 = i24 | i32; i24 = i15; @@ -3348,7 +3348,7 @@ public final class e6 implements q6 { bArr3 = bArr2; e6Var3 = e6Var6; if (i27 == 0) { - i20 = f.S1(bArr3, i3, s3Var3); + i20 = f.V1(bArr3, i3, s3Var3); unsafe2.putLong(t, j, s3Var3.b); i15 = i24 | i32; t3 = t7; @@ -3375,7 +3375,7 @@ public final class e6 implements q6 { t4 = t7; e6Var3 = e6Var6; if (i27 == 0) { - i20 = f.v1(bArr3, i3, s3Var3); + i20 = f.w1(bArr3, i3, s3Var3); unsafe2.putInt(t4, j, s3Var3.a); t3 = t4; i15 = i24 | i32; @@ -3401,7 +3401,7 @@ public final class e6 implements q6 { if (i27 == 1) { e6Var3 = e6Var6; s3Var3 = s3Var7; - unsafe2.putLong(t, j, f.T1(bArr3, i3)); + unsafe2.putLong(t, j, f.W1(bArr3, i3)); i20 = i3 + 8; t3 = t7; i15 = i24 | i32; @@ -3431,7 +3431,7 @@ public final class e6 implements q6 { i6 = i14; break; } else { - unsafe2.putInt(t5, j, f.u1(bArr3, i3)); + unsafe2.putInt(t5, j, f.v1(bArr3, i3)); i20 = i3 + 4; i24 |= i32; t7 = t5; @@ -3453,7 +3453,7 @@ public final class e6 implements q6 { i6 = i14; break; } else { - i20 = f.S1(bArr3, i3, s3Var5); + i20 = f.V1(bArr3, i3, s3Var5); j7.e.g(t5, j, s3Var5.b != 0); i24 |= i32; t7 = t5; @@ -3471,7 +3471,7 @@ public final class e6 implements q6 { bArr3 = bArr2; t4 = t7; if (i27 == 2) { - i20 = (536870912 & i29) == 0 ? f.V1(bArr3, i3, s3Var4) : f.W1(bArr3, i3, s3Var4); + i20 = (536870912 & i29) == 0 ? f.Y1(bArr3, i3, s3Var4) : f.a2(bArr3, i3, s3Var4); unsafe2.putObject(t4, j, s3Var4.f1168c); s3Var3 = s3Var4; e6Var3 = e6Var6; @@ -3500,7 +3500,7 @@ public final class e6 implements q6 { if (i27 == 2) { q6 o = e6Var6.o(i14); e6Var6 = e6Var6; - i20 = f.t1(o, bArr3, i3, i2, s3Var4); + i20 = f.u1(o, bArr3, i3, i2, s3Var4); Object object = unsafe2.getObject(t4, j); if (object == null) { unsafe2.putObject(t4, j, s3Var4.f1168c); @@ -3536,7 +3536,7 @@ public final class e6 implements q6 { i6 = i14; break; } else { - i20 = f.X1(bArr3, i3, s3Var6); + i20 = f.c2(bArr3, i3, s3Var6); unsafe2.putObject(t6, j, s3Var6.f1168c); i24 |= i32; i17 = i2; @@ -3557,7 +3557,7 @@ public final class e6 implements q6 { i6 = i14; break; } else { - i20 = f.v1(bArr3, i3, s3Var6); + i20 = f.w1(bArr3, i3, s3Var6); unsafe2.putInt(t6, j, s3Var6.a); i24 |= i32; i17 = i2; @@ -3578,7 +3578,7 @@ public final class e6 implements q6 { i6 = i14; break; } else { - i20 = f.v1(bArr3, i3, s3Var6); + i20 = f.w1(bArr3, i3, s3Var6); unsafe2.putInt(t6, j, d4.b(s3Var6.a)); i24 |= i32; i17 = i2; @@ -3596,12 +3596,12 @@ public final class e6 implements q6 { break; } else { bArr3 = bArr2; - int S1 = f.S1(bArr3, i3, s3Var7); + int V1 = f.V1(bArr3, i3, s3Var7); i14 = i4; i5 = i26; unsafe2.putLong(t, j, d4.a(s3Var7.b)); i24 |= i32; - i20 = S1; + i20 = V1; t6 = t7; s3Var6 = s3Var7; e6Var4 = e6Var6; @@ -3666,7 +3666,7 @@ public final class e6 implements q6 { } i10 = i4; t2 = t7; - i20 = f.r1(e6Var2.o(i4), b2, bArr, i3, i2, b5Var, s3Var); + i20 = f.s1(e6Var2.o(i4), b2, bArr, i3, i2, b5Var, s3Var); } else { i8 = i4; i13 = i3; @@ -3678,7 +3678,7 @@ public final class e6 implements q6 { i9 = i20; i24 = i12; i23 = i11; - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); i22 = i8; e6Var = this; t7 = t; @@ -3704,7 +3704,7 @@ public final class e6 implements q6 { i8 = i6; unsafe = unsafe2; i9 = i3; - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); i22 = i8; e6Var = this; t7 = t; @@ -3728,7 +3728,7 @@ public final class e6 implements q6 { i8 = i6; unsafe = unsafe2; i9 = i3; - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); i22 = i8; e6Var = this; t7 = t; @@ -3749,7 +3749,7 @@ public final class e6 implements q6 { i8 = i6; unsafe = unsafe2; i9 = i3; - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); i22 = i8; e6Var = this; t7 = t; @@ -4010,7 +4010,7 @@ public final class e6 implements q6 { switch (i7) { case 51: if (i5 == 1) { - unsafe.putObject(t, j, Double.valueOf(Double.longBitsToDouble(f.T1(bArr, i)))); + unsafe.putObject(t, j, Double.valueOf(Double.longBitsToDouble(f.W1(bArr, i)))); i9 = i + 8; unsafe.putInt(t, j2, i4); return i9; @@ -4018,7 +4018,7 @@ public final class e6 implements q6 { return i; case 52: if (i5 == 5) { - unsafe.putObject(t, j, Float.valueOf(Float.intBitsToFloat(f.u1(bArr, i)))); + unsafe.putObject(t, j, Float.valueOf(Float.intBitsToFloat(f.v1(bArr, i)))); i9 = i + 4; unsafe.putInt(t, j2, i4); return i9; @@ -4027,7 +4027,7 @@ public final class e6 implements q6 { case 53: case 54: if (i5 == 0) { - i9 = f.S1(bArr, i, s3Var); + i9 = f.V1(bArr, i, s3Var); unsafe.putObject(t, j, Long.valueOf(s3Var.b)); unsafe.putInt(t, j2, i4); return i9; @@ -4036,7 +4036,7 @@ public final class e6 implements q6 { case 55: case 62: if (i5 == 0) { - i9 = f.v1(bArr, i, s3Var); + i9 = f.w1(bArr, i, s3Var); unsafe.putObject(t, j, Integer.valueOf(s3Var.a)); unsafe.putInt(t, j2, i4); return i9; @@ -4045,7 +4045,7 @@ public final class e6 implements q6 { case 56: case 65: if (i5 == 1) { - unsafe.putObject(t, j, Long.valueOf(f.T1(bArr, i))); + unsafe.putObject(t, j, Long.valueOf(f.W1(bArr, i))); i9 = i + 8; unsafe.putInt(t, j2, i4); return i9; @@ -4054,7 +4054,7 @@ public final class e6 implements q6 { case 57: case 64: if (i5 == 5) { - unsafe.putObject(t, j, Integer.valueOf(f.u1(bArr, i))); + unsafe.putObject(t, j, Integer.valueOf(f.v1(bArr, i))); i9 = i + 4; unsafe.putInt(t, j2, i4); return i9; @@ -4062,7 +4062,7 @@ public final class e6 implements q6 { return i; case 58: if (i5 == 0) { - i9 = f.S1(bArr, i, s3Var); + i9 = f.V1(bArr, i, s3Var); if (s3Var.b == 0) { z2 = false; } @@ -4073,23 +4073,23 @@ public final class e6 implements q6 { return i; case 59: if (i5 == 2) { - int v1 = f.v1(bArr, i, s3Var); + int w1 = f.w1(bArr, i, s3Var); int i10 = s3Var.a; if (i10 == 0) { unsafe.putObject(t, j, ""); - } else if ((i6 & 536870912) == 0 || k7.b(bArr, v1, v1 + i10)) { - unsafe.putObject(t, j, new String(bArr, v1, i10, w4.a)); - v1 += i10; + } else if ((i6 & 536870912) == 0 || k7.b(bArr, w1, w1 + i10)) { + unsafe.putObject(t, j, new String(bArr, w1, i10, w4.a)); + w1 += i10; } else { throw zzij.e(); } unsafe.putInt(t, j2, i4); - return v1; + return w1; } return i; case 60: if (i5 == 2) { - int t1 = f.t1(o(i8), bArr, i, i2, s3Var); + int u1 = f.u1(o(i8), bArr, i, i2, s3Var); Object object = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object == null) { unsafe.putObject(t, j, s3Var.f1168c); @@ -4097,12 +4097,12 @@ public final class e6 implements q6 { unsafe.putObject(t, j, w4.c(object, s3Var.f1168c)); } unsafe.putInt(t, j2, i4); - return t1; + return u1; } return i; case 61: if (i5 == 2) { - i9 = f.X1(bArr, i, s3Var); + i9 = f.c2(bArr, i, s3Var); unsafe.putObject(t, j, s3Var.f1168c); unsafe.putInt(t, j2, i4); return i9; @@ -4110,22 +4110,22 @@ public final class e6 implements q6 { return i; case 63: if (i5 == 0) { - int v12 = f.v1(bArr, i, s3Var); + int w12 = f.w1(bArr, i, s3Var); int i11 = s3Var.a; a5 a5Var = (a5) this.d[((i8 / 3) << 1) + 1]; if (a5Var == null || a5Var.f(i11)) { unsafe.putObject(t, j, Integer.valueOf(i11)); - i9 = v12; + i9 = w12; unsafe.putInt(t, j2, i4); return i9; } M(t).a(i3, Long.valueOf((long) i11)); - return v12; + return w12; } return i; case 66: if (i5 == 0) { - i9 = f.v1(bArr, i, s3Var); + i9 = f.w1(bArr, i, s3Var); unsafe.putObject(t, j, Integer.valueOf(d4.b(s3Var.a))); unsafe.putInt(t, j2, i4); return i9; @@ -4133,7 +4133,7 @@ public final class e6 implements q6 { return i; case 67: if (i5 == 0) { - i9 = f.S1(bArr, i, s3Var); + i9 = f.V1(bArr, i, s3Var); unsafe.putObject(t, j, Long.valueOf(d4.a(s3Var.b))); unsafe.putInt(t, j2, i4); return i9; @@ -4141,7 +4141,7 @@ public final class e6 implements q6 { return i; case 68: if (i5 == 3) { - i9 = f.s1(o(i8), bArr, i, i2, (i3 & -8) | 4, s3Var); + i9 = f.t1(o(i8), bArr, i, i2, (i3 & -8) | 4, s3Var); Object object2 = unsafe.getInt(t, j2) == i4 ? unsafe.getObject(t, j) : null; if (object2 == null) { unsafe.putObject(t, j, s3Var.f1168c); @@ -4196,9 +4196,9 @@ public final class e6 implements q6 { } t5 g = this.q.g(obj); this.q.b(object); - int v1 = f.v1(bArr, i, s3Var); + int w1 = f.w1(bArr, i, s3Var); int i4 = s3Var.a; - if (i4 < 0 || i4 > i2 - v1) { + if (i4 < 0 || i4 > i2 - w1) { throw zzij.a(); } Objects.requireNonNull(g); @@ -4236,7 +4236,7 @@ public final class e6 implements q6 { int i17; byte b5; byte b6; - int S1; + int V1; byte b7; byte b8; byte b9; @@ -4261,7 +4261,7 @@ public final class e6 implements q6 { int i26 = i20 + 1; byte b11 = bArr3[i20]; if (b11 < 0) { - i26 = f.q1(b11, bArr3, i26, s3Var3); + i26 = f.r1(b11, bArr3, i26, s3Var3); b11 = s3Var3.a; } int i27 = b11 >>> 3; @@ -4291,7 +4291,7 @@ public final class e6 implements q6 { if (s3Var2.d == h4.a()) { t3 = t; } else if (s3Var2.d.d.get(new h4.a(this.g, i8)) == null) { - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); t5 = t; bArr3 = bArr; bArr2 = bArr3; @@ -4312,7 +4312,7 @@ public final class e6 implements q6 { t3 = t; s3Var2 = s3Var; } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4368,7 +4368,7 @@ public final class e6 implements q6 { b5 = b11; i13 = i4; if (i28 == 1) { - j7.d(t5, j, Double.longBitsToDouble(f.T1(bArr2, i26))); + j7.d(t5, j, Double.longBitsToDouble(f.W1(bArr2, i26))); i20 = i26 + 8; i7 |= i32; i24 = i17; @@ -4388,7 +4388,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4408,7 +4408,7 @@ public final class e6 implements q6 { b5 = b11; i13 = i4; if (i28 == 5) { - j7.e.d(t5, j, Float.intBitsToFloat(f.u1(bArr2, i26))); + j7.e.d(t5, j, Float.intBitsToFloat(f.v1(bArr2, i26))); i20 = i26 + 4; i7 |= i32; i24 = i17; @@ -4428,7 +4428,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4449,11 +4449,11 @@ public final class e6 implements q6 { b6 = b11; i13 = i4; if (i28 == 0) { - S1 = f.S1(bArr2, i26, s3Var3); + V1 = f.V1(bArr2, i26, s3Var3); b7 = b6; unsafe2.putLong(t, j, s3Var3.b); i7 |= i32; - i20 = S1; + i20 = V1; b5 = b7; i24 = i17; bArr3 = bArr2; @@ -4473,7 +4473,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4494,7 +4494,7 @@ public final class e6 implements q6 { b6 = b11; i13 = i4; if (i28 == 0) { - i20 = f.v1(bArr2, i26, s3Var3); + i20 = f.w1(bArr2, i26, s3Var3); unsafe2.putInt(t5, j, s3Var3.a); b5 = b6; i7 |= i32; @@ -4516,7 +4516,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4537,7 +4537,7 @@ public final class e6 implements q6 { b8 = b11; i13 = i4; if (i28 == 1) { - unsafe2.putLong(t, j, f.T1(bArr2, i26)); + unsafe2.putLong(t, j, f.W1(bArr2, i26)); b5 = b8; i20 = i26 + 8; i7 |= i32; @@ -4559,7 +4559,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4580,7 +4580,7 @@ public final class e6 implements q6 { b8 = b11; i13 = i4; if (i28 == 5) { - unsafe2.putInt(t5, j, f.u1(bArr2, i26)); + unsafe2.putInt(t5, j, f.v1(bArr2, i26)); i20 = i26 + 4; i18 = i7 | i32; i19 = i2; @@ -4603,7 +4603,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4624,9 +4624,9 @@ public final class e6 implements q6 { b8 = b11; i13 = i4; if (i28 == 0) { - int S12 = f.S1(bArr2, i26, s3Var3); + int V12 = f.V1(bArr2, i26, s3Var3); j7.e.g(t5, j, s3Var3.b != 0); - i20 = S12; + i20 = V12; i18 = i7 | i32; i19 = i2; b10 = b8; @@ -4648,7 +4648,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4669,7 +4669,7 @@ public final class e6 implements q6 { b8 = b11; i13 = i4; if (i28 == 2) { - i20 = (536870912 & i29) == 0 ? f.V1(bArr2, i26, s3Var3) : f.W1(bArr2, i26, s3Var3); + i20 = (536870912 & i29) == 0 ? f.Y1(bArr2, i26, s3Var3) : f.a2(bArr2, i26, s3Var3); unsafe2.putObject(t5, j, s3Var3.f1168c); i18 = i7 | i32; i19 = i2; @@ -4692,7 +4692,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4713,7 +4713,7 @@ public final class e6 implements q6 { b8 = b11; i13 = i4; if (i28 == 2) { - i20 = f.t1(e6Var2.o(i13), bArr2, i26, i2, s3Var3); + i20 = f.u1(e6Var2.o(i13), bArr2, i26, i2, s3Var3); if ((i7 & i32) == 0) { unsafe2.putObject(t5, j, s3Var3.f1168c); } else { @@ -4740,7 +4740,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4761,7 +4761,7 @@ public final class e6 implements q6 { b9 = b11; i13 = i4; if (i28 == 2) { - i20 = f.X1(bArr2, i26, s3Var3); + i20 = f.c2(bArr2, i26, s3Var3); unsafe2.putObject(t5, j, s3Var3.f1168c); b5 = b9; i7 |= i32; @@ -4783,7 +4783,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4803,7 +4803,7 @@ public final class e6 implements q6 { b9 = b11; i13 = i4; if (i28 == 0) { - i20 = f.v1(bArr2, i26, s3Var3); + i20 = f.w1(bArr2, i26, s3Var3); int i34 = s3Var3.a; a5 G = e6Var2.G(i13); if (G == null || G.f(i34)) { @@ -4836,7 +4836,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4856,7 +4856,7 @@ public final class e6 implements q6 { b9 = b11; i13 = i4; if (i28 == 0) { - i20 = f.v1(bArr2, i26, s3Var3); + i20 = f.w1(bArr2, i26, s3Var3); unsafe2.putInt(t5, j, d4.b(s3Var3.a)); b5 = b9; i7 |= i32; @@ -4878,7 +4878,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4896,13 +4896,13 @@ public final class e6 implements q6 { case 16: b9 = b11; if (i28 == 0) { - S1 = f.S1(bArr2, i26, s3Var3); + V1 = f.V1(bArr2, i26, s3Var3); b7 = b9; i12 = i27; i13 = i4; unsafe2.putLong(t, j, d4.a(s3Var3.b)); i7 |= i32; - i20 = S1; + i20 = V1; b5 = b7; i24 = i17; bArr3 = bArr2; @@ -4924,7 +4924,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -4942,7 +4942,7 @@ public final class e6 implements q6 { break; case 17: if (i28 == 3) { - i20 = f.s1(e6Var2.o(i4), bArr, i26, i2, (i27 << 3) | 4, s3Var); + i20 = f.t1(e6Var2.o(i4), bArr, i26, i2, (i27 << 3) | 4, s3Var); if ((i7 & i32) == 0) { unsafe2.putObject(t5, j, s3Var3.f1168c); } else { @@ -4971,7 +4971,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -5002,7 +5002,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -5045,7 +5045,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -5078,7 +5078,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; @@ -5118,7 +5118,7 @@ public final class e6 implements q6 { b5Var = b5Var.f(size == 0 ? 10 : size << 1); unsafe2.putObject(t5, j2, b5Var); } - i20 = f.r1(e6Var2.o(i13), b3, bArr, i26, i2, b5Var, s3Var); + i20 = f.s1(e6Var2.o(i13), b3, bArr, i26, i2, b5Var, s3Var); bArr3 = bArr3; i24 = i24; i25 = i25; @@ -5140,7 +5140,7 @@ public final class e6 implements q6 { } if (this.h) { } - i20 = f.p1(b2, bArr, i9, i2, M(t), s3Var); + i20 = f.q1(b2, bArr, i9, i2, M(t), s3Var); bArr3 = bArr; bArr2 = bArr3; i21 = i11; diff --git a/app/src/main/java/c/i/a/f/h/l/ea.java b/app/src/main/java/c/i/a/f/h/l/ea.java index 78a24cce08..42930a9bad 100644 --- a/app/src/main/java/c/i/a/f/h/l/ea.java +++ b/app/src/main/java/c/i/a/f/h/l/ea.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ea implements z2 { public static ea i = new ea(); - public final z2 j = f.x1(new b3(new ga())); + public final z2 j = f.y1(new b3(new ga())); public static boolean b() { return ((ha) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/f9.java b/app/src/main/java/c/i/a/f/h/l/f9.java index bf10bc74ad..14635eef99 100644 --- a/app/src/main/java/c/i/a/f/h/l/f9.java +++ b/app/src/main/java/c/i/a/f/h/l/f9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class f9 implements z2 { public static f9 i = new f9(); - public final z2 j = f.x1(new b3(new h9())); + public final z2 j = f.y1(new b3(new h9())); public static boolean b() { return ((e9) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/g.java b/app/src/main/java/c/i/a/f/h/l/g.java index 38f8e45a7d..45effe5eb3 100644 --- a/app/src/main/java/c/i/a/f/h/l/g.java +++ b/app/src/main/java/c/i/a/f/h/l/g.java @@ -164,7 +164,7 @@ public class g { this.f = new c.i.a.f.i.a.a(this); this.g = new ArrayList(); try { - if (f.C1(context, "google_app_id") != null) { + if (f.D1(context, "google_app_id") != null) { z2 = true; if (z2) { try { diff --git a/app/src/main/java/c/i/a/f/h/l/g6.java b/app/src/main/java/c/i/a/f/h/l/g6.java index f7bbd048fa..8f423b9136 100644 --- a/app/src/main/java/c/i/a/f/h/l/g6.java +++ b/app/src/main/java/c/i/a/f/h/l/g6.java @@ -102,13 +102,13 @@ public final class g6 implements q6 { t.u(); u4.f fVar = null; while (i < i2) { - int v1 = f.v1(bArr, i, s3Var); + int w1 = f.w1(bArr, i, s3Var); int i3 = s3Var.a; if (i3 == 11) { int i4 = 0; t3 t3Var = null; - while (v1 < i2) { - v1 = f.v1(bArr, v1, s3Var); + while (w1 < i2) { + w1 = f.w1(bArr, w1, s3Var); int i5 = s3Var.a; int i6 = i5 >>> 3; int i7 = i5 & 7; @@ -118,34 +118,34 @@ public final class g6 implements q6 { n6 n6Var = n6.a; throw new NoSuchMethodError(); } else if (i7 == 2) { - v1 = f.X1(bArr, v1, s3Var); + w1 = f.c2(bArr, w1, s3Var); t3Var = (t3) s3Var.f1168c; } } } else if (i7 == 0) { - v1 = f.v1(bArr, v1, s3Var); + w1 = f.w1(bArr, w1, s3Var); i4 = s3Var.a; fVar = (u4.f) this.d.c(s3Var.d, this.a, i4); } if (i5 == 12) { break; } - v1 = f.n1(i5, bArr, v1, i2, s3Var); + w1 = f.o1(i5, bArr, w1, i2, s3Var); } if (t3Var != null) { c7Var.a((i4 << 3) | 2, t3Var); } - i = v1; + i = w1; } else if ((i3 & 7) == 2) { fVar = (u4.f) this.d.c(s3Var.d, this.a, i3 >>> 3); if (fVar == null) { - i = f.p1(i3, bArr, v1, i2, c7Var, s3Var); + i = f.q1(i3, bArr, w1, i2, c7Var, s3Var); } else { n6 n6Var2 = n6.a; throw new NoSuchMethodError(); } } else { - i = f.n1(i3, bArr, v1, i2, s3Var); + i = f.o1(i3, bArr, w1, i2, s3Var); } } if (i != i2) { diff --git a/app/src/main/java/c/i/a/f/h/l/g9.java b/app/src/main/java/c/i/a/f/h/l/g9.java index c7a7d806d2..27f321367b 100644 --- a/app/src/main/java/c/i/a/f/h/l/g9.java +++ b/app/src/main/java/c/i/a/f/h/l/g9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class g9 implements z2 { public static g9 i = new g9(); - public final z2 j = f.x1(new b3(new i9())); + public final z2 j = f.y1(new b3(new i9())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/h8.java b/app/src/main/java/c/i/a/f/h/l/h8.java index 201d822a8a..8c340b8c33 100644 --- a/app/src/main/java/c/i/a/f/h/l/h8.java +++ b/app/src/main/java/c/i/a/f/h/l/h8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class h8 implements z2 { public static h8 i = new h8(); - public final z2 j = f.x1(new b3(new j8())); + public final z2 j = f.y1(new b3(new j8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/hb.java b/app/src/main/java/c/i/a/f/h/l/hb.java index 0c79ddddd0..8a71bfcff1 100644 --- a/app/src/main/java/c/i/a/f/h/l/hb.java +++ b/app/src/main/java/c/i/a/f/h/l/hb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class hb implements z2 { public static hb i = new hb(); - public final z2 j = f.x1(new b3(new jb())); + public final z2 j = f.y1(new b3(new jb())); public static boolean b() { return ((gb) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/i8.java b/app/src/main/java/c/i/a/f/h/l/i8.java index f3400f5483..9d16dab1fe 100644 --- a/app/src/main/java/c/i/a/f/h/l/i8.java +++ b/app/src/main/java/c/i/a/f/h/l/i8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class i8 implements z2 { public static i8 i = new i8(); - public final z2 j = f.x1(new b3(new k8())); + public final z2 j = f.y1(new b3(new k8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/ib.java b/app/src/main/java/c/i/a/f/h/l/ib.java index 074236896d..80c46cea7c 100644 --- a/app/src/main/java/c/i/a/f/h/l/ib.java +++ b/app/src/main/java/c/i/a/f/h/l/ib.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ib implements z2 { public static ib i = new ib(); - public final z2 j = f.x1(new b3(new kb())); + public final z2 j = f.y1(new b3(new kb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/ja.java b/app/src/main/java/c/i/a/f/h/l/ja.java index 841552c64f..58131e623b 100644 --- a/app/src/main/java/c/i/a/f/h/l/ja.java +++ b/app/src/main/java/c/i/a/f/h/l/ja.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ja implements z2 { public static ja i = new ja(); - public final z2 j = f.x1(new b3(new la())); + public final z2 j = f.y1(new b3(new la())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/ka.java b/app/src/main/java/c/i/a/f/h/l/ka.java index 911eda0a92..976bc3702a 100644 --- a/app/src/main/java/c/i/a/f/h/l/ka.java +++ b/app/src/main/java/c/i/a/f/h/l/ka.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ka implements z2 { public static ka i = new ka(); - public final z2 j = f.x1(new b3(new ma())); + public final z2 j = f.y1(new b3(new ma())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/l2.java b/app/src/main/java/c/i/a/f/h/l/l2.java index 9fa5231411..40d3196a6f 100644 --- a/app/src/main/java/c/i/a/f/h/l/l2.java +++ b/app/src/main/java/c/i/a/f/h/l/l2.java @@ -68,14 +68,14 @@ public abstract class l2 { String str = this.f; Objects.requireNonNull(u2Var); Objects.requireNonNull(str, "flagName must not be null"); - f.U1(true, "Attempt to access PhenotypeFlag not via codegen. All new PhenotypeFlags must be accessed through codegen APIs. If you believe you are seeing this error by mistake, you can add your flag to the exemption list located at //java/com/google/android/libraries/phenotype/client/lockdown/flags.textproto. Send the addition CL to ph-reviews@. See go/phenotype-android-codegen for information about generated code. See go/ph-lockdown for more information about this error."); + f.X1(true, "Attempt to access PhenotypeFlag not via codegen. All new PhenotypeFlags must be accessed through codegen APIs. If you believe you are seeing this error by mistake, you can add your flag to the exemption list located at //java/com/google/android/libraries/phenotype/client/lockdown/flags.textproto. Send the addition CL to ph-reviews@. See go/phenotype-android-codegen for information about generated code. See go/ph-lockdown for more information about this error."); } int i = d.get(); if (this.h < i) { synchronized (this) { if (this.h < i) { t2 t2Var = b; - f.U1(t2Var != null, "Must call PhenotypeFlag.init() first"); + f.X1(t2Var != null, "Must call PhenotypeFlag.init() first"); String str2 = (String) c2.a(t2Var.a()).g("gms:phenotype:phenotype_flag:debug_bypass_phenotype"); if (str2 == null || !u1.f1170c.matcher(str2).matches()) { z2 = false; diff --git a/app/src/main/java/c/i/a/f/h/l/l7.java b/app/src/main/java/c/i/a/f/h/l/l7.java index 41ca6cfa48..ee2971c8ab 100644 --- a/app/src/main/java/c/i/a/f/h/l/l7.java +++ b/app/src/main/java/c/i/a/f/h/l/l7.java @@ -141,7 +141,7 @@ public final class l7 extends m7 { int i4 = 0; while (i < i3) { byte b = bArr[i]; - if (!f.Q1(b)) { + if (!f.R1(b)) { break; } i++; @@ -152,7 +152,7 @@ public final class l7 extends m7 { while (i < i3) { int i6 = i + 1; byte b2 = bArr[i]; - if (f.Q1(b2)) { + if (f.R1(b2)) { int i7 = i5 + 1; cArr[i5] = (char) b2; i = i6; @@ -162,7 +162,7 @@ public final class l7 extends m7 { break; } byte b3 = bArr[i]; - if (!f.Q1(b3)) { + if (!f.R1(b3)) { break; } i++; @@ -174,7 +174,7 @@ public final class l7 extends m7 { if (b2 < -16) { if (i6 < i3 - 1) { int i8 = i6 + 1; - f.I1(b2, bArr[i6], bArr[i8], cArr, i5); + f.J1(b2, bArr[i6], bArr[i8], cArr, i5); i = i8 + 1; i5++; } else { @@ -184,14 +184,14 @@ public final class l7 extends m7 { int i9 = i6 + 1; byte b4 = bArr[i6]; int i10 = i9 + 1; - f.H1(b2, b4, bArr[i9], bArr[i10], cArr, i5); + f.I1(b2, b4, bArr[i9], bArr[i10], cArr, i5); i5 = i5 + 1 + 1; i = i10 + 1; } else { throw zzij.e(); } } else if (i6 < i3) { - f.J1(b2, bArr[i6], cArr, i5); + f.K1(b2, bArr[i6], cArr, i5); i = i6 + 1; i5++; } else { diff --git a/app/src/main/java/c/i/a/f/h/l/l9.java b/app/src/main/java/c/i/a/f/h/l/l9.java index 585bcf176f..60b612ecf9 100644 --- a/app/src/main/java/c/i/a/f/h/l/l9.java +++ b/app/src/main/java/c/i/a/f/h/l/l9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class l9 implements z2 { public static l9 i = new l9(); - public final z2 j = f.x1(new b3(new n9())); + public final z2 j = f.y1(new b3(new n9())); public static boolean b() { return ((k9) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/m9.java b/app/src/main/java/c/i/a/f/h/l/m9.java index f8f873278c..2d437b3922 100644 --- a/app/src/main/java/c/i/a/f/h/l/m9.java +++ b/app/src/main/java/c/i/a/f/h/l/m9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class m9 implements z2 { public static m9 i = new m9(); - public final z2 j = f.x1(new b3(new o9())); + public final z2 j = f.y1(new b3(new o9())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/n7.java b/app/src/main/java/c/i/a/f/h/l/n7.java index 68253727cb..5c29a3f13a 100644 --- a/app/src/main/java/c/i/a/f/h/l/n7.java +++ b/app/src/main/java/c/i/a/f/h/l/n7.java @@ -240,7 +240,7 @@ public final class n7 extends m7 { int i4 = 0; while (i < i3) { byte a = j7.a(bArr, (long) i); - if (!f.Q1(a)) { + if (!f.R1(a)) { break; } i++; @@ -251,7 +251,7 @@ public final class n7 extends m7 { while (i < i3) { int i6 = i + 1; byte a2 = j7.a(bArr, (long) i); - if (f.Q1(a2)) { + if (f.R1(a2)) { int i7 = i5 + 1; cArr[i5] = (char) a2; i = i6; @@ -261,7 +261,7 @@ public final class n7 extends m7 { break; } byte a3 = j7.a(bArr, (long) i); - if (!f.Q1(a3)) { + if (!f.R1(a3)) { break; } i++; @@ -273,7 +273,7 @@ public final class n7 extends m7 { if (a2 < -16) { if (i6 < i3 - 1) { int i8 = i6 + 1; - f.I1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i8), cArr, i5); + f.J1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i8), cArr, i5); i = i8 + 1; i5++; } else { @@ -282,14 +282,14 @@ public final class n7 extends m7 { } else if (i6 < i3 - 2) { int i9 = i6 + 1; int i10 = i9 + 1; - f.H1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i9), j7.a(bArr, (long) i10), cArr, i5); + f.I1(a2, j7.a(bArr, (long) i6), j7.a(bArr, (long) i9), j7.a(bArr, (long) i10), cArr, i5); i5 = i5 + 1 + 1; i = i10 + 1; } else { throw zzij.e(); } } else if (i6 < i3) { - f.J1(a2, j7.a(bArr, (long) i6), cArr, i5); + f.K1(a2, j7.a(bArr, (long) i6), cArr, i5); i = i6 + 1; i5++; } else { diff --git a/app/src/main/java/c/i/a/f/h/l/n8.java b/app/src/main/java/c/i/a/f/h/l/n8.java index d2862d1cd7..877a051c6e 100644 --- a/app/src/main/java/c/i/a/f/h/l/n8.java +++ b/app/src/main/java/c/i/a/f/h/l/n8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class n8 implements z2 { public static n8 i = new n8(); - public final z2 j = f.x1(new b3(new p8())); + public final z2 j = f.y1(new b3(new p8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/nb.java b/app/src/main/java/c/i/a/f/h/l/nb.java index 80ce9d0285..d84bd2b3c3 100644 --- a/app/src/main/java/c/i/a/f/h/l/nb.java +++ b/app/src/main/java/c/i/a/f/h/l/nb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class nb implements z2 { public static nb i = new nb(); - public final z2 j = f.x1(new b3(new pb())); + public final z2 j = f.y1(new b3(new pb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/o8.java b/app/src/main/java/c/i/a/f/h/l/o8.java index 1d95e420b8..b5e0638fd4 100644 --- a/app/src/main/java/c/i/a/f/h/l/o8.java +++ b/app/src/main/java/c/i/a/f/h/l/o8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class o8 implements z2 { public static o8 i = new o8(); - public final z2 j = f.x1(new b3(new q8())); + public final z2 j = f.y1(new b3(new q8())); public static boolean b() { return ((r8) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/ob.java b/app/src/main/java/c/i/a/f/h/l/ob.java index 84a84b85df..1dc3c301f1 100644 --- a/app/src/main/java/c/i/a/f/h/l/ob.java +++ b/app/src/main/java/c/i/a/f/h/l/ob.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ob implements z2 { public static ob i = new ob(); - public final z2 j = f.x1(new b3(new qb())); + public final z2 j = f.y1(new b3(new qb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/pa.java b/app/src/main/java/c/i/a/f/h/l/pa.java index cf4de24286..75cffaa5a7 100644 --- a/app/src/main/java/c/i/a/f/h/l/pa.java +++ b/app/src/main/java/c/i/a/f/h/l/pa.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class pa implements z2 { public static pa i = new pa(); - public final z2 j = f.x1(new b3(new ra())); + public final z2 j = f.y1(new b3(new ra())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/qa.java b/app/src/main/java/c/i/a/f/h/l/qa.java index 2512bc608d..e87ad68a8e 100644 --- a/app/src/main/java/c/i/a/f/h/l/qa.java +++ b/app/src/main/java/c/i/a/f/h/l/qa.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class qa implements z2 { public static qa i = new qa(); - public final z2 j = f.x1(new b3(new sa())); + public final z2 j = f.y1(new b3(new sa())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/r9.java b/app/src/main/java/c/i/a/f/h/l/r9.java index 49fe184c61..23ac502ef7 100644 --- a/app/src/main/java/c/i/a/f/h/l/r9.java +++ b/app/src/main/java/c/i/a/f/h/l/r9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class r9 implements z2 { public static r9 i = new r9(); - public final z2 j = f.x1(new b3(new t9())); + public final z2 j = f.y1(new b3(new t9())); public static boolean b() { return ((q9) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/s9.java b/app/src/main/java/c/i/a/f/h/l/s9.java index e43e510381..9e2435e930 100644 --- a/app/src/main/java/c/i/a/f/h/l/s9.java +++ b/app/src/main/java/c/i/a/f/h/l/s9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class s9 implements z2 { public static s9 i = new s9(); - public final z2 j = f.x1(new b3(new u9())); + public final z2 j = f.y1(new b3(new u9())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/t3.java b/app/src/main/java/c/i/a/f/h/l/t3.java index 1cd749b078..e25e0536a4 100644 --- a/app/src/main/java/c/i/a/f/h/l/t3.java +++ b/app/src/main/java/c/i/a/f/h/l/t3.java @@ -86,7 +86,7 @@ public abstract class t3 implements Serializable, Iterable { Object[] objArr = new Object[3]; objArr[0] = Integer.toHexString(System.identityHashCode(this)); objArr[1] = Integer.valueOf(d()); - objArr[2] = d() <= 50 ? f.D1(this) : String.valueOf(f.D1(g(0, 47))).concat("..."); + objArr[2] = d() <= 50 ? f.E1(this) : String.valueOf(f.E1(g(0, 47))).concat("..."); return String.format(locale, "", objArr); } } diff --git a/app/src/main/java/c/i/a/f/h/l/t8.java b/app/src/main/java/c/i/a/f/h/l/t8.java index 10fb424de9..90091d83e0 100644 --- a/app/src/main/java/c/i/a/f/h/l/t8.java +++ b/app/src/main/java/c/i/a/f/h/l/t8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class t8 implements z2 { public static t8 i = new t8(); - public final z2 j = f.x1(new b3(new v8())); + public final z2 j = f.y1(new b3(new v8())); public static boolean b() { return ((s8) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/tb.java b/app/src/main/java/c/i/a/f/h/l/tb.java index 356d11a508..81cedb5698 100644 --- a/app/src/main/java/c/i/a/f/h/l/tb.java +++ b/app/src/main/java/c/i/a/f/h/l/tb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class tb implements z2 { public static tb i = new tb(); - public final z2 j = f.x1(new b3(new vb())); + public final z2 j = f.y1(new b3(new vb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/u4.java b/app/src/main/java/c/i/a/f/h/l/u4.java index e08114c3d0..3f7bac0c3a 100644 --- a/app/src/main/java/c/i/a/f/h/l/u4.java +++ b/app/src/main/java/c/i/a/f/h/l/u4.java @@ -318,7 +318,7 @@ public abstract class u4, Build StringBuilder sb = new StringBuilder(); sb.append("# "); sb.append(obj); - c.i.a.f.e.o.f.L1(this, sb, 0); + c.i.a.f.e.o.f.M1(this, sb, 0); return sb.toString(); } } diff --git a/app/src/main/java/c/i/a/f/h/l/u8.java b/app/src/main/java/c/i/a/f/h/l/u8.java index 0c286a4dc7..4bea001d82 100644 --- a/app/src/main/java/c/i/a/f/h/l/u8.java +++ b/app/src/main/java/c/i/a/f/h/l/u8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class u8 implements z2 { public static u8 i = new u8(); - public final z2 j = f.x1(new b3(new w8())); + public final z2 j = f.y1(new b3(new w8())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/ub.java b/app/src/main/java/c/i/a/f/h/l/ub.java index c8da6c7762..aa1a338781 100644 --- a/app/src/main/java/c/i/a/f/h/l/ub.java +++ b/app/src/main/java/c/i/a/f/h/l/ub.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class ub implements z2 { public static ub i = new ub(); - public final z2 j = f.x1(new b3(new wb())); + public final z2 j = f.y1(new b3(new wb())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/va.java b/app/src/main/java/c/i/a/f/h/l/va.java index 3512033afe..ea08bc159b 100644 --- a/app/src/main/java/c/i/a/f/h/l/va.java +++ b/app/src/main/java/c/i/a/f/h/l/va.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class va implements z2 { public static va i = new va(); - public final z2 j = f.x1(new b3(new xa())); + public final z2 j = f.y1(new b3(new xa())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/wa.java b/app/src/main/java/c/i/a/f/h/l/wa.java index 52557f5304..5ddfe2301d 100644 --- a/app/src/main/java/c/i/a/f/h/l/wa.java +++ b/app/src/main/java/c/i/a/f/h/l/wa.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class wa implements z2 { public static wa i = new wa(); - public final z2 j = f.x1(new b3(new ya())); + public final z2 j = f.y1(new b3(new ya())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/x7.java b/app/src/main/java/c/i/a/f/h/l/x7.java index 01472b481e..33a44b2cda 100644 --- a/app/src/main/java/c/i/a/f/h/l/x7.java +++ b/app/src/main/java/c/i/a/f/h/l/x7.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class x7 implements z2 { public static x7 i = new x7(); - public final z2 j = f.x1(new b3(new y7())); + public final z2 j = f.y1(new b3(new y7())); public static boolean b() { return ((z7) i.a()).a(); diff --git a/app/src/main/java/c/i/a/f/h/l/x9.java b/app/src/main/java/c/i/a/f/h/l/x9.java index 9cc6e948ed..aee8751366 100644 --- a/app/src/main/java/c/i/a/f/h/l/x9.java +++ b/app/src/main/java/c/i/a/f/h/l/x9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class x9 implements z2 { public static x9 i = new x9(); - public final z2 j = f.x1(new b3(new z9())); + public final z2 j = f.y1(new b3(new z9())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/y1.java b/app/src/main/java/c/i/a/f/h/l/y1.java index ecc9d5c887..6de24879c7 100644 --- a/app/src/main/java/c/i/a/f/h/l/y1.java +++ b/app/src/main/java/c/i/a/f/h/l/y1.java @@ -78,7 +78,7 @@ public final class y1 implements b2 { if (map2 == null) { StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads(); try { - map = (Map) f.A1(new x1(this)); + map = (Map) f.B1(new x1(this)); StrictMode.setThreadPolicy(allowThreadDiskReads); } catch (SQLiteException | IllegalStateException | SecurityException unused) { Log.e("ConfigurationContentLoader", "PhenotypeFlag unable to load ContentProvider, using default values"); diff --git a/app/src/main/java/c/i/a/f/h/l/y9.java b/app/src/main/java/c/i/a/f/h/l/y9.java index 4b14a24df9..3d27c912bb 100644 --- a/app/src/main/java/c/i/a/f/h/l/y9.java +++ b/app/src/main/java/c/i/a/f/h/l/y9.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class y9 implements z2 { public static y9 i = new y9(); - public final z2 j = f.x1(new b3(new aa())); + public final z2 j = f.y1(new b3(new aa())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/z8.java b/app/src/main/java/c/i/a/f/h/l/z8.java index b63fb59bc8..181e24bc89 100644 --- a/app/src/main/java/c/i/a/f/h/l/z8.java +++ b/app/src/main/java/c/i/a/f/h/l/z8.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class z8 implements z2 { public static z8 i = new z8(); - public final z2 j = f.x1(new b3(new b9())); + public final z2 j = f.y1(new b3(new b9())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/l/zb.java b/app/src/main/java/c/i/a/f/h/l/zb.java index 5b2b85f995..66df5e8dfe 100644 --- a/app/src/main/java/c/i/a/f/h/l/zb.java +++ b/app/src/main/java/c/i/a/f/h/l/zb.java @@ -4,7 +4,7 @@ import c.i.a.f.e.o.f; /* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */ public final class zb implements z2 { public static zb i = new zb(); - public final z2 j = f.x1(new b3(new ac())); + public final z2 j = f.y1(new b3(new ac())); /* Return type fixed from 'java.lang.Object' to match base method */ @Override // c.i.a.f.h.l.z2 diff --git a/app/src/main/java/c/i/a/f/h/n/a.java b/app/src/main/java/c/i/a/f/h/n/a.java index 95061e2c2b..43eeab1af7 100644 --- a/app/src/main/java/c/i/a/f/h/n/a.java +++ b/app/src/main/java/c/i/a/f/h/n/a.java @@ -5,7 +5,7 @@ import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import androidx.annotation.Nullable; -import c.d.a.a.o; +import c.d.a.a.q; import com.android.billingclient.api.BillingResult; import com.android.billingclient.api.Purchase; import java.util.ArrayList; @@ -32,7 +32,7 @@ public final class a { } } - public static Bundle b(int i, boolean z2, String str, @Nullable String str2, ArrayList arrayList) { + public static Bundle b(int i, boolean z2, String str, @Nullable String str2, ArrayList arrayList) { Bundle bundle = new Bundle(); if (i >= 9) { bundle.putString("playBillingLibraryVersion", str); diff --git a/app/src/main/java/c/i/a/f/h/n/h.java b/app/src/main/java/c/i/a/f/h/n/h.java new file mode 100644 index 0000000000..7a4466f1d4 --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/h.java @@ -0,0 +1,81 @@ +package c.i.a.f.h.n; + +import java.io.Serializable; +import java.lang.reflect.Array; +import java.util.AbstractCollection; +import java.util.Arrays; +import java.util.Collection; +import java.util.Objects; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class h extends AbstractCollection implements Serializable { + public static final Object[] i = new Object[0]; + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean addAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + public abstract int c(Object[] objArr, int i2); + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final void clear() { + throw new UnsupportedOperationException(); + } + + public abstract int d(); + + public abstract int e(); + + @NullableDecl + public abstract Object[] g(); + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean remove(Object obj) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean removeAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + @Deprecated + public final boolean retainAll(Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public final Object[] toArray() { + return toArray(i); + } + + @Override // java.util.AbstractCollection, java.util.Collection + public final T[] toArray(T[] tArr) { + Objects.requireNonNull(tArr); + int size = size(); + int length = tArr.length; + if (length < size) { + Object[] g = g(); + if (g != null) { + return (T[]) Arrays.copyOfRange(g, e(), d(), tArr.getClass()); + } + tArr = (T[]) ((Object[]) Array.newInstance(tArr.getClass().getComponentType(), size)); + } else if (length > size) { + tArr[size] = null; + } + c(tArr, 0); + return tArr; + } +} diff --git a/app/src/main/java/c/i/a/f/h/n/i.java b/app/src/main/java/c/i/a/f/h/n/i.java new file mode 100644 index 0000000000..8892373131 --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/i.java @@ -0,0 +1,54 @@ +package c.i.a.f.h.n; + +import c.i.a.f.e.o.f; +import java.util.NoSuchElementException; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class i { + public final int i; + public int j; + public final k k; + + public i(k kVar, int i) { + int size = kVar.size(); + if (i < 0 || i > size) { + throw new IndexOutOfBoundsException(f.b2(i, size, "index")); + } + this.i = size; + this.j = i; + this.k = kVar; + } + + public final boolean hasNext() { + return this.j < this.i; + } + + public final boolean hasPrevious() { + return this.j > 0; + } + + public final Object next() { + if (hasNext()) { + int i = this.j; + this.j = i + 1; + return this.k.get(i); + } + throw new NoSuchElementException(); + } + + public final int nextIndex() { + return this.j; + } + + public final Object previous() { + if (hasPrevious()) { + int i = this.j - 1; + this.j = i; + return this.k.get(i); + } + throw new NoSuchElementException(); + } + + public final int previousIndex() { + return this.j - 1; + } +} diff --git a/app/src/main/java/c/i/a/f/h/n/j.java b/app/src/main/java/c/i/a/f/h/n/j.java new file mode 100644 index 0000000000..f16c5b12c8 --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/j.java @@ -0,0 +1,50 @@ +package c.i.a.f.h.n; + +import c.i.a.f.e.o.f; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class j extends k { + public final transient int k; + public final transient int l; + public final /* synthetic */ k zzc; + + public j(k kVar, int i, int i2) { + this.zzc = kVar; + this.k = i; + this.l = i2; + } + + @Override // c.i.a.f.h.n.h + public final int d() { + return this.zzc.e() + this.k + this.l; + } + + @Override // c.i.a.f.h.n.h + public final int e() { + return this.zzc.e() + this.k; + } + + @Override // c.i.a.f.h.n.h + public final Object[] g() { + return this.zzc.g(); + } + + @Override // java.util.List + public final Object get(int i) { + f.n1(i, this.l, "index"); + return this.zzc.get(i + this.k); + } + + @Override // c.i.a.f.h.n.k + /* renamed from: h */ + public final k subList(int i, int i2) { + f.Z1(i, i2, this.l); + k kVar = this.zzc; + int i3 = this.k; + return kVar.subList(i + i3, i2 + i3); + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final int size() { + return this.l; + } +} diff --git a/app/src/main/java/c/i/a/f/h/n/k.java b/app/src/main/java/c/i/a/f/h/n/k.java new file mode 100644 index 0000000000..0050eac33e --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/k.java @@ -0,0 +1,150 @@ +package c.i.a.f.h.n; + +import c.i.a.f.e.o.f; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; +import java.util.RandomAccess; +import org.checkerframework.checker.nullness.compatqual.NullableDecl; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class k extends h implements List, RandomAccess { + public static final m j = new i(l.k, 0); + + @Override // java.util.List + @Deprecated + public final void add(int i, E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @Deprecated + public final boolean addAll(int i, Collection collection) { + throw new UnsupportedOperationException(); + } + + @Override // c.i.a.f.h.n.h + public int c(Object[] objArr, int i) { + int size = size(); + for (int i2 = 0; i2 < size; i2++) { + objArr[i2] = get(i2); + } + return size; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final boolean contains(@NullableDecl Object obj) { + return indexOf(obj) >= 0; + } + + @Override // java.util.Collection, java.lang.Object, java.util.List + public final boolean equals(@NullableDecl Object obj) { + if (obj == this) { + return true; + } + if (obj instanceof List) { + List list = (List) obj; + int size = size(); + if (size == list.size()) { + if (list instanceof RandomAccess) { + for (int i = 0; i < size; i++) { + if (f.U1(get(i), list.get(i))) { + } + } + return true; + } + Iterator it = iterator(); + Iterator it2 = list.iterator(); + while (true) { + if (it.hasNext()) { + if (it2.hasNext()) { + if (!f.U1(it.next(), it2.next())) { + break; + } + } else { + break; + } + } else if (!it2.hasNext()) { + return true; + } + } + } + } + return false; + } + + /* renamed from: h */ + public k subList(int i, int i2) { + f.Z1(i, i2, size()); + int i3 = i2 - i; + return i3 == size() ? this : i3 == 0 ? (k) l.k : new j(this, i, i3); + } + + @Override // java.util.Collection, java.lang.Object, java.util.List + public final int hashCode() { + int size = size(); + int i = 1; + for (int i2 = 0; i2 < size; i2++) { + i = (i * 31) + get(i2).hashCode(); + } + return i; + } + + /* renamed from: i */ + public final m listIterator(int i) { + int size = size(); + if (i >= 0 && i <= size) { + return isEmpty() ? (m) j : new i(this, i); + } + throw new IndexOutOfBoundsException(f.b2(i, size, "index")); + } + + @Override // java.util.List + public final int indexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + int size = size(); + for (int i = 0; i < size; i++) { + if (obj.equals(get(i))) { + return i; + } + } + return -1; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.List + public final /* bridge */ /* synthetic */ Iterator iterator() { + return listIterator(0); + } + + @Override // java.util.List + public final int lastIndexOf(@NullableDecl Object obj) { + if (obj == null) { + return -1; + } + for (int size = size() - 1; size >= 0; size--) { + if (obj.equals(get(size))) { + return size; + } + } + return -1; + } + + @Override // java.util.List + public final /* bridge */ /* synthetic */ ListIterator listIterator() { + return listIterator(0); + } + + @Override // java.util.List + @Deprecated + public final E remove(int i) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.List + @Deprecated + public final E set(int i, E e) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/c/i/a/f/h/n/l.java b/app/src/main/java/c/i/a/f/h/n/l.java new file mode 100644 index 0000000000..4f2ac88406 --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/l.java @@ -0,0 +1,44 @@ +package c.i.a.f.h.n; + +import c.i.a.f.e.o.f; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public final class l extends k { + public static final k k = new l(new Object[0]); + public final transient Object[] l; + + public l(Object[] objArr) { + this.l = objArr; + } + + @Override // c.i.a.f.h.n.k, c.i.a.f.h.n.h + public final int c(Object[] objArr, int i) { + System.arraycopy(this.l, 0, objArr, 0, 0); + return 0; + } + + @Override // c.i.a.f.h.n.h + public final int d() { + return 0; + } + + @Override // c.i.a.f.h.n.h + public final int e() { + return 0; + } + + @Override // c.i.a.f.h.n.h + public final Object[] g() { + return this.l; + } + + @Override // java.util.List + public final E get(int i) { + f.n1(i, 0, "index"); + return (E) this.l[i]; + } + + @Override // java.util.AbstractCollection, java.util.Collection, java.util.List + public final int size() { + return 0; + } +} diff --git a/app/src/main/java/c/i/a/f/h/n/m.java b/app/src/main/java/c/i/a/f/h/n/m.java new file mode 100644 index 0000000000..692862b1e7 --- /dev/null +++ b/app/src/main/java/c/i/a/f/h/n/m.java @@ -0,0 +1,23 @@ +package c.i.a.f.h.n; + +import java.util.Iterator; +import java.util.ListIterator; +/* compiled from: com.android.billingclient:billing@@4.0.0 */ +public abstract class m implements ListIterator, Iterator { + @Override // java.util.ListIterator + @Deprecated + public final void add(E e) { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator, java.util.Iterator + public final void remove() { + throw new UnsupportedOperationException(); + } + + @Override // java.util.ListIterator + @Deprecated + public final void set(E e) { + throw new UnsupportedOperationException(); + } +} diff --git a/app/src/main/java/c/i/a/f/i/b/c6.java b/app/src/main/java/c/i/a/f/i/b/c6.java index c7323b9de9..4e7a6131b3 100644 --- a/app/src/main/java/c/i/a/f/i/b/c6.java +++ b/app/src/main/java/c/i/a/f/i/b/c6.java @@ -676,7 +676,7 @@ public final class c6 extends a5 { return str; } try { - return f.C1(u4Var.b, "google_app_id"); + return f.D1(u4Var.b, "google_app_id"); } catch (IllegalStateException e) { this.a.g().f.b("getGoogleAppId failed with exception", e); return null; @@ -836,19 +836,19 @@ public final class c6 extends a5 { g().i.a("Package name should be null when calling setConditionalUserProperty"); } bundle2.remove("app_id"); - f.z1(bundle2, "app_id", String.class, null); - f.z1(bundle2, "origin", String.class, null); - f.z1(bundle2, ModelAuditLogEntry.CHANGE_KEY_NAME, String.class, null); - f.z1(bundle2, "value", Object.class, null); - f.z1(bundle2, "trigger_event_name", String.class, null); - f.z1(bundle2, "trigger_timeout", Long.class, 0L); - f.z1(bundle2, "timed_out_event_name", String.class, null); - f.z1(bundle2, "timed_out_event_params", Bundle.class, null); - f.z1(bundle2, "triggered_event_name", String.class, null); - f.z1(bundle2, "triggered_event_params", Bundle.class, null); - f.z1(bundle2, "time_to_live", Long.class, 0L); - f.z1(bundle2, "expired_event_name", String.class, null); - f.z1(bundle2, "expired_event_params", Bundle.class, null); + f.A1(bundle2, "app_id", String.class, null); + f.A1(bundle2, "origin", String.class, null); + f.A1(bundle2, ModelAuditLogEntry.CHANGE_KEY_NAME, String.class, null); + f.A1(bundle2, "value", Object.class, null); + f.A1(bundle2, "trigger_event_name", String.class, null); + f.A1(bundle2, "trigger_timeout", Long.class, 0L); + f.A1(bundle2, "timed_out_event_name", String.class, null); + f.A1(bundle2, "timed_out_event_params", Bundle.class, null); + f.A1(bundle2, "triggered_event_name", String.class, null); + f.A1(bundle2, "triggered_event_params", Bundle.class, null); + f.A1(bundle2, "time_to_live", Long.class, 0L); + f.A1(bundle2, "expired_event_name", String.class, null); + f.A1(bundle2, "expired_event_params", Bundle.class, null); d.w(bundle2.getString(ModelAuditLogEntry.CHANGE_KEY_NAME)); d.w(bundle2.getString("origin")); Objects.requireNonNull(bundle2.get("value"), "null reference"); @@ -865,7 +865,7 @@ public final class c6 extends a5 { g().f.c("Unable to normalize conditional user property value", d().y(string), obj); return; } - f.K1(bundle2, n0); + f.L1(bundle2, n0); long j2 = bundle2.getLong("trigger_timeout"); if (TextUtils.isEmpty(bundle2.getString("trigger_event_name")) || (j2 <= 15552000000L && j2 >= 1)) { long j3 = bundle2.getLong("time_to_live"); diff --git a/app/src/main/java/c/i/a/f/i/b/h.java b/app/src/main/java/c/i/a/f/i/b/h.java index f241519d4c..9e4f0bbdb0 100644 --- a/app/src/main/java/c/i/a/f/i/b/h.java +++ b/app/src/main/java/c/i/a/f/i/b/h.java @@ -63,7 +63,7 @@ public final class h extends SQLiteOpenHelper { @Override // android.database.sqlite.SQLiteOpenHelper @WorkerThread public final void onCreate(SQLiteDatabase sQLiteDatabase) { - f.M1(this.i.g(), sQLiteDatabase); + f.N1(this.i.g(), sQLiteDatabase); } @Override // android.database.sqlite.SQLiteOpenHelper @@ -74,20 +74,20 @@ public final class h extends SQLiteOpenHelper { @Override // android.database.sqlite.SQLiteOpenHelper @WorkerThread public final void onOpen(SQLiteDatabase sQLiteDatabase) { - f.N1(this.i.g(), sQLiteDatabase, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", g.d); - f.N1(this.i.g(), sQLiteDatabase, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", null); - f.N1(this.i.g(), sQLiteDatabase, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", g.e); - f.N1(this.i.g(), sQLiteDatabase, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", g.f); - f.N1(this.i.g(), sQLiteDatabase, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", g.h); - f.N1(this.i.g(), sQLiteDatabase, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", null); - f.N1(this.i.g(), sQLiteDatabase, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", g.g); - f.N1(this.i.g(), sQLiteDatabase, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", g.i); - f.N1(this.i.g(), sQLiteDatabase, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", g.j); - f.N1(this.i.g(), sQLiteDatabase, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", null); - f.N1(this.i.g(), sQLiteDatabase, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", g.k); - f.N1(this.i.g(), sQLiteDatabase, "main_event_params", "CREATE TABLE IF NOT EXISTS main_event_params ( app_id TEXT NOT NULL, event_id TEXT NOT NULL, children_to_process INTEGER NOT NULL, main_event BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,event_id,children_to_process,main_event", null); - f.N1(this.i.g(), sQLiteDatabase, "default_event_params", "CREATE TABLE IF NOT EXISTS default_event_params ( app_id TEXT NOT NULL, parameters BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,parameters", null); - f.N1(this.i.g(), sQLiteDatabase, "consent_settings", "CREATE TABLE IF NOT EXISTS consent_settings ( app_id TEXT NOT NULL, consent_state TEXT NOT NULL, PRIMARY KEY (app_id));", "app_id,consent_state", null); + f.O1(this.i.g(), sQLiteDatabase, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", g.d); + f.O1(this.i.g(), sQLiteDatabase, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", null); + f.O1(this.i.g(), sQLiteDatabase, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", g.e); + f.O1(this.i.g(), sQLiteDatabase, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", g.f); + f.O1(this.i.g(), sQLiteDatabase, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", g.h); + f.O1(this.i.g(), sQLiteDatabase, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", null); + f.O1(this.i.g(), sQLiteDatabase, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", g.g); + f.O1(this.i.g(), sQLiteDatabase, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", g.i); + f.O1(this.i.g(), sQLiteDatabase, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", g.j); + f.O1(this.i.g(), sQLiteDatabase, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", null); + f.O1(this.i.g(), sQLiteDatabase, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", g.k); + f.O1(this.i.g(), sQLiteDatabase, "main_event_params", "CREATE TABLE IF NOT EXISTS main_event_params ( app_id TEXT NOT NULL, event_id TEXT NOT NULL, children_to_process INTEGER NOT NULL, main_event BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,event_id,children_to_process,main_event", null); + f.O1(this.i.g(), sQLiteDatabase, "default_event_params", "CREATE TABLE IF NOT EXISTS default_event_params ( app_id TEXT NOT NULL, parameters BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,parameters", null); + f.O1(this.i.g(), sQLiteDatabase, "consent_settings", "CREATE TABLE IF NOT EXISTS consent_settings ( app_id TEXT NOT NULL, consent_state TEXT NOT NULL, PRIMARY KEY (app_id));", "app_id,consent_state", null); } @Override // android.database.sqlite.SQLiteOpenHelper diff --git a/app/src/main/java/c/i/a/f/i/b/n3.java b/app/src/main/java/c/i/a/f/i/b/n3.java index 12444f4553..c4fec488b3 100644 --- a/app/src/main/java/c/i/a/f/i/b/n3.java +++ b/app/src/main/java/c/i/a/f/i/b/n3.java @@ -63,7 +63,7 @@ public final class n3 extends a5 { List list; Bundle D; Integer num; - String C1; + String D1; String str = EnvironmentCompat.MEDIA_UNKNOWN; String str2 = "Unknown"; String packageName = this.a.b.getPackageName(); @@ -165,8 +165,8 @@ public final class n3 extends a5 { this.l = this.a.f1240c; } list = null; - C1 = (((lb) ib.i.a()).a() || !this.a.h.o(p.C0)) ? h.a("getGoogleAppId").f1084c : f.C1(this.a.b, "google_app_id"); - this.k = !TextUtils.isEmpty(C1) ? "" : C1; + D1 = (((lb) ib.i.a()).a() || !this.a.h.o(p.C0)) ? h.a("getGoogleAppId").f1084c : f.D1(this.a.b, "google_app_id"); + this.k = !TextUtils.isEmpty(D1) ? "" : D1; if (!da.b() && this.a.h.o(p.f1229j0)) { Context context2 = this.a.b; Objects.requireNonNull(context2, "null reference"); @@ -175,11 +175,11 @@ public final class n3 extends a5 { int identifier = resources.getIdentifier("ga_app_id", "string", resourcePackageName); String string = identifier == 0 ? null : resources.getString(identifier); this.m = TextUtils.isEmpty(string) ? "" : string; - if (!TextUtils.isEmpty(C1) || !TextUtils.isEmpty(string)) { + if (!TextUtils.isEmpty(D1) || !TextUtils.isEmpty(string)) { int identifier2 = resources.getIdentifier("admob_app_id", "string", resourcePackageName); this.l = identifier2 == 0 ? null : resources.getString(identifier2); } - } else if (!TextUtils.isEmpty(C1)) { + } else if (!TextUtils.isEmpty(D1)) { Context context3 = this.a.b; Objects.requireNonNull(context3, "null reference"); Resources resources2 = context3.getResources(); @@ -254,10 +254,10 @@ public final class n3 extends a5 { try { if (((lb) ib.i.a()).a()) { } - this.k = !TextUtils.isEmpty(C1) ? "" : C1; + this.k = !TextUtils.isEmpty(D1) ? "" : D1; if (!da.b()) { } - if (!TextUtils.isEmpty(C1)) { + if (!TextUtils.isEmpty(D1)) { } if (z2) { } diff --git a/app/src/main/java/c/i/a/f/i/b/p3.java b/app/src/main/java/c/i/a/f/i/b/p3.java index 0022c240b4..becbe406a0 100644 --- a/app/src/main/java/c/i/a/f/i/b/p3.java +++ b/app/src/main/java/c/i/a/f/i/b/p3.java @@ -41,7 +41,7 @@ public final class p3 extends SQLiteOpenHelper { @Override // android.database.sqlite.SQLiteOpenHelper @WorkerThread public final void onCreate(SQLiteDatabase sQLiteDatabase) { - f.M1(this.i.g(), sQLiteDatabase); + f.N1(this.i.g(), sQLiteDatabase); } @Override // android.database.sqlite.SQLiteOpenHelper @@ -52,7 +52,7 @@ public final class p3 extends SQLiteOpenHelper { @Override // android.database.sqlite.SQLiteOpenHelper @WorkerThread public final void onOpen(SQLiteDatabase sQLiteDatabase) { - f.N1(this.i.g(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null); + f.O1(this.i.g(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null); } @Override // android.database.sqlite.SQLiteOpenHelper diff --git a/app/src/main/java/c/i/a/f/i/b/p4.java b/app/src/main/java/c/i/a/f/i/b/p4.java index 2862d3f0a1..83c9d35996 100644 --- a/app/src/main/java/c/i/a/f/i/b/p4.java +++ b/app/src/main/java/c/i/a/f/i/b/p4.java @@ -223,13 +223,13 @@ public final class p4 extends i9 implements e { g().i.a("EventConfig contained null event name"); } else { String q = t.q(); - String F1 = f.F1(t.q(), v5.a, v5.f1247c); - if (!TextUtils.isEmpty(F1)) { + String G1 = f.G1(t.q(), v5.a, v5.f1247c); + if (!TextUtils.isEmpty(G1)) { if (t.k) { t.n(); t.k = false; } - t0.v((t0) t.j, F1); + t0.v((t0) t.j, G1); if (aVar.k) { aVar.n(); aVar.k = false; @@ -284,13 +284,13 @@ public final class p4 extends i9 implements e { while (i2 < ((k0) t2.j).D()) { l0.a t3 = ((k0) t2.j).z(i2).t(); l0.a aVar = (l0.a) ((u4.b) t3.clone()); - String F1 = f.F1(((l0) t3.j).z(), v5.a, v5.f1247c); - if (F1 != null) { + String G1 = f.G1(((l0) t3.j).z(), v5.a, v5.f1247c); + if (G1 != null) { if (aVar.k) { aVar.n(); aVar.k = false; } - l0.w((l0) aVar.j, F1); + l0.w((l0) aVar.j, G1); z4 = true; } else { z4 = false; @@ -298,14 +298,14 @@ public final class p4 extends i9 implements e { int i3 = 0; while (i3 < ((l0) t3.j).B()) { m0 u = ((l0) t3.j).u(i3); - String F12 = f.F1(u.C(), u5.a, u5.b); - if (F12 != null) { + String G12 = f.G1(u.C(), u5.a, u5.b); + if (G12 != null) { m0.a t4 = u.t(); if (t4.k) { t4.n(); t4.k = false; } - m0.u((m0) t4.j, F12); + m0.u((m0) t4.j, G12); m0 m0Var = (m0) ((u4) t4.p()); if (aVar.k) { aVar.n(); @@ -336,8 +336,8 @@ public final class p4 extends i9 implements e { if (((k0) t2.j).B() != 0) { for (int i4 = 0; i4 < ((k0) t2.j).B(); i4++) { o0 u2 = ((k0) t2.j).u(i4); - String F13 = f.F1(u2.x(), x5.a, x5.b); - if (F13 != null) { + String G13 = f.G1(u2.x(), x5.a, x5.b); + if (G13 != null) { o0.a t5 = u2.t(); if (t5.k) { t5.n(); @@ -346,7 +346,7 @@ public final class p4 extends i9 implements e { } else { z3 = false; } - o0.u((o0) t5.j, F13); + o0.u((o0) t5.j, G13); if (t2.k) { t2.n(); t2.k = z3; diff --git a/app/src/main/java/c/i/a/f/i/b/t9.java b/app/src/main/java/c/i/a/f/i/b/t9.java index 9e0e4f74b1..108b5fcd6a 100644 --- a/app/src/main/java/c/i/a/f/i/b/t9.java +++ b/app/src/main/java/c/i/a/f/i/b/t9.java @@ -187,7 +187,7 @@ public final class t9 extends r5 { bundle.putString("origin", zzz.j); bundle.putLong("creation_timestamp", zzz.l); bundle.putString(ModelAuditLogEntry.CHANGE_KEY_NAME, zzz.k.j); - f.K1(bundle, zzz.k.w0()); + f.L1(bundle, zzz.k.w0()); bundle.putBoolean("active", zzz.m); String str = zzz.n; if (str != null) { diff --git a/app/src/main/java/c/i/a/f/i/b/u4.java b/app/src/main/java/c/i/a/f/i/b/u4.java index ef87b6015e..cd46b68453 100644 --- a/app/src/main/java/c/i/a/f/i/b/u4.java +++ b/app/src/main/java/c/i/a/f/i/b/u4.java @@ -109,7 +109,7 @@ public class u4 implements t5 { } c2.a = null; } - l2.b = new v1(applicationContext, f.x1(new k2(applicationContext))); + l2.b = new v1(applicationContext, f.y1(new k2(applicationContext))); l2.d.incrementAndGet(); } } diff --git a/app/src/main/java/c/i/a/f/i/b/v5.java b/app/src/main/java/c/i/a/f/i/b/v5.java index 54b60e701b..7a0dc1844d 100644 --- a/app/src/main/java/c/i/a/f/i/b/v5.java +++ b/app/src/main/java/c/i/a/f/i/b/v5.java @@ -11,6 +11,6 @@ public final class v5 { public static final String[] d = {"purchase", "refund", "add_payment_info", "add_shipping_info", "add_to_cart", "add_to_wishlist", "begin_checkout", "remove_from_cart", "select_item", "select_promotion", "view_cart", "view_item", "view_item_list", "view_promotion", "ecommerce_purchase", "purchase_refund", "set_checkout_option", "checkout_progress", "select_content", "view_search_results"}; public static String a(String str) { - return f.F1(str, f1247c, a); + return f.G1(str, f1247c, a); } } diff --git a/app/src/main/java/c/i/c/j/a/c/e.java b/app/src/main/java/c/i/c/j/a/c/e.java index ce9c088fee..346263eb2d 100644 --- a/app/src/main/java/c/i/c/j/a/c/e.java +++ b/app/src/main/java/c/i/c/j/a/c/e.java @@ -18,9 +18,9 @@ public final class e implements a.AbstractC0112a { if (this.a.a.contains(str2)) { Bundle bundle2 = new Bundle(); Set set = c.a; - String F1 = f.F1(str2, v5.f1247c, v5.a); - if (F1 != null) { - str2 = F1; + String G1 = f.G1(str2, v5.f1247c, v5.a); + if (G1 != null) { + str2 = G1; } bundle2.putString("events", str2); ((c.i.c.m.a) this.a.b).a(2, bundle2); diff --git a/app/src/main/java/c/i/c/k/a.java b/app/src/main/java/c/i/c/k/a.java index 74d1e9bc55..e9144d9412 100644 --- a/app/src/main/java/c/i/c/k/a.java +++ b/app/src/main/java/c/i/c/k/a.java @@ -34,7 +34,7 @@ public interface a { sb.append("String at "); sb.append(i2); sb.append(" is null and is ignored by put method."); - f.Z1(sb.toString()); + f.e2(sb.toString()); } else { int i3 = 20000; if (strArr2[i].length() > 20000) { @@ -42,7 +42,7 @@ public interface a { sb2.append("String at "); sb2.append(i2); sb2.append(" is too long, truncating string."); - f.Z1(sb2.toString()); + f.e2(sb2.toString()); String str2 = strArr2[i]; if (str2.length() > 20000) { if (Character.isHighSurrogate(str2.charAt(19999)) && Character.isLowSurrogate(str2.charAt(20000))) { @@ -58,13 +58,13 @@ public interface a { if (i > 0) { Object[] objArr = (String[]) Arrays.copyOfRange(strArr2, 0, i); if (objArr.length >= 100) { - f.Z1("Input Array of elements is too big, cutting off."); + f.e2("Input Array of elements is too big, cutting off."); objArr = Arrays.copyOf(objArr, 100); } bundle.putStringArray(str, (String[]) objArr); } } else { - f.Z1("String array is empty and is ignored by put method."); + f.e2("String array is empty and is ignored by put method."); } return this; } diff --git a/app/src/main/java/c/i/c/k/d/e.java b/app/src/main/java/c/i/c/k/d/e.java index 132535bc1a..157f27459f 100644 --- a/app/src/main/java/c/i/c/k/d/e.java +++ b/app/src/main/java/c/i/c/k/d/e.java @@ -21,7 +21,7 @@ public abstract class e extends p implements c.i.a.f.e.h.j.e { public void a(Status status) { d.o(!status.w0(), "Failed result must not be success."); TaskCompletionSource taskCompletionSource = this.f1325c; - taskCompletionSource.a.s(f.y1(status, status.p)); + taskCompletionSource.a.s(f.z1(status, status.p)); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @@ -33,7 +33,7 @@ public abstract class e extends p implements c.i.a.f.e.h.j.e { return; } TaskCompletionSource taskCompletionSource = this.f1325c; - taskCompletionSource.a.s(f.y1(status2, "User Action indexing error, please try again.")); + taskCompletionSource.a.s(f.z1(status2, "User Action indexing error, please try again.")); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [c.i.a.f.e.h.a$b, com.google.android.gms.tasks.TaskCompletionSource] */ diff --git a/app/src/main/java/c/i/e/r/a.java b/app/src/main/java/c/i/e/r/a.java index c257279e76..64e8331b46 100644 --- a/app/src/main/java/c/i/e/r/a.java +++ b/app/src/main/java/c/i/e/r/a.java @@ -10,7 +10,7 @@ import com.discord.restapi.RestAPIAbortCodes; import com.discord.utilities.font.FontUtils; import com.discord.utilities.guilds.GuildConstantsKt; import com.discord.utilities.voice.ScreenShareManager; -import com.discord.widgets.settings.profile.WidgetSettingsUserProfile; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; import com.google.android.material.behavior.HideBottomViewOnScrollBehavior; import com.google.android.material.snackbar.BaseTransientBottomBar; import java.util.Arrays; @@ -21,7 +21,7 @@ public final class a { public static final int[] b = {66142, 66170, 66206, 66236, 66290, 66292, 66350, 66382, 66396, 66454, 66470, 66476, 66594, 66600, 66614, 66626, 66628, 66632, 66640, 66654, 66662, 66668, 66682, 66690, 66718, 66720, 66748, 66758, 66776, 66798, 66802, 66804, 66820, 66824, 66832, 66846, 66848, 66876, 66880, 66936, 66950, 66956, 66968, 66992, 67006, 67022, 67036, 67042, 67044, 67048, 67062, 67118, 67150, 67164, 67214, 67228, 67256, 67294, 67322, 67350, 67366, 67372, 67398, 67404, 67416, 67438, 67474, 67476, 67490, 67492, 67496, 67510, 67618, 67624, 67650, 67656, 67664, 67678, 67686, 67692, 67706, 67714, 67716, 67728, 67742, 67744, 67772, 67782, 67788, 67800, 67822, 67826, 67828, 67842, 67848, 67870, 67872, 67900, 67904, 67960, 67974, 67992, 68016, 68030, 68046, 68060, 68066, 68068, 68072, 68086, 68104, 68112, 68126, 68128, 68156, 68160, 68216, 68336, 68358, 68364, 68376, 68400, 68414, 68448, 68476, 68494, 68508, 68536, 68546, 68548, 68552, 68560, 68574, 68582, 68588, 68654, 68686, 68700, 68706, 68708, 68712, 68726, 68750, 68764, 68792, 68802, 68804, 68808, 68816, 68830, 68838, 68844, 68858, 68878, 68892, 68920, 68976, 68990, 68994, 68996, 69000, 69008, 69022, 69024, 69052, 69062, 69068, 69080, 69102, 69106, 69108, 69142, 69158, 69164, 69190, 69208, 69230, 69254, 69260, 69272, 69296, 69310, 69326, 69340, 69386, 69394, 69396, 69410, 69416, 69430, 69442, 69444, 69448, 69456, 69470, 69478, 69484, 69554, 69556, 69666, 69672, 69698, 69704, 69712, 69726, 69754, 69762, 69764, 69776, 69790, 69792, 69820, 69830, 69836, 69848, 69870, 69874, 69876, 69890, 69918, 69920, 69948, 69952, 70008, 70022, 70040, 70064, 70078, 70094, 70108, 70114, 70116, 70120, 70134, 70152, 70174, 70176, 70264, 70384, 70412, 70448, 70462, 70496, 70524, 70542, 70556, 70584, 70594, 70600, 70608, 70622, 70630, 70636, 70664, 70672, 70686, 70688, 70716, 70720, 70776, 70896, 71136, 71180, 71192, 71216, 71230, 71264, 71292, 71360, 71416, 71452, 71480, 71536, 71550, 71554, 71556, 71560, 71568, 71582, 71584, 71612, 71622, 71628, 71640, 71662, 71726, 71732, 71758, 71772, 71778, 71780, 71784, 71798, 71822, 71836, 71864, 71874, 71880, 71888, 71902, 71910, 71916, 71930, 71950, 71964, 71992, 72048, 72062, 72066, 72068, 72080, 72094, 72096, 72124, 72134, 72140, 72152, 72174, 72178, 72180, 72206, 72220, 72248, 72304, 72318, 72416, 72444, 72456, 72464, 72478, 72480, 72508, 72512, 72568, 72588, 72600, 72624, 72638, 72654, 72668, 72674, 72676, 72680, 72694, 72726, 72742, 72748, 72774, 72780, 72792, 72814, 72838, 72856, 72880, 72894, 72910, 72924, 72930, 72932, 72936, 72950, 72966, 72972, 72984, 73008, 73022, 73056, 73084, 73102, 73116, 73144, 73156, 73160, 73168, 73182, 73190, 73196, 73210, 73226, 73234, 73236, 73250, 73252, 73256, 73270, 73282, 73284, 73296, 73310, 73318, 73324, 73346, 73348, 73352, 73360, 73374, 73376, 73404, 73414, 73420, 73432, 73454, 73498, 73518, 73522, 73524, 73550, 73564, 73570, 73572, 73576, 73590, 73800, 73822, 73858, 73860, 73872, 73886, 73888, 73916, 73944, 73970, 73972, 73992, 74014, 74016, 74044, 74048, 74104, 74118, 74136, 74160, 74174, 74210, 74212, 74216, 74230, 74244, 74256, 74270, 74272, 74360, 74480, 74502, 74508, 74544, 74558, 74592, 74620, 74638, 74652, 74680, 74690, 74696, 74704, 74726, 74732, 74782, 74784, 74812, 74992, 75232, 75288, 75326, 75360, 75388, 75456, 75512, 75576, 75632, 75646, 75650, 75652, 75664, 75678, 75680, 75708, 75718, 75724, 75736, 75758, 75808, 75836, 75840, 75896, 76016, 76256, 76736, 76824, 76848, 76862, 76896, 76924, 76992, 77048, 77296, 77340, 77368, 77424, 77438, 77536, 77564, 77572, 77576, 77584, 77600, 77628, 77632, 77688, 77702, 77708, 77720, 77744, 77758, 77774, 77788, 77870, 77902, 77916, 77922, 77928, 77966, 77980, 78008, 78018, 78024, 78032, 78046, 78060, 78074, 78094, 78136, 78192, 78206, 78210, 78212, 78224, 78238, 78240, 78268, 78278, 78284, 78296, 78322, 78324, 78350, 78364, 78448, 78462, 78560, 78588, 78600, 78622, 78624, 78652, 78656, 78712, 78726, 78744, 78768, 78782, 78798, 78812, 78818, 78820, 78824, 78838, 78862, 78876, 78904, 78960, 78974, 79072, 79100, 79296, 79352, 79368, 79376, 79390, 79392, 79420, 79424, 79480, 79600, 79628, 79640, 79664, 79678, 79712, 79740, 79772, 79800, 79810, 79812, 79816, 79824, 79838, 79846, 79852, 79894, 79910, 79916, 79942, 79948, 79960, 79982, 79988, 80006, 80024, 80048, 80062, 80078, 80092, 80098, 80100, 80104, 80134, 80140, 80176, 80190, 80224, 80252, 80270, 80284, 80312, 80328, 80336, 80350, 80358, 80364, 80378, 80390, 80396, 80408, 80432, 80446, 80480, 80508, 80576, 80632, 80654, 80668, 80696, 80752, 80766, 80776, 80784, 80798, 80800, 80828, 80844, 80856, 80878, 80882, 80884, 80914, 80916, 80930, 80932, 80936, 80950, 80962, 80968, 80976, 80990, 80998, 81004, 81026, 81028, 81040, 81054, 81056, 81084, 81094, 81100, 81112, 81134, 81154, 81156, 81160, 81168, 81182, 81184, 81212, 81216, 81272, 81286, 81292, 81304, 81328, 81342, 81358, 81372, 81380, 81384, 81398, 81434, 81454, 81458, 81460, 81486, 81500, 81506, 81508, 81512, 81526, 81550, 81564, 81592, 81602, 81604, 81608, 81616, 81630, 81638, 81644, 81702, 81708, 81722, 81734, 81740, 81752, 81774, 81778, 81780, 82050, 82078, 82080, 82108, 82180, 82184, 82192, 82206, 82208, 82236, 82240, 82296, 82316, 82328, 82352, 82366, 82402, 82404, 82408, 82440, 82448, 82462, 82464, 82492, 82496, 82552, 82672, 82694, 82700, 82712, 82736, 82750, 82784, 82812, 82830, 82882, 82884, 82888, 82896, 82918, 82924, 82952, 82960, 82974, 82976, 83004, 83008, 83064, 83184, 83424, 83468, 83480, 83504, 83518, 83552, 83580, 83648, 83704, 83740, 83768, 83824, 83838, 83842, 83844, 83848, 83856, 83872, 83900, 83910, 83916, 83928, 83950, 83984, 84000, 84028, 84032, 84088, 84208, 84448, 84928, 85040, 85054, 85088, 85116, 85184, 85240, 85488, 85560, 85616, 85630, 85728, 85756, 85764, 85768, 85776, 85790, 85792, 85820, 85824, 85880, 85894, 85900, 85912, 85936, 85966, 85980, 86048, 86080, 86136, 86256, 86496, 86976, 88160, 88188, 88256, 88312, 88560, 89056, 89200, 89214, 89312, 89340, 89536, 89592, 89608, 89616, 89632, 89664, 89720, 89840, 89868, 89880, 89904, 89952, 89980, 89998, 90012, 90040, 90190, 90204, 90254, 90268, 90296, 90306, 90308, 90312, 90334, 90382, 90396, 90424, 90480, 90494, 90500, 90504, 90512, 90526, 90528, 90556, 90566, 90572, 90584, 90610, 90612, 90638, 90652, 90680, 90736, 90750, 90848, 90876, 90884, 90888, 90896, 90910, 90912, 90940, 90944, 91000, 91014, 91020, 91032, 91056, 91070, 91086, 91100, 91106, 91108, 91112, 91126, 91150, 91164, 91192, 91248, 91262, 91360, 91388, 91584, 91640, 91664, 91678, 91680, 91708, 91712, 91768, 91888, 91928, 91952, 91966, 92000, 92028, 92046, 92060, 92088, 92098, 92100, 92104, 92112, 92126, 92134, 92140, 92188, 92216, 92272, 92384, 92412, 92608, 92664, 93168, 93200, 93214, 93216, 93244, 93248, 93304, 93424, 93664, 93720, 93744, 93758, 93792, 93820, 93888, 93944, 93980, 94008, 94064, 94078, 94084, 94088, 94096, 94110, 94112, 94140, 94150, 94156, 94168, 94246, 94252, 94278, 94284, 94296, 94318, 94342, 94348, 94360, 94384, 94398, 94414, 94428, 94440, 94470, 94476, 94488, 94512, 94526, 94560, 94588, 94606, 94620, 94648, 94658, 94660, 94664, 94672, 94686, 94694, 94700, 94714, 94726, 94732, 94744, 94768, 94782, 94816, 94844, 94912, 94968, 94990, 95004, 95032, 95088, 95102, 95112, 95120, 95134, 95136, 95164, 95180, 95192, 95214, 95218, 95220, 95244, 95256, 95280, 95294, 95328, 95356, 95424, 95480, 95728, 95758, 95772, 95800, 95856, 95870, 95968, 95996, 96008, 96016, 96030, 96032, 96060, 96064, 96120, 96152, 96176, 96190, 96220, 96226, 96228, 96232, 96290, 96292, 96296, 96310, 96322, 96324, 96328, 96336, 96350, 96358, 96364, 96386, 96388, 96392, 96400, 96414, 96416, 96444, 96454, 96460, 96472, 96494, 96498, 96500, 96514, 96516, 96520, 96528, 96542, 96544, 96572, 96576, 96632, 96646, 96652, 96664, 96688, 96702, 96718, 96732, 96738, 96740, 96744, 96758, 96772, 96776, 96784, 96798, 96800, 96828, 96832, 96888, 97008, 97030, 97036, 97048, 97072, 97086, 97120, 97148, 97166, 97180, 97208, 97220, 97224, 97232, 97246, 97254, 97260, 97326, 97330, 97332, 97358, 97372, 97378, 97380, 97384, 97398, 97422, 97436, 97464, 97474, 97476, 97480, 97488, 97502, 97510, 97516, 97550, 97564, 97592, 97648, 97666, 97668, 97672, 97680, 97694, 97696, 97724, 97734, 97740, 97752, 97774, 97830, 97836, 97850, 97862, 97868, 97880, 97902, 97906, 97908, 97926, 97932, 97944, 97968, 97998, 98012, 98018, 98020, 98024, 98038, 98618, 98674, 98676, 98838, 98854, 98874, 98892, 98904, 98926, 98930, 98932, 98968, 99006, 99042, 99044, 99048, 99062, 99166, 99194, 99246, 99286, 99350, 99366, 99372, 99386, 99398, 99416, 99438, 99442, 99444, 99462, 99504, 99518, 99534, 99548, 99554, 99556, 99560, 99574, 99590, 99596, 99608, 99632, 99646, 99680, 99708, 99726, 99740, 99768, 99778, 99780, 99784, 99792, 99806, 99814, 99820, 99834, 99858, 99860, 99874, 99880, 99894, 99906, 99920, 99934, 99962, 99970, 99972, 99976, 99984, 99998, 100000, 100028, 100038, 100044, 100056, 100078, 100082, 100084, 100142, 100174, 100188, 100246, 100262, 100268, 100306, 100308, 100390, 100396, 100410, 100422, 100428, 100440, 100462, 100466, 100468, 100486, 100504, 100528, 100542, 100558, 100572, 100578, 100580, 100584, 100598, 100620, 100656, 100670, 100704, 100732, 100750, 100792, 100802, 100808, 100816, 100830, 100838, 100844, 100858, 100888, 100912, 100926, 100960, 100988, 101056, 101112, 101148, 101176, 101232, 101246, 101250, 101252, 101256, 101264, 101278, 101280, 101308, 101318, 101324, 101336, 101358, 101362, 101364, 101410, 101412, 101416, 101430, 101442, 101448, 101456, 101470, 101478, 101498, 101506, 101508, 101520, 101534, 101536, 101564, 101580, 101618, 101620, 101636, 101640, 101648, 101662, 101664, 101692, 101696, 101752, 101766, 101784, 101838, 101858, 101860, 101864, 101934, 101938, 101940, 101966, 101980, 101986, 101988, 101992, 102030, 102044, 102072, 102082, 102084, 102088, 102096, 102138, 102166, 102182, 102188, 102214, 102220, 102232, 102254, 102282, 102290, 102292, 102306, 102308, 102312, 102326, 102444, 102458, 102470, 102476, 102488, 102514, 102516, 102534, 102552, 102576, 102590, 102606, 102620, 102626, 102632, 102646, 102662, 102668, 102704, 102718, 102752, 102780, 102798, 102812, 102840, 102850, 102856, 102864, 102878, 102886, 102892, 102906, 102936, 102974, 103008, 103036, 103104, 103160, 103224, 103280, 103294, 103298, 103300, 103312, 103326, 103328, 103356, 103366, 103372, 103384, 103406, 103410, 103412, 103472, 103486, 103520, 103548, 103616, 103672, 103920, 103992, 104048, 104062, 104160, 104188, 104194, 104196, 104200, 104208, 104224, 104252, 104256, 104312, 104326, 104332, 104344, 104368, 104382, 104398, 104412, 104418, 104420, 104424, 104482, 104484, 104514, 104520, 104528, 104542, 104550, 104570, 104578, 104580, 104592, 104606, 104608, 104636, 104652, 104690, 104692, 104706, 104712, 104734, 104736, 104764, 104768, 104824, 104838, 104856, 104910, 104930, 104932, 104936, 104968, 104976, 104990, 104992, 105020, 105024, 105080, 105200, 105240, 105278, 105312, 105372, 105410, 105412, 105416, 105424, 105446, 105518, 105524, 105550, 105564, 105570, 105572, 105576, 105614, 105628, 105656, 105666, 105672, 105680, 105702, 105722, 105742, 105756, 105784, 105840, 105854, 105858, 105860, 105864, 105872, 105888, 105932, 105970, 105972, 106006, 106022, 106028, 106054, 106060, 106072, 106100, 106118, 106124, 106136, 106160, 106174, 106190, 106210, 106212, 106216, 106250, 106258, 106260, 106274, 106276, 106280, 106306, 106308, 106312, 106320, 106334, 106348, 106394, 106414, 106418, 106420, 106566, 106572, 106610, 106612, 106630, 106636, 106648, 106672, 106686, 106722, 106724, 106728, 106742, 106758, 106764, 106776, 106800, 106814, 106848, 106876, 106894, 106908, 106936, 106946, 106948, 106952, 106960, 106974, 106982, 106988, 107032, 107056, 107070, 107104, 107132, 107200, 107256, 107292, 107320, 107376, 107390, 107394, 107396, 107400, 107408, 107422, 107424, 107452, 107462, 107468, 107480, 107502, 107506, 107508, 107544, 107568, 107582, 107616, 107644, 107712, 107768, 108016, 108060, 108088, 108144, 108158, 108256, 108284, 108290, 108292, 108296, 108304, 108318, 108320, 108348, 108352, 108408, 108422, 108428, 108440, 108464, 108478, 108494, 108508, 108514, 108516, 108520, 108592, 108640, 108668, 108736, 108792, 109040, 109536, 109680, 109694, 109792, 109820, 110016, 110072, 110084, 110088, 110096, 110112, 110140, 110144, 110200, 110320, 110342, 110348, 110360, 110384, 110398, 110432, 110460, 110478, 110492, 110520, 110532, 110536, 110544, 110558, 110658, 110686, 110714, 110722, 110724, 110728, 110736, 110750, 110752, 110780, 110796, 110834, 110836, 110850, 110852, 110856, 110864, 110878, 110880, 110908, 110912, 110968, 110982, RestAPIAbortCodes.SEARCH_INDEXING, 111054, 111074, 111076, 111080, 111108, 111112, 111120, 111134, 111136, 111164, 111168, 111224, 111344, 111372, 111422, 111456, 111516, 111554, 111556, 111560, 111568, 111590, 111632, 111646, 111648, 111676, 111680, 111736, 111856, 112096, 112152, 112224, 112252, 112320, 112440, 112514, 112516, 112520, 112528, 112542, 112544, 112588, 112686, 112718, 112732, 112782, 112796, 112824, 112834, 112836, 112840, 112848, 112870, 112890, 112910, 112924, 112952, 113008, 113022, 113026, 113028, 113032, 113040, 113054, 113056, 113100, 113138, 113140, 113166, 113180, 113208, 113264, 113278, 113376, 113404, 113416, 113424, 113440, 113468, 113472, 113560, 113614, 113634, 113636, 113640, 113686, 113702, 113708, 113734, 113740, 113752, 113778, 113780, 113798, 113804, 113816, 113840, 113854, 113870, 113890, 113892, 113896, 113926, 113932, 113944, 113968, 113982, 114016, 114044, 114076, 114114, 114116, 114120, 114128, 114150, 114170, 114194, 114196, 114210, 114212, 114216, 114242, 114244, 114248, 114256, 114270, 114278, 114306, 114308, 114312, 114320, 114334, 114336, 114364, 114380, 114420, 114458, 114478, 114482, 114484, 114510, 114524, 114530, 114532, 114536, 114842, 114866, 114868, 114970, 114994, 114996, 115042, 115044, 115048, 115062, 115130, 115226, 115250, 115252, 115278, 115292, 115298, 115300, 115304, 115318, 115342, 115394, 115396, 115400, 115408, 115422, 115430, 115436, 115450, 115478, 115494, 115514, 115526, 115532, 115570, 115572, 115738, 115758, 115762, 115764, 115790, 115804, 115810, 115812, 115816, 115830, 115854, 115868, 115896, 115906, 115912, 115920, 115934, 115942, 115948, 115962, 115996, 116024, 116080, 116094, 116098, 116100, 116104, 116112, 116126, 116128, 116156, 116166, 116172, 116184, 116206, 116210, 116212, 116246, 116262, 116268, 116282, 116294, 116300, 116312, 116334, 116338, 116340, 116358, 116364, 116376, 116400, 116414, 116430, 116444, 116450, 116452, 116456, 116498, 116500, 116514, 116520, 116534, 116546, 116548, 116552, 116560, 116574, 116582, 116588, 116602, 116654, 116694, 116714, 116762, 116782, 116786, 116788, 116814, 116828, 116834, 116836, 116840, 116854, 116878, 116892, 116920, 116930, 116936, 116944, 116958, 116966, 116972, 116986, 117006, 117048, 117104, 117118, 117122, 117124, 117136, 117150, 117152, 117180, 117190, 117196, 117208, 117230, 117234, 117236, 117304, 117360, 117374, 117472, 117500, 117506, 117508, 117512, 117520, 117536, 117564, 117568, 117624, 117638, 117644, 117656, 117680, 117694, 117710, 117724, 117730, 117732, 117736, 117750, 117782, 117798, 117804, 117818, 117830, 117848, 117874, 117876, 117894, 117936, 117950, 117966, 117986, 117988, 117992, 118022, 118028, 118040, 118064, 118078, 118112, 118140, 118172, 118210, 118212, 118216, 118224, 118238, 118246, 118266, 118306, 118312, 118338, 118352, 118366, 118374, 118394, 118402, 118404, 118408, 118416, 118430, 118432, 118460, 118476, 118514, 118516, 118574, 118578, 118580, 118606, 118620, 118626, 118628, 118632, 118678, 118694, 118700, 118730, 118738, 118740, 118830, 118834, 118836, 118862, 118876, 118882, 118884, 118888, 118902, 118926, 118940, 118968, 118978, 118980, 118984, 118992, 119006, 119014, 119020, 119034, 119068, 119096, 119152, 119166, 119170, 119172, 119176, 119184, 119198, 119200, 119228, 119238, 119244, 119256, 119278, 119282, 119284, 119324, 119352, 119408, 119422, 119520, 119548, 119554, 119556, 119560, 119568, 119582, 119584, 119612, 119616, 119672, 119686, 119692, 119704, 119728, 119742, 119758, 119772, 119778, 119780, 119784, 119798, 119920, 119934, 120032, 120060, 120256, 120312, 120324, 120328, 120336, 120352, 120384, 120440, 120560, 120582, 120588, 120600, 120624, 120638, 120672, 120700, 120718, 120732, 120760, 120770, 120772, 120776, 120784, 120798, 120806, 120812, 120870, 120876, 120890, 120902, 120908, 120920, 120946, 120948, 120966, 120972, 120984, 121008, 121022, 121038, 121058, 121060, 121064, 121078, 121100, 121112, 121136, 121150, 121184, 121212, 121244, 121282, 121284, 121288, 121296, 121318, 121338, 121356, 121368, 121392, 121406, 121440, 121468, 121536, 121592, 121656, 121730, 121732, 121736, 121744, 121758, 121760, 121804, 121842, 121844, 121890, 121922, 121924, 121928, 121936, 121950, 121958, 121978, 121986, 121988, 121992, 122000, 122014, 122016, 122044, 122060, 122098, 122100, 122116, 122120, 122128, 122142, 122144, 122172, 122176, 122232, 122246, 122264, 122318, 122338, 122340, 122344, 122414, 122418, 122420, 122446, 122460, 122466, 122468, 122472, 122510, 122524, 122552, 122562, 122564, 122568, 122576, 122598, 122618, 122646, 122662, 122668, 122694, 122700, 122712, 122738, 122740, 122762, 122770, 122772, 122786, 122788, 122792, 123018, 123026, 123028, 123042, 123044, 123048, 123062, 123098, 123146, 123154, 123156, 123170, 123172, 123176, 123190, 123202, 123204, 123208, 123216, 123238, 123244, 123258, 123290, 123314, 123316, 123402, 123410, 123412, 123426, 123428, 123432, 123446, 123458, 123464, 123472, 123486, 123494, 123500, 123514, 123522, 123524, 123528, 123536, 123552, 123580, 123590, 123596, 123608, 123630, 123634, 123636, 123674, 123698, 123700, 123740, 123746, 123748, 123752, 123834, 123914, 123922, 123924, 123938, 123944, 123958, 123970, 123976, 123984, 123998, 124006, 124012, 124026, 124034, 124036, 124048, 124062, 124064, 124092, 124102, 124108, 124120, 124142, 124146, 124148, 124162, 124164, 124168, 124176, 124190, 124192, 124220, 124224, 124280, 124294, 124300, 124312, 124336, 124350, 124366, 124380, 124386, 124388, 124392, 124406, 124442, 124462, 124466, 124468, 124494, 124508, 124514, 124520, 124558, 124572, 124600, 124610, 124612, 124616, 124624, 124646, 124666, 124694, 124710, 124716, 124730, 124742, 124748, 124760, 124786, 124788, 124818, 124820, 124834, 124836, 124840, 124854, 124946, 124948, 124962, 124964, 124968, 124982, 124994, 124996, 125000, 125008, 125022, 125030, 125036, 125050, 125058, 125060, 125064, 125072, 125086, 125088, 125116, 125126, 125132, 125144, 125166, 125170, 125172, 125186, 125188, 125192, 125200, 125216, 125244, 125248, 125304, 125318, 125324, 125336, 125360, 125374, 125390, 125404, 125410, 125412, 125416, 125430, 125444, 125448, 125456, 125472, 125504, 125560, 125680, 125702, 125708, 125720, 125744, 125758, 125792, 125820, 125838, 125852, 125880, 125890, 125892, 125896, 125904, 125918, 125926, 125932, 125978, 125998, 126002, 126004, 126030, 126044, 126050, 126052, 126056, 126094, 126108, 126136, 126146, 126148, 126152, 126160, 126182, 126202, 126222, 126236, 126264, 126320, 126334, 126338, 126340, 126344, 126352, 126366, 126368, 126412, 126450, 126452, 126486, 126502, 126508, 126522, 126534, 126540, 126552, 126574, 126578, 126580, 126598, 126604, 126616, 126640, 126654, 126670, 126684, 126690, 126692, 126696, 126738, 126754, 126756, 126760, 126774, 126786, 126788, 126792, 126800, 126814, 126822, 126828, 126842, 126894, 126898, 126900, 126934, 127126, 127142, 127148, 127162, 127178, 127186, 127188, 127254, 127270, 127276, 127290, 127302, 127308, 127320, 127342, 127346, 127348, 127370, 127378, 127380, 127394, 127396, 127400, 127450, 127510, 127526, 127532, 127546, 127558, 127576, 127598, 127602, 127604, 127622, 127628, 127640, 127664, 127678, 127694, 127708, 127714, 127716, 127720, 127734, 127754, 127762, 127764, 127778, 127784, 127810, 127812, 127816, 127824, 127838, 127846, 127866, 127898, 127918, 127922, 127924, 128022, 128038, 128044, 128058, 128070, 128076, 128088, 128110, 128114, 128116, 128134, 128140, 128152, 128176, 128190, 128206, 128220, 128226, 128228, 128232, 128246, 128262, 128268, 128280, 128304, 128318, 128352, 128380, 128398, 128412, 128440, 128450, 128452, 128456, 128464, 128478, 128486, 128492, 128506, 128522, 128530, 128532, 128546, 128548, 128552, 128566, 128578, 128580, 128584, 128592, 128606, 128614, 128634, 128642, 128644, 128648, 128656, 128670, 128672, 128700, 128716, 128754, 128756, 128794, 128814, 128818, 128820, 128846, 128860, 128866, 128868, 128872, 128886, 128918, 128934, 128940, 128954, 128978, 128980, 129178, 129198, 129202, 129204, 129238, 129258, 129306, 129326, 129330, 129332, 129358, 129372, 129378, 129380, 129384, 129398, 129430, 129446, 129452, 129466, 129482, 129490, 129492, 129562, 129582, 129586, 129588, 129614, 129628, 129634, 129636, 129640, 129654, 129678, 129692, 129720, 129730, 129732, 129736, 129744, 129758, 129766, 129772, 129814, 129830, 129836, 129850, 129862, 129868, 129880, 129902, 129906, 129908, 129930, 129938, 129940, 129954, 129956, 129960, 129974, 130010}; /* renamed from: c reason: collision with root package name */ - public static final int[] f1477c = {2627, 1819, 2622, 2621, 1813, 1812, 2729, 2724, 2723, 2779, 2774, 2773, 902, 896, 908, 868, 865, 861, 859, 2511, 873, 871, 1780, 835, 2493, 825, 2491, 842, 837, 844, 1764, 1762, 811, 810, 809, 2483, 807, 2482, 806, 2480, 815, 814, 813, 812, 2484, 817, 816, 1745, 1744, 1742, 1746, 2655, 2637, 2635, 2626, 2625, 2623, 2628, 1820, 2752, 2739, 2737, 2728, 2727, 2725, 2730, 2785, 2783, 2778, 2777, 2775, 2780, 787, 781, 747, 739, 736, 2413, 754, 752, 1719, 692, 689, 681, 2371, 678, 2369, 700, 697, 694, 703, 1688, 1686, 642, 638, 2343, 631, 2341, 627, 2338, 651, 646, 643, 2345, 654, 652, 1652, 1650, 1647, 1654, 601, 599, 2322, 596, 2321, 594, 2319, 2317, 611, 610, 608, 606, 2324, 603, 2323, 615, 614, 612, 1617, 1616, 1614, 1612, 616, 1619, 1618, 2575, 2538, 2536, 905, 901, 898, 909, 2509, 2507, 2504, 870, 867, 864, 860, 2512, 875, 872, 1781, 2490, 2489, 2487, 2485, 1748, 836, 834, 832, 830, 2494, 827, 2492, 843, 841, 839, 845, 1765, 1763, 2701, 2676, 2674, 2653, 2648, 2656, 2634, 2633, 2631, 2629, 1821, 2638, 2636, 2770, 2763, 2761, 2750, 2745, 2753, 2736, 2735, 2733, 2731, 1848, 2740, 2738, 2786, 2784, 591, 588, 576, 569, 566, 2296, 1590, 537, 534, 526, 2276, 522, 2274, 545, 542, 539, 548, 1572, 1570, 481, 2245, 466, 2242, 462, 2239, 492, 485, 482, 2249, 496, 494, 1534, 1531, 1528, 1538, 413, 2196, 406, 2191, 2188, 425, 419, 2202, 415, 2199, 432, 430, 427, 1472, 1467, 1464, 433, 1476, 1474, 368, 367, 2160, 365, 2159, 362, 2157, 2155, 2152, 378, 377, 375, 2166, 372, 2165, 369, 2162, 383, 381, 379, 2168, 1419, 1418, 1416, 1414, 385, 1411, 384, 1423, 1422, 1420, 1424, 2461, 802, 2441, 2439, 790, 786, 783, 794, 2409, 2406, 2403, 750, 742, 738, 2414, 756, 753, 1720, 2367, 2365, 2362, 2359, 1663, 693, 691, 684, 2373, 680, 2370, 702, 699, 696, 704, 1690, 1687, 2337, 2336, 2334, 2332, 1624, 2329, 1622, 640, 637, 2344, 634, 2342, 630, 2340, 650, 648, 645, 2346, 655, 653, 1653, 1651, 1649, 1655, 2612, 2597, 2595, 2571, 2568, 2565, 2576, 2534, 2529, 2526, 1787, 2540, 2537, 907, 904, 900, 910, 2503, 2502, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 2498, 1768, 2495, 1767, 2510, 2508, 2506, 869, 866, 863, 2513, 876, 874, 1782, 2720, 2713, 2711, 2697, 2694, 2691, 2702, 2672, 2670, 2664, 1828, 2678, 2675, 2647, 2646, 2644, 2642, 1823, 2639, 1822, 2654, 2652, 2650, 2657, 2771, 1855, 2765, 2762, 1850, 1849, 2751, 2749, 2747, 2754, 353, 2148, 344, 342, 336, 2142, 332, 2140, 345, 1375, 1373, 306, 2130, 299, 2128, 295, 2125, 319, 314, 311, 2132, 1354, 1352, 1349, 1356, 262, 257, 2101, 253, 2096, 2093, 274, AudioAttributesCompat.FLAG_ALL_PUBLIC, 267, 2107, 263, 2104, 280, 278, 275, 1316, 1311, 1308, 1320, 1318, 2052, 202, 2050, 2044, 2040, 219, 2063, 212, 2060, 208, 2055, 224, 221, 2066, 1260, 1258, 1252, 231, 1248, 229, 1266, 1264, 1261, 1268, 155, 1998, 153, 1996, 1994, 1991, 1988, 165, 164, 2007, 162, 2006, 159, 2003, 2000, 172, 171, 169, 2012, 166, 2010, 1186, 1184, 1182, 1179, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, 1176, 173, 1192, 1191, 1189, 1187, 176, 1194, 1193, 2313, 2307, 2305, 592, 589, 2294, 2292, 2289, 578, 572, 568, 2297, 580, 1591, 2272, 2267, 2264, 1547, 538, 536, 529, 2278, 525, 2275, 547, 544, 541, 1574, 1571, 2237, 2235, 2229, 1493, 2225, 1489, 478, 2247, 470, 2244, 465, 2241, 493, 488, 484, 2250, 498, 495, 1536, 1533, 1530, 1539, 2187, 2186, 2184, 2182, 1432, 2179, 1430, 2176, 1427, 414, 412, 2197, 409, 2195, 405, 2193, 2190, 426, 424, 421, 2203, 418, 2201, 431, 429, 1473, 1471, 1469, 1466, 434, 1477, 1475, 2478, 2472, 2470, 2459, 2457, 2454, 2462, 803, 2437, 2432, 2429, 1726, 2443, 2440, 792, 789, 785, 2401, 2399, 2393, 1702, 2389, 1699, 2411, 2408, 2405, 745, 741, 2415, 758, 755, 1721, 2358, 2357, 2355, 2353, 1661, 2350, 1660, 2347, 1657, 2368, 2366, 2364, 2361, 1666, 690, 687, 2374, 683, 2372, 701, 698, 705, 1691, 1689, 2619, 2617, 2610, 2608, 2605, 2613, 2593, 2588, 2585, 1803, 2599, 2596, 2563, 2561, 2555, 1797, 2551, 1795, 2573, 2570, 2567, 2577, 2525, 2524, 2522, 2520, 1786, 2517, 1785, 2514, 1783, 2535, 2533, 2531, 2528, 1788, 2541, 2539, 906, 903, 911, 2721, 1844, 2715, 2712, 1838, 1836, 2699, 2696, 2693, 2703, 1827, 1826, 1824, 2673, 2671, 2669, 2666, 1829, 2679, 2677, 1858, 1857, 2772, 1854, 1853, 1851, 1856, 2766, 2764, 143, 1987, 139, 1986, 135, 133, 131, 1984, 128, 1983, 125, 1981, 138, 137, 136, 1985, 1133, 1132, 1130, 112, 110, 1974, 107, 1973, 104, 1971, 1969, 122, 121, 119, 117, 1977, 114, 1976, 124, 1115, 1114, 1112, 1110, 1117, 1116, 84, 83, 1953, 81, 1952, 78, 1950, 1948, 1945, 94, 93, 91, 1959, 88, 1958, 85, 1955, 99, 97, 95, 1961, 1086, 1085, 1083, 1081, 1078, 100, 1090, 1089, 1087, 1091, 49, 47, 1917, 44, 1915, 1913, 1910, 1907, 59, 1926, 56, 1925, 53, 1922, 1919, 66, 64, 1931, 61, 1929, 1042, 1040, 1038, 71, 1035, 70, 1032, 68, 1048, 1047, 1045, 1043, 1050, 1049, 12, 10, 1869, 1867, 1864, 1861, 21, 1880, 19, 1877, 1874, 1871, 28, 1888, 25, 1886, 22, 1883, 982, 980, 977, 974, 32, 30, 991, 989, 987, 984, 34, 995, 994, 992, 2151, 2150, 2147, 2146, 2144, 356, 355, 354, 2149, 2139, 2138, 2136, 2134, 1359, 343, 341, 338, 2143, 335, 2141, 348, 347, 346, 1376, 1374, 2124, 2123, 2121, 2119, 1326, 2116, 1324, 310, 308, 305, 2131, 302, 2129, 298, 2127, 320, 318, 316, 313, 2133, 322, 321, 1355, 1353, 1351, 1357, 2092, 2091, 2089, 2087, 1276, 2084, 1274, 2081, 1271, 259, 2102, 256, 2100, 252, 2098, 2095, 272, 269, 2108, 266, 2106, 281, 279, 277, 1317, 1315, 1313, 1310, 282, 1321, 1319, 2039, 2037, 2035, 2032, 1203, 2029, 1200, 1197, 207, 2053, 205, 2051, 201, 2049, 2046, 2043, 220, 218, 2064, 215, 2062, 211, 2059, 228, 226, 223, 2069, 1259, 1257, 1254, 232, 1251, 230, 1267, 1265, 1263, 2316, 2315, 2312, 2311, 2309, 2314, 2304, 2303, 2301, 2299, 1593, 2308, 2306, 590, 2288, 2287, 2285, 2283, 1578, 2280, 1577, 2295, 2293, 2291, 579, 577, 574, 571, 2298, 582, 581, 1592, 2263, 2262, 2260, 2258, 1545, 2255, 1544, 2252, 1541, 2273, 2271, 2269, 2266, 1550, 535, 532, 2279, 528, 2277, 546, 543, 549, 1575, 1573, 2224, 2222, 2220, 1486, 2217, 1485, 2214, 1482, 1479, 2238, 2236, 2234, 2231, 1496, 2228, 1492, 480, 477, 2248, 473, 2246, 469, 2243, 490, 487, 2251, 497, 1537, 1535, 1532, 2477, 2476, 2474, 2479, 2469, 2468, 2466, 2464, 1730, 2473, 2471, 2453, 2452, 2450, 2448, 1729, 2445, 1728, 2460, 2458, 2456, 2463, 805, 804, 2428, 2427, 2425, 2423, 1725, 2420, 1724, 2417, 1722, 2438, 2436, 2434, 2431, 1727, 2444, 2442, 793, 791, 788, 795, 2388, 2386, 2384, 1697, 2381, 1696, 2378, 1694, 1692, 2402, 2400, 2398, 2395, 1703, 2392, 1701, 2412, 2410, 2407, 751, 748, 744, 2416, 759, 757, 1807, 2620, 2618, 1806, 1805, 2611, 2609, 2607, 2614, 1802, 1801, 1799, 2594, 2592, 2590, 2587, 1804, 2600, 2598, 1794, 1793, 1791, 1789, 2564, 2562, 2560, 2557, 1798, 2554, 1796, 2574, 2572, 2569, 2578, 1847, 1846, 2722, 1843, 1842, 1840, 1845, 2716, 2714, 1835, 1834, 1832, 1830, 1839, 1837, 2700, 2698, 2695, 2704, 1817, 1811, 1810, 897, 862, 1777, 829, 826, 838, 1760, 1758, 808, 2481, 1741, 1740, 1738, 1743, 2624, 1818, 2726, 2776, 782, 740, 737, 1715, 686, 679, 695, 1682, 1680, 639, 628, 2339, 647, 644, 1645, 1643, 1640, 1648, 602, 600, 597, 595, 2320, 593, 2318, 609, 607, 604, 1611, 1610, 1608, 1606, 613, 1615, 1613, 2328, 926, 924, 892, 886, 899, 857, 850, 2505, 1778, 824, 823, 821, 819, 2488, 818, 2486, 833, 831, 828, 840, 1761, 1759, 2649, 2632, 2630, 2746, 2734, 2732, 2782, 2781, 570, 567, 1587, 531, 527, 523, 540, 1566, 1564, 476, 467, 463, 2240, 486, 483, 1524, 1521, 1518, 1529, 411, 403, 2192, 399, 2189, 423, 416, 1462, 1457, 1454, 428, 1468, 1465, 2210, 366, 363, 2158, 360, 2156, 357, 2153, 376, 373, 370, 2163, 1410, 1409, 1407, 1405, 382, 1402, 380, 1417, 1415, 1412, 1421, 2175, 2174, 777, 774, 771, 784, 732, 725, 722, 2404, 743, 1716, 676, 674, 668, 2363, 665, 2360, 685, 1684, 1681, 626, 624, 622, 2335, 620, 2333, 617, 2330, 641, 635, 649, 1646, 1644, 1642, 2566, 928, 925, 2530, 2527, 894, 891, 888, 2501, 2499, 2496, 858, 856, 854, 851, 1779, 2692, 2668, 2665, 2645, 2643, 2640, 2651, 2768, 2759, 2757, 2744, 2743, 2741, 2748, 352, 1382, 340, 337, 333, 1371, 1369, 307, 300, 296, 2126, 315, 312, 1347, 1342, 1350, 261, 258, 250, 2097, 246, 2094, 271, 268, 264, 1306, 1301, 1298, 276, 1312, 1309, 2115, 203, 2048, 195, 2045, 191, 2041, 213, 209, 2056, 1246, 1244, 1238, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 1234, 222, 1256, 1253, 1249, 1262, 2080, 2079, 154, 1997, FontUtils.MAX_FONT_SCALING, 1995, 147, 1992, 1989, 163, 160, 2004, 156, 2001, 1175, 1174, 1172, 1170, 1167, 170, 1164, 167, 1185, 1183, 1180, 1177, 174, 1190, 1188, 2025, 2024, 2022, 587, 586, 564, 559, 556, 2290, 573, 1588, 520, 518, 512, 2268, 508, 2265, 530, 1568, 1565, 461, 457, 2233, 450, 2230, 446, 2226, 479, 471, 489, 1526, 1523, 1520, 397, 395, 2185, 392, 2183, 389, 2180, 2177, 410, 2194, 402, 422, 1463, 1461, 1459, 1456, 1470, 2455, 799, 2433, 2430, 779, 776, 773, 2397, 2394, 2390, 734, 728, 724, 746, 1717, 2356, 2354, 2351, 2348, 1658, 677, 675, 673, 670, 667, 688, 1685, 1683, 2606, 2589, 2586, 2559, 2556, 2552, 927, 2523, 2521, 2518, 2515, 1784, 2532, 895, 893, 890, 2718, 2709, 2707, 2689, 2687, 2684, 2663, 2662, 2660, 2658, 1825, 2667, 2769, 1852, 2760, 2758, 142, 141, 1139, 1138, 134, 132, 129, 126, 1982, 1129, 1128, 1126, 1131, 113, 111, 108, 105, 1972, 101, 1970, 120, 118, 115, 1109, 1108, 1106, 1104, 123, 1113, 1111, 82, 79, 1951, 75, 1949, 72, 1946, 92, 89, 86, 1956, 1077, 1076, 1074, 1072, 98, 1069, 96, 1084, 1082, 1079, 1088, 1968, 1967, 48, 45, 1916, 42, 1914, 39, 1911, 1908, 60, 57, 54, 1923, 50, 1920, 1031, 1030, 1028, 1026, 67, AudioAttributesCompat.FLAG_ALL, 65, PointerIconCompat.TYPE_GRAB, 62, 1041, 1039, 1036, 1033, 69, 1046, 1044, 1944, 1943, 1941, 11, 9, 1868, 7, 1865, 1862, 1859, 20, 1878, 16, 1875, 13, 1872, 970, 968, 966, 963, 29, 960, 26, 23, 983, 981, 978, 975, 33, 971, 31, 990, 988, 985, 1906, 1904, 1902, 993, 351, 2145, 1383, 331, 330, 328, 326, 2137, 323, 2135, 339, 1372, 1370, 294, 293, 291, 289, 2122, 286, 2120, 283, 2117, 309, 303, 317, 1348, 1346, 1344, 245, 244, 242, 2090, 239, 2088, 236, 2085, 2082, 260, 2099, 249, 270, 1307, 1305, 1303, 1300, 1314, 189, 2038, 186, 2036, 183, 2033, 2030, 2026, 206, 198, 2047, 194, 216, 1247, 1245, 1243, 1240, 227, 1237, 1255, 2310, 2302, 2300, 2286, 2284, 2281, 565, 563, 561, 558, 575, 1589, 2261, 2259, 2256, 2253, 1542, 521, 519, 517, 514, 2270, FrameMetricsAggregator.EVERY_DURATION, 533, 1569, 1567, 2223, 2221, 2218, 2215, 1483, 2211, 1480, 459, 456, 453, 2232, 449, 474, 491, 1527, 1525, 1522, 2475, 2467, 2465, 2451, 2449, 2446, 801, 800, 2426, 2424, 2421, 2418, 1723, 2435, 780, 778, 775, 2387, 2385, 2382, 2379, 1695, 2375, 1693, 2396, 735, 733, 730, 727, 749, 1718, 2616, 2615, 2604, 2603, 2601, 2584, 2583, 2581, 2579, ModelInvite.Settings.HALF_HOUR, 2591, 2550, 2549, 2547, 2545, 1792, 2542, 1790, 2558, 929, 2719, 1841, 2710, 2708, 1833, 1831, 2690, 2688, 2686, 1815, 1809, 1808, 1774, 1756, 1754, 1737, 1736, 1734, 1739, 1816, 1711, 1676, 1674, 633, 629, 1638, 1636, 1633, 1641, 598, 1605, 1604, 1602, 1600, 605, 1609, 1607, 2327, 887, 853, 1775, 822, 820, 1757, 1755, 1584, 524, 1560, 1558, 468, 464, 1514, 1511, 1508, 1519, 408, 404, 400, 1452, 1447, 1444, 417, 1458, 1455, 2208, 364, 361, 358, 2154, 1401, 1400, 1398, 1396, 374, 1393, 371, 1408, 1406, 1403, 1413, 2173, 2172, 772, 726, 723, 1712, 672, 669, 666, 682, 1678, 1675, 625, 623, 621, 618, 2331, 636, 632, 1639, 1637, 1635, 920, 918, 884, 880, 889, 849, 848, 847, 846, 2497, 855, 852, 1776, 2641, 2742, 2787, 1380, 334, 1367, 1365, 301, 297, 1340, 1338, 1335, 1343, 255, 251, 247, 1296, 1291, 1288, 265, 1302, 1299, 2113, 204, 196, 192, 2042, 1232, 1230, 1224, 214, 1220, 210, 1242, 1239, 1235, 1250, 2077, 2075, 151, 148, 1993, 144, 1990, 1163, 1162, 1160, 1158, 1155, 161, 1152, 157, 1173, 1171, 1168, 1165, 168, 1181, 1178, 2021, 2020, 2018, 2023, 585, 560, 557, 1585, 516, 509, 1562, 1559, 458, 447, 2227, 472, 1516, 1513, 1510, 398, 396, 393, 390, 2181, 386, 2178, 407, 1453, 1451, 1449, 1446, 420, 1460, 2209, 769, 764, 720, 712, 2391, 729, 1713, 664, 663, 661, 659, 2352, 656, 2349, 671, 1679, 1677, 2553, 922, 919, 2519, 2516, 885, 883, 881, 2685, 2661, 2659, 2767, 2756, 2755, 140, 1137, 1136, 130, 127, 1125, 1124, 1122, 1127, 109, 106, 102, 1103, 1102, 1100, 1098, 116, 1107, 1105, 1980, 80, 76, 73, 1947, 1068, 1067, 1065, 1063, 90, 1060, 87, 1075, 1073, 1070, WidgetSettingsUserProfile.MAX_BANNER_IMAGE_SIZE, 1966, 1965, 46, 43, 40, 1912, 36, 1909, PointerIconCompat.TYPE_ZOOM_OUT, PointerIconCompat.TYPE_ZOOM_IN, PointerIconCompat.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_HORIZONTAL_DOUBLE_ARROW, 58, PointerIconCompat.TYPE_COPY, 55, PointerIconCompat.TYPE_TEXT, 51, 1029, 1027, 1024, PointerIconCompat.TYPE_GRABBING, 63, 1037, 1034, 1940, 1939, 1937, 1942, 8, 1866, 4, 1863, 1, 1860, 956, 954, 952, 949, 946, 17, 14, 969, 967, 964, 961, 27, 957, 24, 979, 976, 972, 1901, 1900, 1898, 1896, 986, 1905, 1903, 350, 349, 1381, 329, 327, 324, 1368, 1366, 292, 290, 287, 284, 2118, 304, 1341, 1339, 1337, 1345, 243, 240, 237, 2086, 233, 2083, 254, 1297, 1295, 1293, 1290, 1304, 2114, 190, 187, 184, 2034, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 2031, 177, 2027, 199, 1233, 1231, 1229, 1226, 217, 1223, 1241, 2078, 2076, 584, 555, 554, 552, 550, 2282, 562, 1586, 507, 506, 504, 502, 2257, 499, 2254, 515, 1563, 1561, 445, 443, 441, 2219, 438, 2216, 435, 2212, 460, 454, 475, 1517, 1515, 1512, 2447, 798, 797, 2422, 2419, 770, 768, 766, 2383, 2380, 2376, 721, 719, 717, 714, 731, 1714, 2602, 2582, 2580, 2548, 2546, 2543, 923, 921, 2717, 2706, 2705, 2683, 2682, 2680, 1771, 1752, 1750, 1733, 1732, 1731, 1735, 1814, 1707, 1670, 1668, 1631, 1629, 1626, 1634, 1599, 1598, 1596, 1594, 1603, 1601, 2326, 1772, 1753, 1751, 1581, 1554, 1552, 1504, 1501, 1498, 1509, 1442, 1437, 1434, 401, 1448, 1445, 2206, 1392, 1391, 1389, 1387, 1384, 359, 1399, 1397, 1394, 1404, 2171, 2170, 1708, 1672, 1669, 619, 1632, 1630, 1628, 1773, 1378, 1363, 1361, 1333, 1328, 1336, 1286, 1281, 1278, 248, 1292, 1289, 2111, 1218, 1216, 1210, 197, 1206, 193, 1228, 1225, 1221, 1236, 2073, 2071, 1151, 1150, 1148, 1146, 152, 1143, 149, 1140, 145, 1161, 1159, 1156, 1153, 158, 1169, 1166, 2017, 2016, 2014, 2019, 1582, 510, 1556, 1553, 452, 448, 1506, 1500, 394, 391, 387, 1443, 1441, 1439, 1436, 1450, 2207, 765, 716, 713, 1709, 662, 660, 657, 1673, 1671, 916, 914, 879, 878, 877, 882, 1135, 1134, 1121, 1120, 1118, 1123, 1097, 1096, 1094, 1092, 103, 1101, 1099, 1979, 1059, 1058, 1056, 1054, 77, 1051, 74, 1066, 1064, 1061, 1071, 1964, 1963, PointerIconCompat.TYPE_CROSSHAIR, PointerIconCompat.TYPE_CELL, PointerIconCompat.TYPE_WAIT, PointerIconCompat.TYPE_HAND, RoomDatabase.MAX_BIND_PARAMETER_CNT, 41, 996, 37, PointerIconCompat.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_VERTICAL_DOUBLE_ARROW, PointerIconCompat.TYPE_NO_DROP, PointerIconCompat.TYPE_VERTICAL_TEXT, 52, InputDeviceCompat.SOURCE_GAMEPAD, 1022, 1936, 1935, 1933, 1938, 942, 940, 938, 935, 932, 5, 2, 955, 953, 950, 947, 18, 943, 15, 965, 962, 958, 1895, 1894, 1892, 1890, 973, 1899, 1897, 1379, 325, 1364, 1362, ScreenShareManager.THUMBNAIL_HEIGHT_PX, 285, 1334, 1332, 1330, 241, 238, 234, 1287, 1285, 1283, 1280, 1294, 2112, 188, 185, 181, 178, 2028, 1219, 1217, 1215, 1212, 200, 1209, 1227, 2074, 2072, 583, 553, 551, 1583, 505, 503, 500, InputDeviceCompat.SOURCE_DPAD, 1557, 1555, 444, 442, 439, 436, 2213, 455, 451, 1507, 1505, 1502, 796, 763, 762, 760, 767, 711, 710, 708, 706, 2377, 718, 715, 1710, 2544, 917, 915, 2681, 1627, 1597, 1595, 2325, 1769, 1749, 1747, 1499, 1438, 1435, 2204, 1390, 1388, 1385, 1395, 2169, 2167, 1704, 1665, 1662, 1625, 1623, 1620, 1770, 1329, 1282, 1279, 2109, 1214, 1207, 1222, 2068, 2065, 1149, 1147, 1144, 1141, 146, 1157, 1154, 2013, 2011, 2008, 2015, 1579, 1549, 1546, 1495, 1487, 1433, 1431, 1428, 1425, 388, 1440, 2205, 1705, 658, 1667, 1664, 1119, 1095, 1093, 1978, 1057, 1055, 1052, 1062, 1962, 1960, 1005, PointerIconCompat.TYPE_HELP, 1000, 997, 38, PointerIconCompat.TYPE_ALL_SCROLL, PointerIconCompat.TYPE_ALIAS, 1932, 1930, 1927, 1934, 941, 939, 936, 933, 6, 930, 3, 951, 948, 944, 1889, 1887, 1884, 1881, 959, 1893, 1891, 35, 1377, 1360, 1358, 1327, 1325, 1322, 1331, 1277, 1275, 1272, 1269, 235, 1284, 2110, 1205, 1204, 1201, 1198, 182, 1195, 179, 1213, 2070, 2067, 1580, 501, 1551, 1548, 440, 437, 1497, 1494, 1490, 1503, 761, 709, 707, 1706, 913, 912, 2198, 1386, 2164, 2161, 1621, 1766, 2103, 1208, 2058, 2054, 1145, 1142, 2005, 2002, 1999, 2009, 1488, 1429, 1426, 2200, 1698, 1659, 1656, 1975, 1053, 1957, 1954, PointerIconCompat.TYPE_CONTEXT_MENU, 998, 1924, 1921, 1918, 1928, 937, 934, 931, 1879, 1876, 1873, 1870, 945, 1885, 1882, 1323, 1273, 1270, 2105, 1202, 1199, 1196, 1211, 2061, 2057, 1576, 1543, 1540, 1484, 1481, 1478, 1491, 1700}; + public static final int[] f1477c = {2627, 1819, 2622, 2621, 1813, 1812, 2729, 2724, 2723, 2779, 2774, 2773, 902, 896, 908, 868, 865, 861, 859, 2511, 873, 871, 1780, 835, 2493, 825, 2491, 842, 837, 844, 1764, 1762, 811, 810, 809, 2483, 807, 2482, 806, 2480, 815, 814, 813, 812, 2484, 817, 816, 1745, 1744, 1742, 1746, 2655, 2637, 2635, 2626, 2625, 2623, 2628, 1820, 2752, 2739, 2737, 2728, 2727, 2725, 2730, 2785, 2783, 2778, 2777, 2775, 2780, 787, 781, 747, 739, 736, 2413, 754, 752, 1719, 692, 689, 681, 2371, 678, 2369, 700, 697, 694, 703, 1688, 1686, 642, 638, 2343, 631, 2341, 627, 2338, 651, 646, 643, 2345, 654, 652, 1652, 1650, 1647, 1654, 601, 599, 2322, 596, 2321, 594, 2319, 2317, 611, 610, 608, 606, 2324, 603, 2323, 615, 614, 612, 1617, 1616, 1614, 1612, 616, 1619, 1618, 2575, 2538, 2536, 905, 901, 898, 909, 2509, 2507, 2504, 870, 867, 864, 860, 2512, 875, 872, 1781, 2490, 2489, 2487, 2485, 1748, 836, 834, 832, 830, 2494, 827, 2492, 843, 841, 839, 845, 1765, 1763, 2701, 2676, 2674, 2653, 2648, 2656, 2634, 2633, 2631, 2629, 1821, 2638, 2636, 2770, 2763, 2761, 2750, 2745, 2753, 2736, 2735, 2733, 2731, 1848, 2740, 2738, 2786, 2784, 591, 588, 576, 569, 566, 2296, 1590, 537, 534, 526, 2276, 522, 2274, 545, 542, 539, 548, 1572, 1570, 481, 2245, 466, 2242, 462, 2239, 492, 485, 482, 2249, 496, 494, 1534, 1531, 1528, 1538, 413, 2196, 406, 2191, 2188, 425, 419, 2202, 415, 2199, 432, 430, 427, 1472, 1467, 1464, 433, 1476, 1474, 368, 367, 2160, 365, 2159, 362, 2157, 2155, 2152, 378, 377, 375, 2166, 372, 2165, 369, 2162, 383, 381, 379, 2168, 1419, 1418, 1416, 1414, 385, 1411, 384, 1423, 1422, 1420, 1424, 2461, 802, 2441, 2439, 790, 786, 783, 794, 2409, 2406, 2403, 750, 742, 738, 2414, 756, 753, 1720, 2367, 2365, 2362, 2359, 1663, 693, 691, 684, 2373, 680, 2370, 702, 699, 696, 704, 1690, 1687, 2337, 2336, 2334, 2332, 1624, 2329, 1622, 640, 637, 2344, 634, 2342, 630, 2340, 650, 648, 645, 2346, 655, 653, 1653, 1651, 1649, 1655, 2612, 2597, 2595, 2571, 2568, 2565, 2576, 2534, 2529, 2526, 1787, 2540, 2537, 907, 904, 900, 910, 2503, 2502, GuildConstantsKt.MAX_GUILD_MEMBERS_NOTIFY_ALL_MESSAGES, 2498, 1768, 2495, 1767, 2510, 2508, 2506, 869, 866, 863, 2513, 876, 874, 1782, 2720, 2713, 2711, 2697, 2694, 2691, 2702, 2672, 2670, 2664, 1828, 2678, 2675, 2647, 2646, 2644, 2642, 1823, 2639, 1822, 2654, 2652, 2650, 2657, 2771, 1855, 2765, 2762, 1850, 1849, 2751, 2749, 2747, 2754, 353, 2148, 344, 342, 336, 2142, 332, 2140, 345, 1375, 1373, 306, 2130, 299, 2128, 295, 2125, 319, 314, 311, 2132, 1354, 1352, 1349, 1356, 262, 257, 2101, 253, 2096, 2093, 274, AudioAttributesCompat.FLAG_ALL_PUBLIC, 267, 2107, 263, 2104, 280, 278, 275, 1316, 1311, 1308, 1320, 1318, 2052, 202, 2050, 2044, 2040, 219, 2063, 212, 2060, 208, 2055, 224, 221, 2066, 1260, 1258, 1252, 231, 1248, 229, 1266, 1264, 1261, 1268, 155, 1998, 153, 1996, 1994, 1991, 1988, 165, 164, 2007, 162, 2006, 159, 2003, 2000, 172, 171, 169, 2012, 166, 2010, 1186, 1184, 1182, 1179, HideBottomViewOnScrollBehavior.EXIT_ANIMATION_DURATION, 1176, 173, 1192, 1191, 1189, 1187, 176, 1194, 1193, 2313, 2307, 2305, 592, 589, 2294, 2292, 2289, 578, 572, 568, 2297, 580, 1591, 2272, 2267, 2264, 1547, 538, 536, 529, 2278, 525, 2275, 547, 544, 541, 1574, 1571, 2237, 2235, 2229, 1493, 2225, 1489, 478, 2247, 470, 2244, 465, 2241, 493, 488, 484, 2250, 498, 495, 1536, 1533, 1530, 1539, 2187, 2186, 2184, 2182, 1432, 2179, 1430, 2176, 1427, 414, 412, 2197, 409, 2195, 405, 2193, 2190, 426, 424, 421, 2203, 418, 2201, 431, 429, 1473, 1471, 1469, 1466, 434, 1477, 1475, 2478, 2472, 2470, 2459, 2457, 2454, 2462, 803, 2437, 2432, 2429, 1726, 2443, 2440, 792, 789, 785, 2401, 2399, 2393, 1702, 2389, 1699, 2411, 2408, 2405, 745, 741, 2415, 758, 755, 1721, 2358, 2357, 2355, 2353, 1661, 2350, 1660, 2347, 1657, 2368, 2366, 2364, 2361, 1666, 690, 687, 2374, 683, 2372, 701, 698, 705, 1691, 1689, 2619, 2617, 2610, 2608, 2605, 2613, 2593, 2588, 2585, 1803, 2599, 2596, 2563, 2561, 2555, 1797, 2551, 1795, 2573, 2570, 2567, 2577, 2525, 2524, 2522, 2520, 1786, 2517, 1785, 2514, 1783, 2535, 2533, 2531, 2528, 1788, 2541, 2539, 906, 903, 911, 2721, 1844, 2715, 2712, 1838, 1836, 2699, 2696, 2693, 2703, 1827, 1826, 1824, 2673, 2671, 2669, 2666, 1829, 2679, 2677, 1858, 1857, 2772, 1854, 1853, 1851, 1856, 2766, 2764, 143, 1987, 139, 1986, 135, 133, 131, 1984, 128, 1983, 125, 1981, 138, 137, 136, 1985, 1133, 1132, 1130, 112, 110, 1974, 107, 1973, 104, 1971, 1969, 122, 121, 119, 117, 1977, 114, 1976, 124, 1115, 1114, 1112, 1110, 1117, 1116, 84, 83, 1953, 81, 1952, 78, 1950, 1948, 1945, 94, 93, 91, 1959, 88, 1958, 85, 1955, 99, 97, 95, 1961, 1086, 1085, 1083, 1081, 1078, 100, 1090, 1089, 1087, 1091, 49, 47, 1917, 44, 1915, 1913, 1910, 1907, 59, 1926, 56, 1925, 53, 1922, 1919, 66, 64, 1931, 61, 1929, 1042, 1040, 1038, 71, 1035, 70, 1032, 68, 1048, 1047, 1045, 1043, 1050, 1049, 12, 10, 1869, 1867, 1864, 1861, 21, 1880, 19, 1877, 1874, 1871, 28, 1888, 25, 1886, 22, 1883, 982, 980, 977, 974, 32, 30, 991, 989, 987, 984, 34, 995, 994, 992, 2151, 2150, 2147, 2146, 2144, 356, 355, 354, 2149, 2139, 2138, 2136, 2134, 1359, 343, 341, 338, 2143, 335, 2141, 348, 347, 346, 1376, 1374, 2124, 2123, 2121, 2119, 1326, 2116, 1324, 310, 308, 305, 2131, 302, 2129, 298, 2127, 320, 318, 316, 313, 2133, 322, 321, 1355, 1353, 1351, 1357, 2092, 2091, 2089, 2087, 1276, 2084, 1274, 2081, 1271, 259, 2102, 256, 2100, 252, 2098, 2095, 272, 269, 2108, 266, 2106, 281, 279, 277, 1317, 1315, 1313, 1310, 282, 1321, 1319, 2039, 2037, 2035, 2032, 1203, 2029, 1200, 1197, 207, 2053, 205, 2051, 201, 2049, 2046, 2043, 220, 218, 2064, 215, 2062, 211, 2059, 228, 226, 223, 2069, 1259, 1257, 1254, 232, 1251, 230, 1267, 1265, 1263, 2316, 2315, 2312, 2311, 2309, 2314, 2304, 2303, 2301, 2299, 1593, 2308, 2306, 590, 2288, 2287, 2285, 2283, 1578, 2280, 1577, 2295, 2293, 2291, 579, 577, 574, 571, 2298, 582, 581, 1592, 2263, 2262, 2260, 2258, 1545, 2255, 1544, 2252, 1541, 2273, 2271, 2269, 2266, 1550, 535, 532, 2279, 528, 2277, 546, 543, 549, 1575, 1573, 2224, 2222, 2220, 1486, 2217, 1485, 2214, 1482, 1479, 2238, 2236, 2234, 2231, 1496, 2228, 1492, 480, 477, 2248, 473, 2246, 469, 2243, 490, 487, 2251, 497, 1537, 1535, 1532, 2477, 2476, 2474, 2479, 2469, 2468, 2466, 2464, 1730, 2473, 2471, 2453, 2452, 2450, 2448, 1729, 2445, 1728, 2460, 2458, 2456, 2463, 805, 804, 2428, 2427, 2425, 2423, 1725, 2420, 1724, 2417, 1722, 2438, 2436, 2434, 2431, 1727, 2444, 2442, 793, 791, 788, 795, 2388, 2386, 2384, 1697, 2381, 1696, 2378, 1694, 1692, 2402, 2400, 2398, 2395, 1703, 2392, 1701, 2412, 2410, 2407, 751, 748, 744, 2416, 759, 757, 1807, 2620, 2618, 1806, 1805, 2611, 2609, 2607, 2614, 1802, 1801, 1799, 2594, 2592, 2590, 2587, 1804, 2600, 2598, 1794, 1793, 1791, 1789, 2564, 2562, 2560, 2557, 1798, 2554, 1796, 2574, 2572, 2569, 2578, 1847, 1846, 2722, 1843, 1842, 1840, 1845, 2716, 2714, 1835, 1834, 1832, 1830, 1839, 1837, 2700, 2698, 2695, 2704, 1817, 1811, 1810, 897, 862, 1777, 829, 826, 838, 1760, 1758, 808, 2481, 1741, 1740, 1738, 1743, 2624, 1818, 2726, 2776, 782, 740, 737, 1715, 686, 679, 695, 1682, 1680, 639, 628, 2339, 647, 644, 1645, 1643, 1640, 1648, 602, 600, 597, 595, 2320, 593, 2318, 609, 607, 604, 1611, 1610, 1608, 1606, 613, 1615, 1613, 2328, 926, 924, 892, 886, 899, 857, 850, 2505, 1778, 824, 823, 821, 819, 2488, 818, 2486, 833, 831, 828, 840, 1761, 1759, 2649, 2632, 2630, 2746, 2734, 2732, 2782, 2781, 570, 567, 1587, 531, 527, 523, 540, 1566, 1564, 476, 467, 463, 2240, 486, 483, 1524, 1521, 1518, 1529, 411, 403, 2192, 399, 2189, 423, 416, 1462, 1457, 1454, 428, 1468, 1465, 2210, 366, 363, 2158, 360, 2156, 357, 2153, 376, 373, 370, 2163, 1410, 1409, 1407, 1405, 382, 1402, 380, 1417, 1415, 1412, 1421, 2175, 2174, 777, 774, 771, 784, 732, 725, 722, 2404, 743, 1716, 676, 674, 668, 2363, 665, 2360, 685, 1684, 1681, 626, 624, 622, 2335, 620, 2333, 617, 2330, 641, 635, 649, 1646, 1644, 1642, 2566, 928, 925, 2530, 2527, 894, 891, 888, 2501, 2499, 2496, 858, 856, 854, 851, 1779, 2692, 2668, 2665, 2645, 2643, 2640, 2651, 2768, 2759, 2757, 2744, 2743, 2741, 2748, 352, 1382, 340, 337, 333, 1371, 1369, 307, 300, 296, 2126, 315, 312, 1347, 1342, 1350, 261, 258, 250, 2097, 246, 2094, 271, 268, 264, 1306, 1301, 1298, 276, 1312, 1309, 2115, 203, 2048, 195, 2045, 191, 2041, 213, 209, 2056, 1246, 1244, 1238, HideBottomViewOnScrollBehavior.ENTER_ANIMATION_DURATION, 1234, 222, 1256, 1253, 1249, 1262, 2080, 2079, 154, 1997, FontUtils.MAX_FONT_SCALING, 1995, 147, 1992, 1989, 163, 160, 2004, 156, 2001, 1175, 1174, 1172, 1170, 1167, 170, 1164, 167, 1185, 1183, 1180, 1177, 174, 1190, 1188, 2025, 2024, 2022, 587, 586, 564, 559, 556, 2290, 573, 1588, 520, 518, 512, 2268, 508, 2265, 530, 1568, 1565, 461, 457, 2233, 450, 2230, 446, 2226, 479, 471, 489, 1526, 1523, 1520, 397, 395, 2185, 392, 2183, 389, 2180, 2177, 410, 2194, 402, 422, 1463, 1461, 1459, 1456, 1470, 2455, 799, 2433, 2430, 779, 776, 773, 2397, 2394, 2390, 734, 728, 724, 746, 1717, 2356, 2354, 2351, 2348, 1658, 677, 675, 673, 670, 667, 688, 1685, 1683, 2606, 2589, 2586, 2559, 2556, 2552, 927, 2523, 2521, 2518, 2515, 1784, 2532, 895, 893, 890, 2718, 2709, 2707, 2689, 2687, 2684, 2663, 2662, 2660, 2658, 1825, 2667, 2769, 1852, 2760, 2758, 142, 141, 1139, 1138, 134, 132, 129, 126, 1982, 1129, 1128, 1126, 1131, 113, 111, 108, 105, 1972, 101, 1970, 120, 118, 115, 1109, 1108, 1106, 1104, 123, 1113, 1111, 82, 79, 1951, 75, 1949, 72, 1946, 92, 89, 86, 1956, 1077, 1076, 1074, 1072, 98, 1069, 96, 1084, 1082, 1079, 1088, 1968, 1967, 48, 45, 1916, 42, 1914, 39, 1911, 1908, 60, 57, 54, 1923, 50, 1920, 1031, 1030, 1028, 1026, 67, AudioAttributesCompat.FLAG_ALL, 65, PointerIconCompat.TYPE_GRAB, 62, 1041, 1039, 1036, 1033, 69, 1046, 1044, 1944, 1943, 1941, 11, 9, 1868, 7, 1865, 1862, 1859, 20, 1878, 16, 1875, 13, 1872, 970, 968, 966, 963, 29, 960, 26, 23, 983, 981, 978, 975, 33, 971, 31, 990, 988, 985, 1906, 1904, 1902, 993, 351, 2145, 1383, 331, 330, 328, 326, 2137, 323, 2135, 339, 1372, 1370, 294, 293, 291, 289, 2122, 286, 2120, 283, 2117, 309, 303, 317, 1348, 1346, 1344, 245, 244, 242, 2090, 239, 2088, 236, 2085, 2082, 260, 2099, 249, 270, 1307, 1305, 1303, 1300, 1314, 189, 2038, 186, 2036, 183, 2033, 2030, 2026, 206, 198, 2047, 194, 216, 1247, 1245, 1243, 1240, 227, 1237, 1255, 2310, 2302, 2300, 2286, 2284, 2281, 565, 563, 561, 558, 575, 1589, 2261, 2259, 2256, 2253, 1542, 521, 519, 517, 514, 2270, FrameMetricsAggregator.EVERY_DURATION, 533, 1569, 1567, 2223, 2221, 2218, 2215, 1483, 2211, 1480, 459, 456, 453, 2232, 449, 474, 491, 1527, 1525, 1522, 2475, 2467, 2465, 2451, 2449, 2446, 801, 800, 2426, 2424, 2421, 2418, 1723, 2435, 780, 778, 775, 2387, 2385, 2382, 2379, 1695, 2375, 1693, 2396, 735, 733, 730, 727, 749, 1718, 2616, 2615, 2604, 2603, 2601, 2584, 2583, 2581, 2579, ModelInvite.Settings.HALF_HOUR, 2591, 2550, 2549, 2547, 2545, 1792, 2542, 1790, 2558, 929, 2719, 1841, 2710, 2708, 1833, 1831, 2690, 2688, 2686, 1815, 1809, 1808, 1774, 1756, 1754, 1737, 1736, 1734, 1739, 1816, 1711, 1676, 1674, 633, 629, 1638, 1636, 1633, 1641, 598, 1605, 1604, 1602, 1600, 605, 1609, 1607, 2327, 887, 853, 1775, 822, 820, 1757, 1755, 1584, 524, 1560, 1558, 468, 464, 1514, 1511, 1508, 1519, 408, 404, 400, 1452, 1447, 1444, 417, 1458, 1455, 2208, 364, 361, 358, 2154, 1401, 1400, 1398, 1396, 374, 1393, 371, 1408, 1406, 1403, 1413, 2173, 2172, 772, 726, 723, 1712, 672, 669, 666, 682, 1678, 1675, 625, 623, 621, 618, 2331, 636, 632, 1639, 1637, 1635, 920, 918, 884, 880, 889, 849, 848, 847, 846, 2497, 855, 852, 1776, 2641, 2742, 2787, 1380, 334, 1367, 1365, 301, 297, 1340, 1338, 1335, 1343, 255, 251, 247, 1296, 1291, 1288, 265, 1302, 1299, 2113, 204, 196, 192, 2042, 1232, 1230, 1224, 214, 1220, 210, 1242, 1239, 1235, 1250, 2077, 2075, 151, 148, 1993, 144, 1990, 1163, 1162, 1160, 1158, 1155, 161, 1152, 157, 1173, 1171, 1168, 1165, 168, 1181, 1178, 2021, 2020, 2018, 2023, 585, 560, 557, 1585, 516, 509, 1562, 1559, 458, 447, 2227, 472, 1516, 1513, 1510, 398, 396, 393, 390, 2181, 386, 2178, 407, 1453, 1451, 1449, 1446, 420, 1460, 2209, 769, 764, 720, 712, 2391, 729, 1713, 664, 663, 661, 659, 2352, 656, 2349, 671, 1679, 1677, 2553, 922, 919, 2519, 2516, 885, 883, 881, 2685, 2661, 2659, 2767, 2756, 2755, 140, 1137, 1136, 130, 127, 1125, 1124, 1122, 1127, 109, 106, 102, 1103, 1102, 1100, 1098, 116, 1107, 1105, 1980, 80, 76, 73, 1947, 1068, 1067, 1065, 1063, 90, 1060, 87, 1075, 1073, 1070, WidgetEditUserOrGuildMemberProfile.MAX_BANNER_IMAGE_SIZE, 1966, 1965, 46, 43, 40, 1912, 36, 1909, PointerIconCompat.TYPE_ZOOM_OUT, PointerIconCompat.TYPE_ZOOM_IN, PointerIconCompat.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_HORIZONTAL_DOUBLE_ARROW, 58, PointerIconCompat.TYPE_COPY, 55, PointerIconCompat.TYPE_TEXT, 51, 1029, 1027, 1024, PointerIconCompat.TYPE_GRABBING, 63, 1037, 1034, 1940, 1939, 1937, 1942, 8, 1866, 4, 1863, 1, 1860, 956, 954, 952, 949, 946, 17, 14, 969, 967, 964, 961, 27, 957, 24, 979, 976, 972, 1901, 1900, 1898, 1896, 986, 1905, 1903, 350, 349, 1381, 329, 327, 324, 1368, 1366, 292, 290, 287, 284, 2118, 304, 1341, 1339, 1337, 1345, 243, 240, 237, 2086, 233, 2083, 254, 1297, 1295, 1293, 1290, 1304, 2114, 190, 187, 184, 2034, BaseTransientBottomBar.ANIMATION_FADE_DURATION, 2031, 177, 2027, 199, 1233, 1231, 1229, 1226, 217, 1223, 1241, 2078, 2076, 584, 555, 554, 552, 550, 2282, 562, 1586, 507, 506, 504, 502, 2257, 499, 2254, 515, 1563, 1561, 445, 443, 441, 2219, 438, 2216, 435, 2212, 460, 454, 475, 1517, 1515, 1512, 2447, 798, 797, 2422, 2419, 770, 768, 766, 2383, 2380, 2376, 721, 719, 717, 714, 731, 1714, 2602, 2582, 2580, 2548, 2546, 2543, 923, 921, 2717, 2706, 2705, 2683, 2682, 2680, 1771, 1752, 1750, 1733, 1732, 1731, 1735, 1814, 1707, 1670, 1668, 1631, 1629, 1626, 1634, 1599, 1598, 1596, 1594, 1603, 1601, 2326, 1772, 1753, 1751, 1581, 1554, 1552, 1504, 1501, 1498, 1509, 1442, 1437, 1434, 401, 1448, 1445, 2206, 1392, 1391, 1389, 1387, 1384, 359, 1399, 1397, 1394, 1404, 2171, 2170, 1708, 1672, 1669, 619, 1632, 1630, 1628, 1773, 1378, 1363, 1361, 1333, 1328, 1336, 1286, 1281, 1278, 248, 1292, 1289, 2111, 1218, 1216, 1210, 197, 1206, 193, 1228, 1225, 1221, 1236, 2073, 2071, 1151, 1150, 1148, 1146, 152, 1143, 149, 1140, 145, 1161, 1159, 1156, 1153, 158, 1169, 1166, 2017, 2016, 2014, 2019, 1582, 510, 1556, 1553, 452, 448, 1506, 1500, 394, 391, 387, 1443, 1441, 1439, 1436, 1450, 2207, 765, 716, 713, 1709, 662, 660, 657, 1673, 1671, 916, 914, 879, 878, 877, 882, 1135, 1134, 1121, 1120, 1118, 1123, 1097, 1096, 1094, 1092, 103, 1101, 1099, 1979, 1059, 1058, 1056, 1054, 77, 1051, 74, 1066, 1064, 1061, 1071, 1964, 1963, PointerIconCompat.TYPE_CROSSHAIR, PointerIconCompat.TYPE_CELL, PointerIconCompat.TYPE_WAIT, PointerIconCompat.TYPE_HAND, RoomDatabase.MAX_BIND_PARAMETER_CNT, 41, 996, 37, PointerIconCompat.TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW, PointerIconCompat.TYPE_VERTICAL_DOUBLE_ARROW, PointerIconCompat.TYPE_NO_DROP, PointerIconCompat.TYPE_VERTICAL_TEXT, 52, InputDeviceCompat.SOURCE_GAMEPAD, 1022, 1936, 1935, 1933, 1938, 942, 940, 938, 935, 932, 5, 2, 955, 953, 950, 947, 18, 943, 15, 965, 962, 958, 1895, 1894, 1892, 1890, 973, 1899, 1897, 1379, 325, 1364, 1362, ScreenShareManager.THUMBNAIL_HEIGHT_PX, 285, 1334, 1332, 1330, 241, 238, 234, 1287, 1285, 1283, 1280, 1294, 2112, 188, 185, 181, 178, 2028, 1219, 1217, 1215, 1212, 200, 1209, 1227, 2074, 2072, 583, 553, 551, 1583, 505, 503, 500, InputDeviceCompat.SOURCE_DPAD, 1557, 1555, 444, 442, 439, 436, 2213, 455, 451, 1507, 1505, 1502, 796, 763, 762, 760, 767, 711, 710, 708, 706, 2377, 718, 715, 1710, 2544, 917, 915, 2681, 1627, 1597, 1595, 2325, 1769, 1749, 1747, 1499, 1438, 1435, 2204, 1390, 1388, 1385, 1395, 2169, 2167, 1704, 1665, 1662, 1625, 1623, 1620, 1770, 1329, 1282, 1279, 2109, 1214, 1207, 1222, 2068, 2065, 1149, 1147, 1144, 1141, 146, 1157, 1154, 2013, 2011, 2008, 2015, 1579, 1549, 1546, 1495, 1487, 1433, 1431, 1428, 1425, 388, 1440, 2205, 1705, 658, 1667, 1664, 1119, 1095, 1093, 1978, 1057, 1055, 1052, 1062, 1962, 1960, 1005, PointerIconCompat.TYPE_HELP, 1000, 997, 38, PointerIconCompat.TYPE_ALL_SCROLL, PointerIconCompat.TYPE_ALIAS, 1932, 1930, 1927, 1934, 941, 939, 936, 933, 6, 930, 3, 951, 948, 944, 1889, 1887, 1884, 1881, 959, 1893, 1891, 35, 1377, 1360, 1358, 1327, 1325, 1322, 1331, 1277, 1275, 1272, 1269, 235, 1284, 2110, 1205, 1204, 1201, 1198, 182, 1195, 179, 1213, 2070, 2067, 1580, 501, 1551, 1548, 440, 437, 1497, 1494, 1490, 1503, 761, 709, 707, 1706, 913, 912, 2198, 1386, 2164, 2161, 1621, 1766, 2103, 1208, 2058, 2054, 1145, 1142, 2005, 2002, 1999, 2009, 1488, 1429, 1426, 2200, 1698, 1659, 1656, 1975, 1053, 1957, 1954, PointerIconCompat.TYPE_CONTEXT_MENU, 998, 1924, 1921, 1918, 1928, 937, 934, 931, 1879, 1876, 1873, 1870, 945, 1885, 1882, 1323, 1273, 1270, 2105, 1202, 1199, 1196, 1211, 2061, 2057, 1576, 1543, 1540, 1484, 1481, 1478, 1491, 1700}; public static int a(int i) { int binarySearch = Arrays.binarySearch(b, i & 262143); diff --git a/app/src/main/java/c/o/a/r/a.java b/app/src/main/java/c/o/a/r/a.java index 40e8078699..02c59b782a 100644 --- a/app/src/main/java/c/o/a/r/a.java +++ b/app/src/main/java/c/o/a/r/a.java @@ -5,7 +5,7 @@ import android.media.CamcorderProfile; import androidx.annotation.NonNull; import c.o.a.b; import com.discord.utilities.voice.ScreenShareManager; -import com.discord.widgets.settings.profile.WidgetSettingsUserProfile; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -47,7 +47,7 @@ public class a { b.put(new c.o.a.x.b(352, ScreenShareManager.THUMBNAIL_HEIGHT_PX), 3); b.put(new c.o.a.x.b(720, 480), 4); b.put(new c.o.a.x.b(1280, 720), 5); - b.put(new c.o.a.x.b(1920, WidgetSettingsUserProfile.MAX_BANNER_IMAGE_SIZE), 6); + b.put(new c.o.a.x.b(1920, WidgetEditUserOrGuildMemberProfile.MAX_BANNER_IMAGE_SIZE), 6); b.put(new c.o.a.x.b(3840, 2160), 8); } diff --git a/app/src/main/java/com/android/billingclient/api/BillingClient.java b/app/src/main/java/com/android/billingclient/api/BillingClient.java index 31d265a358..50dcacfd2b 100644 --- a/app/src/main/java/com/android/billingclient/api/BillingClient.java +++ b/app/src/main/java/com/android/billingclient/api/BillingClient.java @@ -7,9 +7,9 @@ import androidx.annotation.UiThread; import c.d.a.a.b; import c.d.a.a.d; import c.d.a.a.e; -import c.d.a.a.g; +import c.d.a.a.f; import c.d.a.a.h; -import com.android.billingclient.api.Purchase; +import c.d.a.a.i; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public abstract class BillingClient { @AnyThread @@ -19,19 +19,21 @@ public abstract class BillingClient { public abstract void b(); @AnyThread - public abstract boolean c(); + public abstract int c(); + + @AnyThread + public abstract boolean d(); @NonNull @UiThread - public abstract BillingResult d(@NonNull Activity activity, @NonNull BillingFlowParams billingFlowParams); - - @NonNull - @Deprecated - public abstract Purchase.a e(@NonNull String str); + public abstract BillingResult e(@NonNull Activity activity, @NonNull BillingFlowParams billingFlowParams); @AnyThread - public abstract void f(@NonNull g gVar, @NonNull h hVar); + public abstract void f(@NonNull String str, @NonNull f fVar); @AnyThread - public abstract void g(@NonNull b bVar); + public abstract void g(@NonNull h hVar, @NonNull i iVar); + + @AnyThread + public abstract void h(@NonNull b bVar); } diff --git a/app/src/main/java/com/android/billingclient/api/BillingFlowParams.java b/app/src/main/java/com/android/billingclient/api/BillingFlowParams.java index 19c73c6ac8..d513e45976 100644 --- a/app/src/main/java/com/android/billingclient/api/BillingFlowParams.java +++ b/app/src/main/java/com/android/billingclient/api/BillingFlowParams.java @@ -1,7 +1,7 @@ package com.android.billingclient.api; import androidx.annotation.NonNull; -import c.d.a.a.m; +import c.d.a.a.o; import java.util.ArrayList; /* compiled from: com.android.billingclient:billing@@4.0.0 */ public class BillingFlowParams { @@ -77,6 +77,6 @@ public class BillingFlowParams { public BillingFlowParams() { } - public /* synthetic */ BillingFlowParams(m mVar) { + public /* synthetic */ BillingFlowParams(o oVar) { } } diff --git a/app/src/main/java/com/android/billingclient/api/Purchase.java b/app/src/main/java/com/android/billingclient/api/Purchase.java index fbb69e7890..b94e6593c4 100644 --- a/app/src/main/java/com/android/billingclient/api/Purchase.java +++ b/app/src/main/java/com/android/billingclient/api/Purchase.java @@ -20,9 +20,11 @@ public class Purchase { public static class a { @Nullable public final List a; + public final BillingResult b; public a(@NonNull BillingResult billingResult, @Nullable List list) { this.a = list; + this.b = billingResult; } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolation.java b/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolation.java new file mode 100644 index 0000000000..2374f6cb8b --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolation.java @@ -0,0 +1,53 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackA11yRuntimeViolation.kt */ +public final class TrackA11yRuntimeViolation implements AnalyticsSchema, TrackBaseReceiver { + private final transient String analyticsSchemaTypeName = "a11y_runtime_violation"; + private final CharSequence message = null; + private final CharSequence ruleId = null; + private final CharSequence trace = null; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackA11yRuntimeViolation)) { + return false; + } + TrackA11yRuntimeViolation trackA11yRuntimeViolation = (TrackA11yRuntimeViolation) obj; + return m.areEqual(this.ruleId, trackA11yRuntimeViolation.ruleId) && m.areEqual(this.trace, trackA11yRuntimeViolation.trace) && m.areEqual(this.message, trackA11yRuntimeViolation.message); + } + + public int hashCode() { + CharSequence charSequence = this.ruleId; + int i = 0; + int hashCode = (charSequence != null ? charSequence.hashCode() : 0) * 31; + CharSequence charSequence2 = this.trace; + int hashCode2 = (hashCode + (charSequence2 != null ? charSequence2.hashCode() : 0)) * 31; + CharSequence charSequence3 = this.message; + if (charSequence3 != null) { + i = charSequence3.hashCode(); + } + return hashCode2 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackA11yRuntimeViolation(ruleId="); + R.append(this.ruleId); + R.append(", trace="); + R.append(this.trace); + R.append(", message="); + return a.D(R, this.message, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolationReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolationReceiver.java new file mode 100644 index 0000000000..4a19ee48cd --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackA11yRuntimeViolationReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackA11yRuntimeViolation.kt */ +public interface TrackA11yRuntimeViolationReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildDirectoryEntryReported.java b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildDirectoryEntryReported.java index 1e7ec65ccf..6c3e275010 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildDirectoryEntryReported.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildDirectoryEntryReported.java @@ -16,6 +16,7 @@ public final class TrackGuildDirectoryEntryReported implements AnalyticsSchema, private final transient String analyticsSchemaTypeName = "guild_directory_entry_reported"; private final CharSequence description = null; private final Long reasonEnum = null; + private final Long reportId = null; private final CharSequence reportSubType = null; private final CharSequence reportType = null; private final CharSequence subject = null; @@ -37,7 +38,7 @@ public final class TrackGuildDirectoryEntryReported implements AnalyticsSchema, return false; } TrackGuildDirectoryEntryReported trackGuildDirectoryEntryReported = (TrackGuildDirectoryEntryReported) obj; - return m.areEqual(this.reportType, trackGuildDirectoryEntryReported.reportType) && m.areEqual(this.reportSubType, trackGuildDirectoryEntryReported.reportSubType) && m.areEqual(this.subject, trackGuildDirectoryEntryReported.subject) && m.areEqual(this.description, trackGuildDirectoryEntryReported.description) && m.areEqual(this.reasonEnum, trackGuildDirectoryEntryReported.reasonEnum); + return m.areEqual(this.reportType, trackGuildDirectoryEntryReported.reportType) && m.areEqual(this.reportSubType, trackGuildDirectoryEntryReported.reportSubType) && m.areEqual(this.subject, trackGuildDirectoryEntryReported.subject) && m.areEqual(this.description, trackGuildDirectoryEntryReported.description) && m.areEqual(this.reasonEnum, trackGuildDirectoryEntryReported.reasonEnum) && m.areEqual(this.reportId, trackGuildDirectoryEntryReported.reportId); } public int hashCode() { @@ -51,10 +52,12 @@ public final class TrackGuildDirectoryEntryReported implements AnalyticsSchema, CharSequence charSequence4 = this.description; int hashCode4 = (hashCode3 + (charSequence4 != null ? charSequence4.hashCode() : 0)) * 31; Long l = this.reasonEnum; - if (l != null) { - i = l.hashCode(); + int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31; + Long l2 = this.reportId; + if (l2 != null) { + i = l2.hashCode(); } - return hashCode4 + i; + return hashCode5 + i; } public String toString() { @@ -67,6 +70,8 @@ public final class TrackGuildDirectoryEntryReported implements AnalyticsSchema, R.append(", description="); R.append(this.description); R.append(", reasonEnum="); - return a.F(R, this.reasonEnum, ")"); + R.append(this.reasonEnum); + R.append(", reportId="); + return a.F(R, this.reportId, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildJoined.java b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildJoined.java index 389d5189c2..360d714005 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildJoined.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildJoined.java @@ -21,6 +21,7 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive private final Long locationGuildId = null; private final Long locationMessageId = null; private final Long postableChannels = null; + private final CharSequence recommendationLoadId = null; private final CharSequence source = null; private TrackBase trackBase; private final Long userGuilds = null; @@ -38,7 +39,7 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive return false; } TrackGuildJoined trackGuildJoined = (TrackGuildJoined) obj; - return m.areEqual(this.joinMethod, trackGuildJoined.joinMethod) && m.areEqual(this.applicationId, trackGuildJoined.applicationId) && m.areEqual(this.botId, trackGuildJoined.botId) && m.areEqual(this.guildId, trackGuildJoined.guildId) && m.areEqual(this.guildName, trackGuildJoined.guildName) && m.areEqual(this.guildOwnerId, trackGuildJoined.guildOwnerId) && m.areEqual(this.userGuilds, trackGuildJoined.userGuilds) && m.areEqual(this.joinType, trackGuildJoined.joinType) && m.areEqual(this.source, trackGuildJoined.source) && m.areEqual(this.locationGuildId, trackGuildJoined.locationGuildId) && m.areEqual(this.locationChannelId, trackGuildJoined.locationChannelId) && m.areEqual(this.locationChannelType, trackGuildJoined.locationChannelType) && m.areEqual(this.locationMessageId, trackGuildJoined.locationMessageId) && m.areEqual(this.inviteGuildScheduledEventId, trackGuildJoined.inviteGuildScheduledEventId) && m.areEqual(this.postableChannels, trackGuildJoined.postableChannels); + return m.areEqual(this.joinMethod, trackGuildJoined.joinMethod) && m.areEqual(this.applicationId, trackGuildJoined.applicationId) && m.areEqual(this.botId, trackGuildJoined.botId) && m.areEqual(this.guildId, trackGuildJoined.guildId) && m.areEqual(this.guildName, trackGuildJoined.guildName) && m.areEqual(this.guildOwnerId, trackGuildJoined.guildOwnerId) && m.areEqual(this.userGuilds, trackGuildJoined.userGuilds) && m.areEqual(this.joinType, trackGuildJoined.joinType) && m.areEqual(this.source, trackGuildJoined.source) && m.areEqual(this.locationGuildId, trackGuildJoined.locationGuildId) && m.areEqual(this.locationChannelId, trackGuildJoined.locationChannelId) && m.areEqual(this.locationChannelType, trackGuildJoined.locationChannelType) && m.areEqual(this.locationMessageId, trackGuildJoined.locationMessageId) && m.areEqual(this.inviteGuildScheduledEventId, trackGuildJoined.inviteGuildScheduledEventId) && m.areEqual(this.postableChannels, trackGuildJoined.postableChannels) && m.areEqual(this.recommendationLoadId, trackGuildJoined.recommendationLoadId); } public int hashCode() { @@ -72,10 +73,12 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive Long l10 = this.inviteGuildScheduledEventId; int hashCode14 = (hashCode13 + (l10 != null ? l10.hashCode() : 0)) * 31; Long l11 = this.postableChannels; - if (l11 != null) { - i = l11.hashCode(); + int hashCode15 = (hashCode14 + (l11 != null ? l11.hashCode() : 0)) * 31; + CharSequence charSequence5 = this.recommendationLoadId; + if (charSequence5 != null) { + i = charSequence5.hashCode(); } - return hashCode14 + i; + return hashCode15 + i; } public String toString() { @@ -108,6 +111,8 @@ public final class TrackGuildJoined implements AnalyticsSchema, TrackBaseReceive R.append(", inviteGuildScheduledEventId="); R.append(this.inviteGuildScheduledEventId); R.append(", postableChannels="); - return a.F(R, this.postableChannels, ")"); + R.append(this.postableChannels); + R.append(", recommendationLoadId="); + return a.D(R, this.recommendationLoadId, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildReported.java b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildReported.java index b1e1f32b92..af48ae8239 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackGuildReported.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackGuildReported.java @@ -14,6 +14,7 @@ public final class TrackGuildReported implements AnalyticsSchema, TrackBaseRecei private final transient String analyticsSchemaTypeName = "guild_reported"; private final CharSequence description = null; private final Long reasonEnum = null; + private final Long reportId = null; private final CharSequence reportSubType = null; private final CharSequence reportType = null; private final CharSequence subject = null; @@ -34,7 +35,7 @@ public final class TrackGuildReported implements AnalyticsSchema, TrackBaseRecei return false; } TrackGuildReported trackGuildReported = (TrackGuildReported) obj; - return m.areEqual(this.reportType, trackGuildReported.reportType) && m.areEqual(this.reportSubType, trackGuildReported.reportSubType) && m.areEqual(this.subject, trackGuildReported.subject) && m.areEqual(this.description, trackGuildReported.description) && m.areEqual(this.reasonEnum, trackGuildReported.reasonEnum); + return m.areEqual(this.reportType, trackGuildReported.reportType) && m.areEqual(this.reportSubType, trackGuildReported.reportSubType) && m.areEqual(this.subject, trackGuildReported.subject) && m.areEqual(this.description, trackGuildReported.description) && m.areEqual(this.reasonEnum, trackGuildReported.reasonEnum) && m.areEqual(this.reportId, trackGuildReported.reportId); } public int hashCode() { @@ -48,10 +49,12 @@ public final class TrackGuildReported implements AnalyticsSchema, TrackBaseRecei CharSequence charSequence4 = this.description; int hashCode4 = (hashCode3 + (charSequence4 != null ? charSequence4.hashCode() : 0)) * 31; Long l = this.reasonEnum; - if (l != null) { - i = l.hashCode(); + int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31; + Long l2 = this.reportId; + if (l2 != null) { + i = l2.hashCode(); } - return hashCode4 + i; + return hashCode5 + i; } public String toString() { @@ -64,6 +67,8 @@ public final class TrackGuildReported implements AnalyticsSchema, TrackBaseRecei R.append(", description="); R.append(this.description); R.append(", reasonEnum="); - return a.F(R, this.reasonEnum, ")"); + R.append(this.reasonEnum); + R.append(", reportId="); + return a.F(R, this.reportId, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlocked.java b/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlocked.java new file mode 100644 index 0000000000..a20d7d29b7 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlocked.java @@ -0,0 +1,37 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackLinkSecurityCheckBlocked.kt */ +public final class TrackLinkSecurityCheckBlocked implements AnalyticsSchema, TrackBaseReceiver { + private final transient String analyticsSchemaTypeName = "link_security_check_blocked"; + private final CharSequence blockedDomain = null; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackLinkSecurityCheckBlocked) && m.areEqual(this.blockedDomain, ((TrackLinkSecurityCheckBlocked) obj).blockedDomain); + } + return true; + } + + public int hashCode() { + CharSequence charSequence = this.blockedDomain; + if (charSequence != null) { + return charSequence.hashCode(); + } + return 0; + } + + public String toString() { + return a.D(a.R("TrackLinkSecurityCheckBlocked(blockedDomain="), this.blockedDomain, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlockedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlockedReceiver.java new file mode 100644 index 0000000000..47b001f615 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackLinkSecurityCheckBlockedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackLinkSecurityCheckBlocked.kt */ +public interface TrackLinkSecurityCheckBlockedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosed.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosed.java new file mode 100644 index 0000000000..a1c7a014a8 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosed.java @@ -0,0 +1,43 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackChannel; +import com.discord.analytics.generated.traits.TrackChannelReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackMemberListNoticeClosed.kt */ +public final class TrackMemberListNoticeClosed implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver, TrackChannelReceiver { + private final transient String analyticsSchemaTypeName = "member_list_notice_closed"; + private final CharSequence noticeType = null; + private TrackBase trackBase; + private TrackChannel trackChannel; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackMemberListNoticeClosed) && m.areEqual(this.noticeType, ((TrackMemberListNoticeClosed) obj).noticeType); + } + return true; + } + + public int hashCode() { + CharSequence charSequence = this.noticeType; + if (charSequence != null) { + return charSequence.hashCode(); + } + return 0; + } + + public String toString() { + return a.D(a.R("TrackMemberListNoticeClosed(noticeType="), this.noticeType, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosedReceiver.java new file mode 100644 index 0000000000..3ac358fbc1 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeClosedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackMemberListNoticeClosed.kt */ +public interface TrackMemberListNoticeClosedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClicked.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClicked.java new file mode 100644 index 0000000000..bf01f6d19a --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClicked.java @@ -0,0 +1,43 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackChannel; +import com.discord.analytics.generated.traits.TrackChannelReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackMemberListNoticeCtaClicked.kt */ +public final class TrackMemberListNoticeCtaClicked implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver, TrackChannelReceiver { + private final transient String analyticsSchemaTypeName = "member_list_notice_cta_clicked"; + private final CharSequence noticeType = null; + private TrackBase trackBase; + private TrackChannel trackChannel; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackMemberListNoticeCtaClicked) && m.areEqual(this.noticeType, ((TrackMemberListNoticeCtaClicked) obj).noticeType); + } + return true; + } + + public int hashCode() { + CharSequence charSequence = this.noticeType; + if (charSequence != null) { + return charSequence.hashCode(); + } + return 0; + } + + public String toString() { + return a.D(a.R("TrackMemberListNoticeCtaClicked(noticeType="), this.noticeType, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClickedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClickedReceiver.java new file mode 100644 index 0000000000..9240976b63 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeCtaClickedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackMemberListNoticeCtaClicked.kt */ +public interface TrackMemberListNoticeCtaClickedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewed.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewed.java new file mode 100644 index 0000000000..3a25578099 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewed.java @@ -0,0 +1,43 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackChannel; +import com.discord.analytics.generated.traits.TrackChannelReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackMemberListNoticeViewed.kt */ +public final class TrackMemberListNoticeViewed implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver, TrackChannelReceiver { + private final transient String analyticsSchemaTypeName = "member_list_notice_viewed"; + private final CharSequence noticeType = null; + private TrackBase trackBase; + private TrackChannel trackChannel; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackMemberListNoticeViewed) && m.areEqual(this.noticeType, ((TrackMemberListNoticeViewed) obj).noticeType); + } + return true; + } + + public int hashCode() { + CharSequence charSequence = this.noticeType; + if (charSequence != null) { + return charSequence.hashCode(); + } + return 0; + } + + public String toString() { + return a.D(a.R("TrackMemberListNoticeViewed(noticeType="), this.noticeType, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewedReceiver.java new file mode 100644 index 0000000000..8adddeca43 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMemberListNoticeViewedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackMemberListNoticeViewed.kt */ +public interface TrackMemberListNoticeViewedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMessageReported.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMessageReported.java index a027f0d976..11500cc52a 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackMessageReported.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMessageReported.java @@ -11,12 +11,15 @@ import com.discord.analytics.generated.traits.TrackLocationMetadata; import com.discord.analytics.generated.traits.TrackLocationMetadataReceiver; import com.discord.api.science.AnalyticsSchema; import d0.z.d.m; +import java.util.List; /* compiled from: TrackMessageReported.kt */ public final class TrackMessageReported implements AnalyticsSchema, TrackBaseReceiver, TrackLocationMetadataReceiver, TrackGuildReceiver, TrackChannelReceiver { private final transient String analyticsSchemaTypeName = "message_reported"; private final CharSequence description = null; private final Long messageId = null; + private final List mutualGuildIds = null; private final Long reasonEnum = null; + private final Long reportId = null; private final CharSequence reportSubType = null; private final CharSequence reportType = null; private final CharSequence subject = null; @@ -38,7 +41,7 @@ public final class TrackMessageReported implements AnalyticsSchema, TrackBaseRec return false; } TrackMessageReported trackMessageReported = (TrackMessageReported) obj; - return m.areEqual(this.reportType, trackMessageReported.reportType) && m.areEqual(this.reportSubType, trackMessageReported.reportSubType) && m.areEqual(this.subject, trackMessageReported.subject) && m.areEqual(this.description, trackMessageReported.description) && m.areEqual(this.reasonEnum, trackMessageReported.reasonEnum) && m.areEqual(this.messageId, trackMessageReported.messageId); + return m.areEqual(this.reportType, trackMessageReported.reportType) && m.areEqual(this.reportSubType, trackMessageReported.reportSubType) && m.areEqual(this.subject, trackMessageReported.subject) && m.areEqual(this.description, trackMessageReported.description) && m.areEqual(this.reasonEnum, trackMessageReported.reasonEnum) && m.areEqual(this.messageId, trackMessageReported.messageId) && m.areEqual(this.reportId, trackMessageReported.reportId) && m.areEqual(this.mutualGuildIds, trackMessageReported.mutualGuildIds); } public int hashCode() { @@ -54,10 +57,14 @@ public final class TrackMessageReported implements AnalyticsSchema, TrackBaseRec Long l = this.reasonEnum; int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31; Long l2 = this.messageId; - if (l2 != null) { - i = l2.hashCode(); + int hashCode6 = (hashCode5 + (l2 != null ? l2.hashCode() : 0)) * 31; + Long l3 = this.reportId; + int hashCode7 = (hashCode6 + (l3 != null ? l3.hashCode() : 0)) * 31; + List list = this.mutualGuildIds; + if (list != null) { + i = list.hashCode(); } - return hashCode5 + i; + return hashCode7 + i; } public String toString() { @@ -72,6 +79,10 @@ public final class TrackMessageReported implements AnalyticsSchema, TrackBaseRec R.append(", reasonEnum="); R.append(this.reasonEnum); R.append(", messageId="); - return a.F(R, this.messageId, ")"); + R.append(this.messageId); + R.append(", reportId="); + R.append(this.reportId); + R.append(", mutualGuildIds="); + return a.J(R, this.mutualGuildIds, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociation.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociation.java new file mode 100644 index 0000000000..688b97217f --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociation.java @@ -0,0 +1,49 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +import java.util.List; +/* compiled from: TrackMultiAccountAssociation.kt */ +public final class TrackMultiAccountAssociation implements AnalyticsSchema, TrackBaseReceiver { + private final transient String analyticsSchemaTypeName = "multi_account_association"; + private final Long lastUserId = null; + private final List linkedUserIds = null; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackMultiAccountAssociation)) { + return false; + } + TrackMultiAccountAssociation trackMultiAccountAssociation = (TrackMultiAccountAssociation) obj; + return m.areEqual(this.lastUserId, trackMultiAccountAssociation.lastUserId) && m.areEqual(this.linkedUserIds, trackMultiAccountAssociation.linkedUserIds); + } + + public int hashCode() { + Long l = this.lastUserId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + List list = this.linkedUserIds; + if (list != null) { + i = list.hashCode(); + } + return hashCode + i; + } + + public String toString() { + StringBuilder R = a.R("TrackMultiAccountAssociation(lastUserId="); + R.append(this.lastUserId); + R.append(", linkedUserIds="); + return a.J(R, this.linkedUserIds, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociationReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociationReceiver.java new file mode 100644 index 0000000000..689b3d063f --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackMultiAccountAssociationReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackMultiAccountAssociation.kt */ +public interface TrackMultiAccountAssociationReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreated.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreated.java new file mode 100644 index 0000000000..ba04aecaf3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreated.java @@ -0,0 +1,40 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackRoleSubscriptionGroupListingCreated.kt */ +public final class TrackRoleSubscriptionGroupListingCreated implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver { + private final transient String analyticsSchemaTypeName = "role_subscription_group_listing_created"; + private final Long roleSubscriptionGroupListingId = null; + private TrackBase trackBase; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackRoleSubscriptionGroupListingCreated) && m.areEqual(this.roleSubscriptionGroupListingId, ((TrackRoleSubscriptionGroupListingCreated) obj).roleSubscriptionGroupListingId); + } + return true; + } + + public int hashCode() { + Long l = this.roleSubscriptionGroupListingId; + if (l != null) { + return l.hashCode(); + } + return 0; + } + + public String toString() { + return a.F(a.R("TrackRoleSubscriptionGroupListingCreated(roleSubscriptionGroupListingId="), this.roleSubscriptionGroupListingId, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreatedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreatedReceiver.java new file mode 100644 index 0000000000..606ba0c925 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionGroupListingCreatedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionGroupListingCreated.kt */ +public interface TrackRoleSubscriptionGroupListingCreatedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreated.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreated.java new file mode 100644 index 0000000000..8360a793f3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreated.java @@ -0,0 +1,82 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +import java.util.List; +/* compiled from: TrackRoleSubscriptionListingCreated.kt */ +public final class TrackRoleSubscriptionListingCreated implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver { + private final transient String analyticsSchemaTypeName = "role_subscription_listing_created"; + private final List channelBenefitIds = null; + private final List intangibleBenefitNames = null; + private final CharSequence name = null; + private final Long priceTier = null; + private final Boolean published = null; + private final Long roleId = null; + private final Long roleSubscriptionGroupListingId = null; + private final Long roleSubscriptionListingId = null; + private TrackBase trackBase; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackRoleSubscriptionListingCreated)) { + return false; + } + TrackRoleSubscriptionListingCreated trackRoleSubscriptionListingCreated = (TrackRoleSubscriptionListingCreated) obj; + return m.areEqual(this.roleSubscriptionListingId, trackRoleSubscriptionListingCreated.roleSubscriptionListingId) && m.areEqual(this.name, trackRoleSubscriptionListingCreated.name) && m.areEqual(this.roleSubscriptionGroupListingId, trackRoleSubscriptionListingCreated.roleSubscriptionGroupListingId) && m.areEqual(this.published, trackRoleSubscriptionListingCreated.published) && m.areEqual(this.channelBenefitIds, trackRoleSubscriptionListingCreated.channelBenefitIds) && m.areEqual(this.roleId, trackRoleSubscriptionListingCreated.roleId) && m.areEqual(this.intangibleBenefitNames, trackRoleSubscriptionListingCreated.intangibleBenefitNames) && m.areEqual(this.priceTier, trackRoleSubscriptionListingCreated.priceTier); + } + + public int hashCode() { + Long l = this.roleSubscriptionListingId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + CharSequence charSequence = this.name; + int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + Long l2 = this.roleSubscriptionGroupListingId; + int hashCode3 = (hashCode2 + (l2 != null ? l2.hashCode() : 0)) * 31; + Boolean bool = this.published; + int hashCode4 = (hashCode3 + (bool != null ? bool.hashCode() : 0)) * 31; + List list = this.channelBenefitIds; + int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31; + Long l3 = this.roleId; + int hashCode6 = (hashCode5 + (l3 != null ? l3.hashCode() : 0)) * 31; + List list2 = this.intangibleBenefitNames; + int hashCode7 = (hashCode6 + (list2 != null ? list2.hashCode() : 0)) * 31; + Long l4 = this.priceTier; + if (l4 != null) { + i = l4.hashCode(); + } + return hashCode7 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackRoleSubscriptionListingCreated(roleSubscriptionListingId="); + R.append(this.roleSubscriptionListingId); + R.append(", name="); + R.append(this.name); + R.append(", roleSubscriptionGroupListingId="); + R.append(this.roleSubscriptionGroupListingId); + R.append(", published="); + R.append(this.published); + R.append(", channelBenefitIds="); + R.append(this.channelBenefitIds); + R.append(", roleId="); + R.append(this.roleId); + R.append(", intangibleBenefitNames="); + R.append(this.intangibleBenefitNames); + R.append(", priceTier="); + return a.F(R, this.priceTier, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreatedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreatedReceiver.java new file mode 100644 index 0000000000..02d8cd6c56 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingCreatedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionListingCreated.kt */ +public interface TrackRoleSubscriptionListingCreatedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeleted.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeleted.java new file mode 100644 index 0000000000..c8b5d566bf --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeleted.java @@ -0,0 +1,56 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackRoleSubscriptionListingDeleted.kt */ +public final class TrackRoleSubscriptionListingDeleted implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver { + private final transient String analyticsSchemaTypeName = "role_subscription_listing_deleted"; + private final CharSequence name = null; + private final Long roleSubscriptionGroupListingId = null; + private final Long roleSubscriptionListingId = null; + private TrackBase trackBase; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackRoleSubscriptionListingDeleted)) { + return false; + } + TrackRoleSubscriptionListingDeleted trackRoleSubscriptionListingDeleted = (TrackRoleSubscriptionListingDeleted) obj; + return m.areEqual(this.roleSubscriptionListingId, trackRoleSubscriptionListingDeleted.roleSubscriptionListingId) && m.areEqual(this.name, trackRoleSubscriptionListingDeleted.name) && m.areEqual(this.roleSubscriptionGroupListingId, trackRoleSubscriptionListingDeleted.roleSubscriptionGroupListingId); + } + + public int hashCode() { + Long l = this.roleSubscriptionListingId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + CharSequence charSequence = this.name; + int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + Long l2 = this.roleSubscriptionGroupListingId; + if (l2 != null) { + i = l2.hashCode(); + } + return hashCode2 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackRoleSubscriptionListingDeleted(roleSubscriptionListingId="); + R.append(this.roleSubscriptionListingId); + R.append(", name="); + R.append(this.name); + R.append(", roleSubscriptionGroupListingId="); + return a.F(R, this.roleSubscriptionGroupListingId, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeletedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeletedReceiver.java new file mode 100644 index 0000000000..9676364abb --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingDeletedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionListingDeleted.kt */ +public interface TrackRoleSubscriptionListingDeletedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublished.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublished.java new file mode 100644 index 0000000000..2fd05d7ed0 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublished.java @@ -0,0 +1,56 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackRoleSubscriptionListingPublished.kt */ +public final class TrackRoleSubscriptionListingPublished implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver { + private final transient String analyticsSchemaTypeName = "role_subscription_listing_published"; + private final CharSequence name = null; + private final Long roleSubscriptionGroupListingId = null; + private final Long roleSubscriptionListingId = null; + private TrackBase trackBase; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackRoleSubscriptionListingPublished)) { + return false; + } + TrackRoleSubscriptionListingPublished trackRoleSubscriptionListingPublished = (TrackRoleSubscriptionListingPublished) obj; + return m.areEqual(this.roleSubscriptionListingId, trackRoleSubscriptionListingPublished.roleSubscriptionListingId) && m.areEqual(this.name, trackRoleSubscriptionListingPublished.name) && m.areEqual(this.roleSubscriptionGroupListingId, trackRoleSubscriptionListingPublished.roleSubscriptionGroupListingId); + } + + public int hashCode() { + Long l = this.roleSubscriptionListingId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + CharSequence charSequence = this.name; + int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + Long l2 = this.roleSubscriptionGroupListingId; + if (l2 != null) { + i = l2.hashCode(); + } + return hashCode2 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackRoleSubscriptionListingPublished(roleSubscriptionListingId="); + R.append(this.roleSubscriptionListingId); + R.append(", name="); + R.append(this.name); + R.append(", roleSubscriptionGroupListingId="); + return a.F(R, this.roleSubscriptionGroupListingId, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublishedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublishedReceiver.java new file mode 100644 index 0000000000..47de735de3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingPublishedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionListingPublished.kt */ +public interface TrackRoleSubscriptionListingPublishedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdated.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdated.java new file mode 100644 index 0000000000..1a25043fa3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdated.java @@ -0,0 +1,82 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +import java.util.List; +/* compiled from: TrackRoleSubscriptionListingUpdated.kt */ +public final class TrackRoleSubscriptionListingUpdated implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver { + private final transient String analyticsSchemaTypeName = "role_subscription_listing_updated"; + private final List channelBenefitIds = null; + private final List intangibleBenefitNames = null; + private final CharSequence name = null; + private final Long priceTier = null; + private final Boolean published = null; + private final Long roleId = null; + private final Long roleSubscriptionGroupListingId = null; + private final Long roleSubscriptionListingId = null; + private TrackBase trackBase; + private TrackGuild trackGuild; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackRoleSubscriptionListingUpdated)) { + return false; + } + TrackRoleSubscriptionListingUpdated trackRoleSubscriptionListingUpdated = (TrackRoleSubscriptionListingUpdated) obj; + return m.areEqual(this.roleSubscriptionListingId, trackRoleSubscriptionListingUpdated.roleSubscriptionListingId) && m.areEqual(this.name, trackRoleSubscriptionListingUpdated.name) && m.areEqual(this.roleSubscriptionGroupListingId, trackRoleSubscriptionListingUpdated.roleSubscriptionGroupListingId) && m.areEqual(this.published, trackRoleSubscriptionListingUpdated.published) && m.areEqual(this.channelBenefitIds, trackRoleSubscriptionListingUpdated.channelBenefitIds) && m.areEqual(this.roleId, trackRoleSubscriptionListingUpdated.roleId) && m.areEqual(this.intangibleBenefitNames, trackRoleSubscriptionListingUpdated.intangibleBenefitNames) && m.areEqual(this.priceTier, trackRoleSubscriptionListingUpdated.priceTier); + } + + public int hashCode() { + Long l = this.roleSubscriptionListingId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + CharSequence charSequence = this.name; + int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31; + Long l2 = this.roleSubscriptionGroupListingId; + int hashCode3 = (hashCode2 + (l2 != null ? l2.hashCode() : 0)) * 31; + Boolean bool = this.published; + int hashCode4 = (hashCode3 + (bool != null ? bool.hashCode() : 0)) * 31; + List list = this.channelBenefitIds; + int hashCode5 = (hashCode4 + (list != null ? list.hashCode() : 0)) * 31; + Long l3 = this.roleId; + int hashCode6 = (hashCode5 + (l3 != null ? l3.hashCode() : 0)) * 31; + List list2 = this.intangibleBenefitNames; + int hashCode7 = (hashCode6 + (list2 != null ? list2.hashCode() : 0)) * 31; + Long l4 = this.priceTier; + if (l4 != null) { + i = l4.hashCode(); + } + return hashCode7 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackRoleSubscriptionListingUpdated(roleSubscriptionListingId="); + R.append(this.roleSubscriptionListingId); + R.append(", name="); + R.append(this.name); + R.append(", roleSubscriptionGroupListingId="); + R.append(this.roleSubscriptionGroupListingId); + R.append(", published="); + R.append(this.published); + R.append(", channelBenefitIds="); + R.append(this.channelBenefitIds); + R.append(", roleId="); + R.append(this.roleId); + R.append(", intangibleBenefitNames="); + R.append(this.intangibleBenefitNames); + R.append(", priceTier="); + return a.F(R, this.priceTier, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdatedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdatedReceiver.java new file mode 100644 index 0000000000..4730fe8348 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpdatedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionListingUpdated.kt */ +public interface TrackRoleSubscriptionListingUpdatedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewed.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewed.java new file mode 100644 index 0000000000..706f7b1ab3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewed.java @@ -0,0 +1,78 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.analytics.generated.traits.TrackChannel; +import com.discord.analytics.generated.traits.TrackChannelReceiver; +import com.discord.analytics.generated.traits.TrackGuild; +import com.discord.analytics.generated.traits.TrackGuildReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +import java.util.List; +/* compiled from: TrackRoleSubscriptionListingUpsellPageViewed.kt */ +public final class TrackRoleSubscriptionListingUpsellPageViewed implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver, TrackChannelReceiver { + private final transient String analyticsSchemaTypeName; + private final Boolean isPremiumMember; + private final Long roleSubscriptionGroupListingId; + private final List roleSubscriptionListingIds; + private TrackBase trackBase; + private TrackChannel trackChannel; + private TrackGuild trackGuild; + + public TrackRoleSubscriptionListingUpsellPageViewed() { + this.roleSubscriptionGroupListingId = null; + this.roleSubscriptionListingIds = null; + this.isPremiumMember = null; + this.analyticsSchemaTypeName = "role_subscription_listing_upsell_page_viewed"; + } + + public TrackRoleSubscriptionListingUpsellPageViewed(Long l, List list, Boolean bool) { + this.roleSubscriptionGroupListingId = l; + this.roleSubscriptionListingIds = list; + this.isPremiumMember = bool; + this.analyticsSchemaTypeName = "role_subscription_listing_upsell_page_viewed"; + } + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public void c(TrackBase trackBase) { + this.trackBase = trackBase; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackRoleSubscriptionListingUpsellPageViewed)) { + return false; + } + TrackRoleSubscriptionListingUpsellPageViewed trackRoleSubscriptionListingUpsellPageViewed = (TrackRoleSubscriptionListingUpsellPageViewed) obj; + return m.areEqual(this.roleSubscriptionGroupListingId, trackRoleSubscriptionListingUpsellPageViewed.roleSubscriptionGroupListingId) && m.areEqual(this.roleSubscriptionListingIds, trackRoleSubscriptionListingUpsellPageViewed.roleSubscriptionListingIds) && m.areEqual(this.isPremiumMember, trackRoleSubscriptionListingUpsellPageViewed.isPremiumMember); + } + + public int hashCode() { + Long l = this.roleSubscriptionGroupListingId; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + List list = this.roleSubscriptionListingIds; + int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31; + Boolean bool = this.isPremiumMember; + if (bool != null) { + i = bool.hashCode(); + } + return hashCode2 + i; + } + + public String toString() { + StringBuilder R = a.R("TrackRoleSubscriptionListingUpsellPageViewed(roleSubscriptionGroupListingId="); + R.append(this.roleSubscriptionGroupListingId); + R.append(", roleSubscriptionListingIds="); + R.append(this.roleSubscriptionListingIds); + R.append(", isPremiumMember="); + return a.C(R, this.isPremiumMember, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewedReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewedReceiver.java new file mode 100644 index 0000000000..8f3d4241e6 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackRoleSubscriptionListingUpsellPageViewedReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackRoleSubscriptionListingUpsellPageViewed.kt */ +public interface TrackRoleSubscriptionListingUpsellPageViewedReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackStageChannelReported.java b/app/src/main/java/com/discord/analytics/generated/events/TrackStageChannelReported.java index ba14e7dd4b..1d6695ddb1 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackStageChannelReported.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackStageChannelReported.java @@ -16,6 +16,7 @@ public final class TrackStageChannelReported implements AnalyticsSchema, TrackBa private final transient String analyticsSchemaTypeName = "stage_channel_reported"; private final CharSequence description = null; private final Long reasonEnum = null; + private final Long reportId = null; private final CharSequence reportSubType = null; private final CharSequence reportType = null; private final Long stageInstanceId = null; @@ -38,7 +39,7 @@ public final class TrackStageChannelReported implements AnalyticsSchema, TrackBa return false; } TrackStageChannelReported trackStageChannelReported = (TrackStageChannelReported) obj; - return m.areEqual(this.reportType, trackStageChannelReported.reportType) && m.areEqual(this.reportSubType, trackStageChannelReported.reportSubType) && m.areEqual(this.subject, trackStageChannelReported.subject) && m.areEqual(this.description, trackStageChannelReported.description) && m.areEqual(this.reasonEnum, trackStageChannelReported.reasonEnum) && m.areEqual(this.stageInstanceId, trackStageChannelReported.stageInstanceId); + return m.areEqual(this.reportType, trackStageChannelReported.reportType) && m.areEqual(this.reportSubType, trackStageChannelReported.reportSubType) && m.areEqual(this.subject, trackStageChannelReported.subject) && m.areEqual(this.description, trackStageChannelReported.description) && m.areEqual(this.reasonEnum, trackStageChannelReported.reasonEnum) && m.areEqual(this.stageInstanceId, trackStageChannelReported.stageInstanceId) && m.areEqual(this.reportId, trackStageChannelReported.reportId); } public int hashCode() { @@ -54,10 +55,12 @@ public final class TrackStageChannelReported implements AnalyticsSchema, TrackBa Long l = this.reasonEnum; int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31; Long l2 = this.stageInstanceId; - if (l2 != null) { - i = l2.hashCode(); + int hashCode6 = (hashCode5 + (l2 != null ? l2.hashCode() : 0)) * 31; + Long l3 = this.reportId; + if (l3 != null) { + i = l3.hashCode(); } - return hashCode5 + i; + return hashCode6 + i; } public String toString() { @@ -72,6 +75,8 @@ public final class TrackStageChannelReported implements AnalyticsSchema, TrackBa R.append(", reasonEnum="); R.append(this.reasonEnum); R.append(", stageInstanceId="); - return a.F(R, this.stageInstanceId, ")"); + R.append(this.stageInstanceId); + R.append(", reportId="); + return a.F(R, this.reportId, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackSubscriptionPeriodScheduled.java b/app/src/main/java/com/discord/analytics/generated/events/TrackSubscriptionPeriodScheduled.java index 4e3ac86a4e..19f5f0ec67 100644 --- a/app/src/main/java/com/discord/analytics/generated/events/TrackSubscriptionPeriodScheduled.java +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackSubscriptionPeriodScheduled.java @@ -18,6 +18,7 @@ public final class TrackSubscriptionPeriodScheduled implements AnalyticsSchema, private final Boolean expectedToAutorenew = null; private final Long paymentGateway = null; private final Long paymentId = null; + private final Boolean renewal = null; private final Long scheduledEndTimestamp = null; private final Long scheduledStartTimestamp = null; private final Long skuId = null; @@ -40,7 +41,7 @@ public final class TrackSubscriptionPeriodScheduled implements AnalyticsSchema, return false; } TrackSubscriptionPeriodScheduled trackSubscriptionPeriodScheduled = (TrackSubscriptionPeriodScheduled) obj; - return m.areEqual(this.subscriptionId, trackSubscriptionPeriodScheduled.subscriptionId) && m.areEqual(this.paymentId, trackSubscriptionPeriodScheduled.paymentId) && m.areEqual(this.paymentGateway, trackSubscriptionPeriodScheduled.paymentGateway) && m.areEqual(this.skuId, trackSubscriptionPeriodScheduled.skuId) && m.areEqual(this.scheduledStartTimestamp, trackSubscriptionPeriodScheduled.scheduledStartTimestamp) && m.areEqual(this.scheduledEndTimestamp, trackSubscriptionPeriodScheduled.scheduledEndTimestamp) && m.areEqual(this.accessType, trackSubscriptionPeriodScheduled.accessType) && m.areEqual(this.expectedToAutorenew, trackSubscriptionPeriodScheduled.expectedToAutorenew); + return m.areEqual(this.subscriptionId, trackSubscriptionPeriodScheduled.subscriptionId) && m.areEqual(this.paymentId, trackSubscriptionPeriodScheduled.paymentId) && m.areEqual(this.paymentGateway, trackSubscriptionPeriodScheduled.paymentGateway) && m.areEqual(this.skuId, trackSubscriptionPeriodScheduled.skuId) && m.areEqual(this.scheduledStartTimestamp, trackSubscriptionPeriodScheduled.scheduledStartTimestamp) && m.areEqual(this.scheduledEndTimestamp, trackSubscriptionPeriodScheduled.scheduledEndTimestamp) && m.areEqual(this.accessType, trackSubscriptionPeriodScheduled.accessType) && m.areEqual(this.expectedToAutorenew, trackSubscriptionPeriodScheduled.expectedToAutorenew) && m.areEqual(this.renewal, trackSubscriptionPeriodScheduled.renewal); } public int hashCode() { @@ -60,10 +61,12 @@ public final class TrackSubscriptionPeriodScheduled implements AnalyticsSchema, CharSequence charSequence = this.accessType; int hashCode7 = (hashCode6 + (charSequence != null ? charSequence.hashCode() : 0)) * 31; Boolean bool = this.expectedToAutorenew; - if (bool != null) { - i = bool.hashCode(); + int hashCode8 = (hashCode7 + (bool != null ? bool.hashCode() : 0)) * 31; + Boolean bool2 = this.renewal; + if (bool2 != null) { + i = bool2.hashCode(); } - return hashCode7 + i; + return hashCode8 + i; } public String toString() { @@ -82,6 +85,8 @@ public final class TrackSubscriptionPeriodScheduled implements AnalyticsSchema, R.append(", accessType="); R.append(this.accessType); R.append(", expectedToAutorenew="); - return a.C(R, this.expectedToAutorenew, ")"); + R.append(this.expectedToAutorenew); + R.append(", renewal="); + return a.C(R, this.renewal, ")"); } } diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocal.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocal.java new file mode 100644 index 0000000000..0a0332cf6d --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocal.java @@ -0,0 +1,37 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackUpdateUserSettingsLocal.kt */ +public final class TrackUpdateUserSettingsLocal implements AnalyticsSchema, TrackBaseReceiver { + private final Boolean alwaysPreviewVideo = null; + private final transient String analyticsSchemaTypeName = "update_user_settings_local"; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackUpdateUserSettingsLocal) && m.areEqual(this.alwaysPreviewVideo, ((TrackUpdateUserSettingsLocal) obj).alwaysPreviewVideo); + } + return true; + } + + public int hashCode() { + Boolean bool = this.alwaysPreviewVideo; + if (bool != null) { + return bool.hashCode(); + } + return 0; + } + + public String toString() { + return a.C(a.R("TrackUpdateUserSettingsLocal(alwaysPreviewVideo="), this.alwaysPreviewVideo, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocalReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocalReceiver.java new file mode 100644 index 0000000000..35e4d45248 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUpdateUserSettingsLocalReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackUpdateUserSettingsLocal.kt */ +public interface TrackUpdateUserSettingsLocalReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCount.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCount.java new file mode 100644 index 0000000000..900588f7e3 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCount.java @@ -0,0 +1,37 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackUploadDragAndDropCount.kt */ +public final class TrackUploadDragAndDropCount implements AnalyticsSchema, TrackBaseReceiver { + private final transient String analyticsSchemaTypeName = "upload_drag_and_drop_count"; + private final Long count = null; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this != obj) { + return (obj instanceof TrackUploadDragAndDropCount) && m.areEqual(this.count, ((TrackUploadDragAndDropCount) obj).count); + } + return true; + } + + public int hashCode() { + Long l = this.count; + if (l != null) { + return l.hashCode(); + } + return 0; + } + + public String toString() { + return a.F(a.R("TrackUploadDragAndDropCount(count="), this.count, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCountReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCountReceiver.java new file mode 100644 index 0000000000..3816676f1c --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadDragAndDropCountReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackUploadDragAndDropCount.kt */ +public interface TrackUploadDragAndDropCountReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitError.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitError.java new file mode 100644 index 0000000000..dbb230205d --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitError.java @@ -0,0 +1,48 @@ +package com.discord.analytics.generated.events; + +import c.d.b.a.a; +import com.discord.analytics.generated.traits.TrackBase; +import com.discord.analytics.generated.traits.TrackBaseReceiver; +import com.discord.api.science.AnalyticsSchema; +import d0.z.d.m; +/* compiled from: TrackUploadFileLimitError.kt */ +public final class TrackUploadFileLimitError implements AnalyticsSchema, TrackBaseReceiver { + private final transient String analyticsSchemaTypeName = "upload_file_limit_error"; + private final Long existingCount = null; + private final Long newCount = null; + private TrackBase trackBase; + + @Override // com.discord.api.science.AnalyticsSchema + public String b() { + return this.analyticsSchemaTypeName; + } + + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof TrackUploadFileLimitError)) { + return false; + } + TrackUploadFileLimitError trackUploadFileLimitError = (TrackUploadFileLimitError) obj; + return m.areEqual(this.existingCount, trackUploadFileLimitError.existingCount) && m.areEqual(this.newCount, trackUploadFileLimitError.newCount); + } + + public int hashCode() { + Long l = this.existingCount; + int i = 0; + int hashCode = (l != null ? l.hashCode() : 0) * 31; + Long l2 = this.newCount; + if (l2 != null) { + i = l2.hashCode(); + } + return hashCode + i; + } + + public String toString() { + StringBuilder R = a.R("TrackUploadFileLimitError(existingCount="); + R.append(this.existingCount); + R.append(", newCount="); + return a.F(R, this.newCount, ")"); + } +} diff --git a/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitErrorReceiver.java b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitErrorReceiver.java new file mode 100644 index 0000000000..aab73a0a89 --- /dev/null +++ b/app/src/main/java/com/discord/analytics/generated/events/TrackUploadFileLimitErrorReceiver.java @@ -0,0 +1,6 @@ +package com.discord.analytics.generated.events; + +import com.discord.api.science.AnalyticsSchema; +/* compiled from: TrackUploadFileLimitError.kt */ +public interface TrackUploadFileLimitErrorReceiver extends AnalyticsSchema { +} diff --git a/app/src/main/java/com/discord/analytics/generated/traits/TrackBase.java b/app/src/main/java/com/discord/analytics/generated/traits/TrackBase.java index 7823ca2f6a..954bd9f85d 100644 --- a/app/src/main/java/com/discord/analytics/generated/traits/TrackBase.java +++ b/app/src/main/java/com/discord/analytics/generated/traits/TrackBase.java @@ -4,77 +4,226 @@ import c.d.b.a.a; import d0.z.d.m; /* compiled from: TrackBase.kt */ public final class TrackBase { - private final Long accessibilityFeatures = null; - private final Boolean accessibilitySupportEnabled = null; - private final CharSequence browser = null; - private final CharSequence browserUserAgent = null; - private final CharSequence browserVersion = null; - private final CharSequence cfduid = null; - private final Boolean cfduidSigned = null; - private final CharSequence chosenLocale = null; - private final CharSequence city = null; - private final Long clientBuildNumber = null; - private final CharSequence clientEventSource = null; - private final Float clientPerformanceCpu = null; - private final Long clientPerformanceMemory = null; - private final Long clientSendTimestamp = null; - private final Long clientTrackTimestamp = null; - private final CharSequence clientUuid = null; - private final CharSequence clientVersion = null; - private final CharSequence countryCode = null; - private final Long cpuCoreCount = null; - private final Long day = null; - private final CharSequence detectedLocale = null; - private final CharSequence device = null; - private final CharSequence deviceAdvertiserId = null; - private final CharSequence deviceId = null; - private final CharSequence deviceVendorId = null; - private final CharSequence distro = null; - private final CharSequence domain = null; - private final CharSequence event = null; - private final CharSequence eventId = null; - private final CharSequence eventSource = null; - private final CharSequence eventType = null; - private final CharSequence fluentId = null; - private final CharSequence freightHostname = null; - private final CharSequence freightId = null; - private final CharSequence ip = null; - private final CharSequence isp = null; - private final Float latitude = null; - private final CharSequence location = null; - private final Float longitude = null; - private final CharSequence mpKeyword = null; - private final CharSequence mpKeywordCurrent = null; - private final CharSequence os = null; - private final CharSequence osArch = null; - private final CharSequence osSdkVersion = null; - private final CharSequence osVersion = null; - private final CharSequence referrer = null; - private final CharSequence referrerCurrent = null; - private final CharSequence referringDomain = null; - private final CharSequence referringDomainCurrent = null; - private final CharSequence regionCode = null; - private final CharSequence releaseChannel = null; - private final CharSequence searchEngine = null; - private final CharSequence searchEngineCurrent = null; - private final CharSequence systemLocale = null; - private final CharSequence timeZone = null; - private final Long timestamp = null; - private final Long userId = null; - private final Boolean userIsAuthenticated = null; - private final Boolean userIsBot = null; - private final CharSequence utmCampaign = null; - private final CharSequence utmCampaignCurrent = null; - private final CharSequence utmContent = null; - private final CharSequence utmContentCurrent = null; - private final CharSequence utmMedium = null; - private final CharSequence utmMediumCurrent = null; - private final CharSequence utmSource = null; - private final CharSequence utmSourceCurrent = null; - private final CharSequence utmTerm = null; - private final CharSequence utmTermCurrent = null; - private final CharSequence variant = null; - private final CharSequence windowManager = null; + private final Long accessibilityFeatures; + private final Boolean accessibilitySupportEnabled; + private final CharSequence browser; + private final CharSequence browserUserAgent; + private final CharSequence browserVersion; + private final CharSequence cfduid; + private final Boolean cfduidSigned; + private final CharSequence chosenLocale; + private final CharSequence city; + private final Long clientBuildNumber; + private final CharSequence clientEventSource; + private final Float clientPerformanceCpu; + private final Long clientPerformanceMemory; + private final Long clientSendTimestamp; + private final Long clientTrackTimestamp; + private final CharSequence clientUuid; + private final CharSequence clientVersion; + private final CharSequence countryCode; + private final Long cpuCoreCount; + private final Long day; + private final CharSequence detectedLocale; + private final CharSequence device; + private final CharSequence deviceAdvertiserId; + private final CharSequence deviceId; + private final CharSequence deviceVendorId; + private final CharSequence distro; + private final CharSequence domain; + private final CharSequence event; + private final CharSequence eventId; + private final CharSequence eventSource; + private final CharSequence eventType; + private final CharSequence fluentId; + private final CharSequence freightHostname; + private final CharSequence freightId; + private final CharSequence ip; + private final CharSequence isp; + private final Float latitude; + private final CharSequence location; + private final Float longitude; + private final CharSequence mpKeyword; + private final CharSequence mpKeywordCurrent; + private final CharSequence os; + private final CharSequence osArch; + private final CharSequence osSdkVersion; + private final CharSequence osVersion; + private final CharSequence referrer; + private final CharSequence referrerCurrent; + private final CharSequence referringDomain; + private final CharSequence referringDomainCurrent; + private final CharSequence regionCode; + private final CharSequence releaseChannel; + private final CharSequence searchEngine; + private final CharSequence searchEngineCurrent; + private final CharSequence systemLocale; + private final CharSequence timeZone; + private final Long timestamp; + private final Long userId; + private final Boolean userIsAuthenticated; + private final Boolean userIsBot; + private final CharSequence utmCampaign; + private final CharSequence utmCampaignCurrent; + private final CharSequence utmContent; + private final CharSequence utmContentCurrent; + private final CharSequence utmMedium; + private final CharSequence utmMediumCurrent; + private final CharSequence utmSource; + private final CharSequence utmSourceCurrent; + private final CharSequence utmTerm; + private final CharSequence utmTermCurrent; + private final CharSequence variant; + private final CharSequence windowManager; + + public TrackBase() { + this(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, -1, -1, 127); + } + + public TrackBase(CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, CharSequence charSequence4, Long l, Long l2, CharSequence charSequence5, CharSequence charSequence6, Long l3, Long l4, CharSequence charSequence7, CharSequence charSequence8, CharSequence charSequence9, CharSequence charSequence10, Long l5, CharSequence charSequence11, CharSequence charSequence12, CharSequence charSequence13, Boolean bool, Boolean bool2, Long l6, Boolean bool3, CharSequence charSequence14, CharSequence charSequence15, CharSequence charSequence16, CharSequence charSequence17, CharSequence charSequence18, CharSequence charSequence19, CharSequence charSequence20, Boolean bool4, CharSequence charSequence21, CharSequence charSequence22, CharSequence charSequence23, CharSequence charSequence24, CharSequence charSequence25, CharSequence charSequence26, Long l7, CharSequence charSequence27, CharSequence charSequence28, CharSequence charSequence29, CharSequence charSequence30, CharSequence charSequence31, Float f, Long l8, CharSequence charSequence32, CharSequence charSequence33, CharSequence charSequence34, CharSequence charSequence35, CharSequence charSequence36, CharSequence charSequence37, CharSequence charSequence38, CharSequence charSequence39, CharSequence charSequence40, CharSequence charSequence41, CharSequence charSequence42, CharSequence charSequence43, CharSequence charSequence44, CharSequence charSequence45, CharSequence charSequence46, CharSequence charSequence47, CharSequence charSequence48, CharSequence charSequence49, CharSequence charSequence50, CharSequence charSequence51, CharSequence charSequence52, Float f2, Float f3, CharSequence charSequence53, CharSequence charSequence54, CharSequence charSequence55, Long l9, int i, int i2, int i3) { + int i4 = i & 1; + int i5 = i & 2; + int i6 = i & 4; + int i7 = i & 8; + int i8 = i & 16; + int i9 = i & 32; + int i10 = i & 64; + int i11 = i & 128; + int i12 = i & 256; + int i13 = i & 512; + int i14 = i & 1024; + int i15 = i & 2048; + int i16 = i & 4096; + int i17 = i & 8192; + int i18 = i & 16384; + int i19 = i & 32768; + int i20 = i & 65536; + int i21 = i & 131072; + int i22 = i & 262144; + int i23 = i & 524288; + int i24 = i & 1048576; + int i25 = i & 2097152; + int i26 = i & 4194304; + int i27 = i & 8388608; + int i28 = i & 16777216; + int i29 = i & 33554432; + int i30 = i & 67108864; + int i31 = 134217728 & i; + int i32 = 268435456 & i; + int i33 = 536870912 & i; + int i34 = 1073741824 & i; + int i35 = i & Integer.MIN_VALUE; + int i36 = i2 & 1; + int i37 = i2 & 2; + int i38 = i2 & 4; + int i39 = i2 & 8; + int i40 = i2 & 16; + int i41 = i2 & 32; + int i42 = i2 & 64; + int i43 = i2 & 128; + int i44 = i2 & 256; + int i45 = i2 & 512; + int i46 = i2 & 1024; + int i47 = i2 & 2048; + int i48 = i2 & 4096; + int i49 = i2 & 8192; + int i50 = i2 & 16384; + int i51 = i2 & 32768; + int i52 = i2 & 65536; + int i53 = i2 & 131072; + int i54 = i2 & 262144; + int i55 = i2 & 524288; + int i56 = i2 & 1048576; + int i57 = i2 & 2097152; + int i58 = i2 & 4194304; + int i59 = i2 & 8388608; + int i60 = i2 & 16777216; + int i61 = i2 & 33554432; + int i62 = i2 & 67108864; + int i63 = 134217728 & i2; + int i64 = 268435456 & i2; + int i65 = 536870912 & i2; + CharSequence charSequence56 = (1073741824 & i2) != 0 ? null : charSequence50; + int i66 = i2 & Integer.MIN_VALUE; + int i67 = i3 & 1; + int i68 = i3 & 2; + int i69 = i3 & 4; + int i70 = i3 & 8; + int i71 = i3 & 16; + int i72 = i3 & 32; + int i73 = i3 & 64; + this.event = null; + this.eventType = null; + this.eventId = null; + this.eventSource = null; + this.timestamp = null; + this.userId = null; + this.domain = null; + this.clientUuid = null; + this.clientTrackTimestamp = null; + this.clientSendTimestamp = null; + this.fluentId = null; + this.freightHostname = null; + this.freightId = null; + this.ip = null; + this.day = null; + this.chosenLocale = null; + this.detectedLocale = null; + this.variant = null; + this.userIsAuthenticated = null; + this.accessibilitySupportEnabled = null; + this.accessibilityFeatures = null; + this.userIsBot = null; + this.browserUserAgent = null; + this.browser = null; + this.browserVersion = null; + this.device = null; + this.deviceAdvertiserId = null; + this.deviceId = null; + this.cfduid = null; + this.cfduidSigned = null; + this.deviceVendorId = null; + this.os = null; + this.osVersion = null; + this.osSdkVersion = null; + this.osArch = null; + this.systemLocale = null; + this.clientBuildNumber = null; + this.releaseChannel = null; + this.clientVersion = null; + this.distro = null; + this.windowManager = null; + this.clientEventSource = null; + this.clientPerformanceCpu = null; + this.clientPerformanceMemory = null; + this.mpKeyword = null; + this.mpKeywordCurrent = null; + this.referrer = null; + this.referrerCurrent = null; + this.referringDomain = null; + this.referringDomainCurrent = null; + this.searchEngine = null; + this.searchEngineCurrent = null; + this.utmCampaign = null; + this.utmCampaignCurrent = null; + this.utmContent = null; + this.utmContentCurrent = null; + this.utmMedium = null; + this.utmMediumCurrent = null; + this.utmSource = null; + this.utmSourceCurrent = null; + this.utmTerm = null; + this.utmTermCurrent = null; + this.location = charSequence56; + this.city = null; + this.countryCode = null; + this.latitude = null; + this.longitude = null; + this.regionCode = null; + this.timeZone = null; + this.isp = null; + this.cpuCoreCount = null; + } public boolean equals(Object obj) { if (this == obj) { diff --git a/app/src/main/java/com/discord/api/guildmember/GuildMember.java b/app/src/main/java/com/discord/api/guildmember/GuildMember.java index 5726aef569..2e2916cc46 100644 --- a/app/src/main/java/com/discord/api/guildmember/GuildMember.java +++ b/app/src/main/java/com/discord/api/guildmember/GuildMember.java @@ -6,9 +6,12 @@ import com.discord.api.user.User; import com.discord.api.utcdatetime.UtcDateTime; import d0.z.d.m; import java.util.List; +import java.util.Objects; /* compiled from: GuildMember.kt */ public final class GuildMember { private final String avatar; + private final String banner; + private final String bio; private final long guildId; private final UtcDateTime joinedAt; private final String nick; @@ -19,7 +22,7 @@ public final class GuildMember { private final User user; private final Long userId; - public GuildMember(long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3) { + public GuildMember(long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, String str4, String str5) { m.checkNotNullParameter(user, "user"); m.checkNotNullParameter(list, "roles"); this.guildId = j; @@ -32,43 +35,45 @@ public final class GuildMember { this.presence = presence; this.userId = l; this.avatar = str3; + this.bio = str4; + this.banner = str5; } - public static GuildMember a(GuildMember guildMember, long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, int i) { + public static GuildMember a(GuildMember guildMember, long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, String str4, String str5, int i) { long j2 = (i & 1) != 0 ? guildMember.guildId : j; User user2 = (i & 2) != 0 ? guildMember.user : user; - String str4 = null; List list2 = (i & 4) != 0 ? guildMember.roles : null; - String str5 = (i & 8) != 0 ? guildMember.nick : null; - String str6 = (i & 16) != 0 ? guildMember.premiumSince : null; + String str6 = (i & 8) != 0 ? guildMember.nick : null; + String str7 = (i & 16) != 0 ? guildMember.premiumSince : null; UtcDateTime utcDateTime2 = (i & 32) != 0 ? guildMember.joinedAt : null; boolean z3 = (i & 64) != 0 ? guildMember.pending : z2; Presence presence2 = (i & 128) != 0 ? guildMember.presence : null; Long l2 = (i & 256) != 0 ? guildMember.userId : null; - if ((i & 512) != 0) { - str4 = guildMember.avatar; - } + String str8 = (i & 512) != 0 ? guildMember.avatar : null; + String str9 = (i & 1024) != 0 ? guildMember.bio : null; + String str10 = (i & 2048) != 0 ? guildMember.banner : null; + Objects.requireNonNull(guildMember); m.checkNotNullParameter(user2, "user"); m.checkNotNullParameter(list2, "roles"); - return new GuildMember(j2, user2, list2, str5, str6, utcDateTime2, z3, presence2, l2, str4); + return new GuildMember(j2, user2, list2, str6, str7, utcDateTime2, z3, presence2, l2, str8, str9, str10); } public final String b() { return this.avatar; } - public final long c() { + public final String c() { + return this.banner; + } + + public final String d() { + return this.bio; + } + + public final long e() { return this.guildId; } - public final UtcDateTime d() { - return this.joinedAt; - } - - public final String e() { - return this.nick; - } - public boolean equals(Object obj) { if (this == obj) { return true; @@ -77,19 +82,19 @@ public final class GuildMember { return false; } GuildMember guildMember = (GuildMember) obj; - return this.guildId == guildMember.guildId && m.areEqual(this.user, guildMember.user) && m.areEqual(this.roles, guildMember.roles) && m.areEqual(this.nick, guildMember.nick) && m.areEqual(this.premiumSince, guildMember.premiumSince) && m.areEqual(this.joinedAt, guildMember.joinedAt) && this.pending == guildMember.pending && m.areEqual(this.presence, guildMember.presence) && m.areEqual(this.userId, guildMember.userId) && m.areEqual(this.avatar, guildMember.avatar); + return this.guildId == guildMember.guildId && m.areEqual(this.user, guildMember.user) && m.areEqual(this.roles, guildMember.roles) && m.areEqual(this.nick, guildMember.nick) && m.areEqual(this.premiumSince, guildMember.premiumSince) && m.areEqual(this.joinedAt, guildMember.joinedAt) && this.pending == guildMember.pending && m.areEqual(this.presence, guildMember.presence) && m.areEqual(this.userId, guildMember.userId) && m.areEqual(this.avatar, guildMember.avatar) && m.areEqual(this.bio, guildMember.bio) && m.areEqual(this.banner, guildMember.banner); } - public final boolean f() { - return this.pending; + public final UtcDateTime f() { + return this.joinedAt; } public final String g() { - return this.premiumSince; + return this.nick; } - public final Presence h() { - return this.presence; + public final boolean h() { + return this.pending; } public int hashCode() { @@ -119,21 +124,33 @@ public final class GuildMember { Long l = this.userId; int hashCode7 = (hashCode6 + (l != null ? l.hashCode() : 0)) * 31; String str3 = this.avatar; - if (str3 != null) { - i2 = str3.hashCode(); + int hashCode8 = (hashCode7 + (str3 != null ? str3.hashCode() : 0)) * 31; + String str4 = this.bio; + int hashCode9 = (hashCode8 + (str4 != null ? str4.hashCode() : 0)) * 31; + String str5 = this.banner; + if (str5 != null) { + i2 = str5.hashCode(); } - return hashCode7 + i2; + return hashCode9 + i2; } - public final List i() { + public final String i() { + return this.premiumSince; + } + + public final Presence j() { + return this.presence; + } + + public final List k() { return this.roles; } - public final User j() { + public final User l() { return this.user; } - public final Long k() { + public final Long m() { return this.userId; } @@ -157,6 +174,10 @@ public final class GuildMember { R.append(", userId="); R.append(this.userId); R.append(", avatar="); - return a.H(R, this.avatar, ")"); + R.append(this.avatar); + R.append(", bio="); + R.append(this.bio); + R.append(", banner="); + return a.H(R, this.banner, ")"); } } diff --git a/app/src/main/java/com/discord/api/guildmember/PatchGuildMemberBody.java b/app/src/main/java/com/discord/api/guildmember/PatchGuildMemberBody.java index 1651dca542..536438219a 100644 --- a/app/src/main/java/com/discord/api/guildmember/PatchGuildMemberBody.java +++ b/app/src/main/java/com/discord/api/guildmember/PatchGuildMemberBody.java @@ -6,16 +6,30 @@ import d0.z.d.m; /* compiled from: PatchGuildMemberBody.kt */ public final class PatchGuildMemberBody { private final NullSerializable avatar; + private final NullSerializable banner; + private final String bio; private final String nick; public PatchGuildMemberBody() { - this.nick = null; - this.avatar = null; + this(null, null, null, null, 15); } - public PatchGuildMemberBody(String str, NullSerializable nullSerializable) { + public PatchGuildMemberBody(String str, NullSerializable nullSerializable, NullSerializable nullSerializable2, String str2) { this.nick = str; this.avatar = nullSerializable; + this.banner = nullSerializable2; + this.bio = str2; + } + + public PatchGuildMemberBody(String str, NullSerializable nullSerializable, NullSerializable nullSerializable2, String str2, int i) { + str = (i & 1) != 0 ? null : str; + nullSerializable = (i & 2) != 0 ? null : nullSerializable; + int i2 = i & 4; + int i3 = i & 8; + this.nick = str; + this.avatar = nullSerializable; + this.banner = null; + this.bio = null; } public boolean equals(Object obj) { @@ -26,7 +40,7 @@ public final class PatchGuildMemberBody { return false; } PatchGuildMemberBody patchGuildMemberBody = (PatchGuildMemberBody) obj; - return m.areEqual(this.nick, patchGuildMemberBody.nick) && m.areEqual(this.avatar, patchGuildMemberBody.avatar); + return m.areEqual(this.nick, patchGuildMemberBody.nick) && m.areEqual(this.avatar, patchGuildMemberBody.avatar) && m.areEqual(this.banner, patchGuildMemberBody.banner) && m.areEqual(this.bio, patchGuildMemberBody.bio); } public int hashCode() { @@ -34,10 +48,14 @@ public final class PatchGuildMemberBody { int i = 0; int hashCode = (str != null ? str.hashCode() : 0) * 31; NullSerializable nullSerializable = this.avatar; - if (nullSerializable != null) { - i = nullSerializable.hashCode(); + int hashCode2 = (hashCode + (nullSerializable != null ? nullSerializable.hashCode() : 0)) * 31; + NullSerializable nullSerializable2 = this.banner; + int hashCode3 = (hashCode2 + (nullSerializable2 != null ? nullSerializable2.hashCode() : 0)) * 31; + String str2 = this.bio; + if (str2 != null) { + i = str2.hashCode(); } - return hashCode + i; + return hashCode3 + i; } public String toString() { @@ -45,7 +63,9 @@ public final class PatchGuildMemberBody { R.append(this.nick); R.append(", avatar="); R.append(this.avatar); - R.append(")"); - return R.toString(); + R.append(", banner="); + R.append(this.banner); + R.append(", bio="); + return a.H(R, this.bio, ")"); } } diff --git a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEvent.java b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEvent.java index 7e846cf933..fbc50444a5 100644 --- a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEvent.java +++ b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEvent.java @@ -85,18 +85,18 @@ public final class GuildScheduledEvent { return this.channelId; } - public final String c() { + public final Long c() { + return this.creatorId; + } + + public final String d() { return this.description; } - public final GuildScheduledEventEntityMetadata d() { + public final GuildScheduledEventEntityMetadata e() { return this.entityMetadata; } - public final GuildScheduledEventEntityType e() { - return this.entityType; - } - public boolean equals(Object obj) { if (this == obj) { return true; @@ -108,16 +108,16 @@ public final class GuildScheduledEvent { return this.f1607id == guildScheduledEvent.f1607id && this.guildId == guildScheduledEvent.guildId && m.areEqual(this.channelId, guildScheduledEvent.channelId) && m.areEqual(this.creatorId, guildScheduledEvent.creatorId) && m.areEqual(this.name, guildScheduledEvent.name) && m.areEqual(this.description, guildScheduledEvent.description) && m.areEqual(this.image, guildScheduledEvent.image) && m.areEqual(this.scheduledStartTime, guildScheduledEvent.scheduledStartTime) && m.areEqual(this.scheduledEndTime, guildScheduledEvent.scheduledEndTime) && m.areEqual(this.privacyLevel, guildScheduledEvent.privacyLevel) && m.areEqual(this.status, guildScheduledEvent.status) && m.areEqual(this.entityType, guildScheduledEvent.entityType) && m.areEqual(this.entityId, guildScheduledEvent.entityId) && m.areEqual(this.entityMetadata, guildScheduledEvent.entityMetadata) && m.areEqual(this.skuIds, guildScheduledEvent.skuIds) && m.areEqual(this.userCount, guildScheduledEvent.userCount) && m.areEqual(this.userRsvp, guildScheduledEvent.userRsvp); } - public final long f() { - return this.guildId; + public final GuildScheduledEventEntityType f() { + return this.entityType; } public final long g() { - return this.f1607id; + return this.guildId; } - public final String h() { - return this.name; + public final long h() { + return this.f1607id; } public int hashCode() { @@ -160,27 +160,31 @@ public final class GuildScheduledEvent { return hashCode14 + i2; } - public final UtcDateTime i() { - return this.scheduledEndTime; + public final String i() { + return this.name; } public final UtcDateTime j() { + return this.scheduledEndTime; + } + + public final UtcDateTime k() { return this.scheduledStartTime; } - public final GuildScheduledEventStatus k() { + public final GuildScheduledEventStatus l() { return this.status; } - public final Integer l() { + public final Integer m() { return this.userCount; } - public final GuildScheduledEventUser m() { + public final GuildScheduledEventUser n() { return this.userRsvp; } - public final boolean n(long j) { + public final boolean o(long j) { Long l = this.channelId; if (l == null) { return true; diff --git a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpGuildMember.java b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpGuildMember.java index 23390c8de8..3be2476ddb 100644 --- a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpGuildMember.java +++ b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpGuildMember.java @@ -7,6 +7,11 @@ public final class GuildScheduledEventRsvpGuildMember { private final String avatar; private final String nick; + public GuildScheduledEventRsvpGuildMember(String str, String str2) { + this.avatar = str; + this.nick = str2; + } + public final String a() { return this.avatar; } diff --git a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpUser.java b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpUser.java index 7137acfa99..87b1035b79 100644 --- a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpUser.java +++ b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventRsvpUser.java @@ -12,6 +12,14 @@ public final class GuildScheduledEventRsvpUser { private final long f1608id; private final String username; + public GuildScheduledEventRsvpUser(String str, String str2, long j, String str3, GuildScheduledEventRsvpGuildMember guildScheduledEventRsvpGuildMember) { + this.avatar = str; + this.discriminator = str2; + this.f1608id = j; + this.username = str3; + this.guildMember = guildScheduledEventRsvpGuildMember; + } + public final String a() { return this.avatar; } diff --git a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate.java b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate.java index 7e0c8dfd3f..39243e9cf4 100644 --- a/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate.java +++ b/app/src/main/java/com/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate.java @@ -3,6 +3,7 @@ package com.discord.api.guildscheduledevent; import c.d.b.a.a; /* compiled from: GuildScheduledEventUserUpdate.kt */ public final class GuildScheduledEventUserUpdate { + private final long guildId; private final long guildScheduledEventId; private final long userId; @@ -22,18 +23,21 @@ public final class GuildScheduledEventUserUpdate { return false; } GuildScheduledEventUserUpdate guildScheduledEventUserUpdate = (GuildScheduledEventUserUpdate) obj; - return this.guildScheduledEventId == guildScheduledEventUserUpdate.guildScheduledEventId && this.userId == guildScheduledEventUserUpdate.userId; + return this.guildScheduledEventId == guildScheduledEventUserUpdate.guildScheduledEventId && this.guildId == guildScheduledEventUserUpdate.guildId && this.userId == guildScheduledEventUserUpdate.userId; } public int hashCode() { long j = this.guildScheduledEventId; - long j2 = this.userId; - return (((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32))); + long j2 = this.guildId; + long j3 = this.userId; + return (((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31) + ((int) (j3 ^ (j3 >>> 32))); } public String toString() { StringBuilder R = a.R("GuildScheduledEventUserUpdate(guildScheduledEventId="); R.append(this.guildScheduledEventId); + R.append(", guildId="); + R.append(this.guildId); R.append(", userId="); return a.B(R, this.userId, ")"); } diff --git a/app/src/main/java/com/discord/databinding/GuildScheduledEventItemViewBinding.java b/app/src/main/java/com/discord/databinding/GuildScheduledEventItemViewBinding.java index 3d4934a7b7..a2e3481a78 100644 --- a/app/src/main/java/com/discord/databinding/GuildScheduledEventItemViewBinding.java +++ b/app/src/main/java/com/discord/databinding/GuildScheduledEventItemViewBinding.java @@ -21,15 +21,15 @@ public final class GuildScheduledEventItemViewBinding implements ViewBinding { /* renamed from: c reason: collision with root package name */ public final ConstraintLayout f1665c; @NonNull - public final GuildScheduledEventDateView d; + public final SimpleDraweeView d; @NonNull - public final LinkifiedTextView e; + public final GuildScheduledEventDateView e; @NonNull - public final TextView f; + public final LinkifiedTextView f; @NonNull - public final SimpleDraweeView g; + public final TextView g; @NonNull - public final TextView h; + public final SimpleDraweeView h; @NonNull public final TextView i; @NonNull @@ -37,24 +37,27 @@ public final class GuildScheduledEventItemViewBinding implements ViewBinding { @NonNull public final TextView k; @NonNull - public final ImageView l; + public final TextView l; @NonNull - public final LinkifiedTextView m; + public final ImageView m; + @NonNull + public final LinkifiedTextView n; - public GuildScheduledEventItemViewBinding(@NonNull ConstraintLayout constraintLayout, @NonNull GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, @NonNull ConstraintLayout constraintLayout2, @NonNull GuildScheduledEventDateView guildScheduledEventDateView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull Barrier barrier, @NonNull ImageView imageView, @NonNull LinkifiedTextView linkifiedTextView2) { + public GuildScheduledEventItemViewBinding(@NonNull ConstraintLayout constraintLayout, @NonNull GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, @NonNull ConstraintLayout constraintLayout2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull GuildScheduledEventDateView guildScheduledEventDateView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull Barrier barrier, @NonNull ImageView imageView, @NonNull LinkifiedTextView linkifiedTextView2) { this.a = constraintLayout; this.b = guildScheduledEventBottomButtonView; this.f1665c = constraintLayout2; - this.d = guildScheduledEventDateView; - this.e = linkifiedTextView; - this.f = textView; - this.g = simpleDraweeView; - this.h = textView2; - this.i = textView3; - this.j = textView4; - this.k = textView5; - this.l = imageView; - this.m = linkifiedTextView2; + this.d = simpleDraweeView; + this.e = guildScheduledEventDateView; + this.f = linkifiedTextView; + this.g = textView; + this.h = simpleDraweeView2; + this.i = textView2; + this.j = textView3; + this.k = textView4; + this.l = textView5; + this.m = imageView; + this.n = linkifiedTextView2; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/com/discord/databinding/WidgetEditProfileBannerSheetBinding.java b/app/src/main/java/com/discord/databinding/WidgetEditProfileBannerSheetBinding.java index 495530cdad..eef8c1d539 100644 --- a/app/src/main/java/com/discord/databinding/WidgetEditProfileBannerSheetBinding.java +++ b/app/src/main/java/com/discord/databinding/WidgetEditProfileBannerSheetBinding.java @@ -20,20 +20,23 @@ public final class WidgetEditProfileBannerSheetBinding implements ViewBinding { @NonNull public final ConstraintLayout d; @NonNull - public final ImageView e; + public final MaterialTextView e; @NonNull - public final MaterialTextView f; + public final ImageView f; @NonNull - public final MaterialButton g; + public final MaterialTextView g; + @NonNull + public final MaterialButton h; public WidgetEditProfileBannerSheetBinding(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull MaterialTextView materialTextView, @NonNull MaterialTextView materialTextView2, @NonNull ConstraintLayout constraintLayout, @NonNull MaterialTextView materialTextView3, @NonNull MaterialTextView materialTextView4, @NonNull ImageView imageView, @NonNull MaterialTextView materialTextView5, @NonNull MaterialButton materialButton) { this.a = linearLayout; this.b = linearLayout2; this.f1845c = materialTextView2; this.d = constraintLayout; - this.e = imageView; - this.f = materialTextView5; - this.g = materialButton; + this.e = materialTextView4; + this.f = imageView; + this.g = materialTextView5; + this.h = materialButton; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/com/discord/databinding/WidgetGuildScheduledEventDetailsBottomSheetBinding.java b/app/src/main/java/com/discord/databinding/WidgetGuildScheduledEventDetailsBottomSheetBinding.java index c4d8953218..79942d29ba 100644 --- a/app/src/main/java/com/discord/databinding/WidgetGuildScheduledEventDetailsBottomSheetBinding.java +++ b/app/src/main/java/com/discord/databinding/WidgetGuildScheduledEventDetailsBottomSheetBinding.java @@ -27,61 +27,67 @@ public final class WidgetGuildScheduledEventDetailsBottomSheetBinding implements @NonNull public final LinkifiedTextView d; @NonNull - public final GuildScheduledEventDateView e; + public final TextView e; @NonNull - public final LinkifiedTextView f; + public final SimpleDraweeView f; @NonNull - public final SimpleDraweeView g; + public final GuildScheduledEventDateView g; @NonNull - public final TextView h; + public final LinkifiedTextView h; @NonNull - public final TextView i; + public final SimpleDraweeView i; @NonNull - public final ImageView j; + public final TextView j; @NonNull public final TextView k; @NonNull - public final ConstraintLayout l; + public final ImageView l; @NonNull public final TextView m; @NonNull public final ConstraintLayout n; @NonNull - public final ConstraintLayout o; + public final TextView o; @NonNull - public final RecyclerView p; + public final ConstraintLayout p; @NonNull - public final ProgressBar q; + public final ConstraintLayout q; @NonNull - public final SegmentedControlContainer r; + public final RecyclerView r; @NonNull /* renamed from: s reason: collision with root package name */ - public final CardSegment f1907s; + public final ProgressBar f1907s; @NonNull - public final CardSegment t; + public final SegmentedControlContainer t; + @NonNull + public final CardSegment u; + @NonNull + public final CardSegment v; - public WidgetGuildScheduledEventDetailsBottomSheetBinding(@NonNull NestedScrollView nestedScrollView, @NonNull GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, @NonNull ImageView imageView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull GuildScheduledEventDateView guildScheduledEventDateView, @NonNull LinkifiedTextView linkifiedTextView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ImageView imageView2, @NonNull TextView textView3, @NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView3, @NonNull TextView textView4, @NonNull ConstraintLayout constraintLayout2, @NonNull ConstraintLayout constraintLayout3, @NonNull RecyclerView recyclerView, @NonNull ProgressBar progressBar, @NonNull ConstraintLayout constraintLayout4, @NonNull SegmentedControlContainer segmentedControlContainer, @NonNull CardSegment cardSegment, @NonNull CardSegment cardSegment2) { + public WidgetGuildScheduledEventDetailsBottomSheetBinding(@NonNull NestedScrollView nestedScrollView, @NonNull GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, @NonNull ImageView imageView, @NonNull LinkifiedTextView linkifiedTextView, @NonNull TextView textView, @NonNull SimpleDraweeView simpleDraweeView, @NonNull GuildScheduledEventDateView guildScheduledEventDateView, @NonNull LinkifiedTextView linkifiedTextView2, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull ImageView imageView2, @NonNull TextView textView4, @NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView3, @NonNull TextView textView5, @NonNull ConstraintLayout constraintLayout2, @NonNull ConstraintLayout constraintLayout3, @NonNull RecyclerView recyclerView, @NonNull ProgressBar progressBar, @NonNull ConstraintLayout constraintLayout4, @NonNull SegmentedControlContainer segmentedControlContainer, @NonNull CardSegment cardSegment, @NonNull CardSegment cardSegment2) { this.a = nestedScrollView; this.b = guildScheduledEventBottomButtonView; this.f1906c = imageView; this.d = linkifiedTextView; - this.e = guildScheduledEventDateView; - this.f = linkifiedTextView2; - this.g = simpleDraweeView; - this.h = textView; - this.i = textView2; - this.j = imageView2; + this.e = textView; + this.f = simpleDraweeView; + this.g = guildScheduledEventDateView; + this.h = linkifiedTextView2; + this.i = simpleDraweeView2; + this.j = textView2; this.k = textView3; - this.l = constraintLayout; + this.l = imageView2; this.m = textView4; - this.n = constraintLayout2; - this.o = constraintLayout3; - this.p = recyclerView; - this.q = progressBar; - this.r = segmentedControlContainer; - this.f1907s = cardSegment; - this.t = cardSegment2; + this.n = constraintLayout; + this.o = textView5; + this.p = constraintLayout2; + this.q = constraintLayout3; + this.r = recyclerView; + this.f1907s = progressBar; + this.t = segmentedControlContainer; + this.u = cardSegment; + this.v = cardSegment2; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/com/discord/databinding/WidgetSettingsBinding.java b/app/src/main/java/com/discord/databinding/WidgetSettingsBinding.java index 7ee31ab5d6..7cd85e3e7b 100644 --- a/app/src/main/java/com/discord/databinding/WidgetSettingsBinding.java +++ b/app/src/main/java/com/discord/databinding/WidgetSettingsBinding.java @@ -4,6 +4,7 @@ import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.NonNull; +import androidx.appcompat.widget.AppCompatImageView; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.viewbinding.ViewBinding; import com.discord.views.StatusView; @@ -13,15 +14,15 @@ public final class WidgetSettingsBinding implements ViewBinding { @NonNull public final TextView A; @NonNull - public final LinearLayout B; + public final TextView B; @NonNull - public final TextView C; + public final LinearLayout C; @NonNull public final TextView D; @NonNull - public final StatusView E; + public final TextView E; @NonNull - public final TextView F; + public final StatusView F; @NonNull public final TextView G; @NonNull @@ -29,9 +30,11 @@ public final class WidgetSettingsBinding implements ViewBinding { @NonNull public final TextView I; @NonNull - public final UserProfileHeaderView J; + public final TextView J; @NonNull - public final TextView K; + public final UserProfileHeaderView K; + @NonNull + public final TextView L; @NonNull public final CoordinatorLayout a; @NonNull @@ -81,11 +84,11 @@ public final class WidgetSettingsBinding implements ViewBinding { @NonNull public final LinearLayout v; @NonNull - public final MaterialButton w; + public final AppCompatImageView w; @NonNull /* renamed from: x reason: collision with root package name */ - public final TextView f2039x; + public final MaterialButton f2039x; @NonNull /* renamed from: y reason: collision with root package name */ @@ -95,7 +98,7 @@ public final class WidgetSettingsBinding implements ViewBinding { /* renamed from: z reason: collision with root package name */ public final TextView f2041z; - public WidgetSettingsBinding(@NonNull CoordinatorLayout coordinatorLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull TextView textView6, @NonNull TextView textView7, @NonNull TextView textView8, @NonNull TextView textView9, @NonNull TextView textView10, @NonNull TextView textView11, @NonNull TextView textView12, @NonNull View view, @NonNull TextView textView13, @NonNull TextView textView14, @NonNull TextView textView15, @NonNull TextView textView16, @NonNull TextView textView17, @NonNull LinearLayout linearLayout, @NonNull TextView textView18, @NonNull LinearLayout linearLayout2, @NonNull LinearLayout linearLayout3, @NonNull MaterialButton materialButton, @NonNull TextView textView19, @NonNull TextView textView20, @NonNull TextView textView21, @NonNull TextView textView22, @NonNull LinearLayout linearLayout4, @NonNull TextView textView23, @NonNull TextView textView24, @NonNull TextView textView25, @NonNull StatusView statusView, @NonNull TextView textView26, @NonNull TextView textView27, @NonNull TextView textView28, @NonNull TextView textView29, @NonNull UserProfileHeaderView userProfileHeaderView, @NonNull TextView textView30) { + public WidgetSettingsBinding(@NonNull CoordinatorLayout coordinatorLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull TextView textView6, @NonNull TextView textView7, @NonNull TextView textView8, @NonNull TextView textView9, @NonNull TextView textView10, @NonNull TextView textView11, @NonNull TextView textView12, @NonNull View view, @NonNull TextView textView13, @NonNull TextView textView14, @NonNull TextView textView15, @NonNull TextView textView16, @NonNull TextView textView17, @NonNull LinearLayout linearLayout, @NonNull TextView textView18, @NonNull LinearLayout linearLayout2, @NonNull LinearLayout linearLayout3, @NonNull AppCompatImageView appCompatImageView, @NonNull MaterialButton materialButton, @NonNull TextView textView19, @NonNull TextView textView20, @NonNull TextView textView21, @NonNull TextView textView22, @NonNull LinearLayout linearLayout4, @NonNull TextView textView23, @NonNull TextView textView24, @NonNull TextView textView25, @NonNull StatusView statusView, @NonNull TextView textView26, @NonNull TextView textView27, @NonNull TextView textView28, @NonNull TextView textView29, @NonNull UserProfileHeaderView userProfileHeaderView, @NonNull TextView textView30) { this.a = coordinatorLayout; this.b = textView; this.f2037c = textView2; @@ -118,21 +121,22 @@ public final class WidgetSettingsBinding implements ViewBinding { this.t = textView18; this.u = linearLayout2; this.v = linearLayout3; - this.w = materialButton; - this.f2039x = textView19; - this.f2040y = textView20; - this.f2041z = textView21; - this.A = textView22; - this.B = linearLayout4; - this.C = textView24; - this.D = textView25; - this.E = statusView; - this.F = textView26; - this.G = textView27; - this.H = textView28; - this.I = textView29; - this.J = userProfileHeaderView; - this.K = textView30; + this.w = appCompatImageView; + this.f2039x = materialButton; + this.f2040y = textView19; + this.f2041z = textView20; + this.A = textView21; + this.B = textView22; + this.C = linearLayout4; + this.D = textView24; + this.E = textView25; + this.F = statusView; + this.G = textView26; + this.H = textView27; + this.I = textView28; + this.J = textView29; + this.K = userProfileHeaderView; + this.L = textView30; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/com/discord/databinding/WidgetSettingsUserProfileBinding.java b/app/src/main/java/com/discord/databinding/WidgetSettingsUserProfileBinding.java index 8482506cd9..9fa7625747 100644 --- a/app/src/main/java/com/discord/databinding/WidgetSettingsUserProfileBinding.java +++ b/app/src/main/java/com/discord/databinding/WidgetSettingsUserProfileBinding.java @@ -26,26 +26,44 @@ public final class WidgetSettingsUserProfileBinding implements ViewBinding { @NonNull public final TextInputLayout d; @NonNull - public final CardView e; + public final TextView e; @NonNull - public final LinkifiedTextView f; + public final TextView f; @NonNull - public final DimmerView g; + public final CardView g; @NonNull - public final FloatingActionButton h; + public final LinkifiedTextView h; @NonNull - public final UserProfileHeaderView i; + public final DimmerView i; + @NonNull + public final TextView j; + @NonNull + public final LinearLayout k; + @NonNull + public final LinearLayout l; + @NonNull + public final FloatingActionButton m; + @NonNull + public final TextInputLayout n; + @NonNull + public final UserProfileHeaderView o; - public WidgetSettingsUserProfileBinding(@NonNull TouchInterceptingCoordinatorLayout touchInterceptingCoordinatorLayout, @NonNull CardView cardView, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull TextView textView, @NonNull CardView cardView2, @NonNull LinkifiedTextView linkifiedTextView, @NonNull DimmerView dimmerView, @NonNull LinearLayout linearLayout, @NonNull FloatingActionButton floatingActionButton, @NonNull NestedScrollView nestedScrollView, @NonNull UserProfileHeaderView userProfileHeaderView) { + public WidgetSettingsUserProfileBinding(@NonNull TouchInterceptingCoordinatorLayout touchInterceptingCoordinatorLayout, @NonNull CardView cardView, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull CardView cardView2, @NonNull LinkifiedTextView linkifiedTextView, @NonNull DimmerView dimmerView, @NonNull TextView textView3, @NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull CardView cardView3, @NonNull TextView textView4, @NonNull LinearLayout linearLayout3, @NonNull FloatingActionButton floatingActionButton, @NonNull TextInputLayout textInputLayout2, @NonNull NestedScrollView nestedScrollView, @NonNull UserProfileHeaderView userProfileHeaderView) { this.a = touchInterceptingCoordinatorLayout; this.b = cardView; this.f2064c = textInputEditText; this.d = textInputLayout; - this.e = cardView2; - this.f = linkifiedTextView; - this.g = dimmerView; - this.h = floatingActionButton; - this.i = userProfileHeaderView; + this.e = textView; + this.f = textView2; + this.g = cardView2; + this.h = linkifiedTextView; + this.i = dimmerView; + this.j = textView3; + this.k = linearLayout; + this.l = linearLayout2; + this.m = floatingActionButton; + this.n = textInputLayout2; + this.o = userProfileHeaderView; } @Override // androidx.viewbinding.ViewBinding diff --git a/app/src/main/java/com/discord/gateway/io/IncomingParser.java b/app/src/main/java/com/discord/gateway/io/IncomingParser.java index 1cc62f5b61..88557cc82d 100644 --- a/app/src/main/java/com/discord/gateway/io/IncomingParser.java +++ b/app/src/main/java/com/discord/gateway/io/IncomingParser.java @@ -72,112 +72,118 @@ public final class IncomingParser implements Model { this.log = function1; } - /* JADX WARNING: Code restructure failed: missing block: B:101:0x0226, code lost: - if (r3.equals("INTERACTION_SUCCESS") != false) goto L_0x03f7; + /* JADX WARNING: Code restructure failed: missing block: B:101:0x0224, code lost: + if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_MESSAGE_CREATE) != false) goto L_0x0226; */ - /* JADX WARNING: Code restructure failed: missing block: B:106:0x0242, code lost: - if (r3.equals("CALL_UPDATE") != false) goto L_0x033a; + /* JADX WARNING: Code restructure failed: missing block: B:102:0x0226, code lost: + r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.message.Message.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:108:0x024c, code lost: - if (r3.equals("GUILD_UPDATE") != false) goto L_0x0358; + /* JADX WARNING: Code restructure failed: missing block: B:104:0x0236, code lost: + if (r3.equals("INTERACTION_SUCCESS") != false) goto L_0x0407; */ - /* JADX WARNING: Code restructure failed: missing block: B:122:0x02d0, code lost: - if (r3.equals("GUILD_MEMBER_UPDATE") != false) goto L_0x0452; + /* JADX WARNING: Code restructure failed: missing block: B:109:0x0252, code lost: + if (r3.equals("CALL_UPDATE") != false) goto L_0x034a; */ - /* JADX WARNING: Code restructure failed: missing block: B:127:0x02ec, code lost: - if (r3.equals("MESSAGE_DELETE_BULK") != false) goto L_0x02ee; + /* JADX WARNING: Code restructure failed: missing block: B:111:0x025c, code lost: + if (r3.equals("GUILD_UPDATE") != false) goto L_0x0368; */ - /* JADX WARNING: Code restructure failed: missing block: B:128:0x02ee, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:125:0x02e0, code lost: + if (r3.equals("GUILD_MEMBER_UPDATE") != false) goto L_0x0462; + */ + /* JADX WARNING: Code restructure failed: missing block: B:130:0x02fc, code lost: + if (r3.equals("MESSAGE_DELETE_BULK") != false) goto L_0x02fe; + */ + /* JADX WARNING: Code restructure failed: missing block: B:131:0x02fe, code lost: r6.data = r7.parse(new com.discord.models.domain.ModelMessageDelete()); */ - /* JADX WARNING: Code restructure failed: missing block: B:133:0x0313, code lost: - if (r3.equals("CHANNEL_UPDATE") != false) goto L_0x0397; + /* JADX WARNING: Code restructure failed: missing block: B:136:0x0323, code lost: + if (r3.equals("CHANNEL_UPDATE") != false) goto L_0x03a7; */ - /* JADX WARNING: Code restructure failed: missing block: B:138:0x032f, code lost: - if (r3.equals("CALL_DELETE") != false) goto L_0x033a; + /* JADX WARNING: Code restructure failed: missing block: B:141:0x033f, code lost: + if (r3.equals("CALL_DELETE") != false) goto L_0x034a; */ - /* JADX WARNING: Code restructure failed: missing block: B:140:0x0338, code lost: - if (r3.equals("CALL_CREATE") != false) goto L_0x033a; + /* JADX WARNING: Code restructure failed: missing block: B:143:0x0348, code lost: + if (r3.equals("CALL_CREATE") != false) goto L_0x034a; */ - /* JADX WARNING: Code restructure failed: missing block: B:141:0x033a, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:144:0x034a, code lost: r6.data = r7.parse(new com.discord.models.domain.ModelCall()); */ - /* JADX WARNING: Code restructure failed: missing block: B:143:0x034d, code lost: - if (r3.equals("GUILD_DELETE") != false) goto L_0x0358; + /* JADX WARNING: Code restructure failed: missing block: B:146:0x035d, code lost: + if (r3.equals("GUILD_DELETE") != false) goto L_0x0368; */ - /* JADX WARNING: Code restructure failed: missing block: B:145:0x0356, code lost: - if (r3.equals("GUILD_CREATE") != false) goto L_0x0358; + /* JADX WARNING: Code restructure failed: missing block: B:148:0x0366, code lost: + if (r3.equals("GUILD_CREATE") != false) goto L_0x0368; */ - /* JADX WARNING: Code restructure failed: missing block: B:146:0x0358, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:149:0x0368, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.guild.Guild.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:151:0x037a, code lost: - if (r3.equals("CHANNEL_RECIPIENT_REMOVE") != false) goto L_0x037c; + /* JADX WARNING: Code restructure failed: missing block: B:154:0x038a, code lost: + if (r3.equals("CHANNEL_RECIPIENT_REMOVE") != false) goto L_0x038c; */ - /* JADX WARNING: Code restructure failed: missing block: B:152:0x037c, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:155:0x038c, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.channel.ChannelRecipient.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:154:0x038c, code lost: - if (r3.equals("CHANNEL_DELETE") != false) goto L_0x0397; - */ - /* JADX WARNING: Code restructure failed: missing block: B:156:0x0395, code lost: - if (r3.equals("CHANNEL_CREATE") != false) goto L_0x0397; - */ - /* JADX WARNING: Code restructure failed: missing block: B:157:0x0397, code lost: - r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.channel.Channel.class); + /* JADX WARNING: Code restructure failed: missing block: B:157:0x039c, code lost: + if (r3.equals("CHANNEL_DELETE") != false) goto L_0x03a7; */ /* JADX WARNING: Code restructure failed: missing block: B:159:0x03a5, code lost: - if (r3.equals("RELATIONSHIP_REMOVE") != false) goto L_0x048b; + if (r3.equals("CHANNEL_CREATE") != false) goto L_0x03a7; */ - /* JADX WARNING: Code restructure failed: missing block: B:161:0x03af, code lost: - if (r3.equals("STAGE_INSTANCE_UPDATE") != false) goto L_0x0479; + /* JADX WARNING: Code restructure failed: missing block: B:160:0x03a7, code lost: + r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.channel.Channel.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:172:0x03f5, code lost: - if (r3.equals("INTERACTION_CREATE") != false) goto L_0x03f7; + /* JADX WARNING: Code restructure failed: missing block: B:162:0x03b5, code lost: + if (r3.equals("RELATIONSHIP_REMOVE") != false) goto L_0x049b; */ - /* JADX WARNING: Code restructure failed: missing block: B:173:0x03f7, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:164:0x03bf, code lost: + if (r3.equals("STAGE_INSTANCE_UPDATE") != false) goto L_0x0489; + */ + /* JADX WARNING: Code restructure failed: missing block: B:175:0x0405, code lost: + if (r3.equals("INTERACTION_CREATE") != false) goto L_0x0407; + */ + /* JADX WARNING: Code restructure failed: missing block: B:176:0x0407, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.interaction.InteractionStateUpdate.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:184:0x043d, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:187:0x044d, code lost: if (r3.equals("MESSAGE_REACTION_ADD") != false) goto L_0x05a3; */ - /* JADX WARNING: Code restructure failed: missing block: B:186:0x0447, code lost: - if (r3.equals("STAGE_INSTANCE_DELETE") != false) goto L_0x0479; + /* JADX WARNING: Code restructure failed: missing block: B:189:0x0457, code lost: + if (r3.equals("STAGE_INSTANCE_DELETE") != false) goto L_0x0489; */ - /* JADX WARNING: Code restructure failed: missing block: B:188:0x0450, code lost: - if (r3.equals("GUILD_MEMBER_ADD") != false) goto L_0x0452; + /* JADX WARNING: Code restructure failed: missing block: B:191:0x0460, code lost: + if (r3.equals("GUILD_MEMBER_ADD") != false) goto L_0x0462; */ - /* JADX WARNING: Code restructure failed: missing block: B:189:0x0452, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:192:0x0462, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.guildmember.GuildMember.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:191:0x0462, code lost: - if (r3.equals("GUILD_BAN_ADD") != false) goto L_0x0464; + /* JADX WARNING: Code restructure failed: missing block: B:194:0x0472, code lost: + if (r3.equals("GUILD_BAN_ADD") != false) goto L_0x0474; */ - /* JADX WARNING: Code restructure failed: missing block: B:192:0x0464, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:195:0x0474, code lost: r6.data = r7.parse(new com.discord.models.domain.ModelBan()); */ - /* JADX WARNING: Code restructure failed: missing block: B:194:0x0477, code lost: - if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_STAGE_INSTANCE_CREATE) != false) goto L_0x0479; + /* JADX WARNING: Code restructure failed: missing block: B:197:0x0487, code lost: + if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_STAGE_INSTANCE_CREATE) != false) goto L_0x0489; */ - /* JADX WARNING: Code restructure failed: missing block: B:195:0x0479, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:198:0x0489, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.stageinstance.StageInstance.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:197:0x0489, code lost: - if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_RELATIONSHIP_ADD) != false) goto L_0x048b; + /* JADX WARNING: Code restructure failed: missing block: B:200:0x0499, code lost: + if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_RELATIONSHIP_ADD) != false) goto L_0x049b; */ - /* JADX WARNING: Code restructure failed: missing block: B:198:0x048b, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:201:0x049b, code lost: r6.data = r7.parse(new com.discord.models.domain.ModelUserRelationship()); */ - /* JADX WARNING: Code restructure failed: missing block: B:209:0x04d2, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:215:0x04f2, code lost: if (r3.equals("MESSAGE_REACTION_REMOVE_ALL") != false) goto L_0x05a3; */ - /* JADX WARNING: Code restructure failed: missing block: B:211:0x04dc, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:217:0x04fc, code lost: if (r3.equals("GUILD_JOIN_REQUEST_UPDATE") != false) goto L_0x0592; */ - /* JADX WARNING: Code restructure failed: missing block: B:222:0x051a, code lost: - if (r3.equals("USER_CONNECTIONS_INTEGRATION_JOINING") != false) goto L_0x051c; + /* JADX WARNING: Code restructure failed: missing block: B:225:0x052a, code lost: + if (r3.equals("USER_CONNECTIONS_INTEGRATION_JOINING") != false) goto L_0x052c; */ - /* JADX WARNING: Code restructure failed: missing block: B:223:0x051c, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:226:0x052c, code lost: r7.skipValue(); r6.data = kotlin.Unit.a; */ @@ -193,31 +199,28 @@ public final class IncomingParser implements Model { /* JADX WARNING: Code restructure failed: missing block: B:247:0x05a3, code lost: r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.message.reaction.MessageReactionUpdate.class); */ - /* JADX WARNING: Code restructure failed: missing block: B:270:?, code lost: - return; - */ /* JADX WARNING: Code restructure failed: missing block: B:271:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:278:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:272:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:281:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:279:?, code lost: return; */ /* JADX WARNING: Code restructure failed: missing block: B:282:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:284:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:283:?, code lost: return; */ /* JADX WARNING: Code restructure failed: missing block: B:285:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:289:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:286:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:293:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:290:?, code lost: return; */ /* JADX WARNING: Code restructure failed: missing block: B:294:?, code lost: @@ -229,7 +232,10 @@ public final class IncomingParser implements Model { /* JADX WARNING: Code restructure failed: missing block: B:296:?, code lost: return; */ - /* JADX WARNING: Code restructure failed: missing block: B:303:?, code lost: + /* JADX WARNING: Code restructure failed: missing block: B:297:?, code lost: + return; + */ + /* JADX WARNING: Code restructure failed: missing block: B:304:?, code lost: return; */ /* JADX WARNING: Code restructure failed: missing block: B:310:?, code lost: @@ -239,43 +245,37 @@ public final class IncomingParser implements Model { return; */ /* JADX WARNING: Code restructure failed: missing block: B:50:0x0103, code lost: - if (r3.equals("THREAD_UPDATE") != false) goto L_0x01e8; + if (r3.equals("THREAD_UPDATE") != false) goto L_0x01f8; */ - /* JADX WARNING: Code restructure failed: missing block: B:61:0x0146, code lost: - if (r3.equals("GUILD_BAN_REMOVE") != false) goto L_0x0464; + /* JADX WARNING: Code restructure failed: missing block: B:64:0x0156, code lost: + if (r3.equals("GUILD_BAN_REMOVE") != false) goto L_0x0474; */ - /* JADX WARNING: Code restructure failed: missing block: B:66:0x0162, code lost: - if (r3.equals("INTERACTION_FAILURE") != false) goto L_0x03f7; + /* JADX WARNING: Code restructure failed: missing block: B:69:0x0172, code lost: + if (r3.equals("INTERACTION_FAILURE") != false) goto L_0x0407; */ - /* JADX WARNING: Code restructure failed: missing block: B:68:0x016c, code lost: - if (r3.equals("MESSAGE_UPDATE") != false) goto L_0x0216; + /* JADX WARNING: Code restructure failed: missing block: B:71:0x017c, code lost: + if (r3.equals("MESSAGE_UPDATE") != false) goto L_0x0226; */ - /* JADX WARNING: Code restructure failed: missing block: B:73:0x0188, code lost: - if (r3.equals("USER_CONNECTIONS_UPDATE") != false) goto L_0x051c; + /* JADX WARNING: Code restructure failed: missing block: B:76:0x0198, code lost: + if (r3.equals("USER_CONNECTIONS_UPDATE") != false) goto L_0x052c; */ - /* JADX WARNING: Code restructure failed: missing block: B:81:0x01b9, code lost: - if (r3.equals("THREAD_DELETE") != false) goto L_0x01e8; - */ - /* JADX WARNING: Code restructure failed: missing block: B:89:0x01e6, code lost: - if (r3.equals("THREAD_CREATE") != false) goto L_0x01e8; - */ - /* JADX WARNING: Code restructure failed: missing block: B:90:0x01e8, code lost: - r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.channel.Channel.class); + /* JADX WARNING: Code restructure failed: missing block: B:84:0x01c9, code lost: + if (r3.equals("THREAD_DELETE") != false) goto L_0x01f8; */ /* JADX WARNING: Code restructure failed: missing block: B:92:0x01f6, code lost: + if (r3.equals("THREAD_CREATE") != false) goto L_0x01f8; + */ + /* JADX WARNING: Code restructure failed: missing block: B:93:0x01f8, code lost: + r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.channel.Channel.class); + */ + /* JADX WARNING: Code restructure failed: missing block: B:95:0x0206, code lost: if (r3.equals("MESSAGE_REACTION_REMOVE") != false) goto L_0x05a3; */ - /* JADX WARNING: Code restructure failed: missing block: B:94:0x0200, code lost: - if (r3.equals("CHANNEL_RECIPIENT_ADD") != false) goto L_0x037c; + /* JADX WARNING: Code restructure failed: missing block: B:97:0x0210, code lost: + if (r3.equals("CHANNEL_RECIPIENT_ADD") != false) goto L_0x038c; */ - /* JADX WARNING: Code restructure failed: missing block: B:96:0x020a, code lost: - if (r3.equals("MESSAGE_DELETE") != false) goto L_0x02ee; - */ - /* JADX WARNING: Code restructure failed: missing block: B:98:0x0214, code lost: - if (r3.equals(com.discord.utilities.fcm.NotificationData.TYPE_MESSAGE_CREATE) != false) goto L_0x0216; - */ - /* JADX WARNING: Code restructure failed: missing block: B:99:0x0216, code lost: - r6.data = com.discord.models.deserialization.gson.InboundGatewayGsonParser.fromJson(r7, com.discord.api.message.Message.class); + /* JADX WARNING: Code restructure failed: missing block: B:99:0x021a, code lost: + if (r3.equals("MESSAGE_DELETE") != false) goto L_0x02fe; */ @Override // com.discord.models.domain.Model public void assignField(Model.JsonReader jsonReader) throws IOException { @@ -342,20 +342,8 @@ public final class IncomingParser implements Model { return; } break; - case -1902625779: - if (str.equals("GUILD_SCHEDULED_EVENT_USER_CREATE")) { - this.data = InboundGatewayGsonParser.fromJson(jsonReader, GuildScheduledEventUserUpdate.class); - return; - } - break; case -1893369777: break; - case -1885790020: - if (str.equals("GUILD_SCHEDULED_EVENT_USER_DELETE")) { - this.data = InboundGatewayGsonParser.fromJson(jsonReader, GuildScheduledEventUserUpdate.class); - return; - } - break; case -1862771270: if (str.equals("THREAD_MEMBER_LIST_UPDATE")) { this.data = InboundGatewayGsonParser.fromJson(jsonReader, ThreadMemberListUpdate.class); @@ -378,6 +366,12 @@ public final class IncomingParser implements Model { return; } break; + case -1484942443: + if (str.equals("GUILD_SCHEDULED_EVENT_USER_REMOVE")) { + this.data = InboundGatewayGsonParser.fromJson(jsonReader, GuildScheduledEventUserUpdate.class); + return; + } + break; case -1467383482: if (str.equals("USER_REQUIRED_ACTION_UPDATE")) { this.data = InboundGatewayGsonParser.fromJson(jsonReader, UserRequiredActionUpdate.class); @@ -605,6 +599,12 @@ public final class IncomingParser implements Model { return; } break; + case 1737758480: + if (str.equals("GUILD_SCHEDULED_EVENT_USER_ADD")) { + this.data = InboundGatewayGsonParser.fromJson(jsonReader, GuildScheduledEventUserUpdate.class); + return; + } + break; case 1781835934: break; case 1882183896: diff --git a/app/src/main/java/com/discord/models/domain/ModelInvite.java b/app/src/main/java/com/discord/models/domain/ModelInvite.java index 2096325058..c8716ae99e 100644 --- a/app/src/main/java/com/discord/models/domain/ModelInvite.java +++ b/app/src/main/java/com/discord/models/domain/ModelInvite.java @@ -350,7 +350,7 @@ public class ModelInvite implements Serializable { public String toLink(Resources resources, String str) { Channel channel; GuildScheduledEvent guildScheduledEvent = this.guildScheduledEvent; - return (guildScheduledEvent == null || (channel = this.channel) == null || !guildScheduledEvent.n(channel.h())) ? String.format(URL_FORMAT, str, this.code) : String.format(URL_FORMAT_WITH_EVENT, str, this.code, Long.valueOf(this.guildScheduledEvent.g())); + return (guildScheduledEvent == null || (channel = this.channel) == null || !guildScheduledEvent.o(channel.h())) ? String.format(URL_FORMAT, str, this.code) : String.format(URL_FORMAT_WITH_EVENT, str, this.code, Long.valueOf(this.guildScheduledEvent.h())); } @Override // java.lang.Object diff --git a/app/src/main/java/com/discord/models/member/GuildMember.java b/app/src/main/java/com/discord/models/member/GuildMember.java index c498e3cb21..f00058f8fa 100644 --- a/app/src/main/java/com/discord/models/member/GuildMember.java +++ b/app/src/main/java/com/discord/models/member/GuildMember.java @@ -23,6 +23,8 @@ public final class GuildMember { public static final Companion Companion = new Companion(null); private static final List emptyRoles = new ArrayList(); private final String avatarHash; + private final String bannerHash; + private final String bio; private final int color; private final long guildId; private final long hoistRoleId; @@ -68,10 +70,10 @@ public final class GuildMember { GuildRole guildRole; Map> roles; m.checkNotNullParameter(guildMember, "apiGuildMember"); - List i = guildMember.i(); + List k = guildMember.k(); GuildRole guildRole2 = null; GuildRole guildRole3 = null; - for (Long l : i) { + for (Long l : k) { long longValue = l.longValue(); Map map2 = map != null ? map : (storeGuilds == null || (roles = storeGuilds.getRoles()) == null) ? null : roles.get(Long.valueOf(j)); if (!(map2 == null || (guildRole = map2.get(Long.valueOf(longValue))) == null)) { @@ -83,7 +85,7 @@ public final class GuildMember { } } } - return new GuildMember(RoleUtils.getOpaqueColor(guildRole2), guildRole3 != null ? guildRole3.getId() : 0, i.isEmpty() ^ true ? i : null, guildMember.e(), guildMember.g(), guildMember.f(), guildMember.d(), guildMember.b(), j, guildMember.j().i()); + return new GuildMember(RoleUtils.getOpaqueColor(guildRole2), guildRole3 != null ? guildRole3.getId() : 0, k.isEmpty() ^ true ? k : null, guildMember.g(), guildMember.i(), guildMember.h(), guildMember.f(), j, guildMember.l().i(), guildMember.b(), guildMember.c(), guildMember.d()); } public final int getColor(@ColorInt int i, @ColorInt int i2) { @@ -157,10 +159,10 @@ public final class GuildMember { } public GuildMember() { - this(0, 0, null, null, null, false, null, null, 0, 0); + this(0, 0, null, null, null, false, null, 0, 0, null, null, null); } - public GuildMember(@ColorInt int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, String str3, long j2, long j3) { + public GuildMember(@ColorInt int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, long j2, long j3, String str3, String str4, String str5) { this.color = i; this.hoistRoleId = j; this.roles = list; @@ -168,9 +170,16 @@ public final class GuildMember { this.premiumSince = str2; this.pending = z2; this.joinedAt = utcDateTime; - this.avatarHash = str3; this.guildId = j2; this.userId = j3; + this.avatarHash = str3; + this.bannerHash = str4; + this.bio = str5; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public /* synthetic */ GuildMember(int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, long j2, long j3, String str3, String str4, String str5, int i2, DefaultConstructorMarker defaultConstructorMarker) { + this(i, j, list, str, str2, z2, utcDateTime, j2, j3, (i2 & 512) != 0 ? null : str3, (i2 & 1024) != 0 ? null : str4, (i2 & 2048) != 0 ? null : str5); } public static final int compareUserNames(User user, User user2, GuildMember guildMember, GuildMember guildMember2) { @@ -181,8 +190,8 @@ public final class GuildMember { return this.roles; } - public static /* synthetic */ GuildMember copy$default(GuildMember guildMember, int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, String str3, long j2, long j3, int i2, Object obj) { - return guildMember.copy((i2 & 1) != 0 ? guildMember.color : i, (i2 & 2) != 0 ? guildMember.hoistRoleId : j, (i2 & 4) != 0 ? guildMember.roles : list, (i2 & 8) != 0 ? guildMember.nick : str, (i2 & 16) != 0 ? guildMember.premiumSince : str2, (i2 & 32) != 0 ? guildMember.pending : z2, (i2 & 64) != 0 ? guildMember.joinedAt : utcDateTime, (i2 & 128) != 0 ? guildMember.avatarHash : str3, (i2 & 256) != 0 ? guildMember.guildId : j2, (i2 & 512) != 0 ? guildMember.userId : j3); + public static /* synthetic */ GuildMember copy$default(GuildMember guildMember, int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, long j2, long j3, String str3, String str4, String str5, int i2, Object obj) { + return guildMember.copy((i2 & 1) != 0 ? guildMember.color : i, (i2 & 2) != 0 ? guildMember.hoistRoleId : j, (i2 & 4) != 0 ? guildMember.roles : list, (i2 & 8) != 0 ? guildMember.nick : str, (i2 & 16) != 0 ? guildMember.premiumSince : str2, (i2 & 32) != 0 ? guildMember.pending : z2, (i2 & 64) != 0 ? guildMember.joinedAt : utcDateTime, (i2 & 128) != 0 ? guildMember.guildId : j2, (i2 & 256) != 0 ? guildMember.userId : j3, (i2 & 512) != 0 ? guildMember.avatarHash : str3, (i2 & 1024) != 0 ? guildMember.bannerHash : str4, (i2 & 2048) != 0 ? guildMember.bio : str5); } public static final int getColor(@ColorInt int i, @ColorInt int i2) { @@ -201,8 +210,16 @@ public final class GuildMember { return this.color; } - public final long component10() { - return this.userId; + public final String component10() { + return this.avatarHash; + } + + public final String component11() { + return this.bannerHash; + } + + public final String component12() { + return this.bio; } public final long component2() { @@ -225,16 +242,16 @@ public final class GuildMember { return this.joinedAt; } - public final String component8() { - return this.avatarHash; - } - - public final long component9() { + public final long component8() { return this.guildId; } - public final GuildMember copy(@ColorInt int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, String str3, long j2, long j3) { - return new GuildMember(i, j, list, str, str2, z2, utcDateTime, str3, j2, j3); + public final long component9() { + return this.userId; + } + + public final GuildMember copy(@ColorInt int i, long j, List list, String str, String str2, boolean z2, UtcDateTime utcDateTime, long j2, long j3, String str3, String str4, String str5) { + return new GuildMember(i, j, list, str, str2, z2, utcDateTime, j2, j3, str3, str4, str5); } public boolean equals(Object obj) { @@ -245,13 +262,21 @@ public final class GuildMember { return false; } GuildMember guildMember = (GuildMember) obj; - return this.color == guildMember.color && this.hoistRoleId == guildMember.hoistRoleId && m.areEqual(this.roles, guildMember.roles) && m.areEqual(this.nick, guildMember.nick) && m.areEqual(this.premiumSince, guildMember.premiumSince) && this.pending == guildMember.pending && m.areEqual(this.joinedAt, guildMember.joinedAt) && m.areEqual(this.avatarHash, guildMember.avatarHash) && this.guildId == guildMember.guildId && this.userId == guildMember.userId; + return this.color == guildMember.color && this.hoistRoleId == guildMember.hoistRoleId && m.areEqual(this.roles, guildMember.roles) && m.areEqual(this.nick, guildMember.nick) && m.areEqual(this.premiumSince, guildMember.premiumSince) && this.pending == guildMember.pending && m.areEqual(this.joinedAt, guildMember.joinedAt) && this.guildId == guildMember.guildId && this.userId == guildMember.userId && m.areEqual(this.avatarHash, guildMember.avatarHash) && m.areEqual(this.bannerHash, guildMember.bannerHash) && m.areEqual(this.bio, guildMember.bio); } public final String getAvatarHash() { return this.avatarHash; } + public final String getBannerHash() { + return this.bannerHash; + } + + public final String getBio() { + return this.bio; + } + public final int getColor() { return this.color; } @@ -290,7 +315,19 @@ public final class GuildMember { } public final boolean hasAvatar() { - return this.avatarHash != null && this.guildId > 0 && this.userId > 0; + String str = this.avatarHash; + if (str == null) { + return false; + } + return (str.length() > 0) && this.guildId > 0 && this.userId > 0; + } + + public final boolean hasBanner() { + String str = this.bannerHash; + if (str == null) { + return false; + } + return (str.length() > 0) && this.guildId > 0 && this.userId > 0; } public int hashCode() { @@ -311,12 +348,16 @@ public final class GuildMember { int i4 = z2 ? 1 : 0; int i5 = (hashCode3 + i2) * 31; UtcDateTime utcDateTime = this.joinedAt; - int hashCode4 = (i5 + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31; + int a2 = (b.a(this.userId) + ((b.a(this.guildId) + ((i5 + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31)) * 31)) * 31; String str3 = this.avatarHash; - if (str3 != null) { - i = str3.hashCode(); + int hashCode4 = (a2 + (str3 != null ? str3.hashCode() : 0)) * 31; + String str4 = this.bannerHash; + int hashCode5 = (hashCode4 + (str4 != null ? str4.hashCode() : 0)) * 31; + String str5 = this.bio; + if (str5 != null) { + i = str5.hashCode(); } - return b.a(this.userId) + ((b.a(this.guildId) + ((hashCode4 + i) * 31)) * 31); + return hashCode5 + i; } public String toString() { @@ -334,11 +375,15 @@ public final class GuildMember { R.append(this.pending); R.append(", joinedAt="); R.append(this.joinedAt); - R.append(", avatarHash="); - R.append(this.avatarHash); R.append(", guildId="); R.append(this.guildId); R.append(", userId="); - return a.B(R, this.userId, ")"); + R.append(this.userId); + R.append(", avatarHash="); + R.append(this.avatarHash); + R.append(", bannerHash="); + R.append(this.bannerHash); + R.append(", bio="); + return a.H(R, this.bio, ")"); } } diff --git a/app/src/main/java/com/discord/restapi/RestAPIInterface.java b/app/src/main/java/com/discord/restapi/RestAPIInterface.java index 2f2f0792db..8aa19005c8 100644 --- a/app/src/main/java/com/discord/restapi/RestAPIInterface.java +++ b/app/src/main/java/com/discord/restapi/RestAPIInterface.java @@ -23,6 +23,7 @@ import com.discord.api.guild.PruneCountResponse; import com.discord.api.guild.VanityUrlResponse; import com.discord.api.guild.preview.GuildPreview; import com.discord.api.guild.welcome.GuildWelcomeScreen; +import com.discord.api.guildmember.GuildMember; import com.discord.api.guildmember.PatchGuildMemberBody; import com.discord.api.guildrolesubscription.GuildRoleSubscriptionGroupListing; import com.discord.api.guildrolesubscription.GuildRoleSubscriptionTierListing; @@ -353,7 +354,7 @@ public interface RestAPIInterface { @b("guilds/{guildId}/integrations/{integrationId}") Observable deleteGuildIntegration(@s("guildId") long j, @s("integrationId") long j2); - @b("/guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") + @b("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") Observable deleteGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3); @b("guild-events/{eventId}") @@ -898,14 +899,14 @@ public interface RestAPIInterface { @n("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}") Observable updateGuildRoleSubscriptionGroupListing(@s("guildId") long j, @s("groupListingId") long j2, @a RestAPIParams.UpdateGuildRoleSubscriptionGroupListing updateGuildRoleSubscriptionGroupListing); - @n("/guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") + @n("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") Observable updateGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3, @a RestAPIParams.UpdateGuildRoleSubscriptionTierListing updateGuildRoleSubscriptionTierListing); @n("guild-events/{eventId}") Observable updateGuildScheduledEvent(@s("eventId") long j, @a RestAPIParams.UpdateGuildScheduledEventBody updateGuildScheduledEventBody); @n("guilds/{guildId}/members/@me") - Observable updateMeGuildMember(@s("guildId") long j, @a PatchGuildMemberBody patchGuildMemberBody); + Observable updateMeGuildMember(@s("guildId") long j, @a PatchGuildMemberBody patchGuildMemberBody); @n("guilds/{guildId}/voice-states/@me") Observable updateMyVoiceStates(@s("guildId") long j, @a RestAPIParams.ChannelVoiceStateUpdate channelVoiceStateUpdate); diff --git a/app/src/main/java/com/discord/stores/ReadyPayloadUtils.java b/app/src/main/java/com/discord/stores/ReadyPayloadUtils.java index 14f0e68dbd..a723a7654a 100644 --- a/app/src/main/java/com/discord/stores/ReadyPayloadUtils.java +++ b/app/src/main/java/com/discord/stores/ReadyPayloadUtils.java @@ -543,7 +543,7 @@ public final class ReadyPayloadUtils { User user; m.checkNotNullParameter(guildMember, "guildMember"); m.checkNotNullParameter(map, "users"); - return (guildMember.k() == null || (user = map.get(guildMember.k())) == null) ? guildMember : GuildMember.a(guildMember, 0, user, null, null, null, null, false, null, null, null, 765); + return (guildMember.m() == null || (user = map.get(guildMember.m())) == null) ? guildMember : GuildMember.a(guildMember, 0, user, null, null, null, null, false, null, null, null, null, null, 3837); } @StoreThread @@ -609,7 +609,7 @@ public final class ReadyPayloadUtils { } else { linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(o.collectionSizeOrDefault(list, 10)), 16)); for (Object obj2 : list) { - linkedHashMap.put(Long.valueOf(((GuildMember) obj2).j().i()), obj2); + linkedHashMap.put(Long.valueOf(((GuildMember) obj2).l().i()), obj2); } } ReadyPayloadUtils readyPayloadUtils = INSTANCE; diff --git a/app/src/main/java/com/discord/stores/StoreAnalytics.java b/app/src/main/java/com/discord/stores/StoreAnalytics.java index c52ae7f3c8..6149283306 100644 --- a/app/src/main/java/com/discord/stores/StoreAnalytics.java +++ b/app/src/main/java/com/discord/stores/StoreAnalytics.java @@ -674,7 +674,7 @@ public final class StoreAnalytics extends Store { pairArr[2] = o.to("invite_guild_id", (modelInvite == null || (guild = modelInvite.getGuild()) == null) ? null : Long.valueOf(guild.p())); pairArr[3] = o.to("invite_channel_id", (modelInvite == null || (channel = modelInvite.getChannel()) == null) ? null : Long.valueOf(channel.h())); if (!(modelInvite == null || (guildScheduledEvent = modelInvite.getGuildScheduledEvent()) == null)) { - l = Long.valueOf(guildScheduledEvent.g()); + l = Long.valueOf(guildScheduledEvent.h()); } pairArr[4] = o.to("invite_guild_scheduled_event_id", l); AnalyticsTracker.INSTANCE.inviteSent(modelInvite, h0.plus(h0.mapOf(pairArr), getGuildAndChannelSnapshotAnalyticsProperties(message.g()))); diff --git a/app/src/main/java/com/discord/stores/StoreApplicationCommands$clearAutocompleteResults$1.java b/app/src/main/java/com/discord/stores/StoreApplicationCommands$clearAutocompleteResults$1.java new file mode 100644 index 0000000000..b930483448 --- /dev/null +++ b/app/src/main/java/com/discord/stores/StoreApplicationCommands$clearAutocompleteResults$1.java @@ -0,0 +1,22 @@ +package com.discord.stores; + +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; +/* compiled from: StoreApplicationCommands.kt */ +public final class StoreApplicationCommands$clearAutocompleteResults$1 extends o implements Function0 { + public final /* synthetic */ StoreApplicationCommands this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public StoreApplicationCommands$clearAutocompleteResults$1(StoreApplicationCommands storeApplicationCommands) { + super(0); + this.this$0 = storeApplicationCommands; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final void mo1invoke() { + StoreApplicationCommands.access$getAutocompleteOptionResults$p(this.this$0).clear(); + this.this$0.markChanged(StoreApplicationCommands.Companion.getAutocompleteResultsUpdate()); + } +} diff --git a/app/src/main/java/com/discord/stores/StoreApplicationCommands.java b/app/src/main/java/com/discord/stores/StoreApplicationCommands.java index 9562dbb000..6803e5e0d6 100644 --- a/app/src/main/java/com/discord/stores/StoreApplicationCommands.java +++ b/app/src/main/java/com/discord/stores/StoreApplicationCommands.java @@ -268,6 +268,10 @@ public final class StoreApplicationCommands extends StoreV2 { return storeApplicationCommands.autocompleteNonceData; } + public static final /* synthetic */ Map access$getAutocompleteOptionResults$p(StoreApplicationCommands storeApplicationCommands) { + return storeApplicationCommands.autocompleteOptionResults; + } + public static final /* synthetic */ ObservationDeck.UpdateSource access$getAutocompleteResultsUpdate$cp() { return AutocompleteResultsUpdate; } @@ -400,6 +404,10 @@ public final class StoreApplicationCommands extends StoreV2 { storeApplicationCommands.autocompleteNonceData = map; } + public static final /* synthetic */ void access$setAutocompleteOptionResults$p(StoreApplicationCommands storeApplicationCommands, Map map) { + storeApplicationCommands.autocompleteOptionResults = map; + } + public static final /* synthetic */ void access$setDiscoverApplicationId$p(StoreApplicationCommands storeApplicationCommands, Long l) { storeApplicationCommands.discoverApplicationId = l; } @@ -651,8 +659,7 @@ public final class StoreApplicationCommands extends StoreV2 { } public final void clearAutocompleteResults() { - this.autocompleteOptionResults.clear(); - markChanged(AutocompleteResultsUpdate); + this.dispatcher.schedule(new StoreApplicationCommands$clearAutocompleteResults$1(this)); } public final void clearQueryCommands() { diff --git a/app/src/main/java/com/discord/stores/StoreChannelMembers.java b/app/src/main/java/com/discord/stores/StoreChannelMembers.java index 9c90335eed..0a9cb6179a 100644 --- a/app/src/main/java/com/discord/stores/StoreChannelMembers.java +++ b/app/src/main/java/com/discord/stores/StoreChannelMembers.java @@ -412,7 +412,7 @@ public final class StoreChannelMembers extends StoreV2 { ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(items, 10)); for (ModelGuildMemberListUpdate.Operation.Item item : items) { if (item instanceof ModelGuildMemberListUpdate.Operation.Item.MemberItem) { - memberListRow = makeRowMember(j, ((ModelGuildMemberListUpdate.Operation.Item.MemberItem) item).getMember().j().i(), allowOwnerIndicator); + memberListRow = makeRowMember(j, ((ModelGuildMemberListUpdate.Operation.Item.MemberItem) item).getMember().l().i(), allowOwnerIndicator); } else if (item instanceof ModelGuildMemberListUpdate.Operation.Item.GroupItem) { memberListRow = makeGroup(j, ((ModelGuildMemberListUpdate.Operation.Item.GroupItem) item).getGroup()); } else { @@ -457,7 +457,7 @@ public final class StoreChannelMembers extends StoreV2 { @StoreThread private final MemberListRow makeRow(long j, ModelGuildMemberListUpdate.Operation.Item item) { if (item instanceof ModelGuildMemberListUpdate.Operation.Item.MemberItem) { - return makeRowMember(j, ((ModelGuildMemberListUpdate.Operation.Item.MemberItem) item).getMember().j().i(), allowOwnerIndicator(j)); + return makeRowMember(j, ((ModelGuildMemberListUpdate.Operation.Item.MemberItem) item).getMember().l().i(), allowOwnerIndicator(j)); } if (item instanceof ModelGuildMemberListUpdate.Operation.Item.GroupItem) { return makeGroup(j, ((ModelGuildMemberListUpdate.Operation.Item.GroupItem) item).getGroup()); diff --git a/app/src/main/java/com/discord/stores/StoreEmojiCustom.java b/app/src/main/java/com/discord/stores/StoreEmojiCustom.java index ac9ed02c91..5908f5d1b1 100644 --- a/app/src/main/java/com/discord/stores/StoreEmojiCustom.java +++ b/app/src/main/java/com/discord/stores/StoreEmojiCustom.java @@ -166,7 +166,7 @@ public final class StoreEmojiCustom extends StoreV2 { break; } obj = it.next(); - if (((com.discord.api.guildmember.GuildMember) obj).j().i() == this.f2216me) { + if (((com.discord.api.guildmember.GuildMember) obj).l().i() == this.f2216me) { z2 = true; continue; } else { @@ -192,7 +192,7 @@ public final class StoreEmojiCustom extends StoreV2 { collection = n.emptyList(); } updateGlobalEmojis(p, collection); - updateAllowedGuildEmojis(p, guildMember.i(), collection); + updateAllowedGuildEmojis(p, guildMember.k(), collection); return Unit.a; } @@ -200,11 +200,11 @@ public final class StoreEmojiCustom extends StoreV2 { public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { Collection values; m.checkNotNullParameter(guildMember, "member"); - if (guildMember.j().i() == this.f2216me) { - long c2 = guildMember.c(); - Map map = this.allGuildEmoji.get(Long.valueOf(c2)); + if (guildMember.l().i() == this.f2216me) { + long e = guildMember.e(); + Map map = this.allGuildEmoji.get(Long.valueOf(e)); if (map != null && (values = map.values()) != null) { - updateAllowedGuildEmojis(c2, guildMember.i(), values); + updateAllowedGuildEmojis(e, guildMember.k(), values); } } } diff --git a/app/src/main/java/com/discord/stores/StoreGatewayConnection.java b/app/src/main/java/com/discord/stores/StoreGatewayConnection.java index 274b079da0..e84a9234f9 100644 --- a/app/src/main/java/com/discord/stores/StoreGatewayConnection.java +++ b/app/src/main/java/com/discord/stores/StoreGatewayConnection.java @@ -136,8 +136,8 @@ public final class StoreGatewayConnection implements GatewayEventHandler { private final SerializedSubject guildScheduledEventCreate; private final SerializedSubject guildScheduledEventDelete; private final SerializedSubject guildScheduledEventUpdate; - private final SerializedSubject guildScheduledEventUserCreate; - private final SerializedSubject guildScheduledEventUserDelete; + private final SerializedSubject guildScheduledEventUserAdd; + private final SerializedSubject guildScheduledEventUserRemove; private final SerializedSubject guildStickersUpdate; private final SerializedSubject guildUpdate; private final SerializedSubject interactionCreate; @@ -427,8 +427,8 @@ public final class StoreGatewayConnection implements GatewayEventHandler { this.guildScheduledEventCreate = new SerializedSubject<>(BehaviorSubject.k0()); this.guildScheduledEventUpdate = new SerializedSubject<>(BehaviorSubject.k0()); this.guildScheduledEventDelete = new SerializedSubject<>(BehaviorSubject.k0()); - this.guildScheduledEventUserCreate = new SerializedSubject<>(BehaviorSubject.k0()); - this.guildScheduledEventUserDelete = new SerializedSubject<>(BehaviorSubject.k0()); + this.guildScheduledEventUserAdd = new SerializedSubject<>(BehaviorSubject.k0()); + this.guildScheduledEventUserRemove = new SerializedSubject<>(BehaviorSubject.k0()); } /* JADX WARNING: Illegal instructions before constructor call */ @@ -679,12 +679,12 @@ public final class StoreGatewayConnection implements GatewayEventHandler { return this.guildScheduledEventUpdate; } - public final SerializedSubject getGuildScheduledEventUserCreate() { - return this.guildScheduledEventUserCreate; + public final SerializedSubject getGuildScheduledEventUserAdd() { + return this.guildScheduledEventUserAdd; } - public final SerializedSubject getGuildScheduledEventUserDelete() { - return this.guildScheduledEventUserDelete; + public final SerializedSubject getGuildScheduledEventUserRemove() { + return this.guildScheduledEventUserRemove; } public final SerializedSubject getGuildStickersUpdate() { @@ -926,18 +926,6 @@ public final class StoreGatewayConnection implements GatewayEventHandler { return; } return; - case -1902625779: - if (str.equals("GUILD_SCHEDULED_EVENT_USER_CREATE")) { - this.guildScheduledEventUserCreate.j.onNext(obj); - return; - } - return; - case -1885790020: - if (str.equals("GUILD_SCHEDULED_EVENT_USER_DELETE")) { - this.guildScheduledEventUserDelete.j.onNext(obj); - return; - } - return; case -1862771270: if (str.equals("THREAD_MEMBER_LIST_UPDATE")) { this.threadMemberListUpdate.j.onNext(obj); @@ -968,6 +956,12 @@ public final class StoreGatewayConnection implements GatewayEventHandler { return; } return; + case -1484942443: + if (str.equals("GUILD_SCHEDULED_EVENT_USER_REMOVE")) { + this.guildScheduledEventUserRemove.j.onNext(obj); + return; + } + return; case -1467383482: if (str.equals("USER_REQUIRED_ACTION_UPDATE")) { this.userRequiredActionUpdate.j.onNext(obj); @@ -1329,6 +1323,12 @@ public final class StoreGatewayConnection implements GatewayEventHandler { return; } return; + case 1737758480: + if (str.equals("GUILD_SCHEDULED_EVENT_USER_ADD")) { + this.guildScheduledEventUserAdd.j.onNext(obj); + return; + } + return; case 1781835934: if (!str.equals("THREAD_UPDATE")) { return; diff --git a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$processPurchases$1.java b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$processPurchases$1.java index 413ed24602..12c39b44fd 100644 --- a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$processPurchases$1.java +++ b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$processPurchases$1.java @@ -12,6 +12,7 @@ import kotlin.jvm.functions.Function1; /* compiled from: StoreGooglePlayPurchases.kt */ public final class StoreGooglePlayPurchases$processPurchases$1 extends o implements Function0 { public final /* synthetic */ List $purchases; + public final /* synthetic */ String $skuType; public final /* synthetic */ StoreGooglePlayPurchases this$0; /* compiled from: StoreGooglePlayPurchases.kt */ @@ -41,16 +42,17 @@ public final class StoreGooglePlayPurchases$processPurchases$1 extends o impleme } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public StoreGooglePlayPurchases$processPurchases$1(StoreGooglePlayPurchases storeGooglePlayPurchases, List list) { + public StoreGooglePlayPurchases$processPurchases$1(StoreGooglePlayPurchases storeGooglePlayPurchases, List list, String str) { super(0); this.this$0 = storeGooglePlayPurchases; this.$purchases = list; + this.$skuType = str; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - StoreGooglePlayPurchases.access$handlePurchases(this.this$0, this.$purchases); + StoreGooglePlayPurchases.access$handlePurchases(this.this$0, this.$purchases, this.$skuType); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(this.this$0.observeQueryState(), 0, false, 3, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); } } diff --git a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$updatePendingDowngrade$1.java b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$updatePendingDowngrade$1.java index 1f1b010765..e24136c999 100644 --- a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$updatePendingDowngrade$1.java +++ b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases$updatePendingDowngrade$1.java @@ -20,7 +20,7 @@ public final class StoreGooglePlayPurchases$updatePendingDowngrade$1 extends o i /* renamed from: invoke */ public final void mo1invoke() { StoreGooglePlayPurchases storeGooglePlayPurchases = this.this$0; - StoreGooglePlayPurchases.access$setStoreState$p(storeGooglePlayPurchases, new StoreGooglePlayPurchases.State.Loaded(StoreGooglePlayPurchases.access$getPurchases$p(storeGooglePlayPurchases), this.$newPendingDowngrade)); + StoreGooglePlayPurchases.access$setStoreState$p(storeGooglePlayPurchases, new StoreGooglePlayPurchases.State.Loaded(StoreGooglePlayPurchases.access$getSubscriptionPurchases$p(storeGooglePlayPurchases), StoreGooglePlayPurchases.access$getIapPurchases$p(this.this$0), this.$newPendingDowngrade)); this.this$0.markChanged(); } } diff --git a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases.java b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases.java index fad89e279e..71aae8ef38 100644 --- a/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases.java +++ b/app/src/main/java/com/discord/stores/StoreGooglePlayPurchases.java @@ -14,9 +14,11 @@ import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.time.Clock; import com.google.gson.Gson; import d0.t.n; +import d0.t.u; import d0.z.d.m; import java.io.IOException; import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -376,47 +378,59 @@ public final class StoreGooglePlayPurchases extends StoreV2 { /* compiled from: StoreGooglePlayPurchases.kt */ public static final class Loaded extends State { + private final List iapPurchases; private final PendingDowngrade pendingDowngrade; - private final List purchases; + private final List subscriptionPurchases; /* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: java.util.List */ + /* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: java.util.List */ /* JADX WARN: Multi-variable type inference failed */ /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public Loaded(List list, PendingDowngrade pendingDowngrade) { + public Loaded(List list, List list2, PendingDowngrade pendingDowngrade) { super(null); - m.checkNotNullParameter(list, "purchases"); - this.purchases = list; + m.checkNotNullParameter(list, "subscriptionPurchases"); + m.checkNotNullParameter(list2, "iapPurchases"); + this.subscriptionPurchases = list; + this.iapPurchases = list2; this.pendingDowngrade = pendingDowngrade; } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ Loaded(List list, PendingDowngrade pendingDowngrade, int i, DefaultConstructorMarker defaultConstructorMarker) { - this((i & 1) != 0 ? n.emptyList() : list, pendingDowngrade); + public /* synthetic */ Loaded(List list, List list2, PendingDowngrade pendingDowngrade, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? n.emptyList() : list, (i & 2) != 0 ? n.emptyList() : list2, pendingDowngrade); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.stores.StoreGooglePlayPurchases$State$Loaded */ /* JADX WARN: Multi-variable type inference failed */ - public static /* synthetic */ Loaded copy$default(Loaded loaded, List list, PendingDowngrade pendingDowngrade, int i, Object obj) { + public static /* synthetic */ Loaded copy$default(Loaded loaded, List list, List list2, PendingDowngrade pendingDowngrade, int i, Object obj) { if ((i & 1) != 0) { - list = loaded.purchases; + list = loaded.subscriptionPurchases; } if ((i & 2) != 0) { + list2 = loaded.iapPurchases; + } + if ((i & 4) != 0) { pendingDowngrade = loaded.pendingDowngrade; } - return loaded.copy(list, pendingDowngrade); + return loaded.copy(list, list2, pendingDowngrade); } public final List component1() { - return this.purchases; + return this.subscriptionPurchases; } - public final PendingDowngrade component2() { + public final List component2() { + return this.iapPurchases; + } + + public final PendingDowngrade component3() { return this.pendingDowngrade; } - public final Loaded copy(List list, PendingDowngrade pendingDowngrade) { - m.checkNotNullParameter(list, "purchases"); - return new Loaded(list, pendingDowngrade); + public final Loaded copy(List list, List list2, PendingDowngrade pendingDowngrade) { + m.checkNotNullParameter(list, "subscriptionPurchases"); + m.checkNotNullParameter(list2, "iapPurchases"); + return new Loaded(list, list2, pendingDowngrade); } public boolean equals(Object obj) { @@ -427,7 +441,11 @@ public final class StoreGooglePlayPurchases extends StoreV2 { return false; } Loaded loaded = (Loaded) obj; - return m.areEqual(this.purchases, loaded.purchases) && m.areEqual(this.pendingDowngrade, loaded.pendingDowngrade); + return m.areEqual(this.subscriptionPurchases, loaded.subscriptionPurchases) && m.areEqual(this.iapPurchases, loaded.iapPurchases) && m.areEqual(this.pendingDowngrade, loaded.pendingDowngrade); + } + + public final List getIapPurchases() { + return this.iapPurchases; } public final PendingDowngrade getPendingDowngrade() { @@ -435,23 +453,31 @@ public final class StoreGooglePlayPurchases extends StoreV2 { } public final List getPurchases() { - return this.purchases; + return u.plus((Collection) this.subscriptionPurchases, (Iterable) this.iapPurchases); + } + + public final List getSubscriptionPurchases() { + return this.subscriptionPurchases; } public int hashCode() { - List list = this.purchases; + List list = this.subscriptionPurchases; int i = 0; int hashCode = (list != null ? list.hashCode() : 0) * 31; + List list2 = this.iapPurchases; + int hashCode2 = (hashCode + (list2 != null ? list2.hashCode() : 0)) * 31; PendingDowngrade pendingDowngrade = this.pendingDowngrade; if (pendingDowngrade != null) { i = pendingDowngrade.hashCode(); } - return hashCode + i; + return hashCode2 + i; } public String toString() { - StringBuilder R = a.R("Loaded(purchases="); - R.append(this.purchases); + StringBuilder R = a.R("Loaded(subscriptionPurchases="); + R.append(this.subscriptionPurchases); + R.append(", iapPurchases="); + R.append(this.iapPurchases); R.append(", pendingDowngrade="); R.append(this.pendingDowngrade); R.append(")"); @@ -583,8 +609,8 @@ public final class StoreGooglePlayPurchases extends StoreV2 { return storeGooglePlayPurchases.eventSubject; } - public static final /* synthetic */ List access$getPurchases$p(StoreGooglePlayPurchases storeGooglePlayPurchases) { - return storeGooglePlayPurchases.getPurchases(); + public static final /* synthetic */ List access$getIapPurchases$p(StoreGooglePlayPurchases storeGooglePlayPurchases) { + return storeGooglePlayPurchases.getIapPurchases(); } public static final /* synthetic */ QueryState access$getQueryState$p(StoreGooglePlayPurchases storeGooglePlayPurchases) { @@ -595,6 +621,10 @@ public final class StoreGooglePlayPurchases extends StoreV2 { return storeGooglePlayPurchases.storeState; } + public static final /* synthetic */ List access$getSubscriptionPurchases$p(StoreGooglePlayPurchases storeGooglePlayPurchases) { + return storeGooglePlayPurchases.getSubscriptionPurchases(); + } + public static final /* synthetic */ void access$handleDowngradeFailure(StoreGooglePlayPurchases storeGooglePlayPurchases, String str) { storeGooglePlayPurchases.handleDowngradeFailure(str); } @@ -603,8 +633,8 @@ public final class StoreGooglePlayPurchases extends StoreV2 { storeGooglePlayPurchases.handleDowngradeSuccess(str); } - public static final /* synthetic */ void access$handlePurchases(StoreGooglePlayPurchases storeGooglePlayPurchases, List list) { - storeGooglePlayPurchases.handlePurchases(list); + public static final /* synthetic */ void access$handlePurchases(StoreGooglePlayPurchases storeGooglePlayPurchases, List list, String str) { + storeGooglePlayPurchases.handlePurchases(list, str); } public static final /* synthetic */ void access$setQueryState$p(StoreGooglePlayPurchases storeGooglePlayPurchases, QueryState queryState) { @@ -652,6 +682,19 @@ public final class StoreGooglePlayPurchases extends StoreV2 { return new LinkedHashMap(); } + private final List getIapPurchases() { + State state = getState(); + List list = null; + if (!(state instanceof State.Loaded)) { + state = null; + } + State.Loaded loaded = (State.Loaded) state; + if (loaded != null) { + list = loaded.getIapPurchases(); + } + return list != null ? list : n.emptyList(); + } + private final AnalyticsTrait getOrClearAnalyticsTraits(String str) { AnalyticsTrait analyticsTrait = getCachedAnalyticsTraitsMap().get(str); if (analyticsTrait == null) { @@ -676,7 +719,7 @@ public final class StoreGooglePlayPurchases extends StoreV2 { return null; } - private final List getPurchases() { + private final List getSubscriptionPurchases() { State state = getState(); List list = null; if (!(state instanceof State.Loaded)) { @@ -684,7 +727,7 @@ public final class StoreGooglePlayPurchases extends StoreV2 { } State.Loaded loaded = (State.Loaded) state; if (loaded != null) { - list = loaded.getPurchases(); + list = loaded.getSubscriptionPurchases(); } return list != null ? list : n.emptyList(); } @@ -708,13 +751,34 @@ public final class StoreGooglePlayPurchases extends StoreV2 { } @StoreThread - private final void handlePurchases(List list) { - boolean z2 = list != null && list.size() == getPurchases().size() && list.containsAll(getPurchases()) && getPurchases().containsAll(list); + private final void handlePurchases(List list, String str) { + State state; + int hashCode = str.hashCode(); + boolean z2 = false; + if (hashCode == 3541555 ? !(!str.equals("subs") || list == null || list.size() != getSubscriptionPurchases().size() || !list.containsAll(getSubscriptionPurchases()) || !getSubscriptionPurchases().containsAll(list)) : !(hashCode != 100343516 || !str.equals("inapp") || list == null || list.size() != getIapPurchases().size() || !list.containsAll(getIapPurchases()) || !getIapPurchases().containsAll(list))) { + z2 = true; + } if (list == null || !(!list.isEmpty()) || !z2) { - if (list == null) { - list = n.emptyList(); + int hashCode2 = str.hashCode(); + if (hashCode2 != 3541555) { + if (hashCode2 == 100343516 && str.equals("inapp")) { + if (list == null) { + list = n.emptyList(); + } + state = new State.Loaded(getSubscriptionPurchases(), list, getPendingDowngrade()); + this.storeState = state; + markChanged(); + } + } else if (str.equals("subs")) { + if (list == null) { + list = n.emptyList(); + } + state = new State.Loaded(list, getIapPurchases(), getPendingDowngrade()); + this.storeState = state; + markChanged(); } - this.storeState = new State.Loaded(list, getPendingDowngrade()); + state = State.Uninitialized.INSTANCE; + this.storeState = state; markChanged(); } } @@ -786,8 +850,9 @@ public final class StoreGooglePlayPurchases extends StoreV2 { } } - public final void processPurchases(List list) { - this.dispatcher.schedule(new StoreGooglePlayPurchases$processPurchases$1(this, list)); + public final void processPurchases(List list, String str) { + m.checkNotNullParameter(str, "skuType"); + this.dispatcher.schedule(new StoreGooglePlayPurchases$processPurchases$1(this, list, str)); } @Override // com.discord.stores.StoreV2 @@ -796,7 +861,7 @@ public final class StoreGooglePlayPurchases extends StoreV2 { State state = this.storeState; if (state instanceof State.Loaded) { State.Loaded loaded = (State.Loaded) state; - state = State.Loaded.copy$default(loaded, new ArrayList(loaded.getPurchases()), null, 2, null); + state = State.Loaded.copy$default(loaded, new ArrayList(loaded.getSubscriptionPurchases()), new ArrayList(loaded.getIapPurchases()), null, 4, null); } else if (!m.areEqual(state, State.Uninitialized.INSTANCE)) { throw new NoWhenBranchMatchedException(); } diff --git a/app/src/main/java/com/discord/stores/StoreGuildMemberCounts.java b/app/src/main/java/com/discord/stores/StoreGuildMemberCounts.java index 1073bd62a3..2b1b754205 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildMemberCounts.java +++ b/app/src/main/java/com/discord/stores/StoreGuildMemberCounts.java @@ -62,9 +62,9 @@ public final class StoreGuildMemberCounts extends StoreV2 { @StoreThread public final void handleGuildMemberAdd(GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - Integer num = this.guildMemberCounts.get(Long.valueOf(guildMember.c())); + Integer num = this.guildMemberCounts.get(Long.valueOf(guildMember.e())); if (num != null) { - this.guildMemberCounts.put(Long.valueOf(guildMember.c()), Integer.valueOf(num.intValue() + 1)); + this.guildMemberCounts.put(Long.valueOf(guildMember.e()), Integer.valueOf(num.intValue() + 1)); markChanged(); } } diff --git a/app/src/main/java/com/discord/stores/StoreGuildMemberRequester.java b/app/src/main/java/com/discord/stores/StoreGuildMemberRequester.java index 245046cb86..859aaaf94c 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildMemberRequester.java +++ b/app/src/main/java/com/discord/stores/StoreGuildMemberRequester.java @@ -93,7 +93,7 @@ public final class StoreGuildMemberRequester extends Store { List b = guildMembersChunk.b(); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(b, 10)); for (com.discord.api.guildmember.GuildMember guildMember : b) { - arrayList.add(guildMember.j()); + arrayList.add(guildMember.l()); } for (User user : arrayList) { this.requestManager.acknowledge(a, user.i()); diff --git a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$fetchRsvpUsers$2.java b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$fetchRsvpUsers$2.java index 24a337d22c..b45cc2517e 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$fetchRsvpUsers$2.java +++ b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$fetchRsvpUsers$2.java @@ -1,8 +1,10 @@ package com.discord.stores; +import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser; import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUsersResponse; import d0.z.d.m; import d0.z.d.o; +import java.util.HashMap; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; @@ -27,7 +29,14 @@ public final class StoreGuildScheduledEvents$fetchRsvpUsers$2 extends o implemen @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$eventId), this.$response.a()); + HashMap hashMap = (HashMap) StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).get(Long.valueOf(this.this$0.$eventId)); + if (hashMap == null) { + hashMap = new HashMap(); + } + for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : this.$response.a()) { + hashMap.put(Long.valueOf(guildScheduledEventRsvpUser.d()), guildScheduledEventRsvpUser); + } + StoreGuildScheduledEvents.access$getUsersForGuildEvent$p(this.this$0.this$0).put(Long.valueOf(this.this$0.$eventId), hashMap); StoreGuildScheduledEvents.access$setUsersForGuildEventFetching$p(this.this$0.this$0, false); StoreGuildScheduledEvents.access$setUsersForGuildEventError$p(this.this$0.this$0, false); this.this$0.this$0.markChanged(); diff --git a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.java b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleMeRsvpForEvent$1.java similarity index 64% rename from app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.java rename to app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleMeRsvpForEvent$1.java index dfa19d185d..960d2309dc 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.java +++ b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents$toggleMeRsvpForEvent$1.java @@ -11,21 +11,21 @@ import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreGuildScheduledEvents.kt */ -public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 extends o implements Function0 { +public final class StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 extends o implements Function0 { public final /* synthetic */ long $eventId; public final /* synthetic */ GuildScheduledEvent $guildScheduledEvent; public final /* synthetic */ GuildScheduledEvent $storeEvent; public final /* synthetic */ StoreGuildScheduledEvents this$0; /* compiled from: StoreGuildScheduledEvents.kt */ - /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1$1 reason: invalid class name */ + /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleMeRsvpForEvent$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { - public final /* synthetic */ StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 this$0; + public final /* synthetic */ StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1) { + public AnonymousClass1(StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1) { super(1); - this.this$0 = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1; + this.this$0 = storeGuildScheduledEvents$toggleMeRsvpForEvent$1; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -38,22 +38,22 @@ public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 ext public final void invoke(Error error) { m.checkNotNullParameter(error, "it"); - StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 = this.this$0; - StoreGuildScheduledEvents storeGuildScheduledEvents = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.this$0; - StoreGuildScheduledEvents.processRsvpCreate$default(storeGuildScheduledEvents, StoreGuildScheduledEvents.access$findEventFromStore(storeGuildScheduledEvents, storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.$storeEvent), 0, 2, null); + StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1 = this.this$0; + StoreGuildScheduledEvents storeGuildScheduledEvents = storeGuildScheduledEvents$toggleMeRsvpForEvent$1.this$0; + StoreGuildScheduledEvents.access$processRsvpCreate(storeGuildScheduledEvents, StoreGuildScheduledEvents.access$findEventFromStore(storeGuildScheduledEvents, storeGuildScheduledEvents$toggleMeRsvpForEvent$1.$storeEvent), StoreGuildScheduledEvents.access$getUserStore$p(this.this$0.this$0).getMe().getId()); StoreGuildScheduledEvents.access$getRsvpsAwaitingNetwork$p(this.this$0.this$0).remove(Long.valueOf(this.this$0.$eventId)); } } /* compiled from: StoreGuildScheduledEvents.kt */ - /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1$2 reason: invalid class name */ + /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleMeRsvpForEvent$1$2 reason: invalid class name */ public static final class AnonymousClass2 extends o implements Function1 { - public final /* synthetic */ StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 this$0; + public final /* synthetic */ StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass2(StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1) { + public AnonymousClass2(StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1) { super(1); - this.this$0 = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1; + this.this$0 = storeGuildScheduledEvents$toggleMeRsvpForEvent$1; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -70,14 +70,14 @@ public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 ext } /* compiled from: StoreGuildScheduledEvents.kt */ - /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1$3 reason: invalid class name */ + /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleMeRsvpForEvent$1$3 reason: invalid class name */ public static final class AnonymousClass3 extends o implements Function1 { - public final /* synthetic */ StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 this$0; + public final /* synthetic */ StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass3(StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1) { + public AnonymousClass3(StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1) { super(1); - this.this$0 = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1; + this.this$0 = storeGuildScheduledEvents$toggleMeRsvpForEvent$1; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -90,22 +90,22 @@ public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 ext public final void invoke(Error error) { m.checkNotNullParameter(error, "it"); - StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 = this.this$0; - StoreGuildScheduledEvents storeGuildScheduledEvents = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.this$0; - StoreGuildScheduledEvents.processRsvpDelete$default(storeGuildScheduledEvents, StoreGuildScheduledEvents.access$findEventFromStore(storeGuildScheduledEvents, storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1.$storeEvent), 0, 2, null); + StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1 = this.this$0; + StoreGuildScheduledEvents storeGuildScheduledEvents = storeGuildScheduledEvents$toggleMeRsvpForEvent$1.this$0; + StoreGuildScheduledEvents.access$processRsvpDelete(storeGuildScheduledEvents, StoreGuildScheduledEvents.access$findEventFromStore(storeGuildScheduledEvents, storeGuildScheduledEvents$toggleMeRsvpForEvent$1.$storeEvent), StoreGuildScheduledEvents.access$getUserStore$p(this.this$0.this$0).getMe().getId()); StoreGuildScheduledEvents.access$getRsvpsAwaitingNetwork$p(this.this$0.this$0).remove(Long.valueOf(this.this$0.$eventId)); } } /* compiled from: StoreGuildScheduledEvents.kt */ - /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1$4 reason: invalid class name */ + /* renamed from: com.discord.stores.StoreGuildScheduledEvents$toggleMeRsvpForEvent$1$4 reason: invalid class name */ public static final class AnonymousClass4 extends o implements Function1 { - public final /* synthetic */ StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 this$0; + public final /* synthetic */ StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass4(StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1) { + public AnonymousClass4(StoreGuildScheduledEvents$toggleMeRsvpForEvent$1 storeGuildScheduledEvents$toggleMeRsvpForEvent$1) { super(1); - this.this$0 = storeGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1; + this.this$0 = storeGuildScheduledEvents$toggleMeRsvpForEvent$1; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -123,7 +123,7 @@ public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 ext } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j, GuildScheduledEvent guildScheduledEvent2) { + public StoreGuildScheduledEvents$toggleMeRsvpForEvent$1(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j, GuildScheduledEvent guildScheduledEvent2) { super(0); this.this$0 = storeGuildScheduledEvents; this.$guildScheduledEvent = guildScheduledEvent; @@ -134,12 +134,14 @@ public final class StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1 ext @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - if (this.this$0.isRsvpedToEvent(this.$guildScheduledEvent.f(), this.$eventId)) { - StoreGuildScheduledEvents.processRsvpDelete$default(this.this$0, this.$storeEvent, 0, 2, null); - ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().deleteGuildScheduledEventRsvp(this.$storeEvent.g()), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass1(this), (Function0) null, (Function0) null, new AnonymousClass2(this), 54, (Object) null); + if (this.this$0.isMeRsvpedToEvent(this.$guildScheduledEvent.g(), this.$eventId)) { + StoreGuildScheduledEvents storeGuildScheduledEvents = this.this$0; + StoreGuildScheduledEvents.access$processRsvpDelete(storeGuildScheduledEvents, this.$storeEvent, StoreGuildScheduledEvents.access$getUserStore$p(storeGuildScheduledEvents).getMe().getId()); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().deleteGuildScheduledEventRsvp(this.$storeEvent.h()), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass1(this), (Function0) null, (Function0) null, new AnonymousClass2(this), 54, (Object) null); return; } - StoreGuildScheduledEvents.processRsvpCreate$default(this.this$0, this.$storeEvent, 0, 2, null); - ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().createGuildScheduledEventRsvp(this.$storeEvent.g()), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass3(this), (Function0) null, (Function0) null, new AnonymousClass4(this), 54, (Object) null); + StoreGuildScheduledEvents storeGuildScheduledEvents2 = this.this$0; + StoreGuildScheduledEvents.access$processRsvpCreate(storeGuildScheduledEvents2, this.$storeEvent, StoreGuildScheduledEvents.access$getUserStore$p(storeGuildScheduledEvents2).getMe().getId()); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().createGuildScheduledEventRsvp(this.$storeEvent.h()), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, new AnonymousClass3(this), (Function0) null, (Function0) null, new AnonymousClass4(this), 54, (Object) null); } } diff --git a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents.java b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents.java index ccb6da35be..d3f9c4fb79 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents.java +++ b/app/src/main/java/com/discord/stores/StoreGuildScheduledEvents.java @@ -3,16 +3,20 @@ package com.discord.stores; import android.content.Context; import com.discord.api.guild.Guild; import com.discord.api.guildscheduledevent.GuildScheduledEvent; +import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpGuildMember; import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser; import com.discord.api.guildscheduledevent.GuildScheduledEventStatus; import com.discord.api.guildscheduledevent.GuildScheduledEventUserUpdate; import com.discord.api.permission.Permission; import com.discord.models.domain.ModelPayload; +import com.discord.models.member.GuildMember; +import com.discord.models.user.User; import com.discord.stores.updates.ObservationDeck; import com.discord.utilities.permissions.PermissionUtils; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.time.Clock; +import d0.d0.f; import d0.t.h0; import d0.t.n; import d0.t.n0; @@ -38,6 +42,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { private final HashMap> guildScheduledEvents = new HashMap<>(); private final HashMap guildScheduledEventsFetchTimestamps = new HashMap<>(); private Map> guildScheduledEventsSnapshot = h0.emptyMap(); + private final StoreGuilds guildsStore; private boolean isUsersForGuildEventError; private boolean isUsersForGuildEventFetching; private final ObservationDeck observationDeck; @@ -48,7 +53,8 @@ public final class StoreGuildScheduledEvents extends StoreV2 { private Map> userGuildScheduledEventIdsSnapshot = h0.emptyMap(); private final HashSet userGuildScheduledEventsFetches = new HashSet<>(); private final StoreUser userStore; - private final HashMap> usersForGuildEvent = new HashMap<>(); + private final HashMap> usersForGuildEvent = new HashMap<>(); + private Map> usersForGuildEventSnapshot = h0.emptyMap(); /* compiled from: StoreGuildScheduledEvents.kt */ public static final class Companion { @@ -60,16 +66,18 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } } - public StoreGuildScheduledEvents(Dispatcher dispatcher, ObservationDeck observationDeck, StorePermissions storePermissions, StoreUser storeUser, Clock clock) { + public StoreGuildScheduledEvents(Dispatcher dispatcher, ObservationDeck observationDeck, StorePermissions storePermissions, StoreUser storeUser, StoreGuilds storeGuilds, Clock clock) { m.checkNotNullParameter(dispatcher, "dispatcher"); m.checkNotNullParameter(observationDeck, "observationDeck"); m.checkNotNullParameter(storePermissions, "permissionsStore"); m.checkNotNullParameter(storeUser, "userStore"); + m.checkNotNullParameter(storeGuilds, "guildsStore"); m.checkNotNullParameter(clock, "clock"); this.dispatcher = dispatcher; this.observationDeck = observationDeck; this.permissionsStore = storePermissions; this.userStore = storeUser; + this.guildsStore = storeGuilds; this.clock = clock; } @@ -105,6 +113,10 @@ public final class StoreGuildScheduledEvents extends StoreV2 { return storeGuildScheduledEvents.userGuildScheduledEventsFetches; } + public static final /* synthetic */ StoreUser access$getUserStore$p(StoreGuildScheduledEvents storeGuildScheduledEvents) { + return storeGuildScheduledEvents.userStore; + } + public static final /* synthetic */ HashMap access$getUsersForGuildEvent$p(StoreGuildScheduledEvents storeGuildScheduledEvents) { return storeGuildScheduledEvents.usersForGuildEvent; } @@ -121,6 +133,14 @@ public final class StoreGuildScheduledEvents extends StoreV2 { return storeGuildScheduledEvents.isUsersForGuildEventFetching; } + public static final /* synthetic */ void access$processRsvpCreate(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j) { + storeGuildScheduledEvents.processRsvpCreate(guildScheduledEvent, j); + } + + public static final /* synthetic */ void access$processRsvpDelete(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j) { + storeGuildScheduledEvents.processRsvpDelete(guildScheduledEvent, j); + } + public static final /* synthetic */ void access$setUsersForGuildEventError$p(StoreGuildScheduledEvents storeGuildScheduledEvents, boolean z2) { storeGuildScheduledEvents.isUsersForGuildEventError = z2; } @@ -129,7 +149,8 @@ public final class StoreGuildScheduledEvents extends StoreV2 { storeGuildScheduledEvents.isUsersForGuildEventFetching = z2; } - private final void addUserRsvpForEvent(long j, long j2) { + @StoreThread + private final void addMeRsvpForEvent(long j, long j2) { if (this.userGuildScheduledEventIds.containsKey(Long.valueOf(j))) { Set set = this.userGuildScheduledEventIds.get(Long.valueOf(j)); if (set != null) { @@ -141,8 +162,25 @@ public final class StoreGuildScheduledEvents extends StoreV2 { this.userGuildScheduledEventIds.put(Long.valueOf(j), n0.mutableSetOf(Long.valueOf(j2))); } + @StoreThread + private final void addUserRsvpForEvent(long j, long j2, long j3) { + GuildMember member; + if (j == this.userStore.getMe().getId() && !isMeRsvpedToEvent(j2, j3)) { + addMeRsvpForEvent(j2, j3); + } + HashMap hashMap = this.usersForGuildEvent.get(Long.valueOf(j3)); + if (hashMap == null) { + hashMap = new HashMap<>(); + } + User user = this.userStore.getUsers(d0.t.m.listOf(Long.valueOf(j)), false).get(Long.valueOf(j)); + if (!(user == null || (member = this.guildsStore.getMember(j2, j)) == null)) { + hashMap.put(Long.valueOf(j), new GuildScheduledEventRsvpUser(user.getAvatar(), String.valueOf(user.getDiscriminator()), user.getId(), user.getUsername(), new GuildScheduledEventRsvpGuildMember(member.getAvatarHash(), member.getNick()))); + } + this.usersForGuildEvent.put(Long.valueOf(j3), hashMap); + } + private final GuildScheduledEvent findEventFromStore(GuildScheduledEvent guildScheduledEvent) { - GuildScheduledEvent findEventFromStore = findEventFromStore(guildScheduledEvent.g(), Long.valueOf(guildScheduledEvent.f())); + GuildScheduledEvent findEventFromStore = findEventFromStore(guildScheduledEvent.h(), Long.valueOf(guildScheduledEvent.g())); return findEventFromStore != null ? findEventFromStore : guildScheduledEvent; } @@ -178,8 +216,8 @@ public final class StoreGuildScheduledEvents extends StoreV2 { int i2; GuildScheduledEvent guildScheduledEvent2; GuildScheduledEvent guildScheduledEvent3 = guildScheduledEvent; - long f = guildScheduledEvent.f(); - List list = this.guildScheduledEvents.get(Long.valueOf(f)); + long g = guildScheduledEvent.g(); + List list = this.guildScheduledEvents.get(Long.valueOf(g)); if (list != null) { Iterator it = list.iterator(); int i3 = 0; @@ -187,29 +225,29 @@ public final class StoreGuildScheduledEvents extends StoreV2 { if (!it.hasNext()) { break; } - if (it.next().g() == guildScheduledEvent.g()) { + if (it.next().h() == guildScheduledEvent.h()) { i = i3; break; } i3++; } - if (this.guildScheduledEvents.get(Long.valueOf(f)) != null) { - this.guildScheduledEvents.put(Long.valueOf(f), n.mutableListOf(guildScheduledEvent3)); + if (this.guildScheduledEvents.get(Long.valueOf(g)) != null) { + this.guildScheduledEvents.put(Long.valueOf(g), n.mutableListOf(guildScheduledEvent3)); } else if (i == -1) { - List list2 = this.guildScheduledEvents.get(Long.valueOf(f)); + List list2 = this.guildScheduledEvents.get(Long.valueOf(g)); if (list2 != null) { list2.add(guildScheduledEvent3); } } else { - List list3 = this.guildScheduledEvents.get(Long.valueOf(f)); - Integer l = (list3 == null || (guildScheduledEvent2 = list3.get(i)) == null) ? null : guildScheduledEvent2.l(); - if (guildScheduledEvent.l() == null) { + List list3 = this.guildScheduledEvents.get(Long.valueOf(g)); + Integer m = (list3 == null || (guildScheduledEvent2 = list3.get(i)) == null) ? null : guildScheduledEvent2.m(); + if (guildScheduledEvent.m() == null) { i2 = i; - guildScheduledEvent3 = GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, l, null, 98303); + guildScheduledEvent3 = GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, m, null, 98303); } else { i2 = i; } - List list4 = this.guildScheduledEvents.get(Long.valueOf(f)); + List list4 = this.guildScheduledEvents.get(Long.valueOf(g)); if (list4 != null) { list4.set(i2, guildScheduledEvent3); } @@ -217,20 +255,20 @@ public final class StoreGuildScheduledEvents extends StoreV2 { markChanged(); } i = -1; - if (this.guildScheduledEvents.get(Long.valueOf(f)) != null) { + if (this.guildScheduledEvents.get(Long.valueOf(g)) != null) { } markChanged(); } @StoreThread private final void processRsvpCreate(GuildScheduledEvent guildScheduledEvent, long j) { - long g = guildScheduledEvent.g(); - if (!isRsvpedToEvent(guildScheduledEvent.f(), g) || j != this.userStore.getMe().getId()) { - this.rsvpsAwaitingSnapshot.add(Long.valueOf(g)); - addUserRsvpForEvent(guildScheduledEvent.f(), guildScheduledEvent.g()); - Integer l = guildScheduledEvent.l(); - GuildScheduledEvent a = GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, Integer.valueOf(l != null ? l.intValue() + 1 : 1), null, 98303); - List list = this.guildScheduledEvents.get(Long.valueOf(a.f())); + long h = guildScheduledEvent.h(); + if (j != this.userStore.getMe().getId() || !isMeRsvpedToEvent(guildScheduledEvent.g(), h)) { + this.rsvpsAwaitingSnapshot.add(Long.valueOf(h)); + addUserRsvpForEvent(j, guildScheduledEvent.g(), h); + Integer m = guildScheduledEvent.m(); + GuildScheduledEvent a = GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, Integer.valueOf((m != null ? m.intValue() : 0) + 1), null, 98303); + List list = this.guildScheduledEvents.get(Long.valueOf(a.g())); if (list != null) { m.checkNotNullExpressionValue(list, "eventList"); Iterator it = list.iterator(); @@ -240,7 +278,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { i = -1; break; } - if (it.next().g() == g) { + if (it.next().h() == h) { break; } i++; @@ -251,80 +289,74 @@ public final class StoreGuildScheduledEvents extends StoreV2 { list.add(a); } } else { - this.guildScheduledEvents.put(Long.valueOf(guildScheduledEvent.f()), n.mutableListOf(a)); + this.guildScheduledEvents.put(Long.valueOf(guildScheduledEvent.g()), n.mutableListOf(a)); } markChanged(); } } - public static /* synthetic */ void processRsvpCreate$default(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j, int i, Object obj) { - if ((i & 2) != 0) { - j = storeGuildScheduledEvents.userStore.getMe().getId(); - } - storeGuildScheduledEvents.processRsvpCreate(guildScheduledEvent, j); - } - @StoreThread private final void processRsvpDelete(GuildScheduledEvent guildScheduledEvent, long j) { - long g = guildScheduledEvent.g(); - if (isRsvpedToEvent(guildScheduledEvent.f(), g) || j != this.userStore.getMe().getId()) { - this.rsvpsAwaitingSnapshot.add(Long.valueOf(g)); - removeUserRsvpForEvent(guildScheduledEvent.f(), g); - List list = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.f())); + long h = guildScheduledEvent.h(); + if (j != this.userStore.getMe().getId() || isMeRsvpedToEvent(guildScheduledEvent.g(), h)) { + this.rsvpsAwaitingSnapshot.add(Long.valueOf(h)); + removeUserRsvpForEvent(j, guildScheduledEvent.g(), h); + List list = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.g())); if (list != null) { m.checkNotNullExpressionValue(list, "eventList"); Iterator it = list.iterator(); int i = 0; - int i2 = 0; while (true) { if (!it.hasNext()) { - i2 = -1; + i = -1; break; } - if (it.next().g() == g) { + if (it.next().h() == h) { break; } - i2++; + i++; } - Integer valueOf = Integer.valueOf(i2); + Integer valueOf = Integer.valueOf(i); if (!(valueOf.intValue() != -1)) { valueOf = null; } if (valueOf != null) { int intValue = valueOf.intValue(); - Integer l = guildScheduledEvent.l(); - if (l != null) { - i = l.intValue() - 1; - } - list.set(intValue, GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, Integer.valueOf(i), null, 98303)); + Integer m = guildScheduledEvent.m(); + list.set(intValue, GuildScheduledEvent.a(guildScheduledEvent, 0, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, Integer.valueOf(f.coerceAtLeast(0, m != null ? m.intValue() - 1 : 0)), null, 98303)); } } markChanged(); } } - public static /* synthetic */ void processRsvpDelete$default(StoreGuildScheduledEvents storeGuildScheduledEvents, GuildScheduledEvent guildScheduledEvent, long j, int i, Object obj) { - if ((i & 2) != 0) { - j = storeGuildScheduledEvents.userStore.getMe().getId(); - } - storeGuildScheduledEvents.processRsvpDelete(guildScheduledEvent, j); - } - - private final void removeUserRsvpForEvent(long j, long j2) { + @StoreThread + private final void removeMeRsvpForEvent(long j, long j2) { Set set = this.userGuildScheduledEventIds.get(Long.valueOf(j)); if (set != null) { set.remove(Long.valueOf(j2)); } } + @StoreThread + private final void removeUserRsvpForEvent(long j, long j2, long j3) { + if (j == this.userStore.getMe().getId() && isMeRsvpedToEvent(j2, j3)) { + removeMeRsvpForEvent(j2, j3); + } + HashMap hashMap = this.usersForGuildEvent.get(Long.valueOf(j3)); + if (hashMap != null) { + hashMap.remove(Long.valueOf(j)); + } + } + /* JADX WARNING: Removed duplicated region for block: B:17:0x0063 */ /* JADX WARNING: Removed duplicated region for block: B:18:0x0073 */ /* JADX WARNING: Removed duplicated region for block: B:21:0x0088 */ public final void addGuildScheduledEventFromInvite(GuildScheduledEvent guildScheduledEvent) { int i; m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - long f = guildScheduledEvent.f(); - List list = this.guildScheduledEvents.get(Long.valueOf(f)); + long g = guildScheduledEvent.g(); + List list = this.guildScheduledEvents.get(Long.valueOf(g)); if (list != null) { Iterator it = list.iterator(); i = 0; @@ -332,20 +364,20 @@ public final class StoreGuildScheduledEvents extends StoreV2 { if (!it.hasNext()) { break; } - if (it.next().g() == guildScheduledEvent.g()) { + if (it.next().h() == guildScheduledEvent.h()) { break; } i++; } - if (i != -1 && !this.guildScheduledEvents.containsKey(Long.valueOf(f))) { - this.guildScheduledEvents.put(Long.valueOf(f), n.mutableListOf(guildScheduledEvent)); + if (i != -1 && !this.guildScheduledEvents.containsKey(Long.valueOf(g))) { + this.guildScheduledEvents.put(Long.valueOf(g), n.mutableListOf(guildScheduledEvent)); } else if (i != -1) { - ((List) h0.getValue(this.guildScheduledEvents, Long.valueOf(f))).add(guildScheduledEvent); + ((List) h0.getValue(this.guildScheduledEvents, Long.valueOf(g))).add(guildScheduledEvent); } else { - ((List) h0.getValue(this.guildScheduledEvents, Long.valueOf(f))).set(i, guildScheduledEvent); + ((List) h0.getValue(this.guildScheduledEvents, Long.valueOf(g))).set(i, guildScheduledEvent); } - if (guildScheduledEvent.m() != null) { - addUserRsvpForEvent(f, guildScheduledEvent.g()); + if (guildScheduledEvent.n() != null) { + addMeRsvpForEvent(g, guildScheduledEvent.h()); } markChanged(); } @@ -354,7 +386,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } if (i != -1) { } - if (guildScheduledEvent.m() != null) { + if (guildScheduledEvent.n() != null) { } markChanged(); } @@ -399,7 +431,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { break; } obj = it.next(); - if (j == ((GuildScheduledEvent) obj).g()) { + if (j == ((GuildScheduledEvent) obj).h()) { z3 = true; continue; } else { @@ -424,7 +456,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { break; } Object next = it2.next(); - if (j == ((GuildScheduledEvent) next).g()) { + if (j == ((GuildScheduledEvent) next).h()) { z2 = true; continue; } else { @@ -452,7 +484,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } Object next = it.next(); GuildScheduledEvent guildScheduledEvent = (GuildScheduledEvent) next; - if (!m.areEqual(guildScheduledEvent.b(), l2) || guildScheduledEvent.k() != GuildScheduledEventStatus.ACTIVE) { + if (!m.areEqual(guildScheduledEvent.b(), l2) || guildScheduledEvent.l() != GuildScheduledEventStatus.ACTIVE) { z2 = false; continue; } else { @@ -485,7 +517,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { GuildScheduledEvent guildScheduledEvent = (GuildScheduledEvent) obj; boolean z3 = false; if (z2) { - if (guildScheduledEvent.k() != GuildScheduledEventStatus.COMPLETED) { + if (guildScheduledEvent.l() != GuildScheduledEventStatus.COMPLETED) { if (guildScheduledEvent.b() != null) { Long l = permissionsByChannel.get(guildScheduledEvent.b()); if (l != null) { @@ -517,9 +549,9 @@ public final class StoreGuildScheduledEvents extends StoreV2 { return set != null ? set : n0.emptySet(); } - public final List getUsersForGuildEvent(long j) { - List list = this.usersForGuildEvent.get(Long.valueOf(j)); - return list != null ? list : n.emptyList(); + public final Map getUsersForGuildEvent(long j) { + HashMap hashMap = this.usersForGuildEvent.get(Long.valueOf(j)); + return hashMap != null ? hashMap : h0.emptyMap(); } @StoreThread @@ -569,7 +601,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { public final void handleGuildScheduledEventDelete(GuildScheduledEvent guildScheduledEvent) { List list; m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - List list2 = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.f())); + List list2 = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.g())); if (list2 != null) { Iterator it = list2.iterator(); int i = 0; @@ -578,15 +610,15 @@ public final class StoreGuildScheduledEvents extends StoreV2 { i = -1; break; } - if (it.next().g() == guildScheduledEvent.g()) { + if (it.next().h() == guildScheduledEvent.h()) { break; } i++; } - if (!(i == -1 || (list = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.f()))) == null)) { + if (!(i == -1 || (list = this.guildScheduledEvents.get(Long.valueOf(guildScheduledEvent.g()))) == null)) { list.remove(i); } - removeUserRsvpForEvent(guildScheduledEvent.f(), guildScheduledEvent.g()); + removeMeRsvpForEvent(guildScheduledEvent.g(), guildScheduledEvent.h()); markChanged(); } } @@ -598,7 +630,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } @StoreThread - public final void handleGuildScheduledEventUserCreate(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + public final void handleGuildScheduledEventUserAdd(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { m.checkNotNullParameter(guildScheduledEventUserUpdate, "guildScheduledEventUserUpdate"); GuildScheduledEvent findEventFromStore$default = findEventFromStore$default(this, guildScheduledEventUserUpdate.a(), null, 2, null); if (findEventFromStore$default != null) { @@ -607,7 +639,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } @StoreThread - public final void handleGuildScheduledEventUserDelete(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + public final void handleGuildScheduledEventUserRemove(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { m.checkNotNullParameter(guildScheduledEventUserUpdate, "guildScheduledEventUserUpdate"); GuildScheduledEvent findEventFromStore$default = findEventFromStore$default(this, guildScheduledEventUserUpdate.a(), null, 2, null); if (findEventFromStore$default != null) { @@ -615,7 +647,7 @@ public final class StoreGuildScheduledEvents extends StoreV2 { } } - public final boolean isRsvpedToEvent(long j, long j2) { + public final boolean isMeRsvpedToEvent(long j, long j2) { Set set = (Set) this.userGuildScheduledEventIdsSnapshot.get(Long.valueOf(j)); if (set == null) { set = n0.emptySet(); @@ -636,16 +668,17 @@ public final class StoreGuildScheduledEvents extends StoreV2 { super.snapshotData(); this.guildScheduledEventsSnapshot = new HashMap(this.guildScheduledEvents); this.userGuildScheduledEventIdsSnapshot = new HashMap(this.userGuildScheduledEventIds); + this.usersForGuildEventSnapshot = new HashMap(this.usersForGuildEvent); this.rsvpsAwaitingSnapshot.clear(); } - public final void toggleRsvpGuildScheduledEvent(GuildScheduledEvent guildScheduledEvent) { + public final void toggleMeRsvpForEvent(GuildScheduledEvent guildScheduledEvent) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); GuildScheduledEvent findEventFromStore = findEventFromStore(guildScheduledEvent); - long g = findEventFromStore.g(); - if (!this.rsvpsAwaitingNetwork.contains(Long.valueOf(g)) && !this.rsvpsAwaitingSnapshot.contains(Long.valueOf(g))) { - this.rsvpsAwaitingNetwork.add(Long.valueOf(g)); - this.dispatcher.schedule(new StoreGuildScheduledEvents$toggleRsvpGuildScheduledEvent$1(this, guildScheduledEvent, g, findEventFromStore)); + long h = findEventFromStore.h(); + if (!this.rsvpsAwaitingNetwork.contains(Long.valueOf(h)) && !this.rsvpsAwaitingSnapshot.contains(Long.valueOf(h))) { + this.rsvpsAwaitingNetwork.add(Long.valueOf(h)); + this.dispatcher.schedule(new StoreGuildScheduledEvents$toggleMeRsvpForEvent$1(this, guildScheduledEvent, h, findEventFromStore)); } } } diff --git a/app/src/main/java/com/discord/stores/StoreGuildStickers.java b/app/src/main/java/com/discord/stores/StoreGuildStickers.java index dfa2aba2a2..333c539030 100644 --- a/app/src/main/java/com/discord/stores/StoreGuildStickers.java +++ b/app/src/main/java/com/discord/stores/StoreGuildStickers.java @@ -161,7 +161,7 @@ public final class StoreGuildStickers extends StoreV2 { break; } obj = it.next(); - if (((GuildMember) obj).j().i() == this.f2217me) { + if (((GuildMember) obj).l().i() == this.f2217me) { z2 = true; continue; } else { diff --git a/app/src/main/java/com/discord/stores/StoreGuilds.java b/app/src/main/java/com/discord/stores/StoreGuilds.java index 1f83ebed86..39d4494e61 100644 --- a/app/src/main/java/com/discord/stores/StoreGuilds.java +++ b/app/src/main/java/com/discord/stores/StoreGuilds.java @@ -153,7 +153,7 @@ public final class StoreGuilds extends StoreV2 { @StoreThread private final void handleGuildMember(com.discord.api.guildmember.GuildMember guildMember, long j) { - long i = guildMember.j().i(); + long i = guildMember.l().i(); if (!this.guildMembers.containsKey(Long.valueOf(j))) { this.guildMembers.put(Long.valueOf(j), new HashMap()); } @@ -264,8 +264,8 @@ public final class StoreGuilds extends StoreV2 { Long l; MeUser meInternal$app_productionGoogleRelease = this.userStore.getMeInternal$app_productionGoogleRelease(); if (map != null && (guildMember = map.get(Long.valueOf(meInternal$app_productionGoogleRelease.getId()))) != null) { - UtcDateTime d = guildMember.d(); - long g = d != null ? d.g() : 0; + UtcDateTime f = guildMember.f(); + long g = f != null ? f.g() : 0; if (!this.guildsJoinedAt.containsKey(Long.valueOf(j)) || (l = this.guildsJoinedAt.get(Long.valueOf(j))) == null || l.longValue() != g) { this.guildsJoinedAt.put(Long.valueOf(j), Long.valueOf(g)); markChanged(GuildsUpdate); @@ -380,7 +380,7 @@ public final class StoreGuilds extends StoreV2 { @StoreThread public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - handleGuildMember(guildMember, guildMember.c()); + handleGuildMember(guildMember, guildMember.e()); } @StoreThread diff --git a/app/src/main/java/com/discord/stores/StoreMentions.java b/app/src/main/java/com/discord/stores/StoreMentions.java index 70305cf816..9b048437b8 100644 --- a/app/src/main/java/com/discord/stores/StoreMentions.java +++ b/app/src/main/java/com/discord/stores/StoreMentions.java @@ -331,7 +331,7 @@ public final class StoreMentions extends StoreV2 { break; } obj = it.next(); - if (((GuildMember) obj).j().i() == this.myId) { + if (((GuildMember) obj).l().i() == this.myId) { z2 = true; continue; } else { @@ -344,7 +344,7 @@ public final class StoreMentions extends StoreV2 { } GuildMember guildMember = (GuildMember) obj; if (guildMember != null) { - this.myRoleIds.put(Long.valueOf(guild.p()), guildMember.i()); + this.myRoleIds.put(Long.valueOf(guild.p()), guildMember.k()); } } List g = guild.g(); @@ -364,9 +364,9 @@ public final class StoreMentions extends StoreV2 { @StoreThread public final void handleGuildMemberAdd(GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - long i = guildMember.j().i(); + long i = guildMember.l().i(); if (i == this.myId) { - this.myRoleIds.put(Long.valueOf(i), guildMember.i()); + this.myRoleIds.put(Long.valueOf(i), guildMember.k()); } } diff --git a/app/src/main/java/com/discord/stores/StoreMessageAck.java b/app/src/main/java/com/discord/stores/StoreMessageAck.java index f6b864c286..1a4579a36f 100644 --- a/app/src/main/java/com/discord/stores/StoreMessageAck.java +++ b/app/src/main/java/com/discord/stores/StoreMessageAck.java @@ -522,7 +522,7 @@ public final class StoreMessageAck extends StoreV2 { long j; List g; Object obj; - UtcDateTime d; + UtcDateTime f; boolean z2; m.checkNotNullParameter(modelPayload, "payload"); ModelPayload.VersionedReadStates readState = modelPayload.getReadState(); @@ -553,7 +553,7 @@ public final class StoreMessageAck extends StoreV2 { break; } obj = it.next(); - if (((GuildMember) obj).j().i() == modelPayload.getMe().i()) { + if (((GuildMember) obj).l().i() == modelPayload.getMe().i()) { z2 = true; continue; } else { @@ -565,8 +565,8 @@ public final class StoreMessageAck extends StoreV2 { } } GuildMember guildMember = (GuildMember) obj; - if (!(guildMember == null || (d = guildMember.d()) == null)) { - j = d.g(); + if (!(guildMember == null || (f = guildMember.f()) == null)) { + j = f.g(); g = guild.g(); if (g == null) { ArrayList arrayList = new ArrayList(); diff --git a/app/src/main/java/com/discord/stores/StoreMessagesHolder.java b/app/src/main/java/com/discord/stores/StoreMessagesHolder.java index 3dd0e7de60..35b530f751 100644 --- a/app/src/main/java/com/discord/stores/StoreMessagesHolder.java +++ b/app/src/main/java/com/discord/stores/StoreMessagesHolder.java @@ -38,7 +38,7 @@ public class StoreMessagesHolder { private static final int MAX_MESSAGES_PER_CHANNEL = 200; private static final int MAX_MESSAGES_PER_CHANNEL_TRIM = 100; private final Set activeChannels = new HashSet(); - private final Persister>> cache = new Persister<>("STORE_MESSAGES_CACHE_V36", new HashMap()); + private final Persister>> cache = new Persister<>("STORE_MESSAGES_CACHE_V37", new HashMap()); private boolean cacheEnabled; private Subscription cachePersistSubscription; private long cachePersistedAt = ClockFactory.get().currentTimeMillis(); diff --git a/app/src/main/java/com/discord/stores/StoreNotificationUpsells$observePushNotificationUpsellDismissed$1.java b/app/src/main/java/com/discord/stores/StoreNotificationUpsells$observePushNotificationUpsellDismissed$1.java new file mode 100644 index 0000000000..6536a259ed --- /dev/null +++ b/app/src/main/java/com/discord/stores/StoreNotificationUpsells$observePushNotificationUpsellDismissed$1.java @@ -0,0 +1,22 @@ +package com.discord.stores; + +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: StoreNotificationUpsells.kt */ +public final class StoreNotificationUpsells$observePushNotificationUpsellDismissed$1 extends o implements Function0 { + public final /* synthetic */ StoreNotificationUpsells this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public StoreNotificationUpsells$observePushNotificationUpsellDismissed$1(StoreNotificationUpsells storeNotificationUpsells) { + super(0); + this.this$0 = storeNotificationUpsells; + } + + /* Return type fixed from 'boolean' to match base method */ + /* JADX WARNING: Unknown variable types count: 1 */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final Boolean mo1invoke() { + return StoreNotificationUpsells.access$getPushNotificationsUpsellDismissed(this.this$0); + } +} diff --git a/app/src/main/java/com/discord/stores/StoreNotificationUpsells.java b/app/src/main/java/com/discord/stores/StoreNotificationUpsells.java new file mode 100644 index 0000000000..66d54b714a --- /dev/null +++ b/app/src/main/java/com/discord/stores/StoreNotificationUpsells.java @@ -0,0 +1,44 @@ +package com.discord.stores; + +import com.discord.stores.updates.ObservationDeck; +import com.discord.stores.updates.ObservationDeckProvider; +import d0.z.d.m; +import kotlin.jvm.internal.DefaultConstructorMarker; +import rx.Observable; +/* compiled from: StoreNotificationUpsells.kt */ +public final class StoreNotificationUpsells extends StoreV2 { + private final ObservationDeck observationDeck; + + public StoreNotificationUpsells() { + this(null, 1, null); + } + + public StoreNotificationUpsells(ObservationDeck observationDeck) { + m.checkNotNullParameter(observationDeck, "observationDeck"); + this.observationDeck = observationDeck; + } + + /* JADX INFO: this call moved to the top of the method (can break code semantics) */ + public /* synthetic */ StoreNotificationUpsells(ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? ObservationDeckProvider.get() : observationDeck); + } + + public static final /* synthetic */ boolean access$getPushNotificationsUpsellDismissed(StoreNotificationUpsells storeNotificationUpsells) { + return storeNotificationUpsells.getPushNotificationsUpsellDismissed(); + } + + private final boolean getPushNotificationsUpsellDismissed() { + return getPrefsSessionDurable().getBoolean("PUSH_NOTIFICATIONS_DISMISS_UPSELL", false); + } + + public final void dismissPushNotificationsUpsell() { + getPrefsSessionDurable().edit().putBoolean("PUSH_NOTIFICATIONS_DISMISS_UPSELL", true).apply(); + markChanged(); + } + + public final Observable observePushNotificationUpsellDismissed() { + Observable q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreNotificationUpsells$observePushNotificationUpsellDismissed$1(this), 14, null).q(); + m.checkNotNullExpressionValue(q, "observationDeck.connectR… .distinctUntilChanged()"); + return q; + } +} diff --git a/app/src/main/java/com/discord/stores/StoreNotificationUpsellsKt.java b/app/src/main/java/com/discord/stores/StoreNotificationUpsellsKt.java new file mode 100644 index 0000000000..96f77b4454 --- /dev/null +++ b/app/src/main/java/com/discord/stores/StoreNotificationUpsellsKt.java @@ -0,0 +1,5 @@ +package com.discord.stores; +/* compiled from: StoreNotificationUpsells.kt */ +public final class StoreNotificationUpsellsKt { + private static final String PUSH_UPSELL_DISMISS_KEY = "PUSH_NOTIFICATIONS_DISMISS_UPSELL"; +} diff --git a/app/src/main/java/com/discord/stores/StorePermissions.java b/app/src/main/java/com/discord/stores/StorePermissions.java index a5c603bbd0..6b7e984692 100644 --- a/app/src/main/java/com/discord/stores/StorePermissions.java +++ b/app/src/main/java/com/discord/stores/StorePermissions.java @@ -225,8 +225,8 @@ public final class StorePermissions extends StoreV2 { @StoreThread public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - if (getMeId() != 0 && guildMember.j().i() == getMeId()) { - updateGuildPermissions(guildMember.c(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(guildMember.c())); + if (getMeId() != 0 && guildMember.l().i() == getMeId()) { + updateGuildPermissions(guildMember.e(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(guildMember.e())); } } diff --git a/app/src/main/java/com/discord/stores/StoreRtcConnection.java b/app/src/main/java/com/discord/stores/StoreRtcConnection.java index 69266cbece..c1b1ca793d 100644 --- a/app/src/main/java/com/discord/stores/StoreRtcConnection.java +++ b/app/src/main/java/com/discord/stores/StoreRtcConnection.java @@ -546,7 +546,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionGoogleRelease().getStageInstanceForChannel(channel.h()); Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null; GuildScheduledEvent activeEventForChannel = this.stream.getGuildScheduledEvents$app_productionGoogleRelease().getActiveEventForChannel(Long.valueOf(channel.f()), Long.valueOf(channel.h())); - Long valueOf2 = activeEventForChannel != null ? Long.valueOf(activeEventForChannel.g()) : null; + Long valueOf2 = activeEventForChannel != null ? Long.valueOf(activeEventForChannel.h()) : null; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; Map map = (Map) a.t0(channel, this.stream.getVoiceStates$app_productionGoogleRelease().get()); if (map == null) { @@ -573,7 +573,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionGoogleRelease().getStageInstanceForChannel(channel.h()); Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null; GuildScheduledEvent activeEventForChannel = this.stream.getGuildScheduledEvents$app_productionGoogleRelease().getActiveEventForChannel(Long.valueOf(channel.f()), Long.valueOf(channel.h())); - Long valueOf2 = activeEventForChannel != null ? Long.valueOf(activeEventForChannel.g()) : null; + Long valueOf2 = activeEventForChannel != null ? Long.valueOf(activeEventForChannel.h()) : null; LinkedHashMap linkedHashMap = new LinkedHashMap(); VoicePropsTracker voicePropsTracker = this.voicePropsTracker; if (voicePropsTracker != null) { diff --git a/app/src/main/java/com/discord/stores/StoreStageChannels.java b/app/src/main/java/com/discord/stores/StoreStageChannels.java index 047bb31dc8..494828f724 100644 --- a/app/src/main/java/com/discord/stores/StoreStageChannels.java +++ b/app/src/main/java/com/discord/stores/StoreStageChannels.java @@ -500,19 +500,19 @@ public final class StoreStageChannels extends StoreV2 { public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { StageRoles stageRoles; m.checkNotNullParameter(guildMember, "member"); - User user = this.userStore.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(guildMember.j().i())); + User user = this.userStore.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(guildMember.l().i())); if (user == null || !user.isBot()) { - for (Long l : stageChannelIdsInGuildForDispatch(guildMember.c())) { + for (Long l : stageChannelIdsInGuildForDispatch(guildMember.e())) { long longValue = l.longValue(); Map map = this.stageRolesByChannel.get(Long.valueOf(longValue)); - if (!(map == null || (stageRoles = map.get(Long.valueOf(guildMember.j().i()))) == null)) { + if (!(map == null || (stageRoles = map.get(Long.valueOf(guildMember.l().i()))) == null)) { int r15 = stageRoles.m29unboximpl(); Channel channel = this.channelsStore.getChannelsByIdInternal$app_productionGoogleRelease().get(Long.valueOf(longValue)); if (channel != null) { - int r5 = m5computeUserRolesInDispatcht27eFtU$default(this, guildMember.j().i(), channel, null, null, 12, null); + int r5 = m5computeUserRolesInDispatcht27eFtU$default(this, guildMember.l().i(), channel, null, null, 12, null); if (!StageRoles.m22equalsimpl0(r5, r15)) { - map.put(Long.valueOf(guildMember.j().i()), StageRoles.m19boximpl(r5)); - m9handleUserRoleChangeuOJZ9lM(channel, guildMember.j().i(), StageRoles.m19boximpl(r15), r5); + map.put(Long.valueOf(guildMember.l().i()), StageRoles.m19boximpl(r5)); + m9handleUserRoleChangeuOJZ9lM(channel, guildMember.l().i(), StageRoles.m19boximpl(r15), r5); this.dirtyChannelIds.add(Long.valueOf(longValue)); markChanged(); } diff --git a/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$73.java b/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$73.java index 2b369905f0..0d9d404408 100644 --- a/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$73.java +++ b/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$73.java @@ -8,7 +8,7 @@ import kotlin.jvm.functions.Function1; /* compiled from: StoreStream.kt */ public final /* synthetic */ class StoreStream$initGatewaySocketListeners$73 extends k implements Function1 { public StoreStream$initGatewaySocketListeners$73(StoreStream storeStream) { - super(1, storeStream, StoreStream.class, "handleGuildScheduledEventUserCreate", "handleGuildScheduledEventUserCreate(Lcom/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate;)V", 0); + super(1, storeStream, StoreStream.class, "guildScheduledEventUserAdd", "guildScheduledEventUserAdd(Lcom/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -21,6 +21,6 @@ public final /* synthetic */ class StoreStream$initGatewaySocketListeners$73 ext public final void invoke(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { m.checkNotNullParameter(guildScheduledEventUserUpdate, "p1"); - StoreStream.access$handleGuildScheduledEventUserCreate((StoreStream) this.receiver, guildScheduledEventUserUpdate); + StoreStream.access$guildScheduledEventUserAdd((StoreStream) this.receiver, guildScheduledEventUserUpdate); } } diff --git a/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$74.java b/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$74.java index c98d9c97fe..6447828c17 100644 --- a/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$74.java +++ b/app/src/main/java/com/discord/stores/StoreStream$initGatewaySocketListeners$74.java @@ -8,7 +8,7 @@ import kotlin.jvm.functions.Function1; /* compiled from: StoreStream.kt */ public final /* synthetic */ class StoreStream$initGatewaySocketListeners$74 extends k implements Function1 { public StoreStream$initGatewaySocketListeners$74(StoreStream storeStream) { - super(1, storeStream, StoreStream.class, "handleGuildScheduledEventUserDelete", "handleGuildScheduledEventUserDelete(Lcom/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate;)V", 0); + super(1, storeStream, StoreStream.class, "guildScheduledEventUserRemove", "guildScheduledEventUserRemove(Lcom/discord/api/guildscheduledevent/GuildScheduledEventUserUpdate;)V", 0); } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -21,6 +21,6 @@ public final /* synthetic */ class StoreStream$initGatewaySocketListeners$74 ext public final void invoke(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { m.checkNotNullParameter(guildScheduledEventUserUpdate, "p1"); - StoreStream.access$handleGuildScheduledEventUserDelete((StoreStream) this.receiver, guildScheduledEventUserUpdate); + StoreStream.access$guildScheduledEventUserRemove((StoreStream) this.receiver, guildScheduledEventUserUpdate); } } diff --git a/app/src/main/java/com/discord/stores/StoreStream.java b/app/src/main/java/com/discord/stores/StoreStream.java index ce96edb10c..8e61ec272c 100644 --- a/app/src/main/java/com/discord/stores/StoreStream.java +++ b/app/src/main/java/com/discord/stores/StoreStream.java @@ -203,6 +203,7 @@ public final class StoreStream { private final StoreMFA mfa; private final StoreNavigation navigation; private final StoreNotices notices; + private final StoreNotificationUpsells notificationUpsells; private final StoreNotifications notifications; private final StoreNux nux; private final StoreOutboundPromotions outboundPromotions; @@ -594,6 +595,10 @@ public final class StoreStream { return getCollector().getNotices$app_productionGoogleRelease(); } + public final StoreNotificationUpsells getNotificationUpsells() { + return getCollector().getNotificationUpsells$app_productionGoogleRelease(); + } + public final StoreNotifications getNotifications() { return getCollector().getNotifications$app_productionGoogleRelease(); } @@ -946,8 +951,7 @@ public final class StoreStream { this.mfa = new StoreMFA(this, this.dispatcher, ObservationDeckProvider.get()); StoreStreamRtcConnection storeStreamRtcConnection = new StoreStreamRtcConnection(storeMediaEngine, this.users, this, this.dispatcher, this.clock, this.analytics, storeRtcConnection, null, null, null, 896, null); this.streamRtcConnection = storeStreamRtcConnection; - StoreAudioManagerV2 storeAudioManagerV2 = new StoreAudioManagerV2(ObservationDeckProvider.get(), this.dispatcher, storeVoiceChannelSelected, this.channels, storeStreamRtcConnection, videoUseDetector, this.experiments); - this.audioManagerV2 = storeAudioManagerV2; + this.audioManagerV2 = new StoreAudioManagerV2(ObservationDeckProvider.get(), this.dispatcher, storeVoiceChannelSelected, this.channels, storeStreamRtcConnection, videoUseDetector, this.experiments); StoreApplicationStreamPreviews storeApplicationStreamPreviews = new StoreApplicationStreamPreviews(this.dispatcher, this.clock, null, null, 12, null); this.applicationStreamPreviews = storeApplicationStreamPreviews; StoreGuildsSorted storeGuildsSorted = new StoreGuildsSorted(ObservationDeckProvider.get(), this.dispatcher, this.guilds, this.lurking); @@ -1026,13 +1030,15 @@ public final class StoreStream { this.guildStickers = storeGuildStickers; StoreOutboundPromotions storeOutboundPromotions = new StoreOutboundPromotions(new OutboundPromosPreviewFeatureFlag(this.experiments), this.dispatcher, null, null, 12, null); this.outboundPromotions = storeOutboundPromotions; - StoreGuildScheduledEvents storeGuildScheduledEvents = new StoreGuildScheduledEvents(this.dispatcher, ObservationDeckProvider.get(), this.permissions, this.users, this.clock); + StoreGuildScheduledEvents storeGuildScheduledEvents = new StoreGuildScheduledEvents(this.dispatcher, ObservationDeckProvider.get(), this.permissions, this.users, this.guilds, this.clock); this.guildScheduledEvents = storeGuildScheduledEvents; StoreGuildRoleSubscriptions storeGuildRoleSubscriptions = new StoreGuildRoleSubscriptions(this.dispatcher, null, 2, null); this.guildRoleSubscriptions = storeGuildRoleSubscriptions; + StoreNotificationUpsells storeNotificationUpsells = new StoreNotificationUpsells(null, 1, null); + this.notificationUpsells = storeNotificationUpsells; ConnectionTimeStats connectionTimeStats = new ConnectionTimeStats(this.clock); this.connectionTimeStats = connectionTimeStats; - List listOf = n.listOf((Object[]) new StoreV2[]{this.bans, this.users, this.guilds, this.channels, this.channelConversions, this.presences, this.permissions, this.voiceChannelSelected, this.voiceSpeaking, this.accessibility, this.callsIncoming, this.connectivity, this.connectionOpen, storeGuildWelcomeScreens, storeGuildVoiceRegions, this.videoStreams, storeClientDataState, storeGifPicker, storeStickers, this.guildMemberCounts, this.guildJoinRequests, this.experiments, this.messageReplies, storeChannelFollowerStats, storePendingReplies, storeGuildProfiles, this.application, storeApplicationCommands, this.guildSelected, this.channelsSelected, this.pinnedMessages, storeGuildMemberVerificationForm, this.userRequiredAction, this.userSurvey, storePhone, storeThreadsActive, this.threadsJoined, storeThreadsActiveJoined, storeThreadMessages, archivedThreadsStore, storeThreadDraft, storeExpressionPickerNavigation, storePremiumGuildSubscription, this.collapsedChannelCategories, this.messageUploads, storeExpressionSuggestions, this.applicationStreaming, storeApplicationInteractions, storeApplicationCommandFrecency, storeLocalActionComponentState, this.stageInstances, this.requestedStageChannels, storeStageChannels, storeStageChannelSelfPresence, storeAutocomplete, this.messageReactions, this.library, this.userRelationships, this.userSettingsSystem, this.tabsNavigation, this.voiceStates, this.mentions, storeUserAffinities, this.userProfile, this.userConnections, this.messagesMostRecent, this.usersTyping, this.instantInvites, this.guildSettings, this.customEmojis, storeEntitlements, storeMediaFavorites, this.subscriptions, storeGooglePlayPurchases, storeGooglePlaySkuDetails, this.guildTemplates, this.userNotes, this.mfa, this.messageAck, this.guildSubscriptions, this.lazyChannelMembersStore, this.lazyThreadMembersStore, this.guildEmojis, storeGuildsSorted, this.auditLog, storeExpandedGuildFolders, this.maskedLinks, this.streamRtcConnection, this.paymentSources, storeContactSync, storeApplicationStreamPreviews, this.guildsNsfw, this.gameParty, storeFriendSuggestions, this.chat, storeAudioManagerV2, storeGuildStickers, storeOutboundPromotions, storeDirectories, storeGuildScheduledEvents, storeGuildRoleSubscriptions}); + List listOf = n.listOf((Object[]) new StoreV2[]{this.bans, this.users, this.guilds, this.channels, this.channelConversions, this.presences, this.permissions, this.voiceChannelSelected, this.voiceSpeaking, this.accessibility, this.callsIncoming, this.connectivity, this.connectionOpen, storeGuildWelcomeScreens, storeGuildVoiceRegions, this.videoStreams, storeClientDataState, storeGifPicker, storeStickers, this.guildMemberCounts, this.guildJoinRequests, this.experiments, this.messageReplies, storeChannelFollowerStats, storePendingReplies, storeGuildProfiles, this.application, storeApplicationCommands, this.guildSelected, this.channelsSelected, this.pinnedMessages, storeGuildMemberVerificationForm, this.userRequiredAction, this.userSurvey, storePhone, storeThreadsActive, this.threadsJoined, storeThreadsActiveJoined, storeThreadMessages, archivedThreadsStore, storeThreadDraft, storeExpressionPickerNavigation, storePremiumGuildSubscription, this.collapsedChannelCategories, this.messageUploads, storeExpressionSuggestions, this.applicationStreaming, storeApplicationInteractions, storeApplicationCommandFrecency, storeLocalActionComponentState, this.stageInstances, this.requestedStageChannels, storeStageChannels, storeStageChannelSelfPresence, storeAutocomplete, this.messageReactions, this.library, this.userRelationships, this.userSettingsSystem, this.tabsNavigation, this.voiceStates, this.mentions, storeUserAffinities, this.userProfile, this.userConnections, this.messagesMostRecent, this.usersTyping, this.instantInvites, this.guildSettings, this.customEmojis, storeEntitlements, storeMediaFavorites, this.subscriptions, storeGooglePlayPurchases, storeGooglePlaySkuDetails, this.guildTemplates, this.userNotes, this.mfa, this.messageAck, this.guildSubscriptions, this.lazyChannelMembersStore, this.lazyThreadMembersStore, this.guildEmojis, storeGuildsSorted, this.auditLog, storeExpandedGuildFolders, this.maskedLinks, this.streamRtcConnection, this.paymentSources, storeContactSync, storeApplicationStreamPreviews, this.guildsNsfw, this.gameParty, storeFriendSuggestions, this.chat, this.audioManagerV2, storeGuildStickers, storeOutboundPromotions, storeDirectories, storeGuildScheduledEvents, storeGuildRoleSubscriptions, storeNotificationUpsells}); this.storesV2 = listOf; StoreV2DispatchHandler storeV2DispatchHandler = new StoreV2DispatchHandler(listOf, null, 2, null); this.storeV2DispatchHandler = storeV2DispatchHandler; @@ -1086,6 +1092,14 @@ public final class StoreStream { return storeStream.streamRtcConnection; } + public static final /* synthetic */ void access$guildScheduledEventUserAdd(StoreStream storeStream, GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + storeStream.guildScheduledEventUserAdd(guildScheduledEventUserUpdate); + } + + public static final /* synthetic */ void access$guildScheduledEventUserRemove(StoreStream storeStream, GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + storeStream.guildScheduledEventUserRemove(guildScheduledEventUserUpdate); + } + public static final /* synthetic */ void access$handleAuthToken(StoreStream storeStream, String str) { storeStream.handleAuthToken(str); } @@ -1218,14 +1232,6 @@ public final class StoreStream { storeStream.handleGuildScheduledEventUpdate(guildScheduledEvent); } - public static final /* synthetic */ void access$handleGuildScheduledEventUserCreate(StoreStream storeStream, GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { - storeStream.handleGuildScheduledEventUserCreate(guildScheduledEventUserUpdate); - } - - public static final /* synthetic */ void access$handleGuildScheduledEventUserDelete(StoreStream storeStream, GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { - storeStream.handleGuildScheduledEventUserDelete(guildScheduledEventUserUpdate); - } - public static final /* synthetic */ void access$handleGuildSettingUpdated(StoreStream storeStream, ModelNotificationSettings modelNotificationSettings) { storeStream.handleGuildSettingUpdated(modelNotificationSettings); } @@ -1810,6 +1816,16 @@ public final class StoreStream { return Companion.getVoiceStates(); } + @StoreThread + private final void guildScheduledEventUserAdd(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + this.guildScheduledEvents.handleGuildScheduledEventUserAdd(guildScheduledEventUserUpdate); + } + + @StoreThread + private final void guildScheduledEventUserRemove(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { + this.guildScheduledEvents.handleGuildScheduledEventUserRemove(guildScheduledEventUserUpdate); + } + @StoreThread private final void handleAuthToken(String str) { this.authentication.handleAuthToken$app_productionGoogleRelease(str); @@ -2211,16 +2227,6 @@ public final class StoreStream { this.guildScheduledEvents.handleGuildScheduledEventUpdate(guildScheduledEvent); } - @StoreThread - private final void handleGuildScheduledEventUserCreate(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { - this.guildScheduledEvents.handleGuildScheduledEventUserCreate(guildScheduledEventUserUpdate); - } - - @StoreThread - private final void handleGuildScheduledEventUserDelete(GuildScheduledEventUserUpdate guildScheduledEventUserUpdate) { - this.guildScheduledEvents.handleGuildScheduledEventUserDelete(guildScheduledEventUserUpdate); - } - @StoreThread private final void handleGuildSettingUpdated(ModelNotificationSettings modelNotificationSettings) { this.guildSettings.handleGuildSettingUpdated$app_productionGoogleRelease(d0.t.m.listOf(modelNotificationSettings)); @@ -2253,10 +2259,10 @@ public final class StoreStream { private final void handleItem(long j, ModelGuildMemberListUpdate.Operation.Item item) { if (item instanceof ModelGuildMemberListUpdate.Operation.Item.MemberItem) { GuildMember member = ((ModelGuildMemberListUpdate.Operation.Item.MemberItem) item).getMember(); - synthesizeGuildMemberAdd(Long.valueOf(j), member.j(), member); - Presence h = member.h(); - if (h != null) { - handlePresenceUpdate(j, h); + synthesizeGuildMemberAdd(Long.valueOf(j), member.l(), member); + Presence j2 = member.j(); + if (j2 != null) { + handlePresenceUpdate(j, j2); } } } @@ -2493,7 +2499,7 @@ public final class StoreStream { private final void handleTypingStart(TypingUser typingUser) { Long valueOf = Long.valueOf(typingUser.b()); GuildMember c2 = typingUser.c(); - synthesizeGuildMemberAdd(valueOf, c2 != null ? c2.j() : null, typingUser.c()); + synthesizeGuildMemberAdd(valueOf, c2 != null ? c2.l() : null, typingUser.c()); this.usersTyping.handleTypingStart(typingUser); } @@ -2547,7 +2553,7 @@ public final class StoreStream { private final void handleVoiceStateUpdate(VoiceState voiceState) { Long valueOf = Long.valueOf(voiceState.c()); GuildMember d = voiceState.d(); - synthesizeGuildMemberAdd(valueOf, d != null ? d.j() : null, voiceState.d()); + synthesizeGuildMemberAdd(valueOf, d != null ? d.l() : null, voiceState.d()); this.voiceStates.handleVoiceStateUpdate(voiceState); StoreApplicationStreaming.handleVoiceStateUpdate$default(this.applicationStreaming, voiceState, 0, 2, null); this.voiceChannelSelected.handleVoiceStateUpdates(voiceState); @@ -2640,8 +2646,8 @@ public final class StoreStream { dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventCreate(), "guildScheduledEventCreate", new StoreStream$initGatewaySocketListeners$70(this)); dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventUpdate(), "guildScheduledEventUpdate", new StoreStream$initGatewaySocketListeners$71(this)); dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventDelete(), "guildScheduledEventDelete", new StoreStream$initGatewaySocketListeners$72(this)); - dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventUserCreate(), "guildScheduledEventUserCreate", new StoreStream$initGatewaySocketListeners$73(this)); - dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventUserDelete(), "guildScheduledEventUserDelete", new StoreStream$initGatewaySocketListeners$74(this)); + dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventUserAdd(), "guildScheduledEventUserAdd", new StoreStream$initGatewaySocketListeners$73(this)); + dispatchSubscribe(this.gatewaySocket.getGuildScheduledEventUserRemove(), "guildScheduledEventUserRemove", new StoreStream$initGatewaySocketListeners$74(this)); } private final void maybeLogNotificationPermissionStatus(Application application, Clock clock) { @@ -2681,21 +2687,21 @@ public final class StoreStream { @StoreThread private final void synthesizeGuildMemberAdd(Long l, User user, GuildMember guildMember) { UtcDateTime utcDateTime = null; - List i = guildMember != null ? guildMember.i() : null; - String e = guildMember != null ? guildMember.e() : null; + List k = guildMember != null ? guildMember.k() : null; String g = guildMember != null ? guildMember.g() : null; - Boolean valueOf = guildMember != null ? Boolean.valueOf(guildMember.f()) : null; + String i = guildMember != null ? guildMember.i() : null; + Boolean valueOf = guildMember != null ? Boolean.valueOf(guildMember.h()) : null; String b = guildMember != null ? guildMember.b() : null; if (guildMember != null) { - utcDateTime = guildMember.d(); + utcDateTime = guildMember.f(); } - synthesizeGuildMemberAdd(l, user, i, e, g, valueOf, b, utcDateTime); + synthesizeGuildMemberAdd(l, user, k, g, i, valueOf, b, utcDateTime); } @StoreThread private final void synthesizeGuildMemberAdd(Long l, User user, List list, String str, String str2, Boolean bool, String str3, UtcDateTime utcDateTime) { if (l != null && user != null && list != null) { - handleGuildMemberAdd(new GuildMember(l.longValue(), user, list, str, str2, utcDateTime, bool != null ? bool.booleanValue() : false, null, null, str3)); + handleGuildMemberAdd(new GuildMember(l.longValue(), user, list, str, str2, utcDateTime, bool != null ? bool.booleanValue() : false, null, null, str3, null, null)); } } @@ -3035,6 +3041,10 @@ public final class StoreStream { return this.notices; } + public final StoreNotificationUpsells getNotificationUpsells$app_productionGoogleRelease() { + return this.notificationUpsells; + } + public final StoreNotifications getNotifications$app_productionGoogleRelease() { return this.notifications; } diff --git a/app/src/main/java/com/discord/stores/StoreThreadMembers.java b/app/src/main/java/com/discord/stores/StoreThreadMembers.java index fca4815d30..316e5c3a9c 100644 --- a/app/src/main/java/com/discord/stores/StoreThreadMembers.java +++ b/app/src/main/java/com/discord/stores/StoreThreadMembers.java @@ -96,14 +96,14 @@ public final class StoreThreadMembers extends StoreV2 { @StoreThread public final void handleThreadMembersUpdate(ThreadMembersUpdate threadMembersUpdate) { - User j; + User l; m.checkNotNullParameter(threadMembersUpdate, "threadMembersUpdate"); if (this.memberLists.containsKey(Long.valueOf(threadMembersUpdate.c()))) { List a = threadMembersUpdate.a(); if (a != null) { for (AugmentedThreadMember augmentedThreadMember : a) { GuildMember c2 = augmentedThreadMember.c(); - Long valueOf = (c2 == null || (j = c2.j()) == null) ? null : Long.valueOf(j.i()); + Long valueOf = (c2 == null || (l = c2.l()) == null) ? null : Long.valueOf(l.i()); if (valueOf != null) { Set set = this.memberLists.get(Long.valueOf(threadMembersUpdate.c())); if (set != null) { diff --git a/app/src/main/java/com/discord/stores/StoreUser.java b/app/src/main/java/com/discord/stores/StoreUser.java index 1572f1ad01..ccd23f6293 100644 --- a/app/src/main/java/com/discord/stores/StoreUser.java +++ b/app/src/main/java/com/discord/stores/StoreUser.java @@ -257,7 +257,7 @@ public final class StoreUser extends StoreV2 { List t = guild.t(); if (t != null) { for (GuildMember guildMember : t) { - this.users.put(Long.valueOf(guildMember.j().i()), new CoreUser(guildMember.j())); + this.users.put(Long.valueOf(guildMember.l().i()), new CoreUser(guildMember.l())); } } } @@ -291,7 +291,7 @@ public final class StoreUser extends StoreV2 { List t = guild.t(); if (t != null) { for (GuildMember guildMember : t) { - updateUser(guildMember.j()); + updateUser(guildMember.l()); } } } @@ -299,14 +299,14 @@ public final class StoreUser extends StoreV2 { @StoreThread public final void handleGuildMemberAdd(GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - updateUser(guildMember.j()); + updateUser(guildMember.l()); } @StoreThread public final void handleGuildMembersChunk(GuildMembersChunk guildMembersChunk) { m.checkNotNullParameter(guildMembersChunk, "chunk"); for (GuildMember guildMember : guildMembersChunk.b()) { - updateUser(guildMember.j()); + updateUser(guildMember.l()); } } @@ -360,7 +360,7 @@ public final class StoreUser extends StoreV2 { for (ThreadListMember threadListMember : b) { GuildMember a = threadListMember.a(); if (a != null) { - updateUser(a.j()); + updateUser(a.l()); } Presence b2 = threadListMember.b(); User f = b2 != null ? b2.f() : null; @@ -379,7 +379,7 @@ public final class StoreUser extends StoreV2 { for (AugmentedThreadMember augmentedThreadMember : a) { GuildMember c2 = augmentedThreadMember.c(); if (c2 != null) { - updateUser(c2.j()); + updateUser(c2.l()); } Presence f = augmentedThreadMember.f(); User f2 = f != null ? f.f() : null; diff --git a/app/src/main/java/com/discord/stores/StoreUserProfile$fetchProfile$1.java b/app/src/main/java/com/discord/stores/StoreUserProfile$fetchProfile$1.java index 4ae81e11b2..88cbbb5156 100644 --- a/app/src/main/java/com/discord/stores/StoreUserProfile$fetchProfile$1.java +++ b/app/src/main/java/com/discord/stores/StoreUserProfile$fetchProfile$1.java @@ -13,6 +13,7 @@ import kotlin.jvm.functions.Function1; import rx.Observable; /* compiled from: StoreUserProfile.kt */ public final class StoreUserProfile$fetchProfile$1 extends o implements Function0 { + public final /* synthetic */ Function1 $onFetchSuccess; public final /* synthetic */ long $userId; public final /* synthetic */ StoreUserProfile this$0; @@ -24,23 +25,28 @@ public final class StoreUserProfile$fetchProfile$1 extends o implements Function /* compiled from: StoreUserProfile.kt */ /* renamed from: com.discord.stores.StoreUserProfile$fetchProfile$1$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { - public final /* synthetic */ ModelUserProfile $it; + public final /* synthetic */ ModelUserProfile $userProfile; public final /* synthetic */ AnonymousClass1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(AnonymousClass1 r1, ModelUserProfile modelUserProfile) { super(0); this.this$0 = r1; - this.$it = modelUserProfile; + this.$userProfile = modelUserProfile; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - ModelUserProfile modelUserProfile = this.$it; - if (modelUserProfile != null) { + ModelUserProfile modelUserProfile; + ModelUserProfile modelUserProfile2 = this.$userProfile; + if (modelUserProfile2 != null) { StoreUserProfile$fetchProfile$1 storeUserProfile$fetchProfile$1 = this.this$0.this$0; - StoreUserProfile.access$handleUserProfile(storeUserProfile$fetchProfile$1.this$0, modelUserProfile, storeUserProfile$fetchProfile$1.$userId); + StoreUserProfile.access$handleUserProfile(storeUserProfile$fetchProfile$1.this$0, modelUserProfile2, storeUserProfile$fetchProfile$1.$userId); + } + Function1 function1 = this.this$0.this$0.$onFetchSuccess; + if (function1 != null && (modelUserProfile = this.$userProfile) != null) { + function1.invoke(modelUserProfile); } } } @@ -109,10 +115,11 @@ public final class StoreUserProfile$fetchProfile$1 extends o implements Function } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public StoreUserProfile$fetchProfile$1(StoreUserProfile storeUserProfile, long j) { + public StoreUserProfile$fetchProfile$1(StoreUserProfile storeUserProfile, long j, Function1 function1) { super(0); this.this$0 = storeUserProfile; this.$userId = j; + this.$onFetchSuccess = function1; } @Override // kotlin.jvm.functions.Function0 diff --git a/app/src/main/java/com/discord/stores/StoreUserProfile.java b/app/src/main/java/com/discord/stores/StoreUserProfile.java index dab77bc26f..255e854681 100644 --- a/app/src/main/java/com/discord/stores/StoreUserProfile.java +++ b/app/src/main/java/com/discord/stores/StoreUserProfile.java @@ -9,6 +9,8 @@ import d0.z.d.m; import java.util.HashMap; import java.util.HashSet; import java.util.Map; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import rx.Observable; /* compiled from: StoreUserProfile.kt */ @@ -74,6 +76,15 @@ public final class StoreUserProfile extends StoreV2 { storeUserProfile.handleUserProfile(modelUserProfile, j); } + /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.stores.StoreUserProfile */ + /* JADX WARN: Multi-variable type inference failed */ + public static /* synthetic */ void fetchProfile$default(StoreUserProfile storeUserProfile, long j, Function1 function1, int i, Object obj) { + if ((i & 2) != 0) { + function1 = null; + } + storeUserProfile.fetchProfile(j, function1); + } + @StoreThread private final void handleFailure(long j) { this.profilesLoading.remove(Long.valueOf(j)); @@ -96,8 +107,8 @@ public final class StoreUserProfile extends StoreV2 { markChanged(); } - public final void fetchProfile(long j) { - this.dispatcher.schedule(new StoreUserProfile$fetchProfile$1(this, j)); + public final void fetchProfile(long j, Function1 function1) { + this.dispatcher.schedule(new StoreUserProfile$fetchProfile$1(this, j, function1)); } public final ModelUserProfile getUserProfile(long j) { @@ -106,7 +117,7 @@ public final class StoreUserProfile extends StoreV2 { } public final Observable observeUserProfile(long j) { - fetchProfile(j); + fetchProfile$default(this, j, null, 2, null); Observable q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this}, false, null, null, new StoreUserProfile$observeUserProfile$1(this, j), 14, null).q(); m.checkNotNullExpressionValue(q, "observationDeck.connectR… }.distinctUntilChanged()"); return q; diff --git a/app/src/main/java/com/discord/stores/StoreVoiceChannelSelected.java b/app/src/main/java/com/discord/stores/StoreVoiceChannelSelected.java index 1569129f07..8e394bd085 100644 --- a/app/src/main/java/com/discord/stores/StoreVoiceChannelSelected.java +++ b/app/src/main/java/com/discord/stores/StoreVoiceChannelSelected.java @@ -347,7 +347,7 @@ public final class StoreVoiceChannelSelected extends StoreV2 implements Dispatch @StoreThread public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { m.checkNotNullParameter(guildMember, "member"); - if (guildMember.j().i() == this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId()) { + if (guildMember.l().i() == this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId()) { validateSelectedVoiceChannel(); } } diff --git a/app/src/main/java/com/discord/utilities/analytics/AnalyticsTracker.java b/app/src/main/java/com/discord/utilities/analytics/AnalyticsTracker.java index 31cc90eb3f..e64b25e0e3 100644 --- a/app/src/main/java/com/discord/utilities/analytics/AnalyticsTracker.java +++ b/app/src/main/java/com/discord/utilities/analytics/AnalyticsTracker.java @@ -13,7 +13,9 @@ import com.adjust.sdk.Adjust; import com.adjust.sdk.AdjustAttribution; import com.adjust.sdk.AdjustEvent; import com.discord.analytics.generated.events.TrackAgeGateSubmitted; +import com.discord.analytics.generated.events.TrackRoleSubscriptionListingUpsellPageViewed; import com.discord.analytics.generated.events.impression.TrackImpressionInviteAccept; +import com.discord.analytics.generated.traits.TrackBase; import com.discord.analytics.generated.traits.TrackSourceMetadata; import com.discord.api.activity.ActivityPlatform; import com.discord.api.application.Application; @@ -564,6 +566,15 @@ public final class AnalyticsTracker { tracker.track("experiment_guild_triggered", h0.mutableMapOf(o.to(ModelAuditLogEntry.CHANGE_KEY_NAME, str), o.to("revision", Integer.valueOf(i)), o.to("bucket", Integer.valueOf(i2)), o.to(ModelAuditLogEntry.CHANGE_KEY_GUILD_ID, Long.valueOf(j)))); } + /* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: com.discord.utilities.analytics.AnalyticsTracker */ + /* JADX WARN: Multi-variable type inference failed */ + public static /* synthetic */ void guildRoleSubscriptionUpsellOpened$default(AnalyticsTracker analyticsTracker, long j, List list, boolean z2, String str, int i, Object obj) { + if ((i & 2) != 0) { + list = n.emptyList(); + } + analyticsTracker.guildRoleSubscriptionUpsellOpened(j, list, z2, str); + } + public static final void guildTemplateResolveFailed(String str) { m.checkNotNullParameter(str, "guildTemplateCode"); tracker.track("guild_template_resolved", h0.mapOf(o.to("resolved", Boolean.FALSE), o.to("guild_template_code", str))); @@ -604,7 +615,7 @@ public final class AnalyticsTracker { Channel channel2 = modelInvite.getChannel(); Integer valueOf3 = channel2 != null ? Integer.valueOf(channel2.A()) : null; GuildScheduledEvent guildScheduledEvent = modelInvite.getGuildScheduledEvent(); - analyticsTracker.inviteCopied(str2, valueOf, valueOf2, valueOf3, str, guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.g()) : null); + analyticsTracker.inviteCopied(str2, valueOf, valueOf2, valueOf3, str, guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.h()) : null); } } @@ -648,7 +659,7 @@ public final class AnalyticsTracker { User inviter = modelInvite.getInviter(); Long valueOf4 = inviter != null ? Long.valueOf(inviter.i()) : null; GuildScheduledEvent guildScheduledEvent = modelInvite.getGuildScheduledEvent(); - analyticsTracker.inviteShareClicked(str, valueOf, valueOf2, valueOf3, valueOf4, guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.g()) : null); + analyticsTracker.inviteShareClicked(str, valueOf, valueOf2, valueOf3, valueOf4, guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.h()) : null); } } @@ -1398,6 +1409,14 @@ public final class AnalyticsTracker { tracker2.track("guild_creation_intent_selected", h0.mapOf(pairArr)); } + public final void guildRoleSubscriptionUpsellOpened(long j, List list, boolean z2, String str) { + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_LOCATION); + AnalyticsUtils.Tracker tracker2 = tracker; + TrackRoleSubscriptionListingUpsellPageViewed trackRoleSubscriptionListingUpsellPageViewed = new TrackRoleSubscriptionListingUpsellPageViewed(Long.valueOf(j), list, Boolean.valueOf(z2)); + trackRoleSubscriptionListingUpsellPageViewed.c(new TrackBase(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, str, null, null, null, null, null, null, null, null, -1, -1073741825, 127)); + tracker2.track(trackRoleSubscriptionListingUpsellPageViewed); + } + public final void guildTemplateResolved(ModelGuildTemplate modelGuildTemplate) { m.checkNotNullParameter(modelGuildTemplate, "guildTemplate"); tracker.track("guild_template_resolved", h0.mapOf(o.to("resolved", Boolean.TRUE), o.to("guild_template_code", modelGuildTemplate.getCode()), o.to("guild_template_name", modelGuildTemplate.getName()), o.to("guild_template_description", modelGuildTemplate.getDescription()), o.to("guild_template_guild_id", Long.valueOf(modelGuildTemplate.getSourceGuildId())))); @@ -1986,12 +2005,14 @@ public final class AnalyticsTracker { tracker.track("stream_report_problem", CollectionExtensionsKt.filterNonNullValues(hashMap)); } - public final void reportTosViolation(int i, long j, long j2) { + public final void reportTosViolation(int i, long j, long j2, List list) { + m.checkNotNullParameter(list, "mutualGuildIds"); HashMap hashMap = new HashMap(); hashMap.put("reason_enum", Integer.valueOf(i)); hashMap.put(ModelAuditLogEntry.CHANGE_KEY_CHANNEL_ID, Long.valueOf(j)); hashMap.put("message_id", Long.valueOf(j2)); hashMap.put("location_object", "android_report_modal"); + hashMap.put("mutual_guild_ids", list); tracker.track("message_reported", CollectionExtensionsKt.filterNonNullValues(hashMap)); } diff --git a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$reconnect$1.java b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$onBillingServiceDisconnected$1.java similarity index 76% rename from app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$reconnect$1.java rename to app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$onBillingServiceDisconnected$1.java index 1c98b5edeb..0c10e79c1b 100644 --- a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$reconnect$1.java +++ b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$onBillingServiceDisconnected$1.java @@ -4,11 +4,11 @@ import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: GooglePlayBillingManager.kt */ -public final class GooglePlayBillingManager$reconnect$1 extends o implements Function1 { +public final class GooglePlayBillingManager$onBillingServiceDisconnected$1 extends o implements Function1 { public final /* synthetic */ long $currentBackoffTimeMs; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public GooglePlayBillingManager$reconnect$1(long j) { + public GooglePlayBillingManager$onBillingServiceDisconnected$1(long j) { super(1); this.$currentBackoffTimeMs = j; } @@ -23,10 +23,9 @@ public final class GooglePlayBillingManager$reconnect$1 extends o implements Fun public final void invoke(Long l) { GooglePlayBillingManager googlePlayBillingManager = GooglePlayBillingManager.INSTANCE; - if (!GooglePlayBillingManager.access$getBillingClient$p(googlePlayBillingManager).c()) { - GooglePlayBillingManager.access$getBillingClient$p(googlePlayBillingManager).g(googlePlayBillingManager); + if (!GooglePlayBillingManager.access$getBillingClient$p(googlePlayBillingManager).d()) { + GooglePlayBillingManager.access$getBillingClient$p(googlePlayBillingManager).h(googlePlayBillingManager); GooglePlayBillingManager.access$getBackoffTimeMs$p(googlePlayBillingManager).set(this.$currentBackoffTimeMs * ((long) 2)); } - GooglePlayBillingManager.access$isReconnecting$p(googlePlayBillingManager).set(false); } } diff --git a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$1.java b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$1.java new file mode 100644 index 0000000000..0a7b3a9a75 --- /dev/null +++ b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$1.java @@ -0,0 +1,19 @@ +package com.discord.utilities.billing; + +import c.d.a.a.f; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import com.discord.stores.StoreStream; +import d0.z.d.m; +import java.util.List; +/* compiled from: GooglePlayBillingManager.kt */ +public final class GooglePlayBillingManager$queryPurchases$1 implements f { + public static final GooglePlayBillingManager$queryPurchases$1 INSTANCE = new GooglePlayBillingManager$queryPurchases$1(); + + @Override // c.d.a.a.f + public final void onQueryPurchasesResponse(BillingResult billingResult, List list) { + m.checkNotNullParameter(billingResult, ""); + m.checkNotNullParameter(list, "purchasesList"); + StoreStream.Companion.getGooglePlayPurchases().processPurchases(list, "subs"); + } +} diff --git a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$2.java b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$2.java new file mode 100644 index 0000000000..3976fc306a --- /dev/null +++ b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager$queryPurchases$2.java @@ -0,0 +1,19 @@ +package com.discord.utilities.billing; + +import c.d.a.a.f; +import com.android.billingclient.api.BillingResult; +import com.android.billingclient.api.Purchase; +import com.discord.stores.StoreStream; +import d0.z.d.m; +import java.util.List; +/* compiled from: GooglePlayBillingManager.kt */ +public final class GooglePlayBillingManager$queryPurchases$2 implements f { + public static final GooglePlayBillingManager$queryPurchases$2 INSTANCE = new GooglePlayBillingManager$queryPurchases$2(); + + @Override // c.d.a.a.f + public final void onQueryPurchasesResponse(BillingResult billingResult, List list) { + m.checkNotNullParameter(billingResult, ""); + m.checkNotNullParameter(list, "purchasesList"); + StoreStream.Companion.getGooglePlayPurchases().processPurchases(list, "inapp"); + } +} diff --git a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager.java b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager.java index 0883da5fff..1e343a16d0 100644 --- a/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager.java +++ b/app/src/main/java/com/discord/utilities/billing/GooglePlayBillingManager.java @@ -9,9 +9,9 @@ import c.a.d.j; import c.d.a.a.b; import c.d.a.a.d; import c.d.a.a.e; -import c.d.a.a.f; import c.d.a.a.g; import c.d.a.a.h; +import c.d.a.a.i; import c.d.b.a.a; import com.android.billingclient.api.BillingClient; import com.android.billingclient.api.BillingFlowParams; @@ -28,15 +28,13 @@ import com.discord.utilities.rx.ActivityLifecycleCallbacks; import com.discord.utilities.rx.ObservableExtensionsKt; import d0.t.n; import d0.t.o; -import d0.t.u; import d0.z.d.m; import java.util.ArrayList; import java.util.HashMap; -import java.util.HashSet; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; import kotlin.NoWhenBranchMatchedException; import kotlin.Unit; @@ -44,7 +42,7 @@ import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import rx.Observable; /* compiled from: GooglePlayBillingManager.kt */ -public final class GooglePlayBillingManager implements f, b, h, e { +public final class GooglePlayBillingManager implements g, b, i, e { private static final long DEFAULT_BACKOFF_TIME_MS = 1000; public static final GooglePlayBillingManager INSTANCE = new GooglePlayBillingManager(); public static final String PLAY_STORE_SUBSCRIPTION_DEEPLINK_URL = "https://play.google.com/store/account/subscriptions?sku=%s&package=%s"; @@ -53,7 +51,6 @@ public final class GooglePlayBillingManager implements f, b, h, e { private static BillingClient billingClient; private static Map inAppSkusToConsume = new HashMap(); private static boolean isAuthenticated; - private static AtomicBoolean isReconnecting = new AtomicBoolean(false); /* compiled from: GooglePlayBillingManager.kt */ public static final class GooglePlayBillingManagerLifecycleListener extends ActivityLifecycleCallbacks { @@ -223,10 +220,6 @@ public final class GooglePlayBillingManager implements f, b, h, e { return isAuthenticated; } - public static final /* synthetic */ AtomicBoolean access$isReconnecting$p(GooglePlayBillingManager googlePlayBillingManager) { - return isReconnecting; - } - public static final /* synthetic */ void access$setAuthenticated$p(GooglePlayBillingManager googlePlayBillingManager, boolean z2) { isAuthenticated = z2; } @@ -239,10 +232,6 @@ public final class GooglePlayBillingManager implements f, b, h, e { billingClient = billingClient2; } - public static final /* synthetic */ void access$setReconnecting$p(GooglePlayBillingManager googlePlayBillingManager, AtomicBoolean atomicBoolean) { - isReconnecting = atomicBoolean; - } - private final void handleConsumeEnd(String str) { InAppSkuToConsume inAppSkuToConsume = inAppSkusToConsume.get(str); if (inAppSkuToConsume != null) { @@ -286,31 +275,22 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (billingClient2.c()) { + if (billingClient2.d()) { List skus = GooglePlayInAppSkus.INSTANCE.getSkus(); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(skus, 10)); for (GooglePlayInAppSku googlePlayInAppSku : skus) { arrayList.add(googlePlayInAppSku.getPaymentGatewaySkuId()); } ArrayList arrayList2 = new ArrayList(arrayList); - g gVar = new g(); - gVar.a = "inapp"; - gVar.b = arrayList2; - m.checkNotNullExpressionValue(gVar, "SkuDetailsParams.newBuil…kuNames)\n .build()"); + h hVar = new h(); + hVar.a = "inapp"; + hVar.b = arrayList2; + m.checkNotNullExpressionValue(hVar, "SkuDetailsParams.newBuil…kuNames)\n .build()"); BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - billingClient3.f(gVar, this); - } - } - - private final void reconnect() { - if (isReconnecting.compareAndSet(false, true)) { - long j = backoffTimeMs.get(); - Observable d02 = Observable.d0(j, TimeUnit.MILLISECONDS); - m.checkNotNullExpressionValue(d02, "Observable\n .ti…s, TimeUnit.MILLISECONDS)"); - ObservableExtensionsKt.appSubscribe$default(d02, GooglePlayBillingManager.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new GooglePlayBillingManager$reconnect$1(j), 62, (Object) null); + billingClient3.g(hVar, this); } } @@ -321,7 +301,7 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (billingClient2.c()) { + if (billingClient2.d()) { String a = purchase.a(); if (a != null) { d dVar = new d(); @@ -366,16 +346,16 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (!billingClient2.c()) { + if (!billingClient2.d()) { return -1; } BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - BillingResult d = billingClient3.d(activity, billingFlowParams); - m.checkNotNullExpressionValue(d, "billingClient.launchBillingFlow(activity, params)"); - return d.a; + BillingResult e = billingClient3.e(activity, billingFlowParams); + m.checkNotNullExpressionValue(e, "billingClient.launchBillingFlow(activity, params)"); + return e.a; } public final void onActivityCreated() { @@ -383,12 +363,12 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (!billingClient2.c()) { + if (!billingClient2.d()) { BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - billingClient3.g(this); + billingClient3.h(this); } } @@ -397,7 +377,7 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (billingClient2.c()) { + if (billingClient2.d()) { BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); @@ -408,9 +388,23 @@ public final class GooglePlayBillingManager implements f, b, h, e { @Override // c.d.a.a.b public void onBillingServiceDisconnected() { - if (!isReconnecting.get()) { - reconnect(); + BillingClient billingClient2 = billingClient; + if (billingClient2 == null) { + m.throwUninitializedPropertyAccessException("billingClient"); } + if (billingClient2.c() != 0) { + BillingClient billingClient3 = billingClient; + if (billingClient3 == null) { + m.throwUninitializedPropertyAccessException("billingClient"); + } + if (billingClient3.c() != 3) { + return; + } + } + long j = backoffTimeMs.get(); + Observable d02 = Observable.d0(j, TimeUnit.MILLISECONDS); + m.checkNotNullExpressionValue(d02, "Observable\n .ti…s, TimeUnit.MILLISECONDS)"); + ObservableExtensionsKt.appSubscribe$default(d02, GooglePlayBillingManager.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new GooglePlayBillingManager$onBillingServiceDisconnected$1(j), 62, (Object) null); } @Override // c.d.a.a.b @@ -443,22 +437,53 @@ public final class GooglePlayBillingManager implements f, b, h, e { handleConsumeEnd(str); } - @Override // c.d.a.a.f + @Override // c.d.a.a.g public void onPurchasesUpdated(BillingResult billingResult, List list) { + boolean z2; m.checkNotNullParameter(billingResult, "billingResult"); if (billingResult.a != 0) { StoreStream.Companion.getGooglePlayPurchases().updatePendingDowngrade(null); } int i = billingResult.a; - boolean z2 = true; if (i == 0) { - if (list != null && !list.isEmpty()) { - z2 = false; - } - if (z2) { + if (list == null || list.isEmpty()) { StoreStream.Companion.getGooglePlayPurchases().downgradePurchase(); } - StoreStream.Companion.getGooglePlayPurchases().processPurchases(list); + ArrayList arrayList = new ArrayList(); + ArrayList arrayList2 = new ArrayList(); + if (list != null) { + for (Purchase purchase : list) { + ArrayList b = purchase.b(); + m.checkNotNullExpressionValue(b, "purchase.skus"); + if (!b.isEmpty()) { + Iterator it = b.iterator(); + while (true) { + if (!it.hasNext()) { + break; + } + String str = (String) it.next(); + GooglePlayInAppSkus googlePlayInAppSkus = GooglePlayInAppSkus.INSTANCE; + m.checkNotNullExpressionValue(str, "sku"); + if (googlePlayInAppSkus.isInAppSku(str)) { + z2 = true; + break; + } + } + } + z2 = false; + if (z2) { + arrayList2.add(purchase); + } else { + arrayList.add(purchase); + } + } + } + if (!arrayList2.isEmpty()) { + StoreStream.Companion.getGooglePlayPurchases().processPurchases(arrayList2, "inapp"); + } + if (!arrayList.isEmpty()) { + StoreStream.Companion.getGooglePlayPurchases().processPurchases(arrayList, "subs"); + } } else if (i == 1) { AppLog.i("onPurchasesUpdated: User canceled the purchase"); } else if (i == 5) { @@ -468,7 +493,7 @@ public final class GooglePlayBillingManager implements f, b, h, e { } } - @Override // c.d.a.a.h + @Override // c.d.a.a.i public void onSkuDetailsResponse(BillingResult billingResult, List list) { m.checkNotNullParameter(billingResult, "billingResult"); int i = billingResult.a; @@ -508,29 +533,17 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (billingClient2.c()) { - HashSet hashSet = new HashSet(); + if (billingClient2.d()) { BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - Purchase.a e = billingClient3.e("subs"); - m.checkNotNullExpressionValue(e, "billingClient.queryPurch…llingClient.SkuType.SUBS)"); - List list = e.a; - if (list != null) { - hashSet.addAll(list); - } + billingClient3.f("subs", GooglePlayBillingManager$queryPurchases$1.INSTANCE); BillingClient billingClient4 = billingClient; if (billingClient4 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - Purchase.a e2 = billingClient4.e("inapp"); - m.checkNotNullExpressionValue(e2, "billingClient.queryPurch…lingClient.SkuType.INAPP)"); - List list2 = e2.a; - if (list2 != null) { - hashSet.addAll(list2); - } - StoreStream.Companion.getGooglePlayPurchases().processPurchases(u.toList(hashSet)); + billingClient4.f("inapp", GooglePlayBillingManager$queryPurchases$2.INSTANCE); } } @@ -539,17 +552,17 @@ public final class GooglePlayBillingManager implements f, b, h, e { if (billingClient2 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - if (billingClient2.c()) { + if (billingClient2.d()) { ArrayList arrayList = new ArrayList(GooglePlaySku.Companion.getALL_SKU_NAMES()); - g gVar = new g(); - gVar.a = "subs"; - gVar.b = arrayList; - m.checkNotNullExpressionValue(gVar, "SkuDetailsParams.newBuil…U_NAMES)\n .build()"); + h hVar = new h(); + hVar.a = "subs"; + hVar.b = arrayList; + m.checkNotNullExpressionValue(hVar, "SkuDetailsParams.newBuil…U_NAMES)\n .build()"); BillingClient billingClient3 = billingClient; if (billingClient3 == null) { m.throwUninitializedPropertyAccessException("billingClient"); } - billingClient3.f(gVar, this); + billingClient3.g(hVar, this); } } } diff --git a/app/src/main/java/com/discord/utilities/experiments/ExperimentRegistry.java b/app/src/main/java/com/discord/utilities/experiments/ExperimentRegistry.java index 14b3d4ba4c..1db695d5a1 100644 --- a/app/src/main/java/com/discord/utilities/experiments/ExperimentRegistry.java +++ b/app/src/main/java/com/discord/utilities/experiments/ExperimentRegistry.java @@ -15,7 +15,7 @@ public final class ExperimentRegistry { registeredExperiments = linkedHashMap; RegisteredExperiment.Type type = RegisteredExperiment.Type.USER; RegisteredExperiment.Type type2 = RegisteredExperiment.Type.GUILD; - for (Object obj : n.listOf((Object[]) new RegisteredExperiment[]{new RegisteredExperiment("Compact Invite Widget", "2020-01_mobile_invite_suggestion_compact", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Use compact view"}), true), new RegisteredExperiment("Guild Invite Sheet", "2020-12_android_guild_channel_invite_sheet", type, n.listOf((Object[]) new String[]{"Control: Use the full-screen guild invite UI", "Treatment 1: Use the bottom sheet guild invite UI"}), true), new RegisteredExperiment("Disable mentions in landscape", "2020-12_android_disable_landscape_mentions", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hide mentions in landscape"}), true), new RegisteredExperiment("Invite to GDM Sheet", "2020-12_invite_to_gdm", type, n.listOf((Object[]) new String[]{"Control: Use the full-screen GDM invite UI", "Treatment 1: Use the bottom sheet GDM invite UI"}), true), new RegisteredExperiment("Guild Delete Feedback", "2020-12_guild_delete_feedback", type, n.listOf((Object[]) new String[]{"Control: Do not show the feedback modal", "Treatment 1: Show the feedback modal"}), true), new RegisteredExperiment("View Threads", "2021-02_view_threads", type, n.listOf((Object[]) new String[]{"Control: Do not display anything threads-related, except if receiving a notification", "Treatment 1: Show view-only threads features in channel list, in chat view, etc."}), true), new RegisteredExperiment("Create Threads", "2020-09_threads", type2, n.listOf((Object[]) new String[]{"Control: Do not show thread creation entrypoints, or Thread Browser", "Treatment 1: Show thread creation buttons, and show button to open Thread Browser"}), true), new RegisteredExperiment("Disable Camera 2", "2021-02_android_webrtc_camera2", type, n.listOf((Object[]) new String[]{"Control: Use Camera 2 API if supported", "Treatment 1: Force Camera 1 API"}), true), new RegisteredExperiment("MediaSinkWants", "2021-03_android_media_sink_wants", type, n.listOf((Object[]) new String[]{"Control: disabled", "Treatment 1: use MediaSinkWants"}), true), new RegisteredExperiment("Default Invite Expiration", "2021-03_android_extend_invite_expiration", type2, n.listOf((Object[]) new String[]{"Control: Default Invite Expiration is 1 day", "Treatment 1: Default Invite Expiration is 7 days"}), true), new RegisteredExperiment("Emoji Autocomplete Upsell", "2021-03_nitro_emoji_autocomplete_upsell_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Emoji Autocomplete Upsell"}), true), new RegisteredExperiment("Application Command Frecency", "2021-09_android_app_commands_frecency", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show frecent application commands"}), true), new RegisteredExperiment("Attachments Bottom Sheet", "2021-10_android_attachment_bottom_sheet", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show attachments bottom sheet"}), true), new RegisteredExperiment("Bot UI Kit Components", "2021-03_bot_ui_kit_components_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Bot UI Kit Components"}), true), new RegisteredExperiment("Select Bot UI Component", "2021-05_bot_ui_kit_select", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Select Bot Ui Component"}), true), new RegisteredExperiment("Stage Events Guilds", "2021-06_stage_events", type2, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enables users to see events in guilds"}), true), new RegisteredExperiment("Contact Sync: Base Experiment", "2021-04_contact_sync_android_main", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable core Contact Sync features"}), true), new RegisteredExperiment("Contact Sync: Existing Users w/ Phone Upsell Experiment", "2021-04_contact_sync_android_existing_user_phone_prompt", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync for existing users with a phone number"}), true), new RegisteredExperiment("Contact Sync: Existing Users without Phone Upsell Experiment", "2021-04_contact_sync_android_existing_user_without_phone_prompt", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync for existing users without a phone number"}), true), new RegisteredExperiment("Contact Sync: Empty states", "2021-05_contact_sync_android_empty_states", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync in empty friend lists"}), true), new RegisteredExperiment("Stop Offscreen Video Streams", "2021-03_stop_offscreen_video_streams", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Stop offscreen video streams"}), true), new RegisteredExperiment("Hub Multiple Domains", "2021-08_hub_multi_domain_mobile", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable multiple domains for hubs"}), true), new RegisteredExperiment("Enabled Discord Hub Directories", "2021-06_desktop_school_hubs", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: See Discord Hub Directories"}), true), new RegisteredExperiment("Enabled Discord Hub Emails", "2021-06_hub_email_connection", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: See Discord Hub Emails"}), true), new RegisteredExperiment("Enabled Discord Hub Reporting", "2021-08_hub_reporting", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hub Reporting Enabled"}), true), new RegisteredExperiment("Enabled Discord Hub Recommendations", "2021-10_hubs_recs_and_rankings", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hub Ranks Enabled", "Treatment 2: Hub Recommendations Enabled", "Treatment 3: Hub Ranks and Recommendations Enabled"}), true), new RegisteredExperiment("Enable Impression Logging", "2021-08_impression_logging_enabled_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable Impression Logging"}), true), new RegisteredExperiment("AudioManager V2 and OpenSL ES", "2021-05_opensl_default_enable_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Default enable OpenSL", "Treatment 2: Use StoreAudioManagerV2 for output routing"}), true), new RegisteredExperiment("Phone Registration - Bailout to Email", "2021-06_reg_bailout_to_email_android", type, n.listOf((Object[]) new String[]{"Control: Just the back button", "Treatment 1: Static button to bailout to the email tab"}), true), new RegisteredExperiment("Enable Network Action Logging", "2021-07_network_action_logging_android", type, n.listOf((Object[]) new String[]{"Off: No Action logging", "On: Enable Action Logging"}), true), new RegisteredExperiment("Preview Promotions", "2021-06_preview_promotions", type, n.listOf((Object[]) new String[]{"Off: Hit normal endpoint", "On: Hit preview endpoint"}), true), new RegisteredExperiment("Live Stage Notifications", "2021-07_live_stage_notifications", type2, n.listOf((Object[]) new String[]{"Control: No notification surfaces", "Treatment 1: Show notification surfaces"}), true), new RegisteredExperiment("Route audio to speakerphone by default", "2021-08_android_speakerphone_default", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Always default to speakerphone"}), true), new RegisteredExperiment("New Thread Perms", "2021-08_threads_permissions", type2, n.listOf((Object[]) new String[]{"Control: Use old threads permissions.", "Treatment 1: Use new threads permissions."}), true), new RegisteredExperiment("Longer billing grace periods", "2021-09_longer_billing_grace_periods", type, n.listOf((Object[]) new String[]{"Control: 3-day grace period", "Treatment 1: 7-day grace period"}), true), new RegisteredExperiment("SMS Autofill", "2021-09_android_sms_autofill", type, n.listOf((Object[]) new String[]{"Control: No SMS Autofill", "Treatment 1: SMS Code autofills"}), true), new RegisteredExperiment("Android Text-In-Voice", "2021-10_android_textinvoice", type, n.listOf((Object[]) new String[]{"Control: No Android text-in-voice.", "Treatment 1: Android text-in-voice enabled, if it's enabled for the guild."}), true)})) { + for (Object obj : n.listOf((Object[]) new RegisteredExperiment[]{new RegisteredExperiment("Compact Invite Widget", "2020-01_mobile_invite_suggestion_compact", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Use compact view"}), true), new RegisteredExperiment("Guild Invite Sheet", "2020-12_android_guild_channel_invite_sheet", type, n.listOf((Object[]) new String[]{"Control: Use the full-screen guild invite UI", "Treatment 1: Use the bottom sheet guild invite UI"}), true), new RegisteredExperiment("Disable mentions in landscape", "2020-12_android_disable_landscape_mentions", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hide mentions in landscape"}), true), new RegisteredExperiment("Invite to GDM Sheet", "2020-12_invite_to_gdm", type, n.listOf((Object[]) new String[]{"Control: Use the full-screen GDM invite UI", "Treatment 1: Use the bottom sheet GDM invite UI"}), true), new RegisteredExperiment("Guild Delete Feedback", "2020-12_guild_delete_feedback", type, n.listOf((Object[]) new String[]{"Control: Do not show the feedback modal", "Treatment 1: Show the feedback modal"}), true), new RegisteredExperiment("View Threads", "2021-02_view_threads", type, n.listOf((Object[]) new String[]{"Control: Do not display anything threads-related, except if receiving a notification", "Treatment 1: Show view-only threads features in channel list, in chat view, etc."}), true), new RegisteredExperiment("Create Threads", "2020-09_threads", type2, n.listOf((Object[]) new String[]{"Control: Do not show thread creation entrypoints, or Thread Browser", "Treatment 1: Show thread creation buttons, and show button to open Thread Browser"}), true), new RegisteredExperiment("Disable Camera 2", "2021-02_android_webrtc_camera2", type, n.listOf((Object[]) new String[]{"Control: Use Camera 2 API if supported", "Treatment 1: Force Camera 1 API"}), true), new RegisteredExperiment("MediaSinkWants", "2021-03_android_media_sink_wants", type, n.listOf((Object[]) new String[]{"Control: disabled", "Treatment 1: use MediaSinkWants"}), true), new RegisteredExperiment("Default Invite Expiration", "2021-03_android_extend_invite_expiration", type2, n.listOf((Object[]) new String[]{"Control: Default Invite Expiration is 1 day", "Treatment 1: Default Invite Expiration is 7 days"}), true), new RegisteredExperiment("Emoji Autocomplete Upsell", "2021-03_nitro_emoji_autocomplete_upsell_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Emoji Autocomplete Upsell"}), true), new RegisteredExperiment("Application Command Frecency", "2021-09_android_app_commands_frecency", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show frecent application commands"}), true), new RegisteredExperiment("Attachments Bottom Sheet", "2021-10_android_attachment_bottom_sheet", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show attachments bottom sheet"}), true), new RegisteredExperiment("Bot UI Kit Components", "2021-03_bot_ui_kit_components_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Bot UI Kit Components"}), true), new RegisteredExperiment("Select Bot UI Component", "2021-05_bot_ui_kit_select", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Select Bot Ui Component"}), true), new RegisteredExperiment("Stage Events Guilds", "2021-06_stage_events", type2, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enables users to see events in guilds"}), true), new RegisteredExperiment("Contact Sync: Base Experiment", "2021-04_contact_sync_android_main", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable core Contact Sync features"}), true), new RegisteredExperiment("Contact Sync: Existing Users w/ Phone Upsell Experiment", "2021-04_contact_sync_android_existing_user_phone_prompt", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync for existing users with a phone number"}), true), new RegisteredExperiment("Contact Sync: Existing Users without Phone Upsell Experiment", "2021-04_contact_sync_android_existing_user_without_phone_prompt", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync for existing users without a phone number"}), true), new RegisteredExperiment("Contact Sync: Empty states", "2021-05_contact_sync_android_empty_states", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Show Contact Sync in empty friend lists"}), true), new RegisteredExperiment("Stop Offscreen Video Streams", "2021-03_stop_offscreen_video_streams", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Stop offscreen video streams"}), true), new RegisteredExperiment("Hub Multiple Domains", "2021-08_hub_multi_domain_mobile", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable multiple domains for hubs"}), true), new RegisteredExperiment("Enabled Discord Hub Directories", "2021-06_desktop_school_hubs", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: See Discord Hub Directories"}), true), new RegisteredExperiment("Enabled Discord Hub Emails", "2021-06_hub_email_connection", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: See Discord Hub Emails"}), true), new RegisteredExperiment("Enabled Discord Hub Reporting", "2021-08_hub_reporting", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hub Reporting Enabled"}), true), new RegisteredExperiment("Enabled Discord Hub Recommendations", "2021-10_hubs_recs_and_rankings", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hub Ranks Enabled", "Treatment 2: Hub Recommendations Enabled", "Treatment 3: Hub Ranks and Recommendations Enabled"}), true), new RegisteredExperiment("Enabled Discord Hub Study Groups", "2021-10_study_group", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Hub Study Groups Enabled"}), true), new RegisteredExperiment("Enable Impression Logging", "2021-08_impression_logging_enabled_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Enable Impression Logging"}), true), new RegisteredExperiment("AudioManager V2 and OpenSL ES", "2021-05_opensl_default_enable_android", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Default enable OpenSL", "Treatment 2: Use StoreAudioManagerV2 for output routing"}), true), new RegisteredExperiment("Phone Registration - Bailout to Email", "2021-06_reg_bailout_to_email_android", type, n.listOf((Object[]) new String[]{"Control: Just the back button", "Treatment 1: Static button to bailout to the email tab"}), true), new RegisteredExperiment("Enable Network Action Logging", "2021-07_network_action_logging_android", type, n.listOf((Object[]) new String[]{"Off: No Action logging", "On: Enable Action Logging"}), true), new RegisteredExperiment("Preview Promotions", "2021-06_preview_promotions", type, n.listOf((Object[]) new String[]{"Off: Hit normal endpoint", "On: Hit preview endpoint"}), true), new RegisteredExperiment("Route audio to speakerphone by default", "2021-08_android_speakerphone_default", type, n.listOf((Object[]) new String[]{"Control", "Treatment 1: Always default to speakerphone"}), true), new RegisteredExperiment("New Thread Perms", "2021-08_threads_permissions", type2, n.listOf((Object[]) new String[]{"Control: Use old threads permissions.", "Treatment 1: Use new threads permissions."}), true), new RegisteredExperiment("Longer billing grace periods", "2021-09_longer_billing_grace_periods", type, n.listOf((Object[]) new String[]{"Control: 3-day grace period", "Treatment 1: 7-day grace period"}), true), new RegisteredExperiment("SMS Autofill", "2021-09_android_sms_autofill", type, n.listOf((Object[]) new String[]{"Control: No SMS Autofill", "Treatment 1: SMS Code autofills"}), true), new RegisteredExperiment("Android Text-In-Voice", "2021-10_android_textinvoice", type, n.listOf((Object[]) new String[]{"Control: No Android text-in-voice.", "Treatment 1: Android text-in-voice enabled, if it's enabled for the guild."}), true), new RegisteredExperiment("Guild Member Profiles v2", "2021-10_premium_guild_member_profiles", type, n.listOf((Object[]) new String[]{"Control: No editing of guild member premium profiles.", "Treatment 1: Can edit guild member premium profiles"}), true)})) { linkedHashMap.put(((RegisteredExperiment) obj).getName(), obj); } } diff --git a/app/src/main/java/com/discord/utilities/extensions/SimpleDraweeViewExtensionsKt.java b/app/src/main/java/com/discord/utilities/extensions/SimpleDraweeViewExtensionsKt.java index 56fe84eee8..398dc7230f 100644 --- a/app/src/main/java/com/discord/utilities/extensions/SimpleDraweeViewExtensionsKt.java +++ b/app/src/main/java/com/discord/utilities/extensions/SimpleDraweeViewExtensionsKt.java @@ -5,6 +5,7 @@ import androidx.annotation.ColorInt; import androidx.annotation.DimenRes; import com.discord.R; import com.discord.models.guild.Guild; +import com.discord.models.guild.UserGuildMember; import com.discord.models.member.GuildMember; import com.discord.models.user.User; import com.discord.utilities.icon.IconUtils; @@ -16,6 +17,23 @@ import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: SimpleDraweeViewExtensions.kt */ public final class SimpleDraweeViewExtensionsKt { + public static final void configureCreator(SimpleDraweeView simpleDraweeView, UserGuildMember userGuildMember) { + m.checkNotNullParameter(simpleDraweeView, "$this$configureCreator"); + boolean z2 = true; + simpleDraweeView.setVisibility(userGuildMember != null ? 0 : 8); + if (simpleDraweeView.getVisibility() != 0) { + z2 = false; + } + if (z2) { + GuildMember guildMember = null; + User user = userGuildMember != null ? userGuildMember.getUser() : null; + if (userGuildMember != null) { + guildMember = userGuildMember.getGuildMember(); + } + setAvatar(simpleDraweeView, user, false, R.dimen.avatar_size_event_creator, guildMember); + } + } + public static final void setAvatar(SimpleDraweeView simpleDraweeView, User user, boolean z2, @DimenRes int i, GuildMember guildMember) { m.checkNotNullParameter(simpleDraweeView, "$this$setAvatar"); int dimensionPixelSize = simpleDraweeView.getResources().getDimensionPixelSize(i); diff --git a/app/src/main/java/com/discord/utilities/fcm/NotificationClient.java b/app/src/main/java/com/discord/utilities/fcm/NotificationClient.java index 1a55f6eb80..338143b28e 100644 --- a/app/src/main/java/com/discord/utilities/fcm/NotificationClient.java +++ b/app/src/main/java/com/discord/utilities/fcm/NotificationClient.java @@ -39,6 +39,7 @@ public final class NotificationClient { public static final String NOTIF_CHANNEL_MESSAGES_DIRECT = "DirectMessages"; public static final String NOTIF_CHANNEL_SOCIAL = "Social"; public static final String NOTIF_CHANNEL_STAGE_START = "Stage Live"; + public static final String NOTIF_GENERAL = "General"; public static final String NOTIF_GUILD_SCHEDULED_EVENT_START = "Guild Event Live"; private static Context context; private static boolean isBackgrounded = true; diff --git a/app/src/main/java/com/discord/utilities/fcm/NotificationData.java b/app/src/main/java/com/discord/utilities/fcm/NotificationData.java index 02860d70b7..3cae886692 100644 --- a/app/src/main/java/com/discord/utilities/fcm/NotificationData.java +++ b/app/src/main/java/com/discord/utilities/fcm/NotificationData.java @@ -1035,6 +1035,11 @@ public final class NotificationData { public final String getNotificationChannelId() { String str = this.type; switch (str.hashCode()) { + case -1502317553: + if (str.equals(TYPE_GENERIC_PUSH_NOTIFICATION_SENT)) { + return NotificationClient.NOTIF_GENERAL; + } + break; case -1489275252: if (str.equals(TYPE_GUILD_SCHEDULED_EVENT_UPDATE)) { return NotificationClient.NOTIF_GUILD_SCHEDULED_EVENT_START; @@ -1060,8 +1065,8 @@ public final class NotificationData { return NotificationClient.NOTIF_CHANNEL_SOCIAL; } - /* JADX WARNING: Removed duplicated region for block: B:14:0x0044 A[RETURN, SYNTHETIC] */ - /* JADX WARNING: Removed duplicated region for block: B:19:0x0057 A[ORIG_RETURN, RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:13:0x0042 A[RETURN, SYNTHETIC] */ + /* JADX WARNING: Removed duplicated region for block: B:18:0x0055 A[ORIG_RETURN, RETURN, SYNTHETIC] */ public final int getNotificationPriority() { String notificationChannelId = getNotificationChannelId(); switch (notificationChannelId.hashCode()) { @@ -1069,13 +1074,9 @@ public final class NotificationData { return notificationChannelId.equals(NotificationClient.NOTIF_CHANNEL_MESSAGES_DIRECT) ? 1 : -1; case -1813183603: notificationChannelId.equals(NotificationClient.NOTIF_CHANNEL_SOCIAL); - case -1502317553: - if (notificationChannelId.equals(TYPE_GENERIC_PUSH_NOTIFICATION_SENT)) { - return 0; - } - break; case -1241096946: if (notificationChannelId.equals(NotificationClient.NOTIF_CHANNEL_STAGE_START)) { + return 0; } break; case -397449876: @@ -1096,6 +1097,8 @@ public final class NotificationData { if (notificationChannelId.equals(NotificationClient.NOTIF_GUILD_SCHEDULED_EVENT_START)) { } break; + case 1584505032: + notificationChannelId.equals(NotificationClient.NOTIF_GENERAL); } } diff --git a/app/src/main/java/com/discord/utilities/fcm/NotificationRenderer.java b/app/src/main/java/com/discord/utilities/fcm/NotificationRenderer.java index 159e986ca9..bcdd295eea 100644 --- a/app/src/main/java/com/discord/utilities/fcm/NotificationRenderer.java +++ b/app/src/main/java/com/discord/utilities/fcm/NotificationRenderer.java @@ -279,7 +279,7 @@ public final class NotificationRenderer { m.checkNotNullParameter(application, "context"); NotificationChannel notificationChannel = new NotificationChannel(NotificationClient.NOTIF_CHANNEL_CALLS, application.getString(R.string.call), 4); NotificationChannel notificationChannel2 = new NotificationChannel(NotificationClient.NOTIF_CHANNEL_MEDIA_CONNECTIONS, application.getString(R.string.voice), 2); - List listOf = n.listOf((Object[]) new NotificationChannel[]{notificationChannel, notificationChannel2, new NotificationChannel(NotificationClient.NOTIF_CHANNEL_MESSAGES, application.getString(R.string.messages), 4), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_MESSAGES_DIRECT, application.getString(R.string.direct_messages), 4), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_SOCIAL, application.getString(R.string.friends), 2), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_GAME_DETECTION, application.getString(R.string.game_detection_service), 1), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_STAGE_START, application.getString(R.string.stage_start_notification_category), 4), new NotificationChannel(NotificationClient.NOTIF_GUILD_SCHEDULED_EVENT_START, application.getString(R.string.guild_scheduled_event_live), 4)}); + List listOf = n.listOf((Object[]) new NotificationChannel[]{notificationChannel, notificationChannel2, new NotificationChannel(NotificationClient.NOTIF_CHANNEL_MESSAGES, application.getString(R.string.messages), 4), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_MESSAGES_DIRECT, application.getString(R.string.direct_messages), 4), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_SOCIAL, application.getString(R.string.friends), 2), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_GAME_DETECTION, application.getString(R.string.game_detection_service), 1), new NotificationChannel(NotificationClient.NOTIF_CHANNEL_STAGE_START, application.getString(R.string.stage_start_notification_category), 4), new NotificationChannel(NotificationClient.NOTIF_GUILD_SCHEDULED_EVENT_START, application.getString(R.string.guild_scheduled_event_live), 4), new NotificationChannel(NotificationClient.NOTIF_GENERAL, application.getString(R.string.other), 2)}); for (NotificationChannel notificationChannel3 : listOf) { notificationChannel3.setShowBadge(true); notificationChannel3.enableVibration(true); diff --git a/app/src/main/java/com/discord/utilities/features/GrowthTeamFeatures.java b/app/src/main/java/com/discord/utilities/features/GrowthTeamFeatures.java index 860a4228aa..7f07462161 100644 --- a/app/src/main/java/com/discord/utilities/features/GrowthTeamFeatures.java +++ b/app/src/main/java/com/discord/utilities/features/GrowthTeamFeatures.java @@ -29,6 +29,10 @@ public final class GrowthTeamFeatures { return isExperimentEnabled("2021-10_hubs_recs_and_rankings", 2) || isExperimentEnabled("2021-10_hubs_recs_and_rankings", 3); } + public final boolean hubStudyGroupEnabled() { + return isExperimentEnabled$default(this, "2021-10_study_group", 0, 1, null); + } + public final boolean imbalancedAndroidSplashNoop() { return isExperimentEnabled$default(this, "2021-09_imbalanced_android_splash_noop", 0, 1, null); } diff --git a/app/src/main/java/com/discord/utilities/guilds/GuildConstantsKt.java b/app/src/main/java/com/discord/utilities/guilds/GuildConstantsKt.java index 440ed13df0..a8d6c52fdb 100644 --- a/app/src/main/java/com/discord/utilities/guilds/GuildConstantsKt.java +++ b/app/src/main/java/com/discord/utilities/guilds/GuildConstantsKt.java @@ -1,7 +1,6 @@ package com.discord.utilities.guilds; /* compiled from: GuildConstants.kt */ public final class GuildConstantsKt { - public static final int FILE_SIZE_STAFF_200MB = 200; public static final int FILE_SIZE_STANDARD_8MB = 8; public static final int GLOBAL_SEARCH_LARGE_GUILD_THRESHOLD = 200; public static final int GUILD_TIER_1_BOOSTS = 2; diff --git a/app/src/main/java/com/discord/utilities/guilds/GuildUtilsKt.java b/app/src/main/java/com/discord/utilities/guilds/GuildUtilsKt.java index 699ffe3677..e5e0023c8f 100644 --- a/app/src/main/java/com/discord/utilities/guilds/GuildUtilsKt.java +++ b/app/src/main/java/com/discord/utilities/guilds/GuildUtilsKt.java @@ -25,7 +25,7 @@ public final class GuildUtilsKt { m.checkNotNullParameter(list, "$this$asMap"); LinkedHashMap linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(o.collectionSizeOrDefault(list, 10)), 16)); for (Object obj : list) { - linkedHashMap.put(Long.valueOf(((GuildMember) obj).j().i()), obj); + linkedHashMap.put(Long.valueOf(((GuildMember) obj).l().i()), obj); } return linkedHashMap; } diff --git a/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventUtilitiesKt.java b/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventUtilitiesKt.java index 85963c730d..6d38547514 100644 --- a/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventUtilitiesKt.java +++ b/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventUtilitiesKt.java @@ -6,8 +6,14 @@ import c.a.k.b; import com.discord.R; import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.guildscheduledevent.GuildScheduledEventStatus; +import com.discord.models.guild.UserGuildMember; +import com.discord.models.user.User; +import com.discord.stores.StoreGuilds; +import com.discord.stores.StoreStream; +import com.discord.stores.StoreUser; import com.discord.utilities.time.ClockFactory; import com.discord.utilities.time.TimeUtils; +import com.discord.widgets.guildscheduledevent.GuildScheduledEventModel; import d0.z.d.m; import java.text.SimpleDateFormat; import java.util.Collection; @@ -31,6 +37,58 @@ public final class GuildScheduledEventUtilitiesKt { } } + public static final UserGuildMember getCreatorUserGuildMember(GuildScheduledEvent guildScheduledEvent, StoreGuilds storeGuilds, StoreUser storeUser) { + m.checkNotNullParameter(guildScheduledEvent, "$this$getCreatorUserGuildMember"); + m.checkNotNullParameter(storeGuilds, "guildsStore"); + m.checkNotNullParameter(storeUser, "usersStore"); + Long c2 = guildScheduledEvent.c(); + if (c2 == null) { + return null; + } + long longValue = c2.longValue(); + User user = storeUser.getUsers(d0.t.m.listOf(Long.valueOf(longValue)), false).get(Long.valueOf(longValue)); + if (user != null) { + return new UserGuildMember(user, storeGuilds.getMember(guildScheduledEvent.g(), longValue)); + } + return null; + } + + public static final UserGuildMember getCreatorUserGuildMember(GuildScheduledEventModel guildScheduledEventModel, StoreGuilds storeGuilds, StoreUser storeUser) { + m.checkNotNullParameter(guildScheduledEventModel, "$this$getCreatorUserGuildMember"); + m.checkNotNullParameter(storeGuilds, "guildsStore"); + m.checkNotNullParameter(storeUser, "usersStore"); + Long creatorId = guildScheduledEventModel.getCreatorId(); + if (creatorId == null) { + return null; + } + long longValue = creatorId.longValue(); + User user = storeUser.getUsers(d0.t.m.listOf(Long.valueOf(longValue)), false).get(Long.valueOf(longValue)); + if (user != null) { + return new UserGuildMember(user, storeGuilds.getMember(guildScheduledEventModel.getGuildId(), longValue)); + } + return null; + } + + public static /* synthetic */ UserGuildMember getCreatorUserGuildMember$default(GuildScheduledEvent guildScheduledEvent, StoreGuilds storeGuilds, StoreUser storeUser, int i, Object obj) { + if ((i & 1) != 0) { + storeGuilds = StoreStream.Companion.getGuilds(); + } + if ((i & 2) != 0) { + storeUser = StoreStream.Companion.getUsers(); + } + return getCreatorUserGuildMember(guildScheduledEvent, storeGuilds, storeUser); + } + + public static /* synthetic */ UserGuildMember getCreatorUserGuildMember$default(GuildScheduledEventModel guildScheduledEventModel, StoreGuilds storeGuilds, StoreUser storeUser, int i, Object obj) { + if ((i & 1) != 0) { + storeGuilds = StoreStream.Companion.getGuilds(); + } + if ((i & 2) != 0) { + storeUser = StoreStream.Companion.getUsers(); + } + return getCreatorUserGuildMember(guildScheduledEventModel, storeGuilds, storeUser); + } + public static final CharSequence getEventStartingTimeString(long j, Context context) { m.checkNotNullParameter(context, "context"); int ordinal = getEventTiming(j).ordinal(); @@ -52,11 +110,11 @@ public final class GuildScheduledEventUtilitiesKt { m.checkNotNullParameter(guildScheduledEvent, "$this$getEventStartingTimeString"); m.checkNotNullParameter(context, "context"); GuildScheduledEventTiming eventTiming = getEventTiming(guildScheduledEvent); - long g = guildScheduledEvent.j().g(); + long g = guildScheduledEvent.k().g(); if (eventTiming == GuildScheduledEventTiming.LIVE) { return b.h(context, R.string.stage_channel_live_now, new Object[0], null, 4); } - if (guildScheduledEvent.k() != GuildScheduledEventStatus.COMPLETED && guildScheduledEvent.k() != GuildScheduledEventStatus.CANCELED) { + if (guildScheduledEvent.l() != GuildScheduledEventStatus.COMPLETED && guildScheduledEvent.l() != GuildScheduledEventStatus.CANCELED) { return getEventStartingTimeString(g, context); } String nonRelativeTimeString = getNonRelativeTimeString(g); @@ -71,7 +129,7 @@ public final class GuildScheduledEventUtilitiesKt { public static final GuildScheduledEventTiming getEventTiming(GuildScheduledEvent guildScheduledEvent) { m.checkNotNullParameter(guildScheduledEvent, "$this$getEventTiming"); - return guildScheduledEvent.k() == GuildScheduledEventStatus.ACTIVE ? GuildScheduledEventTiming.LIVE : getEventTiming(guildScheduledEvent.j().g()); + return guildScheduledEvent.l() == GuildScheduledEventStatus.ACTIVE ? GuildScheduledEventTiming.LIVE : getEventTiming(guildScheduledEvent.k().g()); } public static final GuildScheduledEvent getLiveEvent(Collection collection) { diff --git a/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventsComparator.java b/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventsComparator.java index b3f134e342..c78f516cb6 100644 --- a/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventsComparator.java +++ b/app/src/main/java/com/discord/utilities/guildscheduledevent/GuildScheduledEventsComparator.java @@ -11,24 +11,24 @@ public final class GuildScheduledEventsComparator implements Comparator deleteGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3) { return this._api.deleteGuildRoleSubscriptionTierListing(j, j2, j3); } @@ -1746,10 +1747,10 @@ public final class RestAPI implements RestAPIInterface { return this._api.postGuildEmoji(j, postGuildEmoji); } - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003c: APUT + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x003a: APUT (r3v2 kotlin.Pair[]) (1 ??[boolean, int, float, short, byte, char]) - (wrap: kotlin.Pair : 0x0037: INVOKE (r10v4 kotlin.Pair) = ("location_guild_id"), (r10v3 java.lang.Long) type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair) + (wrap: kotlin.Pair : 0x0035: INVOKE (r10v4 kotlin.Pair) = ("location_guild_id"), (r10v3 java.lang.Long) type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair) */ public final Observable postInviteCode(ModelInvite modelInvite, String str, RestAPIParams.InviteCode inviteCode) { m.checkNotNullParameter(modelInvite, "invite"); @@ -1767,7 +1768,7 @@ public final class RestAPI implements RestAPIInterface { Channel channel2 = modelInvite.getChannel(); pairArr[3] = d0.o.to("location_channel_type", channel2 != null ? Integer.valueOf(channel2.A()) : null); GuildScheduledEvent guildScheduledEvent = modelInvite.getGuildScheduledEvent(); - pairArr[4] = d0.o.to("invite_guild_scheduled_event_id", guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.g()) : null); + pairArr[4] = d0.o.to("invite_guild_scheduled_event_id", guildScheduledEvent != null ? Long.valueOf(guildScheduledEvent.h()) : null); return ObservableExtensionsKt.restSubscribeOn$default(restAPIInterface.postInviteCode(str2, inviteCode, jsonObjectOf(pairArr)), false, 1, null); } @@ -2188,7 +2189,7 @@ public final class RestAPI implements RestAPIInterface { } @Override // com.discord.restapi.RestAPIInterface - @i0.f0.n("/guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") + @i0.f0.n("guilds/{guildId}/role-subscriptions/group-listings/{groupListingId}/subscription-listings/{listingId}") public Observable updateGuildRoleSubscriptionTierListing(@s("guildId") long j, @s("groupListingId") long j2, @s("listingId") long j3, @i0.f0.a RestAPIParams.UpdateGuildRoleSubscriptionTierListing updateGuildRoleSubscriptionTierListing) { m.checkNotNullParameter(updateGuildRoleSubscriptionTierListing, "body"); return this._api.updateGuildRoleSubscriptionTierListing(j, j2, j3, updateGuildRoleSubscriptionTierListing); @@ -2203,7 +2204,7 @@ public final class RestAPI implements RestAPIInterface { @Override // com.discord.restapi.RestAPIInterface @i0.f0.n("guilds/{guildId}/members/@me") - public Observable updateMeGuildMember(@s("guildId") long j, @i0.f0.a PatchGuildMemberBody patchGuildMemberBody) { + public Observable updateMeGuildMember(@s("guildId") long j, @i0.f0.a PatchGuildMemberBody patchGuildMemberBody) { m.checkNotNullParameter(patchGuildMemberBody, "body"); return this._api.updateMeGuildMember(j, patchGuildMemberBody); } diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$1.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$1.java index aba97c719b..d6644f7422 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$1.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$1.java @@ -13,7 +13,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$1 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return n.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951908_code_textappearance), new RelativeSizeSpan(0.85f)); + return n.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951909_code_textappearance), new RelativeSizeSpan(0.85f)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$1 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$2.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$2.java index 6ece0edf86..d70352ad1c 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$2.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$2.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$2 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951909_code_textappearance_comment)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951910_code_textappearance_comment)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$2 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$3.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$3.java index 7e62ca7a6d..caeae586a2 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$3.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$3.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$3 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951913_code_textappearance_literal)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951914_code_textappearance_literal)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$3 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$4.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$4.java index 34b35d060a..2108294852 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$4.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$4.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$4 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951912_code_textappearance_keyword)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951913_code_textappearance_keyword)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$4 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$5.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$5.java index 20001b97ec..9c04887ac5 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$5.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$5.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$5 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951911_code_textappearance_identifier)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951912_code_textappearance_identifier)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$5 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$6.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$6.java index fa9c6c4af3..5c2e261ce1 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$6.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$6.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$6 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951915_code_textappearance_types)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951916_code_textappearance_types)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$6 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$7.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$7.java index 23472916a4..95ee21353d 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$7.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$7.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$7 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951910_code_textappearance_generics)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951911_code_textappearance_generics)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$7 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$8.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$8.java index 3e699d1114..76a7926316 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$8.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createCodeBlockRule$codeStyleProviders$8.java @@ -11,7 +11,7 @@ public final class Rules$createCodeBlockRule$codeStyleProviders$8 implements public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951914_code_textappearance_params)); + return d0.t.m.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951915_code_textappearance_params)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createCodeBlockRule$codeStyleProviders$8 */ diff --git a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createInlineCodeRule$1.java b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createInlineCodeRule$1.java index 931d35e093..dd7543f1dd 100644 --- a/app/src/main/java/com/discord/utilities/textprocessing/Rules$createInlineCodeRule$1.java +++ b/app/src/main/java/com/discord/utilities/textprocessing/Rules$createInlineCodeRule$1.java @@ -13,7 +13,7 @@ public final class Rules$createInlineCodeRule$1 implements StyleNode.a { public final Iterable get(RC rc) { m.checkNotNullParameter(rc, "it"); - return n.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951908_code_textappearance), new RelativeSizeSpan(0.85f)); + return n.listOf(new TextAppearanceSpan(rc.getContext(), R.style.res_2131951909_code_textappearance), new RelativeSizeSpan(0.85f)); } /* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createInlineCodeRule$1 */ diff --git a/app/src/main/java/com/discord/views/user/UserAvatarPresenceView.java b/app/src/main/java/com/discord/views/user/UserAvatarPresenceView.java index 67df40e919..5fda55b480 100644 --- a/app/src/main/java/com/discord/views/user/UserAvatarPresenceView.java +++ b/app/src/main/java/com/discord/views/user/UserAvatarPresenceView.java @@ -228,37 +228,43 @@ public final class UserAvatarPresenceView extends RelativeLayout { throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } - /* JADX WARNING: Removed duplicated region for block: B:37:0x00a1 */ - /* JADX WARNING: Removed duplicated region for block: B:49:0x00f2 */ + /* JADX WARNING: Removed duplicated region for block: B:41:0x00af */ + /* JADX WARNING: Removed duplicated region for block: B:53:0x0100 */ public final void a(a aVar) { String str; boolean z2; String str2; + boolean z3; m.checkNotNullParameter(aVar, "viewState"); GuildMember guildMember = aVar.e; User user = aVar.a; - boolean z3 = true; - boolean z4 = !AccessibilityUtils.INSTANCE.isReducedMotionEnabled(); + boolean z4 = true; + boolean z5 = !AccessibilityUtils.INSTANCE.isReducedMotionEnabled(); int i = 0; if (guildMember == null || !guildMember.hasAvatar()) { String avatar = user.getAvatar(); if (avatar == null || !t.startsWith$default(avatar, "data:", false, 2, null)) { String avatar2 = user.getAvatar(); if (avatar2 != null) { - z2 = z4 && IconUtils.INSTANCE.isImageHashAnimated(avatar2); + z2 = z5 && IconUtils.INSTANCE.isImageHashAnimated(avatar2); } else { z2 = false; } - str2 = IconUtils.getForUser$default(aVar.a, z4, null, 4, null); + str2 = IconUtils.getForUser$default(aVar.a, z5, null, 4, null); } else { - String avatar3 = user.getAvatar(); - if (avatar3 == null || !IconUtils.INSTANCE.isDataUrlForGif(avatar3)) { - str = avatar3; - z2 = false; + str2 = user.getAvatar(); + z2 = str2 != null && IconUtils.INSTANCE.isDataUrlForGif(str2); + } + } else { + str2 = guildMember.getAvatarHash(); + if (str2 == null || !t.startsWith$default(str2, "data:", false, 2, null)) { + if (str2 != null) { + z3 = z5 && IconUtils.INSTANCE.isImageHashAnimated(str2); } else { - str = avatar3; - z2 = true; + z3 = false; } + str = IconUtils.getForGuildMember$default(IconUtils.INSTANCE, guildMember, null, z5, 2, null); + z2 = z3; SimpleDraweeView simpleDraweeView = this.i.b; m.checkNotNullExpressionValue(simpleDraweeView, "binding.avatar"); IconUtils.setIcon$default(simpleDraweeView, str, 0, new c(this, str), this.j, 4, (Object) null); @@ -271,22 +277,15 @@ public final class UserAvatarPresenceView extends RelativeLayout { StatusView statusView = this.i.e; m.checkNotNullExpressionValue(statusView, "binding.userAvatarPresenceStatus"); if (!aVar.d || !UserUtils.INSTANCE.isStatusVisible(aVar.a, aVar.b, true)) { - z3 = false; + z4 = false; } - if (!z3) { + if (!z4) { i = 8; } statusView.setVisibility(i); this.i.e.setPresence(aVar.b); } - } else { - String avatarHash = guildMember.getAvatarHash(); - if (avatarHash != null) { - z2 = z4 && IconUtils.INSTANCE.isImageHashAnimated(avatarHash); - } else { - z2 = false; - } - str2 = IconUtils.getForGuildMember$default(IconUtils.INSTANCE, guildMember, null, z4, 2, null); + z2 = IconUtils.INSTANCE.isDataUrlForGif(str2); } str = str2; SimpleDraweeView simpleDraweeView = this.i.b; @@ -296,8 +295,8 @@ public final class UserAvatarPresenceView extends RelativeLayout { } StatusView statusView = this.i.e; m.checkNotNullExpressionValue(statusView, "binding.userAvatarPresenceStatus"); - z3 = false; - if (!z3) { + z4 = false; + if (!z4) { } statusView.setVisibility(i); this.i.e.setPresence(aVar.b); diff --git a/app/src/main/java/com/discord/widgets/auth/WidgetAuthMfa$onViewBound$1.java b/app/src/main/java/com/discord/widgets/auth/WidgetAuthMfa$onViewBound$1.java index f8066de02f..cbfb4afbd4 100644 --- a/app/src/main/java/com/discord/widgets/auth/WidgetAuthMfa$onViewBound$1.java +++ b/app/src/main/java/com/discord/widgets/auth/WidgetAuthMfa$onViewBound$1.java @@ -16,10 +16,10 @@ public final class WidgetAuthMfa$onViewBound$1 implements Action2 { public static final Companion Companion = new Companion(null); - private static final List genericFeatureAreas = m.listOf(new Feature("General", "Android", null)); + private static final List genericFeatureAreas = m.listOf(new Feature(NotificationClient.NOTIF_GENERAL, "Android", null)); private static final List sendingStickers; private static final List successStickers; private RestCallState bugReportConfig; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1.java index 3dc9e81148..ae1977c0e8 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1.java @@ -29,6 +29,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; public final /* synthetic */ boolean $isCategoryMuted; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -121,11 +122,12 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1(boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1(boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(3); this.$isCategoryMuted = z2; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z3; this.$selectedChannel$inlined = channel; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2.java index a4b31e7915..f8ffdbeb14 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2.java @@ -31,6 +31,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -47,13 +48,14 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2(long j, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel2, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2(long j, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(1); this.$channelId = j; this.$channel = channel; this.$permissions = l; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel2; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3.java index 9666e4212f..c69882413c 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3.java @@ -27,6 +27,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -44,7 +45,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3(Channel channel, Long l, WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3(Channel channel, Long l, WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, boolean z2, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z3, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(0); this.$channel = channel; this.$permissions = l; @@ -52,6 +53,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo this.$muted = z2; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z3; this.$selectedChannel$inlined = channel2; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4.java index f39cabe57a..e2cad45a1c 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4.java @@ -26,6 +26,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -41,11 +42,12 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(2); this.$getTextLikeChannelData$1 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5.java index 90a32efefd..5153cff541 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5.java @@ -31,6 +31,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -47,13 +48,14 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(0); this.$getVocalChannelData$2 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2; this.$channel = channel; this.$permissions = l; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel2; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; @@ -94,7 +96,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo } Object next = it.next(); GuildScheduledEvent guildScheduledEvent = (GuildScheduledEvent) next; - if (guildScheduledEvent.k() == GuildScheduledEventStatus.ACTIVE) { + if (guildScheduledEvent.l() == GuildScheduledEventStatus.ACTIVE) { Long b = guildScheduledEvent.b(); long h = this.$channel.h(); if (b != null && b.longValue() == h) { diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6.java index c66b707456..573cafff8e 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6.java @@ -26,6 +26,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -42,13 +43,14 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$6(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2, Channel channel, Long l, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel2, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(0); this.$getVocalChannelData$2 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$2; this.$channel = channel; this.$permissions = l; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel2; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7.java index 40cab87240..1f42d327d4 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7.java @@ -25,6 +25,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -41,11 +42,12 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$7(WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4 widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j2, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(1); this.$toChannelListItemThread$4 = widgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$4; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8.java index 93c4681b49..d2ba1a60e6 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8.java @@ -25,6 +25,7 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ GuildChannelsInfo $guild$inlined; public final /* synthetic */ List $guildScheduledEvents$inlined; public final /* synthetic */ HashSet $hiddenChannelsIds$inlined; + public final /* synthetic */ boolean $isGuildHub$inlined; public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined; public final /* synthetic */ ArrayList $items$inlined; public final /* synthetic */ Map $joinedThreads$inlined; @@ -40,11 +41,12 @@ public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$fo public final /* synthetic */ Map $voiceStates$inlined; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8(long j, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { + public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8(long j, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, boolean z2, Channel channel, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, Set set3, List list, Map map3, Map map4, Map map5, Map map6, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) { super(0); this.$channelId = j; this.$guild$inlined = guildChannelsInfo; this.$forceViewCategories$inlined = hashSet; + this.$isGuildHub$inlined = z2; this.$selectedChannel$inlined = channel; this.$mentionCounts$inlined = map; this.$unreadChannelIds$inlined = set; diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel.java index 8e450f75d1..7ac1cf70ea 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelListModel.java @@ -420,7 +420,7 @@ public final class WidgetChannelListModel { private final ChannelListItemActiveEventData getChannelEventNoticeData(GuildChannelsInfo guildChannelsInfo, Map map, List list, Map> map2, Map map3, long j) { Object obj; Object obj2; - GuildScheduledEventEntityMetadata d; + GuildScheduledEventEntityMetadata e; String a; boolean z2; Channel channel; @@ -454,7 +454,7 @@ public final class WidgetChannelListModel { } obj = it.next(); GuildScheduledEvent guildScheduledEvent = (GuildScheduledEvent) obj; - if (guildScheduledEvent.k() != GuildScheduledEventStatus.ACTIVE || (channel2 = map3.get(guildScheduledEvent.b())) == null || channel2.A() != 2 || !PermissionUtils.can(Permission.CONNECT, guildChannelsInfo.getChannelPermissions().get(guildScheduledEvent.b())) || ((b = guildScheduledEvent.b()) != null && b.longValue() == j)) { + if (guildScheduledEvent.l() != GuildScheduledEventStatus.ACTIVE || (channel2 = map3.get(guildScheduledEvent.b())) == null || channel2.A() != 2 || !PermissionUtils.can(Permission.CONNECT, guildChannelsInfo.getChannelPermissions().get(guildScheduledEvent.b())) || ((b = guildScheduledEvent.b()) != null && b.longValue() == j)) { z4 = false; continue; } else { @@ -507,7 +507,7 @@ public final class WidgetChannelListModel { if (list2 == null) { list2 = n.emptyList(); } - return new ChannelListItemActiveEventData(guildScheduledEvent2.h(), channelLocation2, 0, list2, z6, z6, null); + return new ChannelListItemActiveEventData(guildScheduledEvent2.i(), channelLocation2, 0, list2, z6, z6, null); } } Iterator it3 = list.iterator(); @@ -518,9 +518,9 @@ public final class WidgetChannelListModel { } obj2 = it3.next(); GuildScheduledEvent guildScheduledEvent3 = (GuildScheduledEvent) obj2; - if (guildScheduledEvent3.k() == GuildScheduledEventStatus.ACTIVE && guildScheduledEvent3.e() == GuildScheduledEventEntityType.EXTERNAL) { - GuildScheduledEventEntityMetadata d2 = guildScheduledEvent3.d(); - if ((d2 != null ? d2.a() : null) != null) { + if (guildScheduledEvent3.l() == GuildScheduledEventStatus.ACTIVE && guildScheduledEvent3.f() == GuildScheduledEventEntityType.EXTERNAL) { + GuildScheduledEventEntityMetadata e2 = guildScheduledEvent3.e(); + if ((e2 != null ? e2.a() : null) != null) { z2 = true; continue; if (z2) { @@ -534,10 +534,10 @@ public final class WidgetChannelListModel { } } GuildScheduledEvent guildScheduledEvent4 = (GuildScheduledEvent) obj2; - if (guildScheduledEvent4 == null || (d = guildScheduledEvent4.d()) == null || (a = d.a()) == null) { + if (guildScheduledEvent4 == null || (e = guildScheduledEvent4.e()) == null || (a = e.a()) == null) { return null; } - return new ChannelListItemActiveEventData(guildScheduledEvent4.h(), new GuildScheduledEventLocationInfo.ExternalLocation(a), 0, n.emptyList(), false, false, Long.valueOf(guildScheduledEvent4.g())); + return new ChannelListItemActiveEventData(guildScheduledEvent4.i(), new GuildScheduledEventLocationInfo.ExternalLocation(a), 0, n.emptyList(), false, false, Long.valueOf(guildScheduledEvent4.h())); } private final Observable getPrivateChannelList() { @@ -563,16 +563,16 @@ public final class WidgetChannelListModel { } /* JADX ERROR: IndexOutOfBoundsException in pass: SSATransform - java.lang.IndexOutOfBoundsException: bitIndex < 0: -87 + java.lang.IndexOutOfBoundsException: bitIndex < 0: -79 at java.base/java.util.BitSet.get(BitSet.java:626) at jadx.core.dex.visitors.ssa.LiveVarAnalysis.fillBasicBlockInfo(LiveVarAnalysis.java:65) at jadx.core.dex.visitors.ssa.LiveVarAnalysis.runAnalysis(LiveVarAnalysis.java:36) at jadx.core.dex.visitors.ssa.SSATransform.process(SSATransform.java:55) at jadx.core.dex.visitors.ssa.SSATransform.visit(SSATransform.java:41) */ - private final java.util.List guildListBuilder(long r152, com.discord.utilities.channel.GuildChannelsInfo r154, java.util.Map r155, java.util.Map> r156, java.util.Map r157, java.util.Set r158, com.discord.api.channel.Channel r159, long r160, java.util.Map> r162, java.util.Map r163, java.util.Set r164, java.util.Set r165, java.util.Map r166, java.util.Map r167, java.util.List r168, boolean r169) { + private final java.util.List guildListBuilder(long r160, com.discord.utilities.channel.GuildChannelsInfo r162, java.util.Map r163, java.util.Map> r164, java.util.Map r165, java.util.Set r166, com.discord.api.channel.Channel r167, long r168, java.util.Map> r170, java.util.Map r171, java.util.Set r172, java.util.Set r173, java.util.Map r174, java.util.Map r175, java.util.List r176, boolean r177) { /* - // Method dump skipped, instructions count: 1284 + // Method dump skipped, instructions count: 1346 */ throw new UnsupportedOperationException("Method not decompiled: com.discord.widgets.channels.list.WidgetChannelListModel.Companion.guildListBuilder(long, com.discord.utilities.channel.GuildChannelsInfo, java.util.Map, java.util.Map, java.util.Map, java.util.Set, com.discord.api.channel.Channel, long, java.util.Map, java.util.Map, java.util.Set, java.util.Set, java.util.Map, java.util.Map, java.util.List, boolean):java.util.List"); } diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$4.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$4.java index 2b7975527b..49980c1cc6 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$4.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$4.java @@ -26,7 +26,7 @@ public final class WidgetChannelsList$onViewBound$4 extends o implements Functio public final void invoke(Channel channel) { Long access$getSelectedGuildId$p = WidgetChannelsList.access$getSelectedGuildId$p(this.this$0); if (access$getSelectedGuildId$p != null) { - WidgetGuildRoleSubscriptionEntryPoint.Companion.launch(this.this$0.requireContext(), access$getSelectedGuildId$p.longValue()); + WidgetGuildRoleSubscriptionEntryPoint.Companion.launch(this.this$0.requireContext(), access$getSelectedGuildId$p.longValue(), "gated_channel"); } } } diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$9.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$9.java index 90fdbe397a..d535a641a3 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$9.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsList$onViewBound$9.java @@ -19,7 +19,7 @@ public final class WidgetChannelsList$onViewBound$9 extends o implements Functio public final void mo1invoke() { Long access$getSelectedGuildId$p = WidgetChannelsList.access$getSelectedGuildId$p(this.this$0); if (access$getSelectedGuildId$p != null) { - WidgetGuildRoleSubscriptionEntryPoint.Companion.launch(this.this$0.requireContext(), access$getSelectedGuildId$p.longValue()); + WidgetGuildRoleSubscriptionEntryPoint.Companion.launch(this.this$0.requireContext(), access$getSelectedGuildId$p.longValue(), "entrypoint"); } } } diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListAdapter.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListAdapter.java index 398a3352a9..3ec21615ce 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListAdapter.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListAdapter.java @@ -1136,7 +1136,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple 0 ? 0 : 8); diff --git a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Model$Companion$get$1.java b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Model$Companion$get$1.java index 3f98f01ca3..8be76e66b6 100644 --- a/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Model$Companion$get$1.java +++ b/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListItemChannelActions$Model$Companion$get$1.java @@ -6,33 +6,32 @@ import com.discord.models.domain.ModelNotificationSettings; import com.discord.models.guild.Guild; import com.discord.stores.StoreStream; import com.discord.widgets.channels.list.WidgetChannelsListItemChannelActions; -import com.discord.widgets.stage.LiveStageNotificationsFeatureFlag; -import d0.z.d.m; import j0.k.b; import j0.l.e.j; import java.util.Map; import rx.Observable; -import rx.functions.Func4; +import rx.functions.Func3; /* compiled from: WidgetChannelsListItemChannelActions.kt */ public final class WidgetChannelsListItemChannelActions$Model$Companion$get$1 implements b> { public final /* synthetic */ long $channelId; /* compiled from: WidgetChannelsListItemChannelActions.kt */ /* renamed from: com.discord.widgets.channels.list.WidgetChannelsListItemChannelActions$Model$Companion$get$1$1 reason: invalid class name */ - public static final class AnonymousClass1 implements Func4, Boolean, WidgetChannelsListItemChannelActions.Model> { + public static final class AnonymousClass1 implements Func3, WidgetChannelsListItemChannelActions.Model> { public final /* synthetic */ Channel $channel; public AnonymousClass1(Channel channel) { this.$channel = channel; } - public final WidgetChannelsListItemChannelActions.Model call(Guild guild, Long l, Map map, Boolean bool) { + public final WidgetChannelsListItemChannelActions.Model call(Guild guild, Long l, Map map) { ModelNotificationSettings.ChannelOverride channelOverride; ModelNotificationSettings modelNotificationSettings = (ModelNotificationSettings) a.t0(this.$channel, map); - boolean z2 = (modelNotificationSettings == null || (channelOverride = modelNotificationSettings.getChannelOverride(this.$channel.h())) == null || !channelOverride.isMuted()) ? false : true; - Channel channel = this.$channel; - m.checkNotNullExpressionValue(bool, "showStageNotificationSurfaces"); - return new WidgetChannelsListItemChannelActions.Model(channel, guild, l, z2, bool.booleanValue()); + boolean z2 = true; + if (modelNotificationSettings == null || (channelOverride = modelNotificationSettings.getChannelOverride(this.$channel.h())) == null || !channelOverride.isMuted()) { + z2 = false; + } + return new WidgetChannelsListItemChannelActions.Model(this.$channel, guild, l, z2); } } @@ -45,6 +44,6 @@ public final class WidgetChannelsListItemChannelActions$Model$Companion$get$1 implements Ac public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_channel_settings_delete /* 2131364198 */: + case R.id.menu_channel_settings_delete /* 2131364204 */: if (this.$this_configureUI.isPublicGuildRulesChannel() || this.$this_configureUI.isPublicGuildUpdatesChannel()) { WidgetTextChannelSettings.access$cannotDeleteWarn(this.this$0, this.$this_configureUI.isPublicGuildRulesChannel()); return; @@ -29,7 +29,7 @@ public final class WidgetTextChannelSettings$configureUI$1 implements Ac WidgetTextChannelSettings.access$confirmDelete(this.this$0, this.$this_configureUI.getChannel()); return; } - case R.id.menu_channel_settings_reset /* 2131364199 */: + case R.id.menu_channel_settings_reset /* 2131364205 */: StoreUserGuildSettings userGuildSettings = StoreStream.Companion.getUserGuildSettings(); m.checkNotNullExpressionValue(context, "context"); userGuildSettings.setChannelNotificationsDefault(context, this.$this_configureUI.getChannel()); diff --git a/app/src/main/java/com/discord/widgets/channels/threads/browser/WidgetThreadBrowser$updateMenu$1.java b/app/src/main/java/com/discord/widgets/channels/threads/browser/WidgetThreadBrowser$updateMenu$1.java index 930bca0877..d5552f9b08 100644 --- a/app/src/main/java/com/discord/widgets/channels/threads/browser/WidgetThreadBrowser$updateMenu$1.java +++ b/app/src/main/java/com/discord/widgets/channels/threads/browser/WidgetThreadBrowser$updateMenu$1.java @@ -19,11 +19,11 @@ public final class WidgetThreadBrowser$updateMenu$1 implements Action2 { boolean hasAccessWrite = loaded.getSelectedThreadDraft() == null ? PermissionUtils.INSTANCE.hasAccessWrite(loaded.getChannel(), loaded.getChannelPermissions()) : PermissionUtils.can(Permission.SEND_MESSAGES_IN_THREADS, loaded.getChannelPermissions()); boolean isType = ModelUserRelationship.isType(loaded.getRelationshipType(), 2); ThreadUtils threadUtils = ThreadUtils.INSTANCE; - boolean z2 = true; + boolean z2 = false; boolean z3 = !isType && hasAccessWrite && !loaded.isLurking() && (threadUtils.canUnarchiveThread(loaded.getChannel(), loaded.getChannelPermissions()) || !ChannelUtils.C(loaded.getChannel())); boolean z4 = loaded.getChannel().A() == 5 && !z3; PremiumUtils premiumUtils = PremiumUtils.INSTANCE; @@ -1831,9 +1831,7 @@ public final class ChatInputViewModel extends AppViewModel { boolean z5 = loaded.getVerificationLevelTriggered() != GuildVerificationLevel.NONE; StoreState.Loaded.PendingReply pendingReply = loaded.getPendingReply(); ViewState.Loaded.PendingReplyState replying = (pendingReply != null ? pendingReply.getRepliedAuthor() : null) != null ? new ViewState.Loaded.PendingReplyState.Replying(loaded.getPendingReply().getPendingReply().getMessageReference(), loaded.getPendingReply().getPendingReply().getShouldMention(), loaded.getPendingReply().getPendingReply().getShowMentionToggle(), loaded.getPendingReply().getRepliedAuthor(), loaded.getPendingReply().getRepliedAuthorGuildMember()) : ViewState.Loaded.PendingReplyState.Hide.INSTANCE; - boolean hasVerificationGate$default = MemberVerificationUtils.hasVerificationGate$default(MemberVerificationUtils.INSTANCE, loaded.getGuild(), null, 2, null); - GuildMember meGuildMember = loaded.getMeGuildMember(); - boolean z6 = hasVerificationGate$default && ((meGuildMember != null ? meGuildMember.getPending() : false) || z5); + boolean z6 = MemberVerificationUtils.hasVerificationGate$default(MemberVerificationUtils.INSTANCE, loaded.getGuild(), null, 2, null) && !(loaded.getMeGuildMember() != null && !loaded.getMeGuildMember().getPending()); boolean z7 = !ChannelUtils.A(loaded.getChannel()) && !loaded.isLurking() && !z5 && !z4 && !z6; boolean z8 = z3 && loaded.getEditingMessage() != null && loaded.getEditingMessage().getMessage().getChannelId() == loaded.getChannel().h(); boolean z9 = replying instanceof ViewState.Loaded.PendingReplyState.Replying; @@ -1860,8 +1858,8 @@ public final class ChatInputViewModel extends AppViewModel { viewState2 = null; } ViewState.Loaded loaded4 = (ViewState.Loaded) viewState2; - if ((loaded4 != null ? loaded4.getSelectedThreadDraft() : null) == null || loaded2.getSelectedThreadDraft() != null) { - z2 = false; + if ((loaded4 != null ? loaded4.getSelectedThreadDraft() : null) != null && loaded2.getSelectedThreadDraft() == null) { + z2 = true; } updateViewState(loaded2); if (z10) { diff --git a/app/src/main/java/com/discord/widgets/chat/input/ExpressionPickerItemDecoration.java b/app/src/main/java/com/discord/widgets/chat/input/ExpressionPickerItemDecoration.java index 5ba67e016b..e3f1d7580c 100644 --- a/app/src/main/java/com/discord/widgets/chat/input/ExpressionPickerItemDecoration.java +++ b/app/src/main/java/com/discord/widgets/chat/input/ExpressionPickerItemDecoration.java @@ -80,23 +80,25 @@ public final class ExpressionPickerItemDecoration extends RecyclerView.ItemDecor m.checkNotNullParameter(recyclerView, "parent"); m.checkNotNullParameter(state, "state"); super.getItemOffsets(rect, view, recyclerView, state); - int childAdapterPosition = recyclerView.getChildAdapterPosition(view); - if (!this.headerIndices.contains(Integer.valueOf(childAdapterPosition))) { - int headerPositionForItem = getHeaderPositionForItem(childAdapterPosition); - Integer nextHeaderPositionForItem = getNextHeaderPositionForItem(childAdapterPosition); - int intValue = nextHeaderPositionForItem != null ? nextHeaderPositionForItem.intValue() : state.getItemCount(); - boolean z2 = true; - int i = (intValue - headerPositionForItem) - 1; - int i2 = (childAdapterPosition - headerPositionForItem) - 1; - int i3 = this.numOfColumns; - int i4 = 0; - if (i2 < ((i / i3) - (i % i3 == 0 ? 1 : 0)) * i3) { - z2 = false; + if (!this.headerIndices.isEmpty()) { + int childAdapterPosition = recyclerView.getChildAdapterPosition(view); + if (!this.headerIndices.contains(Integer.valueOf(childAdapterPosition))) { + int headerPositionForItem = getHeaderPositionForItem(childAdapterPosition); + Integer nextHeaderPositionForItem = getNextHeaderPositionForItem(childAdapterPosition); + int intValue = nextHeaderPositionForItem != null ? nextHeaderPositionForItem.intValue() : state.getItemCount(); + boolean z2 = true; + int i = (intValue - headerPositionForItem) - 1; + int i2 = (childAdapterPosition - headerPositionForItem) - 1; + int i3 = this.numOfColumns; + int i4 = 0; + if (i2 < ((i / i3) - (i % i3 == 0 ? 1 : 0)) * i3) { + z2 = false; + } + if (z2) { + i4 = this.bottomPaddingForLastRow; + } + rect.bottom = i4; } - if (z2) { - i4 = this.bottomPaddingForLastRow; - } - rect.bottom = i4; } } } diff --git a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$binding$2.java b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$binding$2.java index 46278ac245..979666b4e9 100644 --- a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$binding$2.java +++ b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$binding$2.java @@ -103,17 +103,17 @@ public final /* synthetic */ class WidgetChatInput$binding$2 extends k implement m4 m4Var = new m4((LinearLayout) findViewById3, materialButton, materialButton2, textView6, textView7); View findViewById4 = view.findViewById(R.id.guard_member_verification); if (findViewById4 != null) { - int i4 = R.id.chat_member_verification_input_guard_action; - CardView cardView = (CardView) findViewById4.findViewById(R.id.chat_member_verification_input_guard_action); + int i4 = R.id.chat_input_member_verification_guard; + CardView cardView = (CardView) findViewById4.findViewById(R.id.chat_input_member_verification_guard); if (cardView != null) { - i4 = R.id.chat_member_verification_input_guard_chevron; - ImageView imageView2 = (ImageView) findViewById4.findViewById(R.id.chat_member_verification_input_guard_chevron); + i4 = R.id.chat_input_member_verification_guard_action; + ImageView imageView2 = (ImageView) findViewById4.findViewById(R.id.chat_input_member_verification_guard_action); if (imageView2 != null) { - i4 = R.id.chat_member_verification_input_guard_icon; - ImageView imageView3 = (ImageView) findViewById4.findViewById(R.id.chat_member_verification_input_guard_icon); + i4 = R.id.chat_input_member_verification_guard_icon; + ImageView imageView3 = (ImageView) findViewById4.findViewById(R.id.chat_input_member_verification_guard_icon); if (imageView3 != null) { - i4 = R.id.chat_member_verification_input_guard_text; - TextView textView8 = (TextView) findViewById4.findViewById(R.id.chat_member_verification_input_guard_text); + i4 = R.id.chat_input_member_verification_guard_text; + TextView textView8 = (TextView) findViewById4.findViewById(R.id.chat_input_member_verification_guard_text); if (textView8 != null) { return new WidgetChatInputBinding(linearLayout, widgetChatInputApplicationCommandsBinding, recyclerView2, linearLayout, relativeLayout, appCompatImageButton, textView2, linearLayout2, imageView, textView3, textView4, recyclerView3, linearLayout3, textView5, recyclerView4, fragmentContainerView, linearLayout4, m4Var, new n4((RelativeLayout) findViewById4, cardView, imageView2, imageView3, textView8)); } diff --git a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$1.java b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$1.java index 575f8232b2..cb15ddb292 100644 --- a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$1.java +++ b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$1.java @@ -1,35 +1,12 @@ package com.discord.widgets.chat.input; -import android.content.Context; import android.view.View; -import androidx.fragment.app.FragmentManager; -import com.discord.utilities.analytics.Traits; -import com.discord.utilities.guilds.MemberVerificationUtils; import com.discord.widgets.chat.input.ChatInputViewModel; -import d0.z.d.m; -import d0.z.d.o; -import kotlin.Unit; -import kotlin.jvm.functions.Function0; /* compiled from: WidgetChatInput.kt */ public final class WidgetChatInput$configureChatGuard$1 implements View.OnClickListener { public final /* synthetic */ ChatInputViewModel.ViewState.Loaded $viewState; public final /* synthetic */ WidgetChatInput this$0; - /* compiled from: WidgetChatInput.kt */ - /* renamed from: com.discord.widgets.chat.input.WidgetChatInput$configureChatGuard$1$1 reason: invalid class name */ - public static final class AnonymousClass1 extends o implements Function0 { - public static final AnonymousClass1 INSTANCE = new AnonymousClass1(); - - public AnonymousClass1() { - super(0); - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final void mo1invoke() { - } - } - public WidgetChatInput$configureChatGuard$1(WidgetChatInput widgetChatInput, ChatInputViewModel.ViewState.Loaded loaded) { this.this$0 = widgetChatInput; this.$viewState = loaded; @@ -37,10 +14,6 @@ public final class WidgetChatInput$configureChatGuard$1 implements View.OnClickL @Override // android.view.View.OnClickListener public final void onClick(View view) { - MemberVerificationUtils memberVerificationUtils = MemberVerificationUtils.INSTANCE; - Context requireContext = this.this$0.requireContext(); - FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); - m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - MemberVerificationUtils.maybeShowVerificationGate$default(memberVerificationUtils, requireContext, parentFragmentManager, this.$viewState.getChannel().f(), Traits.Location.Page.GUILD_CHANNEL, null, null, AnonymousClass1.INSTANCE, 48, null); + WidgetChatInput.access$showFollowSheet(this.this$0, this.$viewState.getChannel().h(), this.$viewState.getChannel().f()); } } diff --git a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$5.java b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$5.java index 468858dc4f..e8a628414f 100644 --- a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$5.java +++ b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput$configureChatGuard$5.java @@ -1,12 +1,35 @@ package com.discord.widgets.chat.input; +import android.content.Context; import android.view.View; +import androidx.fragment.app.FragmentManager; +import com.discord.utilities.analytics.Traits; +import com.discord.utilities.guilds.MemberVerificationUtils; import com.discord.widgets.chat.input.ChatInputViewModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; /* compiled from: WidgetChatInput.kt */ public final class WidgetChatInput$configureChatGuard$5 implements View.OnClickListener { public final /* synthetic */ ChatInputViewModel.ViewState.Loaded $viewState; public final /* synthetic */ WidgetChatInput this$0; + /* compiled from: WidgetChatInput.kt */ + /* renamed from: com.discord.widgets.chat.input.WidgetChatInput$configureChatGuard$5$1 reason: invalid class name */ + public static final class AnonymousClass1 extends o implements Function0 { + public static final AnonymousClass1 INSTANCE = new AnonymousClass1(); + + public AnonymousClass1() { + super(0); + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final void mo1invoke() { + } + } + public WidgetChatInput$configureChatGuard$5(WidgetChatInput widgetChatInput, ChatInputViewModel.ViewState.Loaded loaded) { this.this$0 = widgetChatInput; this.$viewState = loaded; @@ -14,6 +37,10 @@ public final class WidgetChatInput$configureChatGuard$5 implements View.OnClickL @Override // android.view.View.OnClickListener public final void onClick(View view) { - WidgetChatInput.access$showFollowSheet(this.this$0, this.$viewState.getChannel().h(), this.$viewState.getChannel().f()); + MemberVerificationUtils memberVerificationUtils = MemberVerificationUtils.INSTANCE; + Context requireContext = this.this$0.requireContext(); + FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); + m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); + MemberVerificationUtils.maybeShowVerificationGate$default(memberVerificationUtils, requireContext, parentFragmentManager, this.$viewState.getChannel().f(), Traits.Location.Page.GUILD_CHANNEL, null, null, AnonymousClass1.INSTANCE, 48, null); } } diff --git a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput.java b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput.java index 4354ec0146..db75ea8cdd 100644 --- a/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput.java +++ b/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInput.java @@ -216,9 +216,6 @@ public final class WidgetChatInput extends AppFragment { i = 8; } relativeLayout.setVisibility(i); - n4 n4Var2 = getBinding().f1799s; - m.checkNotNullExpressionValue(n4Var2, "binding.guardMemberVerification"); - n4Var2.a.setOnClickListener(new WidgetChatInput$configureChatGuard$1(this, loaded)); if (loaded.isSystemDM()) { getBinding().r.e.setText(R.string.system_dm_channel_description); TextView textView = getBinding().r.d; @@ -230,36 +227,53 @@ public final class WidgetChatInput extends AppFragment { MaterialButton materialButton2 = getBinding().r.f131c; m.checkNotNullExpressionValue(materialButton2, "binding.guard.chatInputGuardActionSecondary"); materialButton2.setVisibility(8); + } else if (loaded.getShouldShowFollow()) { + getBinding().r.e.setText(R.string.follow_news_chat_input_message); + MaterialButton materialButton3 = getBinding().r.b; + m.checkNotNullExpressionValue(materialButton3, "binding.guard.chatInputGuardAction"); + ViewExtensions.setTextAndVisibilityBy(materialButton3, getString(R.string.game_popout_follow)); + getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$1(this, loaded)); + MaterialButton materialButton4 = getBinding().r.f131c; + m.checkNotNullExpressionValue(materialButton4, "binding.guard.chatInputGuardActionSecondary"); + materialButton4.setVisibility(8); } else if (loaded.isLurking()) { if (loaded.getShouldShowFollow()) { getBinding().r.e.setText(R.string.follow_news_chat_input_message); - MaterialButton materialButton3 = getBinding().r.b; - m.checkNotNullExpressionValue(materialButton3, "binding.guard.chatInputGuardAction"); - ViewExtensions.setTextAndVisibilityBy(materialButton3, getString(R.string.game_popout_follow)); - getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$2(this, loaded)); - MaterialButton materialButton4 = getBinding().r.f131c; - m.checkNotNullExpressionValue(materialButton4, "binding.guard.chatInputGuardActionSecondary"); - ViewExtensions.setTextAndVisibilityBy(materialButton4, getString(R.string.lurker_mode_chat_input_button)); - getBinding().r.f131c.setOnClickListener(new WidgetChatInput$configureChatGuard$3(this)); - } else { - getBinding().r.e.setText(R.string.lurker_mode_chat_input_message); MaterialButton materialButton5 = getBinding().r.b; m.checkNotNullExpressionValue(materialButton5, "binding.guard.chatInputGuardAction"); - ViewExtensions.setTextAndVisibilityBy(materialButton5, getString(R.string.lurker_mode_chat_input_button)); - getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$4(this)); + ViewExtensions.setTextAndVisibilityBy(materialButton5, getString(R.string.game_popout_follow)); + getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$2(this, loaded)); MaterialButton materialButton6 = getBinding().r.f131c; m.checkNotNullExpressionValue(materialButton6, "binding.guard.chatInputGuardActionSecondary"); - materialButton6.setVisibility(8); + ViewExtensions.setTextAndVisibilityBy(materialButton6, getString(R.string.lurker_mode_chat_input_button)); + getBinding().r.f131c.setOnClickListener(new WidgetChatInput$configureChatGuard$3(this)); + return; } - } else if (loaded.getShouldShowFollow()) { - getBinding().r.e.setText(R.string.follow_news_chat_input_message); + getBinding().r.e.setText(R.string.lurker_mode_chat_input_message); MaterialButton materialButton7 = getBinding().r.b; m.checkNotNullExpressionValue(materialButton7, "binding.guard.chatInputGuardAction"); - ViewExtensions.setTextAndVisibilityBy(materialButton7, getString(R.string.game_popout_follow)); - getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$5(this, loaded)); + ViewExtensions.setTextAndVisibilityBy(materialButton7, getString(R.string.lurker_mode_chat_input_button)); + getBinding().r.b.setOnClickListener(new WidgetChatInput$configureChatGuard$4(this)); MaterialButton materialButton8 = getBinding().r.f131c; m.checkNotNullExpressionValue(materialButton8, "binding.guard.chatInputGuardActionSecondary"); materialButton8.setVisibility(8); + } else if (loaded.getShouldShowVerificationGate()) { + getBinding().f1799s.b.setOnClickListener(new WidgetChatInput$configureChatGuard$5(this, loaded)); + ApplicationStatus joinRequestStatus = loaded.getJoinRequestStatus(); + if (joinRequestStatus != null) { + int ordinal = joinRequestStatus.ordinal(); + if (ordinal == 1) { + getBinding().f1799s.d.setText(R.string.member_verification_application_confirmation_title); + getBinding().f1799s.f136c.setImageResource(R.drawable.img_member_verification_pending); + return; + } else if (ordinal == 2) { + getBinding().f1799s.d.setText(R.string.member_verification_application_rejected_title); + getBinding().f1799s.f136c.setImageResource(R.drawable.img_member_verification_denied); + return; + } + } + getBinding().f1799s.d.setText(R.string.member_verification_chat_blocker_text); + getBinding().f1799s.f136c.setImageResource(R.drawable.img_member_verification_started); } else { TextView textView2 = getBinding().r.e; m.checkNotNullExpressionValue(textView2, "binding.guard.chatInputGuardText"); @@ -280,23 +294,6 @@ public final class WidgetChatInput extends AppFragment { m.checkNotNullExpressionValue(materialButton11, "binding.guard.chatInputGuardActionSecondary"); materialButton11.setVisibility(8); } - if (loaded.getShouldShowVerificationGate()) { - ApplicationStatus joinRequestStatus = loaded.getJoinRequestStatus(); - if (joinRequestStatus != null) { - int ordinal = joinRequestStatus.ordinal(); - if (ordinal == 1) { - getBinding().f1799s.f136c.setText(R.string.member_verification_application_confirmation_title); - getBinding().f1799s.b.setImageResource(R.drawable.img_member_verification_pending); - return; - } else if (ordinal == 2) { - getBinding().f1799s.f136c.setText(R.string.member_verification_application_rejected_title); - getBinding().f1799s.b.setImageResource(R.drawable.img_member_verification_denied); - return; - } - } - getBinding().f1799s.f136c.setText(R.string.member_verification_chat_blocker_text); - getBinding().f1799s.b.setImageResource(R.drawable.img_member_verification_started); - } } private final void configureContextBar(ChatInputViewModel.ViewState.Loaded loaded) { diff --git a/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java b/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java index 6a3a78a603..fcccd12f3b 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java +++ b/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java @@ -1,6 +1,7 @@ package com.discord.widgets.chat.list; import android.content.Context; +import android.os.Build; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; @@ -418,6 +419,10 @@ public final class InlineMediaView extends CardView implements View.OnAttachStat return viewParams3 != null ? viewParams3.getAutoPlayGifs() : this.storeUserSettings.getIsAutoPlayGifsEnabled(); } + private final boolean shouldAutoPlayGIFVs() { + return Build.VERSION.SDK_INT <= 30; + } + private final void updateUI(RenderableEmbedMedia renderableEmbedMedia, String str, EmbedType embedType, Integer num, Integer num2, String str2) { resetViews(); this.compositeSubscription.unsubscribe(); @@ -462,9 +467,10 @@ public final class InlineMediaView extends CardView implements View.OnAttachStat m.checkNotNullExpressionValue(J, "eventSubject.onBackpressureBuffer()"); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(J, this, null, 2, null), InlineMediaView.class, (Context) null, new InlineMediaView$updateUI$3(this), (Function1) null, (Function0) null, (Function0) null, new InlineMediaView$updateUI$4(this), 58, (Object) null); if (embedType == embedType2) { + boolean shouldAutoPlayGIFVs = shouldAutoPlayGIFVs(); PlayerView playerView2 = this.binding.f; m.checkNotNullExpressionValue(playerView2, "binding.inlineMediaPlayerView"); - AppMediaPlayer.b(appMediaPlayer, O, true, true, 0, playerView2, null, 40); + AppMediaPlayer.b(appMediaPlayer, O, shouldAutoPlayGIFVs, true, 0, playerView2, null, 40); appMediaPlayer.d(0.0f); } else { appMediaPlayer.d(1.0f); diff --git a/app/src/main/java/com/discord/widgets/chat/list/WidgetChatList.java b/app/src/main/java/com/discord/widgets/chat/list/WidgetChatList.java index c8e0eb26d9..84c6c8a431 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/WidgetChatList.java +++ b/app/src/main/java/com/discord/widgets/chat/list/WidgetChatList.java @@ -93,7 +93,7 @@ public final class WidgetChatList extends AppFragment { m.checkNotNullExpressionValue(recyclerView, "binding.chatListRecycler"); FragmentManager parentFragmentManager = getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - WidgetChatListAdapter widgetChatListAdapter = new WidgetChatListAdapter(recyclerView, this, parentFragmentManager, new WidgetChatListAdapterEventsHandler(this, getFlexInputViewModel(), null, null, null, null, null, null, null, null, null, 2044, null), getFlexInputViewModel(), ClockFactory.get()); + WidgetChatListAdapter widgetChatListAdapter = new WidgetChatListAdapter(recyclerView, this, parentFragmentManager, new WidgetChatListAdapterEventsHandler(this, getFlexInputViewModel(), null, null, null, null, null, null, null, null, null, null, 4092, null), getFlexInputViewModel(), ClockFactory.get()); WidgetChatListAdapter widgetChatListAdapter2 = (WidgetChatListAdapter) MGRecyclerAdapter.Companion.configure(widgetChatListAdapter); LinearLayoutManager layoutManager = widgetChatListAdapter.getLayoutManager(); if (layoutManager != null) { diff --git a/app/src/main/java/com/discord/widgets/chat/list/actions/EmojiViewHolder.java b/app/src/main/java/com/discord/widgets/chat/list/actions/EmojiViewHolder.java index d2d55fda1a..4b2847b5f6 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/actions/EmojiViewHolder.java +++ b/app/src/main/java/com/discord/widgets/chat/list/actions/EmojiViewHolder.java @@ -44,7 +44,7 @@ public final class EmojiViewHolder extends MGRecyclerViewHolder, Object> { public final /* synthetic */ TransitionDrawable $transition; public int label; diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1.java index 00f154d4fc..d909e2f58b 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1.java @@ -12,7 +12,7 @@ import kotlin.coroutines.Continuation; import kotlin.jvm.functions.Function2; import kotlinx.coroutines.CoroutineScope; /* compiled from: WidgetChatListAdapter.kt */ -@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1", f = "WidgetChatListAdapter.kt", l = {419}, m = "invokeSuspend") +@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1", f = "WidgetChatListAdapter.kt", l = {431}, m = "invokeSuspend") public final class WidgetChatListAdapter$ScrollToWithHighlight$scheduleRetry$1 extends k implements Function2, Object> { public int label; public final /* synthetic */ WidgetChatListAdapter.ScrollToWithHighlight this$0; diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$setHandlers$1.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$setHandlers$1.java index 9a4ec1b68d..ee8bb49313 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$setHandlers$1.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter$setHandlers$1.java @@ -19,7 +19,7 @@ public final class WidgetChatListAdapter$setHandlers$1 extends o implements Func public final /* synthetic */ WidgetChatListAdapter this$0; /* compiled from: WidgetChatListAdapter.kt */ - @e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1", f = "WidgetChatListAdapter.kt", l = {109}, m = "invokeSuspend") + @e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1", f = "WidgetChatListAdapter.kt", l = {113}, m = "invokeSuspend") /* renamed from: com.discord.widgets.chat.list.adapter.WidgetChatListAdapter$setHandlers$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends k implements Function2, Object> { public int label; diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter.java index c19399c499..edfacc6b2c 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapter.java @@ -18,10 +18,12 @@ import com.discord.R; import com.discord.api.activity.Activity; import com.discord.api.application.Application; import com.discord.api.channel.Channel; +import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.message.activity.MessageActivityType; import com.discord.api.message.reaction.MessageReaction; import com.discord.api.sticker.BaseSticker; import com.discord.api.sticker.Sticker; +import com.discord.app.AppFragment; import com.discord.app.AppPermissionsRequests; import com.discord.models.guild.Guild; import com.discord.models.message.Message; @@ -44,6 +46,7 @@ import d0.t.h0; import d0.t.n; import d0.t.n0; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -264,6 +267,12 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(guildScheduledEvent, "guildEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + } + public static void onStickerClicked(EventHandler eventHandler, Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); m.checkNotNullParameter(baseSticker, "sticker"); @@ -335,6 +344,8 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple weakReference, WeakReference weakReference2); + void onStickerClicked(Message message, BaseSticker baseSticker); void onThreadClicked(Channel channel); @@ -825,6 +836,13 @@ public final class WidgetChatListAdapter extends MGRecyclerAdapterSimple weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(guildScheduledEvent, "guildEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + this.eventHandler.onShareButtonClick(guildScheduledEvent, weakReference, weakReference2); + } + public final void onStickerClicked(Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); m.checkNotNullParameter(baseSticker, "sticker"); diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler$onShareButtonClick$1.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler$onShareButtonClick$1.java new file mode 100644 index 0000000000..25cffc75fa --- /dev/null +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler$onShareButtonClick$1.java @@ -0,0 +1,43 @@ +package com.discord.widgets.chat.list.adapter; + +import com.discord.api.channel.Channel; +import com.discord.app.AppFragment; +import com.discord.utilities.channel.ChannelInviteLaunchUtils; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; +import d0.z.d.m; +import d0.z.d.o; +import java.lang.ref.WeakReference; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetChatListAdapterEventsHandler.kt */ +public final class WidgetChatListAdapterEventsHandler$onShareButtonClick$1 extends o implements Function1 { + public final /* synthetic */ Channel $channel; + public final /* synthetic */ long $guildEventId; + public final /* synthetic */ WeakReference $weakFragment; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetChatListAdapterEventsHandler$onShareButtonClick$1(WeakReference weakReference, Channel channel, long j) { + super(1); + this.$weakFragment = weakReference; + this.$channel = channel; + this.$guildEventId = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { + invoke(channel); + return Unit.a; + } + + public final void invoke(Channel channel) { + AppFragment appFragment = (AppFragment) this.$weakFragment.get(); + if (appFragment != null) { + ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; + m.checkNotNullExpressionValue(appFragment, "fragment"); + Channel channel2 = this.$channel; + ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, appFragment, channel2 != null ? channel2 : channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(this.$guildEventId), null, 16, null); + } + } +} diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler.java index 5ac1ec29a5..066f821c8d 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEventsHandler.java @@ -13,6 +13,7 @@ import com.discord.analytics.generated.events.TrackWelcomeCtaClicked; import com.discord.api.activity.Activity; import com.discord.api.application.Application; import com.discord.api.channel.Channel; +import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.message.MessageReference; import com.discord.api.message.activity.MessageActivityType; import com.discord.api.message.reaction.MessageReaction; @@ -28,6 +29,7 @@ import com.discord.models.message.Message; import com.discord.models.user.CoreUser; import com.discord.restapi.RestAPIParams; import com.discord.stores.SelectedChannelAnalyticsLocation; +import com.discord.stores.StoreChannels; import com.discord.stores.StoreChat; import com.discord.stores.StoreEmoji; import com.discord.stores.StoreMessages; @@ -40,6 +42,7 @@ import com.discord.utilities.analytics.Traits; import com.discord.utilities.channel.ChannelSelector; import com.discord.utilities.guilds.MemberVerificationUtils; import com.discord.utilities.guilds.PublicGuildUtils; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.stickers.StickerUtils; @@ -55,6 +58,7 @@ import com.discord.widgets.chat.list.sheet.WidgetApplicationCommandBottomSheet; import com.discord.widgets.chat.pins.WidgetChannelPinnedMessages; import com.discord.widgets.guilds.profile.WidgetGuildProfileSheet; import com.discord.widgets.guilds.profile.WidgetPublicAnnouncementProfileSheet; +import com.discord.widgets.guildscheduledevent.GuildScheduledEventUrlUtils; import com.discord.widgets.user.usersheet.WidgetUserSheet; import com.discord.widgets.voice.fullscreen.WidgetCallFullscreen; import com.discord.widgets.voice.fullscreen.WidgetStartCallSheet; @@ -78,6 +82,7 @@ import rx.subjects.Subject; public final class WidgetChatListAdapterEventsHandler implements WidgetChatListAdapter.EventHandler { private final AnalyticsUtils.Tracker analyticsTracker; private final ChannelSelector channelSelector; + private final StoreChannels channelStore; private final AppFlexInputViewModel flexInputViewModel; private final AppFragment host; private final MessageManager messageManager; @@ -300,7 +305,7 @@ public final class WidgetChatListAdapterEventsHandler implements WidgetChatListA } } - public WidgetChatListAdapterEventsHandler(AppFragment appFragment, AppFlexInputViewModel appFlexInputViewModel, StoreChat storeChat, StoreMessages storeMessages, StorePendingReplies storePendingReplies, StoreUser storeUser, StoreEmoji storeEmoji, MessageManager messageManager, ChannelSelector channelSelector, UserReactionHandler userReactionHandler, AnalyticsUtils.Tracker tracker) { + public WidgetChatListAdapterEventsHandler(AppFragment appFragment, AppFlexInputViewModel appFlexInputViewModel, StoreChat storeChat, StoreMessages storeMessages, StorePendingReplies storePendingReplies, StoreUser storeUser, StoreEmoji storeEmoji, MessageManager messageManager, ChannelSelector channelSelector, UserReactionHandler userReactionHandler, StoreChannels storeChannels, AnalyticsUtils.Tracker tracker) { m.checkNotNullParameter(appFragment, "host"); m.checkNotNullParameter(appFlexInputViewModel, "flexInputViewModel"); m.checkNotNullParameter(storeChat, "storeChat"); @@ -311,6 +316,7 @@ public final class WidgetChatListAdapterEventsHandler implements WidgetChatListA m.checkNotNullParameter(messageManager, "messageManager"); m.checkNotNullParameter(channelSelector, "channelSelector"); m.checkNotNullParameter(userReactionHandler, "userReactionHandler"); + m.checkNotNullParameter(storeChannels, "channelStore"); m.checkNotNullParameter(tracker, "analyticsTracker"); this.host = appFragment; this.flexInputViewModel = appFlexInputViewModel; @@ -322,12 +328,13 @@ public final class WidgetChatListAdapterEventsHandler implements WidgetChatListA this.messageManager = messageManager; this.channelSelector = channelSelector; this.userReactionHandler = userReactionHandler; + this.channelStore = storeChannels; this.analyticsTracker = tracker; } /* JADX WARNING: Illegal instructions before constructor call */ - public /* synthetic */ WidgetChatListAdapterEventsHandler(AppFragment appFragment, AppFlexInputViewModel appFlexInputViewModel, StoreChat storeChat, StoreMessages storeMessages, StorePendingReplies storePendingReplies, StoreUser storeUser, StoreEmoji storeEmoji, MessageManager messageManager, ChannelSelector channelSelector, UserReactionHandler userReactionHandler, AnalyticsUtils.Tracker tracker, int i, DefaultConstructorMarker defaultConstructorMarker) { - this(appFragment, appFlexInputViewModel, r5, r6, r7, r8, r9, (i & 128) != 0 ? new MessageManager(appFragment.requireContext(), null, null, null, null, null, null, null, 254, null) : messageManager, (i & 256) != 0 ? ChannelSelector.Companion.getInstance() : channelSelector, (i & 512) != 0 ? new UserReactionHandler(appFragment, r6, r9) : userReactionHandler, (i & 1024) != 0 ? AnalyticsUtils.Tracker.Companion.getInstance() : tracker); + public /* synthetic */ WidgetChatListAdapterEventsHandler(AppFragment appFragment, AppFlexInputViewModel appFlexInputViewModel, StoreChat storeChat, StoreMessages storeMessages, StorePendingReplies storePendingReplies, StoreUser storeUser, StoreEmoji storeEmoji, MessageManager messageManager, ChannelSelector channelSelector, UserReactionHandler userReactionHandler, StoreChannels storeChannels, AnalyticsUtils.Tracker tracker, int i, DefaultConstructorMarker defaultConstructorMarker) { + this(appFragment, appFlexInputViewModel, r5, r6, r7, r8, r9, (i & 128) != 0 ? new MessageManager(appFragment.requireContext(), null, null, null, null, null, null, null, 254, null) : messageManager, (i & 256) != 0 ? ChannelSelector.Companion.getInstance() : channelSelector, (i & 512) != 0 ? new UserReactionHandler(appFragment, r6, r9) : userReactionHandler, (i & 1024) != 0 ? StoreStream.Companion.getChannels() : storeChannels, (i & 2048) != 0 ? AnalyticsUtils.Tracker.Companion.getInstance() : tracker); StoreChat chat = (i & 4) != 0 ? StoreStream.Companion.getChat() : storeChat; StoreMessages messages = (i & 8) != 0 ? StoreStream.Companion.getMessages() : storeMessages; StorePendingReplies pendingReplies = (i & 16) != 0 ? StoreStream.Companion.getPendingReplies() : storePendingReplies; @@ -522,6 +529,35 @@ public final class WidgetChatListAdapterEventsHandler implements WidgetChatListA ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().sendGreetMessage(j, new RestAPIParams.GreetMessage(d0.t.m.listOf(Long.valueOf(sticker.getId())))), false, 1, null), this.host, null, 2, null), this.host.getClass(), this.host.getContext(), (Function1) null, (Function1) null, (Function0) null, (Function0) null, WidgetChatListAdapterEventsHandler$onSendGreetMessageClicked$1.INSTANCE, 60, (Object) null); } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler + public void onShareButtonClick(GuildScheduledEvent guildScheduledEvent, WeakReference weakReference, WeakReference weakReference2) { + Channel channel; + m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + long g = guildScheduledEvent.g(); + long h = guildScheduledEvent.h(); + Long b = guildScheduledEvent.b(); + boolean canShareEvent$default = GuildScheduledEventUtilities.Companion.canShareEvent$default(GuildScheduledEventUtilities.Companion, b, g, null, null, null, null, 60, null); + if (b != null) { + channel = this.channelStore.getChannel(b.longValue()); + } else { + channel = null; + } + if (canShareEvent$default) { + Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(g).y(); + m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…ildId)\n .first()"); + ObservableExtensionsKt.appSubscribe$default(y2, WidgetChatListAdapterEventsHandler.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetChatListAdapterEventsHandler$onShareButtonClick$1(weakReference2, channel, h), 62, (Object) null); + return; + } + Context context = weakReference.get(); + if (context != null) { + CharSequence eventDetailsUrl = GuildScheduledEventUrlUtils.INSTANCE.getEventDetailsUrl(g, h); + m.checkNotNullExpressionValue(context, "context"); + c.a.d.m.c(context, eventDetailsUrl, 0, 4); + } + } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler public void onStickerClicked(Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Companion$observe$1.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Companion$observe$1.java index 46ec2d6116..27fb7c0bb5 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Companion$observe$1.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Companion$observe$1.java @@ -5,6 +5,7 @@ import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.permission.Permission; import com.discord.models.domain.ModelInvite; import com.discord.models.guild.Guild; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; import com.discord.stores.StoreGuilds; @@ -12,6 +13,7 @@ import com.discord.stores.StorePermissions; import com.discord.stores.StoreUser; import com.discord.stores.StoreVoiceChannelSelected; import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilitiesKt; import com.discord.utilities.permissions.PermissionUtils; import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildScheduledEventInvite; import com.discord.widgets.chat.list.entries.GuildScheduledEventInviteEntry; @@ -44,33 +46,30 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$Model$Comp /* renamed from: invoke */ public final WidgetChatListAdapterItemGuildScheduledEventInvite.Model mo1invoke() { Channel channel; - Guild guild; GuildScheduledEvent guildScheduledEvent = this.$item.getGuildScheduledEvent(); Channel channel2 = this.$item.getInvite().getChannel(); - Guild guild2 = null; + Guild guild = null; if (channel2 != null) { - com.discord.api.guild.Guild guild3 = this.$item.getInvite().getGuild(); - channel = Channel.a(channel2, null, 0, guild3 != null ? guild3.p() : 0, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907); + com.discord.api.guild.Guild guild2 = this.$item.getInvite().getGuild(); + channel = Channel.a(channel2, null, 0, guild2 != null ? guild2.p() : 0, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, false, 0, null, 0, null, null, null, null, null, null, null, null, 536870907); } else { channel = null; } + UserGuildMember creatorUserGuildMember$default = GuildScheduledEventUtilitiesKt.getCreatorUserGuildMember$default(guildScheduledEvent, (StoreGuilds) null, (StoreUser) null, 3, (Object) null); ModelInvite invite = this.$item.getInvite(); - boolean z2 = this.$guildStore.getMember(this.$item.getGuildScheduledEvent().f(), this.$userStore.getMe().getId()) != null; - boolean isRsvpedToEvent = this.$guildScheduledEventStore.isRsvpedToEvent(this.$item.getGuildScheduledEvent().f(), this.$item.getGuildScheduledEvent().g()); - GuildScheduledEvent findEventFromStore = this.$guildScheduledEventStore.findEventFromStore(guildScheduledEvent.g(), Long.valueOf(guildScheduledEvent.f())); - GuildScheduledEvent guildScheduledEvent2 = findEventFromStore != null ? findEventFromStore : guildScheduledEvent; + boolean z2 = this.$guildStore.getMember(this.$item.getGuildScheduledEvent().g(), this.$userStore.getMe().getId()) != null; + boolean isMeRsvpedToEvent = this.$guildScheduledEventStore.isMeRsvpedToEvent(this.$item.getGuildScheduledEvent().g(), this.$item.getGuildScheduledEvent().h()); Channel channel3 = channel != null ? this.$channelStore.getChannel(channel.h()) : null; - Guild guild4 = this.$guildStore.getGuild(this.$item.getGuildScheduledEvent().f()); - if (guild4 != null) { - guild = guild4; + Guild guild3 = this.$guildStore.getGuild(this.$item.getGuildScheduledEvent().g()); + if (guild3 != null) { + guild = guild3; } else { - com.discord.api.guild.Guild guild5 = this.$item.getInvite().getGuild(); - if (guild5 != null) { - m.checkNotNullExpressionValue(guild5, "apiGuild"); - guild2 = new Guild(guild5); + com.discord.api.guild.Guild guild4 = this.$item.getInvite().getGuild(); + if (guild4 != null) { + m.checkNotNullExpressionValue(guild4, "apiGuild"); + guild = new Guild(guild4); } - guild = guild2; } - return new WidgetChatListAdapterItemGuildScheduledEventInvite.Model(invite, z2, isRsvpedToEvent, guildScheduledEvent2, channel3, guild, Long.valueOf(this.$voiceChannelSelectedStore.getSelectedVoiceChannelId()), channel != null ? PermissionUtils.can(Permission.CONNECT, this.$permissionStore.getPermissionsByChannel().get(Long.valueOf(channel.h()))) : false, GuildScheduledEventUtilities.Companion.canShareEvent$default(GuildScheduledEventUtilities.Companion, this.$item.getGuildScheduledEvent().b(), this.$item.getGuildScheduledEvent().f(), this.$channelStore, this.$guildStore, null, null, 48, null)); + return new WidgetChatListAdapterItemGuildScheduledEventInvite.Model(invite, z2, isMeRsvpedToEvent, guildScheduledEvent, channel3, guild, creatorUserGuildMember$default, Long.valueOf(this.$voiceChannelSelectedStore.getSelectedVoiceChannelId()), channel != null ? PermissionUtils.can(Permission.CONNECT, this.$permissionStore.getPermissionsByChannel().get(Long.valueOf(channel.h()))) : false, GuildScheduledEventUtilities.Companion.canShareEvent$default(GuildScheduledEventUtilities.Companion, this.$item.getGuildScheduledEvent().b(), this.$item.getGuildScheduledEvent().g(), this.$channelStore, this.$guildStore, null, null, 48, null)); } } diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2.java index 7253306cf8..8ff129ef84 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2.java @@ -21,7 +21,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$configureU /* renamed from: invoke */ public final void mo1invoke() { if (this.$model.isInGuild()) { - WidgetGuildScheduledEventDetailsBottomSheet.Companion.show(WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).getFragmentManager(), this.$model.getGuildScheduledEvent().g()); + WidgetGuildScheduledEventDetailsBottomSheet.Companion.show(WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).getFragmentManager(), this.$model.getGuildScheduledEvent().h()); } else { WidgetChatListAdapterItemInviteBase.joinServerOrDM$default(this.this$0, WidgetChatListAdapterItemGuildScheduledEventInvite.class, this.$model.getInvite(), null, null, 12, null); } diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3.java index c45aeebdc0..e7fde925b5 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3.java @@ -19,6 +19,6 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$configureU @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - WidgetChatListAdapterItemGuildScheduledEventInvite.access$getGuildScheduledEventStore$p(this.this$0).toggleRsvpGuildScheduledEvent(this.$model.getGuildScheduledEvent()); + WidgetChatListAdapterItemGuildScheduledEventInvite.access$getGuildScheduledEventStore$p(this.this$0).toggleMeRsvpForEvent(this.$model.getGuildScheduledEvent()); } } diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5.java index a90e971ea1..ac86f7b5a1 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5.java @@ -1,11 +1,9 @@ package com.discord.widgets.chat.list.adapter; import androidx.fragment.app.ViewKt; -import com.discord.models.domain.ModelInvite; -import com.discord.utilities.channel.ChannelInviteLaunchUtils; -import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildScheduledEventInvite; import d0.z.d.o; +import java.lang.ref.WeakReference; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: WidgetChatListAdapterItemGuildScheduledEventInvite.kt */ @@ -23,6 +21,6 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$configureU @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - ChannelInviteLaunchUtils.INSTANCE.inviteToChannel(ViewKt.findFragment(WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).getRecycler()), this.$model.getChannel(), GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(this.$model.getGuildScheduledEvent().g()), !this.$model.isInGuild() ? ModelInvite.getInviteStoreKey(this.$model.getInvite().code, Long.valueOf(this.$model.getGuildScheduledEvent().g())) : null); + WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).onShareButtonClick(this.$model.getGuildScheduledEvent(), new WeakReference<>(WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).getContext()), new WeakReference<>(ViewKt.findFragment(WidgetChatListAdapterItemGuildScheduledEventInvite.access$getAdapter$p(this.this$0).getRecycler()))); } } diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite.java index cb1a55bf64..77a8159cee 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemGuildScheduledEventInvite.java @@ -9,6 +9,7 @@ import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.databinding.WidgetChatListAdapterItemGuildScheduledEventInviteBinding; import com.discord.models.domain.ModelInvite; import com.discord.models.guild.Guild; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; import com.discord.stores.StoreGuilds; @@ -43,6 +44,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi private final boolean canConnect; private final boolean canShare; private final Channel channel; + private final UserGuildMember creator; private final Guild guild; private final GuildScheduledEvent guildScheduledEvent; private final ModelInvite invite; @@ -75,7 +77,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi } } - public Model(ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, Long l, boolean z4, boolean z5) { + public Model(ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, Long l, boolean z4, boolean z5) { m.checkNotNullParameter(modelInvite, "invite"); m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); this.invite = modelInvite; @@ -84,19 +86,24 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi this.guildScheduledEvent = guildScheduledEvent; this.channel = channel; this.guild = guild; + this.creator = userGuildMember; this.selectedVoiceChannelId = l; this.canConnect = z4; this.canShare = z5; } - public static /* synthetic */ Model copy$default(Model model, ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, Long l, boolean z4, boolean z5, int i, Object obj) { - return model.copy((i & 1) != 0 ? model.invite : modelInvite, (i & 2) != 0 ? model.isInGuild : z2, (i & 4) != 0 ? model.isRsvped : z3, (i & 8) != 0 ? model.guildScheduledEvent : guildScheduledEvent, (i & 16) != 0 ? model.channel : channel, (i & 32) != 0 ? model.guild : guild, (i & 64) != 0 ? model.selectedVoiceChannelId : l, (i & 128) != 0 ? model.canConnect : z4, (i & 256) != 0 ? model.canShare : z5); + public static /* synthetic */ Model copy$default(Model model, ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, Long l, boolean z4, boolean z5, int i, Object obj) { + return model.copy((i & 1) != 0 ? model.invite : modelInvite, (i & 2) != 0 ? model.isInGuild : z2, (i & 4) != 0 ? model.isRsvped : z3, (i & 8) != 0 ? model.guildScheduledEvent : guildScheduledEvent, (i & 16) != 0 ? model.channel : channel, (i & 32) != 0 ? model.guild : guild, (i & 64) != 0 ? model.creator : userGuildMember, (i & 128) != 0 ? model.selectedVoiceChannelId : l, (i & 256) != 0 ? model.canConnect : z4, (i & 512) != 0 ? model.canShare : z5); } public final ModelInvite component1() { return this.invite; } + public final boolean component10() { + return this.canShare; + } + public final boolean component2() { return this.isInGuild; } @@ -117,22 +124,22 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi return this.guild; } - public final Long component7() { + public final UserGuildMember component7() { + return this.creator; + } + + public final Long component8() { return this.selectedVoiceChannelId; } - public final boolean component8() { + public final boolean component9() { return this.canConnect; } - public final boolean component9() { - return this.canShare; - } - - public final Model copy(ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, Long l, boolean z4, boolean z5) { + public final Model copy(ModelInvite modelInvite, boolean z2, boolean z3, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, Long l, boolean z4, boolean z5) { m.checkNotNullParameter(modelInvite, "invite"); m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - return new Model(modelInvite, z2, z3, guildScheduledEvent, channel, guild, l, z4, z5); + return new Model(modelInvite, z2, z3, guildScheduledEvent, channel, guild, userGuildMember, l, z4, z5); } public boolean equals(Object obj) { @@ -143,7 +150,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi return false; } Model model = (Model) obj; - return m.areEqual(this.invite, model.invite) && this.isInGuild == model.isInGuild && this.isRsvped == model.isRsvped && m.areEqual(this.guildScheduledEvent, model.guildScheduledEvent) && m.areEqual(this.channel, model.channel) && m.areEqual(this.guild, model.guild) && m.areEqual(this.selectedVoiceChannelId, model.selectedVoiceChannelId) && this.canConnect == model.canConnect && this.canShare == model.canShare; + return m.areEqual(this.invite, model.invite) && this.isInGuild == model.isInGuild && this.isRsvped == model.isRsvped && m.areEqual(this.guildScheduledEvent, model.guildScheduledEvent) && m.areEqual(this.channel, model.channel) && m.areEqual(this.guild, model.guild) && m.areEqual(this.creator, model.creator) && m.areEqual(this.selectedVoiceChannelId, model.selectedVoiceChannelId) && this.canConnect == model.canConnect && this.canShare == model.canShare; } public final boolean getCanConnect() { @@ -158,6 +165,10 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi return this.channel; } + public final UserGuildMember getCreator() { + return this.creator; + } + public final Guild getGuild() { return this.guild; } @@ -201,11 +212,13 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi int hashCode3 = (hashCode2 + (channel != null ? channel.hashCode() : 0)) * 31; Guild guild = this.guild; int hashCode4 = (hashCode3 + (guild != null ? guild.hashCode() : 0)) * 31; + UserGuildMember userGuildMember = this.creator; + int hashCode5 = (hashCode4 + (userGuildMember != null ? userGuildMember.hashCode() : 0)) * 31; Long l = this.selectedVoiceChannelId; if (l != null) { i = l.hashCode(); } - int i11 = (hashCode4 + i) * 31; + int i11 = (hashCode5 + i) * 31; boolean z4 = this.canConnect; if (z4) { z4 = true; @@ -242,6 +255,8 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi R.append(this.channel); R.append(", guild="); R.append(this.guild); + R.append(", creator="); + R.append(this.creator); R.append(", selectedVoiceChannelId="); R.append(this.selectedVoiceChannelId); R.append(", canConnect="); @@ -306,6 +321,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi GuildScheduledEvent guildScheduledEvent = model.getGuildScheduledEvent(); Channel channel = model.getChannel(); Guild guild = model.getGuild(); + UserGuildMember creator = model.getCreator(); boolean isInGuild = model.isInGuild(); boolean isRsvped = model.isRsvped(); Long b = model.getGuildScheduledEvent().b(); @@ -317,7 +333,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite extends Wi z2 = true; } } - guildScheduledEventItemView2.configureInChatList(guildScheduledEvent, channel, guild, isInGuild, isRsvped, z2, model.getCanConnect(), model.getCanShare(), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$4(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5(this, model)); + guildScheduledEventItemView2.configureInChatList(guildScheduledEvent, channel, guild, creator, isInGuild, isRsvped, z2, model.getCanConnect(), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$2(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$4(this, model), new WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$5(this, model)); } @Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder diff --git a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemStageInvite.java b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemStageInvite.java index ed42c76d5d..de493749a3 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemStageInvite.java +++ b/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterItemStageInvite.java @@ -124,7 +124,7 @@ public final class WidgetChatListAdapterItemStageInvite extends WidgetChatListAd List c2 = stageInstance.c(); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(c2, 10)); for (GuildMember guildMember : c2) { - arrayList.add(new StageCardSpeaker(new CoreUser(guildMember.j()), GuildMember.Companion.from$default(com.discord.models.member.GuildMember.Companion, guildMember, guildMember.c(), null, StoreStream.Companion.getGuilds(), 4, null))); + arrayList.add(new StageCardSpeaker(new CoreUser(guildMember.l()), GuildMember.Companion.from$default(com.discord.models.member.GuildMember.Companion, guildMember, guildMember.e(), null, StoreStream.Companion.getGuilds(), 4, null))); } return arrayList; } diff --git a/app/src/main/java/com/discord/widgets/chat/list/entries/GuildScheduledEventInviteEntry.java b/app/src/main/java/com/discord/widgets/chat/list/entries/GuildScheduledEventInviteEntry.java index 063e041607..aac01d4d15 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/entries/GuildScheduledEventInviteEntry.java +++ b/app/src/main/java/com/discord/widgets/chat/list/entries/GuildScheduledEventInviteEntry.java @@ -20,7 +20,7 @@ public final class GuildScheduledEventInviteEntry extends ChatListEntry { this.inviteCode = str; this.guildScheduledEvent = guildScheduledEvent; StringBuilder R = a.R("43 -- "); - R.append(guildScheduledEvent.g()); + R.append(guildScheduledEvent.h()); R.append(" -- "); R.append(str); this.key = R.toString(); diff --git a/app/src/main/java/com/discord/widgets/chat/pins/WidgetChannelPinnedMessages.java b/app/src/main/java/com/discord/widgets/chat/pins/WidgetChannelPinnedMessages.java index 96e744a00b..76124d07bc 100644 --- a/app/src/main/java/com/discord/widgets/chat/pins/WidgetChannelPinnedMessages.java +++ b/app/src/main/java/com/discord/widgets/chat/pins/WidgetChannelPinnedMessages.java @@ -17,6 +17,7 @@ import com.discord.api.activity.Activity; import com.discord.api.application.Application; import com.discord.api.channel.Channel; import com.discord.api.channel.ChannelUtils; +import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.message.activity.MessageActivityType; import com.discord.api.message.reaction.MessageReaction; import com.discord.api.sticker.BaseSticker; @@ -41,6 +42,7 @@ import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter; import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemCallMessage; import com.discord.widgets.chat.list.entries.ChatListEntry; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.List; import java.util.Map; import java.util.Set; @@ -185,6 +187,14 @@ public final class WidgetChannelPinnedMessages extends AppFragment { WidgetChatListAdapter.EventHandler.DefaultImpls.onSendGreetMessageClicked(this, j, i, sticker); } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler + public void onShareButtonClick(GuildScheduledEvent guildScheduledEvent, WeakReference weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(guildScheduledEvent, "guildEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + WidgetChatListAdapter.EventHandler.DefaultImpls.onShareButtonClick(this, guildScheduledEvent, weakReference, weakReference2); + } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler public void onStickerClicked(Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); diff --git a/app/src/main/java/com/discord/widgets/friends/WidgetFriendsList$configureToolbar$1.java b/app/src/main/java/com/discord/widgets/friends/WidgetFriendsList$configureToolbar$1.java index 5f4d2d7a57..5ff6a408a9 100644 --- a/app/src/main/java/com/discord/widgets/friends/WidgetFriendsList$configureToolbar$1.java +++ b/app/src/main/java/com/discord/widgets/friends/WidgetFriendsList$configureToolbar$1.java @@ -27,19 +27,19 @@ public final class WidgetFriendsList$configureToolbar$1 implements Actio public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_friends_add_friend /* 2131364218 */: + case R.id.menu_friends_add_friend /* 2131364224 */: WidgetFriendsAdd.Companion companion = WidgetFriendsAdd.Companion; m.checkNotNullExpressionValue(context, "context"); WidgetFriendsAdd.Companion.show$default(companion, context, null, "Friends", 2, null); return; - case R.id.menu_friends_contact_sync /* 2131364219 */: + case R.id.menu_friends_contact_sync /* 2131364225 */: ContactSyncFlowAnalytics.Companion.trackStart$default(ContactSyncFlowAnalytics.Companion, false, g0.mapOf(o.to("location_page", "Friends List Icon")), 1, null); AnalyticsTracker.INSTANCE.openModal("Contact Sync", new Traits.Location("Friends List Icon", null, null, null, null, 30, null)); WidgetContactSync.Companion companion2 = WidgetContactSync.Companion; m.checkNotNullExpressionValue(context, "context"); WidgetContactSync.Companion.launch$default(companion2, context, null, false, false, false, 30, null); return; - case R.id.menu_friends_start_group /* 2131364220 */: + case R.id.menu_friends_start_group /* 2131364226 */: if (GroupInviteFriendsSheetFeatureFlag.Companion.getINSTANCE().isEnabled()) { GroupInviteFriendsSheet.Companion companion3 = GroupInviteFriendsSheet.Companion; FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); diff --git a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/GuildRoleSubscriptionUtilsKt.java b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/GuildRoleSubscriptionUtilsKt.java index 244c36fa07..79726c8847 100644 --- a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/GuildRoleSubscriptionUtilsKt.java +++ b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/GuildRoleSubscriptionUtilsKt.java @@ -5,12 +5,15 @@ import com.discord.api.guildrolesubscription.GuildRoleSubscriptionTierListing; import com.discord.api.permission.Permission; import com.discord.api.premium.SubscriptionPlan; import com.discord.api.role.GuildRole; +import com.discord.models.domain.ModelSubscription; import com.discord.utilities.permissions.PermissionUtils; import d0.t.u; import d0.z.d.m; +import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; +import java.util.Set; /* compiled from: GuildRoleSubscriptionUtils.kt */ public final class GuildRoleSubscriptionUtilsKt { public static final Boolean getFullServerGatingOverwrite(GuildRoleSubscriptionGroupListing guildRoleSubscriptionGroupListing, Map map) { @@ -50,4 +53,36 @@ public final class GuildRoleSubscriptionUtilsKt { } return 0; } + + public static final boolean hasUserActiveSubscriptionFor(GuildRoleSubscriptionGroupListing guildRoleSubscriptionGroupListing, List list) { + m.checkNotNullParameter(guildRoleSubscriptionGroupListing, "$this$hasUserActiveSubscriptionFor"); + m.checkNotNullParameter(list, "userSubscriptions"); + ArrayList arrayList = new ArrayList(); + Iterator it = list.iterator(); + while (true) { + Long l = null; + if (!it.hasNext()) { + break; + } + ModelSubscription.SubscriptionItem subscriptionItem = (ModelSubscription.SubscriptionItem) u.getOrNull(((ModelSubscription) it.next()).getItems(), 0); + if (subscriptionItem != null) { + l = Long.valueOf(subscriptionItem.getPlanId()); + } + if (l != null) { + arrayList.add(l); + } + } + Set set = u.toSet(arrayList); + List h = guildRoleSubscriptionGroupListing.h(); + if (h != null) { + for (GuildRoleSubscriptionTierListing guildRoleSubscriptionTierListing : h) { + SubscriptionPlan subscriptionPlan = (SubscriptionPlan) u.getOrNull(guildRoleSubscriptionTierListing.j(), 0); + Long valueOf = subscriptionPlan != null ? Long.valueOf(subscriptionPlan.a()) : null; + if (valueOf != null && set.contains(valueOf)) { + return true; + } + } + } + return false; + } } diff --git a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint$viewModel$2.java b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint$viewModel$2.java index b53c4bc028..9646fc87e8 100644 --- a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint$viewModel$2.java +++ b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint$viewModel$2.java @@ -15,6 +15,6 @@ public final class WidgetGuildRoleSubscriptionEntryPoint$viewModel$2 extends o i @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final AppViewModel mo1invoke() { - return new WidgetGuildRoleSubscriptionEntryPointViewModel(null, null, null, null, 15, null); + return new WidgetGuildRoleSubscriptionEntryPointViewModel(null, null, null, null, null, null, 63, null); } } diff --git a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint.java b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint.java index 2df6d11991..cc162e29e3 100644 --- a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint.java +++ b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPoint.java @@ -32,6 +32,7 @@ import kotlin.reflect.KProperty; public final class WidgetGuildRoleSubscriptionEntryPoint extends AppFragment { public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetGuildRoleSubscriptionEntryPoint.class, "viewBinding", "getViewBinding()Lcom/discord/databinding/WidgetGuildRoleSubscriptionEntryPointBinding;", 0)}; public static final Companion Companion = new Companion(null); + private static final String INTENT_EXTRA_TRACKING_SOURCE_LOCATION = "INTENT_EXTRA_TRACKING_SOURCE_LOCATION"; private final FragmentViewBindingDelegate viewBinding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetGuildRoleSubscriptionEntryPoint$viewBinding$2.INSTANCE, null, 2, null); private final Lazy viewModel$delegate; @@ -44,10 +45,12 @@ public final class WidgetGuildRoleSubscriptionEntryPoint extends AppFragment { this(); } - public final void launch(Context context, long j) { + public final void launch(Context context, long j, String str) { m.checkNotNullParameter(context, "context"); + m.checkNotNullParameter(str, "trackingSourceLocation"); Intent intent = new Intent(); intent.putExtra("com.discord.intent.extra.EXTRA_GUILD_ID", j); + intent.putExtra(WidgetGuildRoleSubscriptionEntryPoint.INTENT_EXTRA_TRACKING_SOURCE_LOCATION, str); j.d(context, WidgetGuildRoleSubscriptionEntryPoint.class, intent); } } @@ -84,6 +87,10 @@ public final class WidgetGuildRoleSubscriptionEntryPoint extends AppFragment { return getMostRecentIntent().getLongExtra("com.discord.intent.extra.EXTRA_GUILD_ID", -1); } + private final String getTrackingSourceLocation() { + return getMostRecentIntent().getStringExtra(INTENT_EXTRA_TRACKING_SOURCE_LOCATION); + } + private final WidgetGuildRoleSubscriptionEntryPointBinding getViewBinding() { return (WidgetGuildRoleSubscriptionEntryPointBinding) this.viewBinding$delegate.getValue((Fragment) this, $$delegatedProperties[0]); } @@ -92,14 +99,15 @@ public final class WidgetGuildRoleSubscriptionEntryPoint extends AppFragment { return (WidgetGuildRoleSubscriptionEntryPointViewModel) this.viewModel$delegate.getValue(); } - public static final void launch(Context context, long j) { - Companion.launch(context, j); + public static final void launch(Context context, long j, String str) { + Companion.launch(context, j, str); } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { m.checkNotNullParameter(layoutInflater, "inflater"); getViewModel().setGuildId(getGuildId()); + getViewModel().setTrackingSourceLocation(getTrackingSourceLocation()); return super.onCreateView(layoutInflater, viewGroup, bundle); } diff --git a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1.java b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1.java index ad7a92f61c..5eeb4d4970 100644 --- a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1.java +++ b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1.java @@ -1,8 +1,14 @@ package com.discord.widgets.guild_role_subscriptions.entrypoint; +import com.discord.api.guildrolesubscription.GuildRoleSubscriptionGroupListing; +import com.discord.models.domain.ModelSubscription; +import com.discord.stores.StoreGuildRoleSubscriptions; +import com.discord.stores.StoreSubscriptions; +import com.discord.widgets.guild_role_subscriptions.GuildRoleSubscriptionUtilsKt; import com.discord.widgets.guild_role_subscriptions.GuildRoleSubscriptionsFeatureFlag; import com.discord.widgets.guild_role_subscriptions.entrypoint.WidgetGuildRoleSubscriptionEntryPointViewModel; import d0.z.d.o; +import java.util.List; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildRoleSubscriptionEntryPointViewModel.kt */ public final class WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1 extends o implements Function0 { @@ -19,6 +25,23 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreSt @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final WidgetGuildRoleSubscriptionEntryPointViewModel.StoreState mo1invoke() { - return new WidgetGuildRoleSubscriptionEntryPointViewModel.StoreState(WidgetGuildRoleSubscriptionEntryPointViewModel.access$getConnectivityStore$p(this.this$0).isConnected(), GuildRoleSubscriptionsFeatureFlag.Companion.getINSTANCE().canGuildSeePremiumMemberships(this.$guildId), WidgetGuildRoleSubscriptionEntryPointViewModel.access$getGuildsStore$p(this.this$0).getGuild(this.$guildId)); + StoreGuildRoleSubscriptions.GuildRoleSubscriptionGroupState guildRoleSubscriptionState = WidgetGuildRoleSubscriptionEntryPointViewModel.access$getGuildRoleSubscriptionsStore$p(this.this$0).getGuildRoleSubscriptionState(this.$guildId); + Boolean bool = null; + if (!(guildRoleSubscriptionState instanceof StoreGuildRoleSubscriptions.GuildRoleSubscriptionGroupState.Loaded)) { + guildRoleSubscriptionState = null; + } + StoreGuildRoleSubscriptions.GuildRoleSubscriptionGroupState.Loaded loaded = (StoreGuildRoleSubscriptions.GuildRoleSubscriptionGroupState.Loaded) guildRoleSubscriptionState; + GuildRoleSubscriptionGroupListing guildRoleSubscriptionGroupListing = loaded != null ? loaded.getGuildRoleSubscriptionGroupListing() : null; + StoreSubscriptions.SubscriptionsState subscriptions = WidgetGuildRoleSubscriptionEntryPointViewModel.access$getSubscriptionsStore$p(this.this$0).getSubscriptions(); + if (!(subscriptions instanceof StoreSubscriptions.SubscriptionsState.Loaded)) { + subscriptions = null; + } + StoreSubscriptions.SubscriptionsState.Loaded loaded2 = (StoreSubscriptions.SubscriptionsState.Loaded) subscriptions; + List subscriptions2 = loaded2 != null ? loaded2.getSubscriptions() : null; + Long valueOf = guildRoleSubscriptionGroupListing != null ? Long.valueOf(guildRoleSubscriptionGroupListing.f()) : null; + if (!(subscriptions2 == null || guildRoleSubscriptionGroupListing == null)) { + bool = Boolean.valueOf(GuildRoleSubscriptionUtilsKt.hasUserActiveSubscriptionFor(guildRoleSubscriptionGroupListing, subscriptions2)); + } + return new WidgetGuildRoleSubscriptionEntryPointViewModel.StoreState(WidgetGuildRoleSubscriptionEntryPointViewModel.access$getConnectivityStore$p(this.this$0).isConnected(), GuildRoleSubscriptionsFeatureFlag.Companion.getINSTANCE().canGuildSeePremiumMemberships(this.$guildId), WidgetGuildRoleSubscriptionEntryPointViewModel.access$getGuildsStore$p(this.this$0).getGuild(this.$guildId), bool, valueOf); } } diff --git a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel.java b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel.java index 3a3888a3f6..5f0de0e20b 100644 --- a/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel.java +++ b/app/src/main/java/com/discord/widgets/guild_role_subscriptions/entrypoint/WidgetGuildRoleSubscriptionEntryPointViewModel.java @@ -6,11 +6,15 @@ import com.discord.app.AppViewModel; import com.discord.models.guild.Guild; import com.discord.stores.StoreConnectivity; import com.discord.stores.StoreExperiments; +import com.discord.stores.StoreGuildRoleSubscriptions; import com.discord.stores.StoreGuilds; import com.discord.stores.StoreStream; +import com.discord.stores.StoreSubscriptions; import com.discord.stores.updates.ObservationDeck; import com.discord.stores.updates.ObservationDeckProvider; +import com.discord.utilities.analytics.AnalyticsTracker; import com.discord.utilities.rx.ObservableExtensionsKt; +import d0.g0.t; import d0.z.d.m; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; @@ -21,23 +25,31 @@ import rx.Subscription; public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppViewModel { private final StoreConnectivity connectivityStore; private final StoreExperiments experimentsStore; + private final StoreGuildRoleSubscriptions guildRoleSubscriptionsStore; private final StoreGuilds guildsStore; + private boolean hasSubmittedAnalytics; private final ObservationDeck observationDeck; private Subscription storeObservableSubscription; + private final StoreSubscriptions subscriptionsStore; + private String trackingSourceLocation; /* compiled from: WidgetGuildRoleSubscriptionEntryPointViewModel.kt */ public static final class StoreState { private final Guild guild; + private final Long guildRoleSubscriptionGroupListingId; + private final Boolean hasUserActiveSubscription; private final boolean inExperiment; private final boolean isConnected; - public StoreState(boolean z2, boolean z3, Guild guild) { + public StoreState(boolean z2, boolean z3, Guild guild, Boolean bool, Long l) { this.isConnected = z2; this.inExperiment = z3; this.guild = guild; + this.hasUserActiveSubscription = bool; + this.guildRoleSubscriptionGroupListingId = l; } - public static /* synthetic */ StoreState copy$default(StoreState storeState, boolean z2, boolean z3, Guild guild, int i, Object obj) { + public static /* synthetic */ StoreState copy$default(StoreState storeState, boolean z2, boolean z3, Guild guild, Boolean bool, Long l, int i, Object obj) { if ((i & 1) != 0) { z2 = storeState.isConnected; } @@ -47,7 +59,13 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie if ((i & 4) != 0) { guild = storeState.guild; } - return storeState.copy(z2, z3, guild); + if ((i & 8) != 0) { + bool = storeState.hasUserActiveSubscription; + } + if ((i & 16) != 0) { + l = storeState.guildRoleSubscriptionGroupListingId; + } + return storeState.copy(z2, z3, guild, bool, l); } public final boolean component1() { @@ -62,8 +80,16 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie return this.guild; } - public final StoreState copy(boolean z2, boolean z3, Guild guild) { - return new StoreState(z2, z3, guild); + public final Boolean component4() { + return this.hasUserActiveSubscription; + } + + public final Long component5() { + return this.guildRoleSubscriptionGroupListingId; + } + + public final StoreState copy(boolean z2, boolean z3, Guild guild, Boolean bool, Long l) { + return new StoreState(z2, z3, guild, bool, l); } public boolean equals(Object obj) { @@ -74,13 +100,21 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie return false; } StoreState storeState = (StoreState) obj; - return this.isConnected == storeState.isConnected && this.inExperiment == storeState.inExperiment && m.areEqual(this.guild, storeState.guild); + return this.isConnected == storeState.isConnected && this.inExperiment == storeState.inExperiment && m.areEqual(this.guild, storeState.guild) && m.areEqual(this.hasUserActiveSubscription, storeState.hasUserActiveSubscription) && m.areEqual(this.guildRoleSubscriptionGroupListingId, storeState.guildRoleSubscriptionGroupListingId); } public final Guild getGuild() { return this.guild; } + public final Long getGuildRoleSubscriptionGroupListingId() { + return this.guildRoleSubscriptionGroupListingId; + } + + public final Boolean getHasUserActiveSubscription() { + return this.hasUserActiveSubscription; + } + public final boolean getInExperiment() { return this.inExperiment; } @@ -101,7 +135,15 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie } int i6 = (i5 + i) * 31; Guild guild = this.guild; - return i6 + (guild != null ? guild.hashCode() : 0); + int i7 = 0; + int hashCode = (i6 + (guild != null ? guild.hashCode() : 0)) * 31; + Boolean bool = this.hasUserActiveSubscription; + int hashCode2 = (hashCode + (bool != null ? bool.hashCode() : 0)) * 31; + Long l = this.guildRoleSubscriptionGroupListingId; + if (l != null) { + i7 = l.hashCode(); + } + return hashCode2 + i7; } public final boolean isConnected() { @@ -115,8 +157,10 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie R.append(this.inExperiment); R.append(", guild="); R.append(this.guild); - R.append(")"); - return R.toString(); + R.append(", hasUserActiveSubscription="); + R.append(this.hasUserActiveSubscription); + R.append(", guildRoleSubscriptionGroupListingId="); + return a.F(R, this.guildRoleSubscriptionGroupListingId, ")"); } } @@ -204,31 +248,40 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie } public WidgetGuildRoleSubscriptionEntryPointViewModel() { - this(null, null, null, null, 15, null); + this(null, null, null, null, null, null, 63, null); } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildRoleSubscriptionEntryPointViewModel(StoreConnectivity storeConnectivity, StoreExperiments storeExperiments, StoreGuilds storeGuilds, ObservationDeck observationDeck) { + public WidgetGuildRoleSubscriptionEntryPointViewModel(StoreConnectivity storeConnectivity, StoreExperiments storeExperiments, StoreGuilds storeGuilds, StoreSubscriptions storeSubscriptions, StoreGuildRoleSubscriptions storeGuildRoleSubscriptions, ObservationDeck observationDeck) { super(ViewState.Uninitialized.INSTANCE); m.checkNotNullParameter(storeConnectivity, "connectivityStore"); m.checkNotNullParameter(storeExperiments, "experimentsStore"); m.checkNotNullParameter(storeGuilds, "guildsStore"); + m.checkNotNullParameter(storeSubscriptions, "subscriptionsStore"); + m.checkNotNullParameter(storeGuildRoleSubscriptions, "guildRoleSubscriptionsStore"); m.checkNotNullParameter(observationDeck, "observationDeck"); this.connectivityStore = storeConnectivity; this.experimentsStore = storeExperiments; this.guildsStore = storeGuilds; + this.subscriptionsStore = storeSubscriptions; + this.guildRoleSubscriptionsStore = storeGuildRoleSubscriptions; this.observationDeck = observationDeck; + storeSubscriptions.fetchSubscriptions(); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ WidgetGuildRoleSubscriptionEntryPointViewModel(StoreConnectivity storeConnectivity, StoreExperiments storeExperiments, StoreGuilds storeGuilds, ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) { - this((i & 1) != 0 ? StoreStream.Companion.getConnectivity() : storeConnectivity, (i & 2) != 0 ? StoreStream.Companion.getExperiments() : storeExperiments, (i & 4) != 0 ? StoreStream.Companion.getGuilds() : storeGuilds, (i & 8) != 0 ? ObservationDeckProvider.get() : observationDeck); + public /* synthetic */ WidgetGuildRoleSubscriptionEntryPointViewModel(StoreConnectivity storeConnectivity, StoreExperiments storeExperiments, StoreGuilds storeGuilds, StoreSubscriptions storeSubscriptions, StoreGuildRoleSubscriptions storeGuildRoleSubscriptions, ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? StoreStream.Companion.getConnectivity() : storeConnectivity, (i & 2) != 0 ? StoreStream.Companion.getExperiments() : storeExperiments, (i & 4) != 0 ? StoreStream.Companion.getGuilds() : storeGuilds, (i & 8) != 0 ? StoreStream.Companion.getSubscriptions() : storeSubscriptions, (i & 16) != 0 ? StoreStream.Companion.getGuildRoleSubscriptions() : storeGuildRoleSubscriptions, (i & 32) != 0 ? ObservationDeckProvider.get() : observationDeck); } public static final /* synthetic */ StoreConnectivity access$getConnectivityStore$p(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel) { return widgetGuildRoleSubscriptionEntryPointViewModel.connectivityStore; } + public static final /* synthetic */ StoreGuildRoleSubscriptions access$getGuildRoleSubscriptionsStore$p(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel) { + return widgetGuildRoleSubscriptionEntryPointViewModel.guildRoleSubscriptionsStore; + } + public static final /* synthetic */ StoreGuilds access$getGuildsStore$p(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel) { return widgetGuildRoleSubscriptionEntryPointViewModel.guildsStore; } @@ -237,6 +290,10 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie return widgetGuildRoleSubscriptionEntryPointViewModel.storeObservableSubscription; } + public static final /* synthetic */ StoreSubscriptions access$getSubscriptionsStore$p(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel) { + return widgetGuildRoleSubscriptionEntryPointViewModel.subscriptionsStore; + } + public static final /* synthetic */ void access$handleStoreState(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel, StoreState storeState) { widgetGuildRoleSubscriptionEntryPointViewModel.handleStoreState(storeState); } @@ -251,10 +308,24 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie } else if (storeState.isConnected()) { updateViewState(ViewState.Invalid.INSTANCE); } + String str = this.trackingSourceLocation; + if (storeState.getHasUserActiveSubscription() != null && storeState.getGuildRoleSubscriptionGroupListingId() != null) { + if (!(str == null || t.isBlank(str)) && !this.hasSubmittedAnalytics) { + AnalyticsTracker.guildRoleSubscriptionUpsellOpened$default(AnalyticsTracker.INSTANCE, storeState.getGuildRoleSubscriptionGroupListingId().longValue(), null, storeState.getHasUserActiveSubscription().booleanValue(), str, 2, null); + this.hasSubmittedAnalytics = true; + } + } } private final Observable observeStoreState(long j) { - return ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.connectivityStore, this.experimentsStore, this.guildsStore}, false, null, null, new WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1(this, j), 14, null); + return ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.connectivityStore, this.experimentsStore, this.guildsStore, this.subscriptionsStore, this.guildRoleSubscriptionsStore}, false, null, null, new WidgetGuildRoleSubscriptionEntryPointViewModel$observeStoreState$1(this, j), 14, null); + } + + public static /* synthetic */ void setTrackingSourceLocation$default(WidgetGuildRoleSubscriptionEntryPointViewModel widgetGuildRoleSubscriptionEntryPointViewModel, String str, int i, Object obj) { + if ((i & 1) != 0) { + str = "entrypoint"; + } + widgetGuildRoleSubscriptionEntryPointViewModel.setTrackingSourceLocation(str); } public final void setGuildId(long j) { @@ -262,8 +333,16 @@ public final class WidgetGuildRoleSubscriptionEntryPointViewModel extends AppVie if (subscription != null) { subscription.unsubscribe(); } + this.guildRoleSubscriptionsStore.fetchGuildRoleSubscriptionGroupsForGuild(j); Observable q = observeStoreState(j).q(); m.checkNotNullExpressionValue(q, "observeStoreState(id)\n … .distinctUntilChanged()"); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(q), this, null, 2, null), WidgetGuildRoleSubscriptionEntryPointViewModel.class, (Context) null, new WidgetGuildRoleSubscriptionEntryPointViewModel$setGuildId$1(this), (Function1) null, (Function0) null, (Function0) null, new WidgetGuildRoleSubscriptionEntryPointViewModel$setGuildId$2(this), 58, (Object) null); } + + public final void setTrackingSourceLocation(String str) { + if (!m.areEqual(this.trackingSourceLocation, str)) { + this.hasSubmittedAnalytics = false; + } + this.trackingSourceLocation = str; + } } diff --git a/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildClone.java b/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildClone.java index cc61208864..77ff548f80 100644 --- a/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildClone.java +++ b/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildClone.java @@ -22,6 +22,7 @@ import com.discord.utilities.color.ColorCompatKt; import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; import com.discord.widgets.guilds.create.GuildCreateCloneViews; +import com.discord.widgets.guilds.create.WidgetGuildCreate; import com.discord.widgets.guilds.create.WidgetGuildCreateViewModel; import com.discord.widgets.roles.RolesListView; import d0.t.n; @@ -60,12 +61,12 @@ public final class WidgetGuildClone extends WidgetGuildCreate { public final void show(Context context, String str, String str2) { m.checkNotNullParameter(context, "context"); m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_LOCATION); - Intent intent = new Intent(); + Intent putExtra = new Intent().putExtra(WidgetGuildCreate.EXTRA_OPTIONS, new WidgetGuildCreate.Options(str2, null, false, null, false, 30, null)); + m.checkNotNullExpressionValue(putExtra, "Intent().putExtra(EXTRA_OPTIONS, options)"); if (str != null) { - intent.putExtra(WidgetGuildClone.INTENT_GUILD_TEMPLATE_CODE, str); + putExtra.putExtra(WidgetGuildClone.INTENT_GUILD_TEMPLATE_CODE, str); } - intent.putExtra("com.discord.intent.extra.EXTRA_SOURCE", str2); - j.d(context, WidgetGuildClone.class, intent); + j.d(context, WidgetGuildClone.class, putExtra); } } @@ -153,12 +154,7 @@ public final class WidgetGuildClone extends WidgetGuildCreate { @Override // com.discord.widgets.guilds.create.WidgetGuildCreate public WidgetGuildCreateViewModel createViewModelFactory() { - String stringExtra = getMostRecentIntent().getStringExtra(INTENT_GUILD_TEMPLATE_CODE); - String stringExtra2 = getMostRecentIntent().getStringExtra("com.discord.intent.extra.EXTRA_SOURCE"); - if (stringExtra2 == null) { - stringExtra2 = ""; - } - return new WidgetGuildCreateViewModel(R.string.create_server_default_server_name_format, null, stringExtra, false, stringExtra2, null, false, null, null, null, 962, null); + return new WidgetGuildCreateViewModel(R.string.create_server_default_server_name_format, null, getMostRecentIntent().getStringExtra(INTENT_GUILD_TEMPLATE_CODE), false, getArgs().getAnalyticsLocation(), null, false, null, null, null, 962, null); } @Override // com.discord.widgets.guilds.create.WidgetGuildCreate diff --git a/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildCreate.java b/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildCreate.java index b8bc13d826..309ceb5c70 100644 --- a/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildCreate.java +++ b/app/src/main/java/com/discord/widgets/guilds/create/WidgetGuildCreate.java @@ -52,7 +52,7 @@ public class WidgetGuildCreate extends AppFragment { public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetGuildCreate.class, "binding", "getBinding()Lcom/discord/databinding/WidgetGuildCreateBinding;", 0)}; public static final String ANALYTICS_SOURCE = "Guild Create"; public static final Companion Companion = new Companion(null); - private static final String EXTRA_OPTIONS = "com.discord.intent.extra.EXTRA_OPTIONS"; + public static final String EXTRA_OPTIONS = "com.discord.intent.extra.EXTRA_OPTIONS"; private static final String GUIDELINES_URL = "https://discord.com/guidelines"; private final Lazy args$delegate; private final FragmentViewBindingDelegate binding$delegate; diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/GuildInvite.java b/app/src/main/java/com/discord/widgets/guilds/invite/GuildInvite.java index 7f107b20a2..bd3c1292eb 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/GuildInvite.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/GuildInvite.java @@ -58,7 +58,7 @@ public final class GuildInvite implements Serializable { if (z2) { GuildScheduledEvent guildScheduledEvent3 = modelInvite.getGuildScheduledEvent(); if (guildScheduledEvent3 != null) { - l = Long.valueOf(guildScheduledEvent3.g()); + l = Long.valueOf(guildScheduledEvent3.h()); } } else if (z2) { throw new NoWhenBranchMatchedException(); diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper$joinViaInvite$4.java b/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper$joinViaInvite$4.java index 26e8b3baf5..dbcea39d82 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper$joinViaInvite$4.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper$joinViaInvite$4.java @@ -1,6 +1,7 @@ package com.discord.widgets.guilds.invite; import android.content.Context; +import androidx.fragment.app.FragmentActivity; import c.a.d.j; import com.discord.R; import com.discord.api.channel.Channel; @@ -43,7 +44,7 @@ import kotlin.jvm.internal.Ref$ObjectRef; import kotlinx.coroutines.CoroutineScope; import retrofit2.HttpException; /* compiled from: InviteJoinHelper.kt */ -@e(c = "com.discord.widgets.guilds.invite.InviteJoinHelper$joinViaInvite$4", f = "InviteJoinHelper.kt", l = {74, 99, 108, 109, 123, 162, 193}, m = "invokeSuspend") +@e(c = "com.discord.widgets.guilds.invite.InviteJoinHelper$joinViaInvite$4", f = "InviteJoinHelper.kt", l = {76, 101, 110, 111, 125, 164, 193}, m = "invokeSuspend") public final class InviteJoinHelper$joinViaInvite$4 extends k implements Function2, Object> { public final /* synthetic */ String $captchaKey; public final /* synthetic */ AppFragment $fragment; @@ -84,21 +85,21 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio return ((InviteJoinHelper$joinViaInvite$4) create(coroutineScope, continuation)).invokeSuspend(Unit.a); } - /* JADX WARNING: Removed duplicated region for block: B:104:0x0276 */ - /* JADX WARNING: Removed duplicated region for block: B:117:0x02c1 */ - /* JADX WARNING: Removed duplicated region for block: B:121:0x02d2 */ - /* JADX WARNING: Removed duplicated region for block: B:151:0x0369 */ - /* JADX WARNING: Removed duplicated region for block: B:152:0x0377 */ - /* JADX WARNING: Removed duplicated region for block: B:164:0x03cb */ - /* JADX WARNING: Removed duplicated region for block: B:167:0x03de A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:69:0x01a2 */ - /* JADX WARNING: Removed duplicated region for block: B:74:0x01af */ - /* JADX WARNING: Removed duplicated region for block: B:79:0x01d5 */ - /* JADX WARNING: Removed duplicated region for block: B:80:0x01d7 */ - /* JADX WARNING: Removed duplicated region for block: B:82:0x01da */ - /* JADX WARNING: Removed duplicated region for block: B:87:0x01f5 */ - /* JADX WARNING: Removed duplicated region for block: B:94:0x023e A[RETURN] */ - /* JADX WARNING: Removed duplicated region for block: B:95:0x023f */ + /* JADX WARNING: Removed duplicated region for block: B:104:0x027f */ + /* JADX WARNING: Removed duplicated region for block: B:117:0x02ca */ + /* JADX WARNING: Removed duplicated region for block: B:121:0x02db */ + /* JADX WARNING: Removed duplicated region for block: B:151:0x0372 */ + /* JADX WARNING: Removed duplicated region for block: B:152:0x0380 */ + /* JADX WARNING: Removed duplicated region for block: B:164:0x03d4 */ + /* JADX WARNING: Removed duplicated region for block: B:167:0x03e7 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:69:0x01ab */ + /* JADX WARNING: Removed duplicated region for block: B:74:0x01b8 */ + /* JADX WARNING: Removed duplicated region for block: B:79:0x01de */ + /* JADX WARNING: Removed duplicated region for block: B:80:0x01e0 */ + /* JADX WARNING: Removed duplicated region for block: B:82:0x01e3 */ + /* JADX WARNING: Removed duplicated region for block: B:87:0x01fe */ + /* JADX WARNING: Removed duplicated region for block: B:94:0x0247 A[RETURN] */ + /* JADX WARNING: Removed duplicated region for block: B:95:0x0248 */ /* JADX WARNING: Unknown variable types count: 2 */ @Override // d0.w.i.a.a public final Object invokeSuspend(Object obj) { @@ -128,6 +129,7 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio List l2; List l3; Object coroutine_suspended = c.getCOROUTINE_SUSPENDED(); + String str = null; switch (this.label) { case 0: l.throwOnFailure(obj); @@ -145,15 +147,23 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio boolean z6 = (guild4 == null || (l = guild4.l()) == null || !l.contains(GuildFeature.HUB)) ? false : true; if (z6 && !GrowthTeamFeatures.INSTANCE.isHubEnabled()) { c.a.d.m.g(ref$ObjectRef4.element, R.string.discord_u_coming_soon_to_mobile, 0, null, 12); + return Unit.a; } else if (z6 && GrowthTeamFeatures.INSTANCE.isHubEmailConnectionEnabled()) { Context context = ref$ObjectRef4.element; HubEmailEntryPoint hubEmailEntryPoint = HubEmailEntryPoint.Invite; Guild guild5 = this.$invite.getGuild(); - String v = guild5 != null ? guild5.v() : null; - if (v == null) { - v = ""; + if (guild5 != null) { + str = guild5.v(); } - j.d(context, WidgetHubEmailFlow.class, new HubEmailArgs(v, this.$invite.getApproximateMemberCount(), hubEmailEntryPoint)); + if (str == null) { + str = ""; + } + j.d(context, WidgetHubEmailFlow.class, new HubEmailArgs(str, this.$invite.getApproximateMemberCount(), hubEmailEntryPoint)); + FragmentActivity activity = this.$fragment.getActivity(); + if (activity != null) { + activity.onBackPressed(); + } + return Unit.a; } else if (!z4 || !z5) { ref$ObjectRef2 = ref$ObjectRef4; modelInvite4 = null; @@ -187,7 +197,7 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio if (((guild6 == null || (boxLong = b.boxLong(guild6.p())) == null) ? 0 : boxLong.longValue()) > 0) { if (this.$invite.getGuildScheduledEvent() != null) { GuildScheduledEvent guildScheduledEvent = this.$invite.getGuildScheduledEvent(); - if ((guildScheduledEvent != null ? guildScheduledEvent.k() : null) != GuildScheduledEventStatus.ACTIVE) { + if ((guildScheduledEvent != null ? guildScheduledEvent.l() : null) != GuildScheduledEventStatus.ACTIVE) { InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite); function2 = this.$onInviteFlowFinished; if (modelInvite == null) { @@ -426,18 +436,7 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio if (((guild != null || (boxLong2 = b.boxLong(guild.p())) == null) ? null : StoreStream.Companion.getGuilds().getGuilds().get(b.boxLong(boxLong2.longValue()))) != null) { } } - modelInvite = null; - function2 = this.$onInviteFlowFinished; - if (modelInvite == null) { - } - this.L$0 = null; - this.L$1 = null; - this.L$2 = null; - this.L$3 = null; - this.label = 7; - if (function2.invoke(modelInvite, this) == coroutine_suspended) { - } - return Unit.a; + break; case 1: InviteJoinHelper$joinViaInvite$4 inviteJoinHelper$joinViaInvite$4 = (InviteJoinHelper$joinViaInvite$4) this.L$3; Ref$ObjectRef ref$ObjectRef6 = (Ref$ObjectRef) this.L$1; diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper.java b/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper.java index de564b3249..4c12081099 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/InviteJoinHelper.java @@ -72,7 +72,7 @@ public final class InviteJoinHelper { } GuildScheduledEvent guildScheduledEvent = modelInvite.getGuildScheduledEvent(); if (guildScheduledEvent != null) { - WidgetGuildScheduledEventDetailsBottomSheet.Companion.enqueue(guildScheduledEvent.g()); + WidgetGuildScheduledEventDetailsBottomSheet.Companion.enqueue(guildScheduledEvent.h()); } } diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite$configureUI$2.java b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite$configureUI$2.java index 948a344bb8..ecd0efb14f 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite$configureUI$2.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite$configureUI$2.java @@ -103,7 +103,7 @@ public final class WidgetGuildInvite$configureUI$2 implements View.OnClickListen Long boxLong = b.boxBoolean(modelInvite.isNewMember()).booleanValue() ? guild != null ? b.boxLong(guild.p()) : null : null; GuildScheduledEvent guildScheduledEvent = modelInvite.getGuildScheduledEvent(); if (guildScheduledEvent != null) { - l = b.boxLong(guildScheduledEvent.g()); + l = b.boxLong(guildScheduledEvent.h()); } addFlags.putExtra("com.discord.intent.extra.EXTRA_HOME_CONFIG", new HomeConfig(boxLong, l, false, 4, null)); m.checkNotNullExpressionValue(addFlags, "Intent()\n … )\n }"); diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite.java b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite.java index 27d1c6c077..cb41955e0b 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetGuildInvite.java @@ -12,11 +12,14 @@ import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.app.AppFragment; import com.discord.databinding.WidgetGuildInvitePageBinding; import com.discord.models.domain.ModelInvite; +import com.discord.stores.StoreGuilds; import com.discord.stores.StoreInstantInvites; import com.discord.stores.StoreInviteSettings; import com.discord.stores.StoreStream; +import com.discord.stores.StoreUser; import com.discord.utilities.analytics.AnalyticsTracker; import com.discord.utilities.error.Error; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilitiesKt; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt; @@ -90,7 +93,7 @@ public final class WidgetGuildInvite extends AppFragment { if (guildScheduledEvent == null || (model = GuildScheduledEventModelKt.toModel(guildScheduledEvent)) == null) { z2 = false; } else { - getBinding().d.configureAsPreview(model, resolved.getInvite().getChannel()); + getBinding().d.configureAsPreview(model, resolved.getInvite().getChannel(), GuildScheduledEventUtilitiesKt.getCreatorUserGuildMember$default(model, (StoreGuilds) null, (StoreUser) null, 3, (Object) null)); z2 = true; } guildScheduledEventItemView.setVisibility(z2 ? 0 : 8); diff --git a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetInviteModel.java b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetInviteModel.java index 5b02be50e1..c718516b68 100644 --- a/app/src/main/java/com/discord/widgets/guilds/invite/WidgetInviteModel.java +++ b/app/src/main/java/com/discord/widgets/guilds/invite/WidgetInviteModel.java @@ -81,7 +81,7 @@ public final class WidgetInviteModel { modelInvite2 = tryGetStaticInvite(l, guild, map2); if (modelInvite2 != null) { z2 = true; - if (!(channel2 == null || guildScheduledEvent == null || !guildScheduledEvent.n(channel2.h()) || modelInvite2 == null)) { + if (!(channel2 == null || guildScheduledEvent == null || !guildScheduledEvent.o(channel2.h()) || modelInvite2 == null)) { modelInvite2.setGuildScheduledEvent(guildScheduledEvent); } return new WidgetInviteModel(channel2, settings, modelInvite2, inviteGenerationState.getState() != InviteGenerator.GenerationState.GENERATING, z2, arrayList, meUser, list, false); diff --git a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$1.java b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$1.java index f8d04100b5..e737dabba5 100644 --- a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$1.java +++ b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$1.java @@ -2,8 +2,11 @@ package com.discord.widgets.guilds.profile; import com.discord.utilities.error.Error; import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentityViewModel; +import d0.t.u; import d0.z.d.m; import d0.z.d.o; +import java.util.Collection; +import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function1; import rx.subjects.PublishSubject; @@ -28,9 +31,31 @@ public final class WidgetChangeGuildIdentityViewModel$saveMemberChanges$1 extend } public final void invoke(Error error) { + String str; m.checkNotNullParameter(error, "it"); + Error.Response response = error.getResponse(); + m.checkNotNullExpressionValue(response, "it.response"); + if (!response.getMessages().values().isEmpty()) { + Error.Response response2 = error.getResponse(); + m.checkNotNullExpressionValue(response2, "it.response"); + Object first = u.first(response2.getMessages().values()); + m.checkNotNullExpressionValue(first, "it.response.messages.values.first()"); + if (!((Collection) first).isEmpty()) { + Error.Response response3 = error.getResponse(); + m.checkNotNullExpressionValue(response3, "it.response"); + Object first2 = u.first(response3.getMessages().values()); + m.checkNotNullExpressionValue(first2, "it.response.messages.values.first()"); + str = (String) u.first((List) ((List) first2)); + PublishSubject access$getEventSubject$p = WidgetChangeGuildIdentityViewModel.access$getEventSubject$p(this.this$0); + access$getEventSubject$p.j.onNext(new WidgetChangeGuildIdentityViewModel.Event.MemberUpdateFailed(str)); + WidgetChangeGuildIdentityViewModel.access$updateViewState(this.this$0, WidgetChangeGuildIdentityViewModel.ViewState.Loaded.copy$default(this.$viewState, null, null, null, false, null, null, false, 63, null)); + } + } + Error.Response response4 = error.getResponse(); + m.checkNotNullExpressionValue(response4, "it.response"); + str = response4.getMessage(); PublishSubject access$getEventSubject$p = WidgetChangeGuildIdentityViewModel.access$getEventSubject$p(this.this$0); - access$getEventSubject$p.j.onNext(new WidgetChangeGuildIdentityViewModel.Event.MemberUpdateFailed(error.getBodyText())); + access$getEventSubject$p.j.onNext(new WidgetChangeGuildIdentityViewModel.Event.MemberUpdateFailed(str)); WidgetChangeGuildIdentityViewModel.access$updateViewState(this.this$0, WidgetChangeGuildIdentityViewModel.ViewState.Loaded.copy$default(this.$viewState, null, null, null, false, null, null, false, 63, null)); } } diff --git a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$2.java b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$2.java index bdc211bc99..868840c1e1 100644 --- a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$2.java +++ b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel$saveMemberChanges$2.java @@ -1,12 +1,14 @@ package com.discord.widgets.guilds.profile; +import com.discord.api.guildmember.GuildMember; import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentityViewModel; +import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; import rx.subjects.PublishSubject; /* compiled from: WidgetChangeGuildIdentityViewModel.kt */ -public final class WidgetChangeGuildIdentityViewModel$saveMemberChanges$2 extends o implements Function1 { +public final class WidgetChangeGuildIdentityViewModel$saveMemberChanges$2 extends o implements Function1 { public final /* synthetic */ WidgetChangeGuildIdentityViewModel.ViewState.Loaded $viewState; public final /* synthetic */ WidgetChangeGuildIdentityViewModel this$0; @@ -20,12 +22,13 @@ public final class WidgetChangeGuildIdentityViewModel$saveMemberChanges$2 extend /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 - public /* bridge */ /* synthetic */ Unit invoke(Void r1) { - invoke(r1); + public /* bridge */ /* synthetic */ Unit invoke(GuildMember guildMember) { + invoke(guildMember); return Unit.a; } - public final void invoke(Void r11) { + public final void invoke(GuildMember guildMember) { + m.checkNotNullParameter(guildMember, "it"); PublishSubject access$getEventSubject$p = WidgetChangeGuildIdentityViewModel.access$getEventSubject$p(this.this$0); access$getEventSubject$p.j.onNext(WidgetChangeGuildIdentityViewModel.Event.MemberUpdateSucceeded.INSTANCE); WidgetChangeGuildIdentityViewModel.access$updateViewState(this.this$0, WidgetChangeGuildIdentityViewModel.ViewState.Loaded.copy$default(this.$viewState, null, null, null, false, null, null, false, 63, null)); diff --git a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel.java b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel.java index a7cf42efc0..4c9a19e76c 100644 --- a/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel.java +++ b/app/src/main/java/com/discord/widgets/guilds/profile/WidgetChangeGuildIdentityViewModel.java @@ -613,7 +613,7 @@ public final class WidgetChangeGuildIdentityViewModel extends AppViewModel list = (List) entry.getValue(); if (!(list instanceof Collection) || !list.isEmpty()) { for (GuildScheduledEvent guildScheduledEvent : list) { - if (guildScheduledEvent.k() == GuildScheduledEventStatus.ACTIVE) { + if (guildScheduledEvent.l() == GuildScheduledEventStatus.ACTIVE) { z2 = true; continue; } else { diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventBottomButtonView.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventBottomButtonView.java index 93ed615d59..9928d5bfb7 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventBottomButtonView.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventBottomButtonView.java @@ -30,7 +30,6 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout private final boolean canConnect; private final boolean canConnectToChannel; private final boolean canRsvp; - private final boolean canShare; private final boolean canStartEvent; private final GuildScheduledEvent guildScheduledEvent; private final boolean isAnyButtonVisible; @@ -45,43 +44,42 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout private final boolean primaryInteractionButtonVisible; private final GuildScheduledEventTiming timing; - public VisibilityInfo(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) { + public VisibilityInfo(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); this.guildScheduledEvent = guildScheduledEvent; this.canRsvp = z2; - this.canShare = z3; - this.canStartEvent = z4; - this.isConnected = z5; - this.canConnect = z6; - this.isDetailView = z7; + this.canStartEvent = z3; + this.isConnected = z4; + this.canConnect = z5; + this.isDetailView = z6; GuildScheduledEventTiming eventTiming = GuildScheduledEventUtilitiesKt.getEventTiming(guildScheduledEvent); this.timing = eventTiming; - boolean z8 = true; - boolean z9 = guildScheduledEvent.k() == GuildScheduledEventStatus.COMPLETED; - this.isEventComplete = z9; - boolean z10 = eventTiming == GuildScheduledEventTiming.LIVE; - this.isEventActive = z10; - this.canConnectToChannel = z6; + boolean z7 = true; + boolean z8 = guildScheduledEvent.l() == GuildScheduledEventStatus.COMPLETED; + this.isEventComplete = z8; + boolean z9 = eventTiming == GuildScheduledEventTiming.LIVE; + this.isEventActive = z9; + this.canConnectToChannel = z5; this.primaryInteractionButtonVisible = z2; - this.primaryInteractionButtonEnabled = !z9 && (!z10 || (guildScheduledEvent.e() != GuildScheduledEventEntityType.EXTERNAL && z6)); - boolean isStartable = (!z4 || z9) ? false : eventTiming.isStartable(); + this.primaryInteractionButtonEnabled = !z8 && (!z9 || (guildScheduledEvent.f() != GuildScheduledEventEntityType.EXTERNAL && z5)); + boolean isStartable = (!z3 || z8) ? false : eventTiming.isStartable(); this.isStartEventVisible = isStartable; - boolean z11 = z7 && z10 && z5 && z4; - this.isEndEventVisible = z11; - boolean z12 = z3 && !z9; - this.isShareVisible = z12; - if (!z2 && !isStartable && !z11 && !z12) { - z8 = false; + boolean z10 = z6 && z9 && z4 && z3; + this.isEndEventVisible = z10; + boolean z11 = !z8; + this.isShareVisible = z11; + if (!z2 && !isStartable && !z10 && !z11) { + z7 = false; } - this.isAnyButtonVisible = z8; + this.isAnyButtonVisible = z7; } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ VisibilityInfo(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, int i, DefaultConstructorMarker defaultConstructorMarker) { - this(guildScheduledEvent, z2, z3, z4, z5, z6, (i & 64) != 0 ? false : z7); + public /* synthetic */ VisibilityInfo(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, int i, DefaultConstructorMarker defaultConstructorMarker) { + this(guildScheduledEvent, z2, z3, z4, z5, (i & 32) != 0 ? false : z6); } - public static /* synthetic */ VisibilityInfo copy$default(VisibilityInfo visibilityInfo, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, int i, Object obj) { + public static /* synthetic */ VisibilityInfo copy$default(VisibilityInfo visibilityInfo, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, int i, Object obj) { if ((i & 1) != 0) { guildScheduledEvent = visibilityInfo.guildScheduledEvent; } @@ -89,21 +87,18 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout z2 = visibilityInfo.canRsvp; } if ((i & 4) != 0) { - z3 = visibilityInfo.canShare; + z3 = visibilityInfo.canStartEvent; } if ((i & 8) != 0) { - z4 = visibilityInfo.canStartEvent; + z4 = visibilityInfo.isConnected; } if ((i & 16) != 0) { - z5 = visibilityInfo.isConnected; + z5 = visibilityInfo.canConnect; } if ((i & 32) != 0) { - z6 = visibilityInfo.canConnect; + z6 = visibilityInfo.isDetailView; } - if ((i & 64) != 0) { - z7 = visibilityInfo.isDetailView; - } - return visibilityInfo.copy(guildScheduledEvent, z2, z3, z4, z5, z6, z7); + return visibilityInfo.copy(guildScheduledEvent, z2, z3, z4, z5, z6); } public final GuildScheduledEvent component1() { @@ -115,28 +110,24 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout } public final boolean component3() { - return this.canShare; - } - - public final boolean component4() { return this.canStartEvent; } - public final boolean component5() { + public final boolean component4() { return this.isConnected; } - public final boolean component6() { + public final boolean component5() { return this.canConnect; } - public final boolean component7() { + public final boolean component6() { return this.isDetailView; } - public final VisibilityInfo copy(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) { + public final VisibilityInfo copy(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - return new VisibilityInfo(guildScheduledEvent, z2, z3, z4, z5, z6, z7); + return new VisibilityInfo(guildScheduledEvent, z2, z3, z4, z5, z6); } public boolean equals(Object obj) { @@ -147,7 +138,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout return false; } VisibilityInfo visibilityInfo = (VisibilityInfo) obj; - return m.areEqual(this.guildScheduledEvent, visibilityInfo.guildScheduledEvent) && this.canRsvp == visibilityInfo.canRsvp && this.canShare == visibilityInfo.canShare && this.canStartEvent == visibilityInfo.canStartEvent && this.isConnected == visibilityInfo.isConnected && this.canConnect == visibilityInfo.canConnect && this.isDetailView == visibilityInfo.isDetailView; + return m.areEqual(this.guildScheduledEvent, visibilityInfo.guildScheduledEvent) && this.canRsvp == visibilityInfo.canRsvp && this.canStartEvent == visibilityInfo.canStartEvent && this.isConnected == visibilityInfo.isConnected && this.canConnect == visibilityInfo.canConnect && this.isDetailView == visibilityInfo.isDetailView; } public final boolean getCanConnect() { @@ -162,10 +153,6 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout return this.canRsvp; } - public final boolean getCanShare() { - return this.canShare; - } - public final boolean getCanStartEvent() { return this.canStartEvent; } @@ -198,7 +185,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout int i3 = z2 ? 1 : 0; int i4 = z2 ? 1 : 0; int i5 = (hashCode + i2) * 31; - boolean z3 = this.canShare; + boolean z3 = this.canStartEvent; if (z3) { z3 = true; } @@ -206,7 +193,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout int i7 = z3 ? 1 : 0; int i8 = z3 ? 1 : 0; int i9 = (i5 + i6) * 31; - boolean z4 = this.canStartEvent; + boolean z4 = this.isConnected; if (z4) { z4 = true; } @@ -214,7 +201,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout int i11 = z4 ? 1 : 0; int i12 = z4 ? 1 : 0; int i13 = (i9 + i10) * 31; - boolean z5 = this.isConnected; + boolean z5 = this.canConnect; if (z5) { z5 = true; } @@ -222,19 +209,11 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout int i15 = z5 ? 1 : 0; int i16 = z5 ? 1 : 0; int i17 = (i13 + i14) * 31; - boolean z6 = this.canConnect; - if (z6) { - z6 = true; + boolean z6 = this.isDetailView; + if (!z6) { + i = z6 ? 1 : 0; } - int i18 = z6 ? 1 : 0; - int i19 = z6 ? 1 : 0; - int i20 = z6 ? 1 : 0; - int i21 = (i17 + i18) * 31; - boolean z7 = this.isDetailView; - if (!z7) { - i = z7 ? 1 : 0; - } - return i21 + i; + return i17 + i; } public final boolean isAnyButtonVisible() { @@ -274,8 +253,6 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout R.append(this.guildScheduledEvent); R.append(", canRsvp="); R.append(this.canRsvp); - R.append(", canShare="); - R.append(this.canShare); R.append(", canStartEvent="); R.append(this.canStartEvent); R.append(", isConnected="); @@ -316,17 +293,16 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout this.binding = a; } - public static /* synthetic */ void configure$default(GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) { - boolean z8 = false; - boolean z9 = (i & 2) != 0 ? false : z2; - boolean z10 = (i & 4) != 0 ? false : z3; - boolean z11 = (i & 8) != 0 ? false : z4; - boolean z12 = (i & 16) != 0 ? false : z5; - boolean z13 = (i & 32) != 0 ? false : z6; - if ((i & 64) == 0) { - z8 = z7; + public static /* synthetic */ void configure$default(GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) { + boolean z7 = false; + boolean z8 = (i & 2) != 0 ? false : z2; + boolean z9 = (i & 4) != 0 ? false : z3; + boolean z10 = (i & 8) != 0 ? false : z4; + boolean z11 = (i & 16) != 0 ? false : z5; + if ((i & 32) == 0) { + z7 = z6; } - guildScheduledEventBottomButtonView.configure(guildScheduledEvent, z9, z10, z11, z12, z13, z8, (i & 128) != 0 ? GuildScheduledEventBottomButtonView$configure$1.INSTANCE : function0, (i & 256) != 0 ? GuildScheduledEventBottomButtonView$configure$2.INSTANCE : function02, (i & 512) != 0 ? GuildScheduledEventBottomButtonView$configure$3.INSTANCE : function03, (i & 1024) != 0 ? GuildScheduledEventBottomButtonView$configure$4.INSTANCE : function04, (i & 2048) != 0 ? GuildScheduledEventBottomButtonView$configure$5.INSTANCE : function05); + guildScheduledEventBottomButtonView.configure(guildScheduledEvent, z8, z9, z10, z11, z7, (i & 64) != 0 ? GuildScheduledEventBottomButtonView$configure$1.INSTANCE : function0, (i & 128) != 0 ? GuildScheduledEventBottomButtonView$configure$2.INSTANCE : function02, (i & 256) != 0 ? GuildScheduledEventBottomButtonView$configure$3.INSTANCE : function03, (i & 512) != 0 ? GuildScheduledEventBottomButtonView$configure$4.INSTANCE : function04, (i & 1024) != 0 ? GuildScheduledEventBottomButtonView$configure$5.INSTANCE : function05); } private final void configureInterestedButton(VisibilityInfo visibilityInfo, boolean z2, Function0 function0, Function0 function02, Function0 function03) { @@ -354,7 +330,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout textView.setVisibility(i); int color = !visibilityInfo.getPrimaryInteractionButtonEnabled() ? ColorCompat.getColor(textView.getContext(), (int) R.color.white_alpha_40) : (!z2 || visibilityInfo.isEventActive() || visibilityInfo.isEventComplete()) ? ColorCompat.getColor(textView.getContext(), (int) R.color.white) : ColorCompat.getThemedColor(textView.getContext(), (int) R.attr.colorBackgroundAccent); int i3 = (visibilityInfo.isEventActive() || !visibilityInfo.getPrimaryInteractionButtonEnabled()) ? 0 : z2 ? R.drawable.ic_check_active_16dp : R.drawable.ic_bell_16dp; - int i4 = (!visibilityInfo.isEventActive() || visibilityInfo.getGuildScheduledEvent().e() != GuildScheduledEventEntityType.EXTERNAL) ? (!visibilityInfo.isEventActive() || visibilityInfo.getCanConnectToChannel()) ? visibilityInfo.isEndEventVisible() ? R.string.end_event : (!visibilityInfo.isEventActive() || !visibilityInfo.isConnected()) ? (!visibilityInfo.isEventActive() || visibilityInfo.getGuildScheduledEvent().e() != GuildScheduledEventEntityType.VOICE) ? visibilityInfo.isEventActive() ? R.string.stage_channel_join_button : visibilityInfo.isEventComplete() ? R.string.guild_event_invite_completed : R.string.stage_instance_interested_label : R.string.guild_event_join : R.string.go_to_channel : R.string.channel_locked_short : R.string.guild_event_started; + int i4 = (!visibilityInfo.isEventActive() || visibilityInfo.getGuildScheduledEvent().f() != GuildScheduledEventEntityType.EXTERNAL) ? (!visibilityInfo.isEventActive() || visibilityInfo.getCanConnectToChannel()) ? visibilityInfo.isEndEventVisible() ? R.string.end_event : (!visibilityInfo.isEventActive() || !visibilityInfo.isConnected()) ? (!visibilityInfo.isEventActive() || visibilityInfo.getGuildScheduledEvent().f() != GuildScheduledEventEntityType.VOICE) ? visibilityInfo.isEventActive() ? R.string.stage_channel_join_button : visibilityInfo.isEventComplete() ? R.string.guild_event_invite_completed : R.string.stage_instance_interested_label : R.string.guild_event_join : R.string.go_to_channel : R.string.channel_locked_short : R.string.guild_event_started; DrawableCompat.setCompoundDrawablesCompat$default(textView, i3, 0, 0, 0, 14, (Object) null); textView.setTextColor(color); Context context = textView.getContext(); @@ -382,21 +358,20 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout imageView.setOnClickListener(new GuildScheduledEventBottomButtonView$configureStartEventButton$$inlined$apply$lambda$1(visibilityInfo, function0)); } - public final void configure(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05) { + public final void configure(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); m.checkNotNullParameter(function0, "onRsvpButtonClicked"); m.checkNotNullParameter(function02, "onStartEventButtonClicked"); m.checkNotNullParameter(function03, "onShareButtonClicked"); m.checkNotNullParameter(function04, "onJoinButtonClicked"); m.checkNotNullParameter(function05, "onEndEventButtonClicked"); - VisibilityInfo visibilityInfo = new VisibilityInfo(guildScheduledEvent, z3, z4, z5, z6, z7, false, 64, null); + VisibilityInfo visibilityInfo = new VisibilityInfo(guildScheduledEvent, z3, z4, z5, z6, false, 32, null); configureStartEventButton(visibilityInfo, function02); configureInterestedButton(visibilityInfo, z2, function0, function04, function05); configureShareButton(visibilityInfo, function03); } - public final void configureForDetails(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, Function0 function06) { - boolean z8; + public final void configureForDetails(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, Function0 function06) { Function0 function07; Function0 function08; VisibilityInfo visibilityInfo; @@ -406,7 +381,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout m.checkNotNullParameter(function03, "onShareButtonClicked"); m.checkNotNullParameter(function05, "onJoinButtonClicked"); m.checkNotNullParameter(function06, "onEndEventButtonClicked"); - VisibilityInfo visibilityInfo2 = new VisibilityInfo(guildScheduledEvent, true, z4, z5, z3, z6, true); + VisibilityInfo visibilityInfo2 = new VisibilityInfo(guildScheduledEvent, true, z4, z3, z5, true); configureStartEventButton(visibilityInfo2, function0); int i = 8; if (visibilityInfo2.isStartEventVisible()) { @@ -419,22 +394,20 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout visibilityInfo = visibilityInfo2; function08 = function04; function07 = function03; - z8 = z7; } else { visibilityInfo = visibilityInfo2; function08 = function04; function07 = function03; - z8 = z7; configureInterestedButton(visibilityInfo2, z2, function02, function05, function06); } configureShareButton(visibilityInfo, function07); ImageView imageView2 = this.binding.b; - if (function08 != null && (z5 || z8)) { + if (function08 != null && (z4 || z6)) { i = 0; } imageView2.setVisibility(i); if (function08 != null) { - imageView2.setOnClickListener(new GuildScheduledEventBottomButtonView$configureForDetails$$inlined$apply$lambda$1(function08, z5, z8)); + imageView2.setOnClickListener(new GuildScheduledEventBottomButtonView$configureForDetails$$inlined$apply$lambda$1(function08, z4, z6)); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDateView.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDateView.java index 2069488aee..fcb4312498 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDateView.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDateView.java @@ -123,7 +123,7 @@ public final class GuildScheduledEventDateView extends ConstraintLayout { public final void configure(GuildScheduledEvent guildScheduledEvent) { m.checkNotNullParameter(guildScheduledEvent, "event"); - if (guildScheduledEvent.k() == GuildScheduledEventStatus.CANCELED || guildScheduledEvent.k() == GuildScheduledEventStatus.COMPLETED) { + if (guildScheduledEvent.l() == GuildScheduledEventStatus.CANCELED || guildScheduledEvent.l() == GuildScheduledEventStatus.COMPLETED) { ImageView imageView = this.binding.b; imageView.setImageResource(R.drawable.ic_event_20dp); ColorCompatKt.tintWithColor(imageView, ColorCompat.getThemedColor(imageView.getContext(), (int) R.attr.colorControlBrandForegroundNew)); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$Companion$observeStores$1.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$Companion$observeStores$1.java index 475e8829d3..62b4f4f6c9 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$Companion$observeStores$1.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$Companion$observeStores$1.java @@ -5,6 +5,7 @@ import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser; import com.discord.api.permission.Permission; import com.discord.models.guild.Guild; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; import com.discord.stores.StoreGuilds; @@ -13,8 +14,10 @@ import com.discord.stores.StoreUser; import com.discord.stores.StoreUserSettings; import com.discord.stores.StoreVoiceChannelSelected; import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilitiesKt; import com.discord.utilities.permissions.PermissionUtils; import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; +import d0.t.u; import d0.z.d.o; import java.util.ArrayList; import java.util.List; @@ -48,24 +51,25 @@ public final class GuildScheduledEventDetailsViewModel$Companion$observeStores$1 public final GuildScheduledEventDetailsViewModel.StoreState mo1invoke() { GuildScheduledEvent findEventFromStore$default = StoreGuildScheduledEvents.findEventFromStore$default(this.$guildScheduledEventsStore, this.$guildScheduledEventId, null, 2, null); if (findEventFromStore$default == null) { - return new GuildScheduledEventDetailsViewModel.StoreState(null, null, null, false, false, false, false, null, false, null, false, false, 4095, null); + return new GuildScheduledEventDetailsViewModel.StoreState(null, null, null, null, false, false, false, false, null, false, null, false, false, 8191, null); } - List usersForGuildEvent = this.$guildScheduledEventsStore.getUsersForGuildEvent(findEventFromStore$default.g()); + List list = u.toList(this.$guildScheduledEventsStore.getUsersForGuildEvent(findEventFromStore$default.h()).values()); StoreUser storeUser = this.$userStore; - ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(usersForGuildEvent, 10)); - for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : usersForGuildEvent) { + ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(list, 10)); + for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : list) { arrayList.add(Long.valueOf(guildScheduledEventRsvpUser.d())); } storeUser.fetchUsers(arrayList); + UserGuildMember creatorUserGuildMember$default = GuildScheduledEventUtilitiesKt.getCreatorUserGuildMember$default(findEventFromStore$default, (StoreGuilds) null, (StoreUser) null, 3, (Object) null); Long b = findEventFromStore$default.b(); Channel channel = b != null ? this.$channelsStore.getChannel(b.longValue()) : null; - Guild guild = this.$guildsStore.getGuild(findEventFromStore$default.f()); + Guild guild = this.$guildsStore.getGuild(findEventFromStore$default.g()); Long valueOf = Long.valueOf(this.$selectedVoiceChannelStore.getSelectedVoiceChannelId()); - boolean isRsvpedToEvent = this.$guildScheduledEventsStore.isRsvpedToEvent(findEventFromStore$default.f(), this.$guildScheduledEventId); + boolean isMeRsvpedToEvent = this.$guildScheduledEventsStore.isMeRsvpedToEvent(findEventFromStore$default.g(), this.$guildScheduledEventId); GuildScheduledEventUtilities.Companion companion = GuildScheduledEventUtilities.Companion; - boolean canShareEvent$default = GuildScheduledEventUtilities.Companion.canShareEvent$default(companion, findEventFromStore$default.b(), findEventFromStore$default.f(), this.$channelsStore, this.$guildsStore, null, null, 48, null); - boolean canStartEvent = companion.canStartEvent(findEventFromStore$default.f(), findEventFromStore$default.b(), this.$channelsStore, this.$permissionsStore); + boolean canShareEvent$default = GuildScheduledEventUtilities.Companion.canShareEvent$default(companion, findEventFromStore$default.b(), findEventFromStore$default.g(), this.$channelsStore, this.$guildsStore, null, null, 48, null); + boolean canStartEvent = companion.canStartEvent(findEventFromStore$default.g(), findEventFromStore$default.b(), this.$channelsStore, this.$permissionsStore); Long b2 = findEventFromStore$default.b(); - return new GuildScheduledEventDetailsViewModel.StoreState(findEventFromStore$default, channel, guild, isRsvpedToEvent, canShareEvent$default, canStartEvent, this.$userSettingsStore.getIsDeveloperMode(), valueOf, b2 != null ? PermissionUtils.can(Permission.CONNECT, this.$permissionsStore.getPermissionsByChannel().get(Long.valueOf(b2.longValue()))) : false, usersForGuildEvent, this.$guildScheduledEventsStore.getIsUsersForGuildEventFetching(), this.$guildScheduledEventsStore.getIsUsersForGuildEventError()); + return new GuildScheduledEventDetailsViewModel.StoreState(findEventFromStore$default, channel, guild, creatorUserGuildMember$default, isMeRsvpedToEvent, canShareEvent$default, canStartEvent, this.$userSettingsStore.getIsDeveloperMode(), valueOf, b2 != null ? PermissionUtils.can(Permission.CONNECT, this.$permissionsStore.getPermissionsByChannel().get(Long.valueOf(b2.longValue()))) : false, list, this.$guildScheduledEventsStore.getIsUsersForGuildEventFetching(), this.$guildScheduledEventsStore.getIsUsersForGuildEventError()); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1.java new file mode 100644 index 0000000000..bfcab30c72 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1.java @@ -0,0 +1,48 @@ +package com.discord.widgets.guildscheduledevent; + +import androidx.fragment.app.Fragment; +import com.discord.api.channel.Channel; +import com.discord.utilities.channel.ChannelInviteLaunchUtils; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; +import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; +import d0.z.d.m; +import d0.z.d.o; +import java.lang.ref.WeakReference; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildScheduledEventDetailsViewModel.kt */ +public final class GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1 extends o implements Function1 { + public final /* synthetic */ long $guildEventId; + public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState.Initialized $initializedViewState; + public final /* synthetic */ WeakReference $weakContext$inlined; + public final /* synthetic */ WeakReference $weakFragment$inlined; + public final /* synthetic */ GuildScheduledEventDetailsViewModel this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1(GuildScheduledEventDetailsViewModel.ViewState.Initialized initialized, long j, GuildScheduledEventDetailsViewModel guildScheduledEventDetailsViewModel, WeakReference weakReference, WeakReference weakReference2) { + super(1); + this.$initializedViewState = initialized; + this.$guildEventId = j; + this.this$0 = guildScheduledEventDetailsViewModel; + this.$weakFragment$inlined = weakReference; + this.$weakContext$inlined = weakReference2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { + invoke(channel); + return Unit.a; + } + + public final void invoke(Channel channel) { + Fragment fragment = (Fragment) this.$weakFragment$inlined.get(); + if (fragment != null) { + ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; + m.checkNotNullExpressionValue(fragment, "fragment"); + Channel channel2 = this.$initializedViewState.getChannel(); + ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, fragment, channel2 != null ? channel2 : channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(this.$guildEventId), null, 16, null); + } + } +} diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel.java index e749e5ed79..3f02e7093c 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventDetailsViewModel.java @@ -1,13 +1,14 @@ package com.discord.widgets.guildscheduledevent; import android.content.Context; -import androidx.media.AudioAttributesCompat; +import androidx.fragment.app.Fragment; import c.d.b.a.a; import com.discord.api.channel.Channel; import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.guildscheduledevent.GuildScheduledEventRsvpUser; import com.discord.app.AppViewModel; import com.discord.models.guild.Guild; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; import com.discord.stores.StoreGuilds; @@ -18,6 +19,7 @@ import com.discord.stores.StoreUserSettings; import com.discord.stores.StoreVoiceChannelSelected; import com.discord.stores.updates.ObservationDeck; import com.discord.stores.updates.ObservationDeckProvider; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.widgets.guildscheduledevent.GuildScheduledEventRsvpUserListItem; @@ -25,6 +27,7 @@ import d0.t.n; import d0.t.o; import d0.z.d.k; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.List; import kotlin.Unit; @@ -87,6 +90,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel list, boolean z7, boolean z8) { + public StoreState(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, Long l, boolean z6, List list, boolean z7, boolean z8) { m.checkNotNullParameter(list, "rsvpUsers"); this.guildScheduledEvent = guildScheduledEvent; this.channel = channel; this.guild = guild; + this.creator = userGuildMember; this.isRsvped = z2; this.canShare = z3; this.canStartEvent = z4; @@ -117,27 +122,31 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel component10() { + public final boolean component10() { + return this.canConnect; + } + + public final List component11() { return this.rsvpUsers; } - public final boolean component11() { + public final boolean component12() { return this.isRsvpUsersFetching; } - public final boolean component12() { + public final boolean component13() { return this.isRsvpUsersError; } @@ -149,33 +158,33 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel list, boolean z7, boolean z8) { + public final StoreState copy(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, Long l, boolean z6, List list, boolean z7, boolean z8) { m.checkNotNullParameter(list, "rsvpUsers"); - return new StoreState(guildScheduledEvent, channel, guild, z2, z3, z4, z5, l, z6, list, z7, z8); + return new StoreState(guildScheduledEvent, channel, guild, userGuildMember, z2, z3, z4, z5, l, z6, list, z7, z8); } public boolean equals(Object obj) { @@ -186,7 +195,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel list = this.rsvpUsers; if (list != null) { i = list.hashCode(); @@ -315,6 +330,8 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel component10() { + public final boolean component10() { + return this.canConnect; + } + + public final List component11() { return this.rsvpUsers; } - public final EventDetailsSection component11() { + public final EventDetailsSection component12() { return this.section; } - public final EventDetailsRsvpUsersFetchState component12() { + public final EventDetailsRsvpUsersFetchState component13() { return this.rsvpUsersFetchState; } - public final int component13() { + public final int component14() { return this.segmentedControlIndex; } + public final UserGuildMember component15() { + return this.creator; + } + public final GuildScheduledEventLocationInfo component2() { return this.locationInfo; } @@ -411,38 +440,38 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel list, EventDetailsSection eventDetailsSection, EventDetailsRsvpUsersFetchState eventDetailsRsvpUsersFetchState, int i) { + public final Initialized copy(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, List list, EventDetailsSection eventDetailsSection, EventDetailsRsvpUsersFetchState eventDetailsRsvpUsersFetchState, int i, UserGuildMember userGuildMember) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); m.checkNotNullParameter(guildScheduledEventLocationInfo, "locationInfo"); m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(list, "rsvpUsers"); m.checkNotNullParameter(eventDetailsSection, "section"); m.checkNotNullParameter(eventDetailsRsvpUsersFetchState, "rsvpUsersFetchState"); - return new Initialized(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5, z6, z7, list, eventDetailsSection, eventDetailsRsvpUsersFetchState, i); + return new Initialized(guildScheduledEvent, guildScheduledEventLocationInfo, guild, channel, z2, z3, z4, z5, z6, z7, list, eventDetailsSection, eventDetailsRsvpUsersFetchState, i, userGuildMember); } public boolean equals(Object obj) { @@ -453,7 +482,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel list = this.rsvpUsers; - int hashCode4 = (i23 + (list != null ? list.hashCode() : 0)) * 31; + int hashCode5 = (i23 + (list != null ? list.hashCode() : 0)) * 31; EventDetailsSection eventDetailsSection = this.section; - int hashCode5 = (hashCode4 + (eventDetailsSection != null ? eventDetailsSection.hashCode() : 0)) * 31; + int hashCode6 = (hashCode5 + (eventDetailsSection != null ? eventDetailsSection.hashCode() : 0)) * 31; EventDetailsRsvpUsersFetchState eventDetailsRsvpUsersFetchState = this.rsvpUsersFetchState; - if (eventDetailsRsvpUsersFetchState != null) { - i = eventDetailsRsvpUsersFetchState.hashCode(); + int hashCode7 = (((hashCode6 + (eventDetailsRsvpUsersFetchState != null ? eventDetailsRsvpUsersFetchState.hashCode() : 0)) * 31) + this.segmentedControlIndex) * 31; + UserGuildMember userGuildMember = this.creator; + if (userGuildMember != null) { + i = userGuildMember.hashCode(); } - return ((hashCode5 + i) * 31) + this.segmentedControlIndex; + return hashCode7 + i; } public final boolean isConnected() { @@ -580,6 +621,8 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel rsvpUsers = storeState.getRsvpUsers(); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(rsvpUsers, 10)); for (GuildScheduledEventRsvpUser guildScheduledEventRsvpUser : rsvpUsers) { - arrayList.add(new GuildScheduledEventRsvpUserListItem.RsvpUser(guildScheduledEventRsvpUser, storeState.getGuildScheduledEvent().f())); + arrayList.add(new GuildScheduledEventRsvpUserListItem.RsvpUser(guildScheduledEventRsvpUser, storeState.getGuildScheduledEvent().g())); } this.rsvpUsersFetchState = getRsvpUsersFetchState(storeState); GuildScheduledEvent guildScheduledEvent = storeState.getGuildScheduledEvent(); Guild guild = storeState.getGuild(); + Channel channel = storeState.getChannel(); boolean isRsvped = storeState.isRsvped(); Long b = storeState.getGuildScheduledEvent().b(); boolean z3 = false; @@ -695,7 +743,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + ViewState viewState = getViewState(); + if (!(viewState instanceof ViewState.Initialized)) { + viewState = null; + } + ViewState.Initialized initialized = (ViewState.Initialized) viewState; + if (initialized != null) { + Long b = initialized.getGuildScheduledEvent().b(); + long g = initialized.getGuildScheduledEvent().g(); + long h = initialized.getGuildScheduledEvent().h(); + if (GuildScheduledEventUtilities.Companion.canShareEvent$default(GuildScheduledEventUtilities.Companion, b, g, null, null, null, null, 60, null)) { + Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(g).y(); + m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…dId)\n .first()"); + ObservableExtensionsKt.appSubscribe$default(y2, GuildScheduledEventDetailsViewModel.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new GuildScheduledEventDetailsViewModel$onShareButtonClicked$$inlined$let$lambda$1(initialized, h, this, weakReference2, weakReference), 62, (Object) null); + return; + } + Context context = weakReference.get(); + if (context != null) { + CharSequence eventDetailsUrl = GuildScheduledEventUrlUtils.INSTANCE.getEventDetailsUrl(g, h); + m.checkNotNullExpressionValue(context, "context"); + c.a.d.m.c(context, eventDetailsUrl, 0, 4); + } } } @@ -760,12 +835,12 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05) { + private final void configureInternal(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05) { String str; GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView = this.binding.b; m.checkNotNullExpressionValue(guildScheduledEventBottomButtonView, "binding.guildScheduledEventListItemButtomView"); - guildScheduledEventBottomButtonView.setVisibility(new GuildScheduledEventBottomButtonView.VisibilityInfo(guildScheduledEvent, z3, z5, z4, z6, z7, false, 64, null).isAnyButtonVisible() ? 0 : 8); - GuildScheduledEventBottomButtonView.configure$default(this.binding.b, guildScheduledEvent, z2, z3, z5, z4, z6, z7, function02, function03, function04, function05, null, 2048, null); - TextView textView = this.binding.j; + guildScheduledEventBottomButtonView.setVisibility(new GuildScheduledEventBottomButtonView.VisibilityInfo(guildScheduledEvent, z3, z4, z5, z6, false, 32, null).isAnyButtonVisible() ? 0 : 8); + GuildScheduledEventBottomButtonView.configure$default(this.binding.b, guildScheduledEvent, z2, z3, z4, z5, z6, function02, function03, function04, function05, null, 1024, null); + TextView textView = this.binding.k; m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventListItemRsvpText"); - Integer l = guildScheduledEvent.l(); - if (l != null) { - int intValue = l.intValue(); + Integer m = guildScheduledEvent.m(); + if (m != null) { + int intValue = m.intValue(); Context context = getContext(); m.checkNotNullExpressionValue(context, "context"); str = StringUtilsKt.format(intValue, context); @@ -155,19 +160,22 @@ public final class GuildScheduledEventItemView extends ConstraintLayout { str = null; } ViewExtensions.setTextAndVisibilityBy(textView, str); - this.binding.d.configure(guildScheduledEvent); - TextView textView2 = this.binding.k; + SimpleDraweeView simpleDraweeView = this.binding.d; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildScheduledEventListItemCreatorAvatar"); + SimpleDraweeViewExtensionsKt.configureCreator(simpleDraweeView, userGuildMember); + this.binding.e.configure(guildScheduledEvent); + TextView textView2 = this.binding.l; m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventListItemTitleText"); - textView2.setText(guildScheduledEvent.h()); - configureDescription(guildScheduledEvent.c(), guildScheduledEvent.f()); + textView2.setText(guildScheduledEvent.i()); + configureDescription(guildScheduledEvent.d(), guildScheduledEvent.g()); configureLocation(guildScheduledEventLocationInfo, guild); if (function0 != null) { this.binding.a.setOnClickListener(new GuildScheduledEventItemView$configureInternal$5(function0)); } } - public static /* synthetic */ void configureInternal$default(GuildScheduledEventItemView guildScheduledEventItemView, GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) { - guildScheduledEventItemView.configureInternal(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5, z6, z7, function0, (i & 1024) != 0 ? GuildScheduledEventItemView$configureInternal$1.INSTANCE : function02, (i & 2048) != 0 ? GuildScheduledEventItemView$configureInternal$2.INSTANCE : function03, (i & 4096) != 0 ? GuildScheduledEventItemView$configureInternal$3.INSTANCE : function04, (i & 8192) != 0 ? GuildScheduledEventItemView$configureInternal$4.INSTANCE : function05); + public static /* synthetic */ void configureInternal$default(GuildScheduledEventItemView guildScheduledEventItemView, GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) { + guildScheduledEventItemView.configureInternal(guildScheduledEvent, guildScheduledEventLocationInfo, guild, userGuildMember, z2, z3, z4, z5, z6, function0, (i & 1024) != 0 ? GuildScheduledEventItemView$configureInternal$1.INSTANCE : function02, (i & 2048) != 0 ? GuildScheduledEventItemView$configureInternal$2.INSTANCE : function03, (i & 4096) != 0 ? GuildScheduledEventItemView$configureInternal$3.INSTANCE : function04, (i & 8192) != 0 ? GuildScheduledEventItemView$configureInternal$4.INSTANCE : function05); } private final void configureLocation(GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild) { @@ -180,63 +188,63 @@ public final class GuildScheduledEventItemView extends ConstraintLayout { ConstraintLayout constraintLayout2 = this.binding.f1665c; m.checkNotNullExpressionValue(constraintLayout2, "binding.guildScheduledEv…ItemChannelGuildContainer"); constraintLayout2.setVisibility(0); - ImageView imageView = this.binding.l; + ImageView imageView = this.binding.m; m.checkNotNullExpressionValue(imageView, "binding.standaloneChannelIcon"); imageView.setVisibility(8); - LinkifiedTextView linkifiedTextView = this.binding.m; + LinkifiedTextView linkifiedTextView = this.binding.n; m.checkNotNullExpressionValue(linkifiedTextView, "binding.standaloneChannelName"); linkifiedTextView.setVisibility(8); - SimpleDraweeView simpleDraweeView = this.binding.g; + SimpleDraweeView simpleDraweeView = this.binding.h; m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildScheduledEventListItemGuildIcon"); simpleDraweeView.setVisibility(0); - TextView textView = this.binding.h; + TextView textView = this.binding.i; m.checkNotNullExpressionValue(textView, "binding.guildScheduledEv…mGuildIconPlaceholderText"); textView.setVisibility(0); - TextView textView2 = this.binding.i; + TextView textView2 = this.binding.j; m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventListItemGuildName"); textView2.setVisibility(0); - TextView textView3 = this.binding.f; + TextView textView3 = this.binding.g; m.checkNotNullExpressionValue(textView3, "binding.guildScheduledEv…tListItemGuildChannelName"); textView3.setVisibility(0); - TextView textView4 = this.binding.h; + TextView textView4 = this.binding.i; textView4.setText(guild.getShortName()); if (!guild.hasIcon()) { i = 0; } textView4.setVisibility(i); - SimpleDraweeView simpleDraweeView2 = this.binding.g; + SimpleDraweeView simpleDraweeView2 = this.binding.h; m.checkNotNullExpressionValue(simpleDraweeView2, "binding.guildScheduledEventListItemGuildIcon"); SimpleDraweeViewExtensionsKt.setGuildIcon$default(simpleDraweeView2, true, guild, (float) getResources().getDimensionPixelSize(R.dimen.guild_scheduled_event_icon_corner_radius), Integer.valueOf(IconUtils.getMediaProxySize(getResources().getDimensionPixelSize(R.dimen.avatar_size_standard))), null, null, null, false, null, 496, null); - TextView textView5 = this.binding.i; + TextView textView5 = this.binding.j; m.checkNotNullExpressionValue(textView5, "binding.guildScheduledEventListItemGuildName"); textView5.setText(guild.getName()); - TextView textView6 = this.binding.f; + TextView textView6 = this.binding.g; m.checkNotNullExpressionValue(textView6, "binding.guildScheduledEv…tListItemGuildChannelName"); GuildScheduledEventExternalLocationParser locationParser = getLocationParser(); Context context = getContext(); m.checkNotNullExpressionValue(context, "context"); textView6.setText(locationParser.getTextFromLocation(context, guildScheduledEventLocationInfo)); - this.binding.f.setCompoundDrawablesWithIntrinsicBounds(guildScheduledEventLocationInfo.getLocationIconSmall(), 0, 0, 0); + this.binding.g.setCompoundDrawablesWithIntrinsicBounds(guildScheduledEventLocationInfo.getLocationIconSmall(), 0, 0, 0); } else { ConstraintLayout constraintLayout3 = this.binding.f1665c; m.checkNotNullExpressionValue(constraintLayout3, "binding.guildScheduledEv…ItemChannelGuildContainer"); constraintLayout3.setVisibility(0); - SimpleDraweeView simpleDraweeView3 = this.binding.g; + SimpleDraweeView simpleDraweeView3 = this.binding.h; m.checkNotNullExpressionValue(simpleDraweeView3, "binding.guildScheduledEventListItemGuildIcon"); simpleDraweeView3.setVisibility(8); - TextView textView7 = this.binding.h; + TextView textView7 = this.binding.i; m.checkNotNullExpressionValue(textView7, "binding.guildScheduledEv…mGuildIconPlaceholderText"); textView7.setVisibility(8); - TextView textView8 = this.binding.i; + TextView textView8 = this.binding.j; m.checkNotNullExpressionValue(textView8, "binding.guildScheduledEventListItemGuildName"); textView8.setVisibility(8); - TextView textView9 = this.binding.f; + TextView textView9 = this.binding.g; m.checkNotNullExpressionValue(textView9, "binding.guildScheduledEv…tListItemGuildChannelName"); textView9.setVisibility(8); - ImageView imageView2 = this.binding.l; + ImageView imageView2 = this.binding.m; imageView2.setVisibility(0); imageView2.setImageResource(guildScheduledEventLocationInfo.getLocationIcon()); - LinkifiedTextView linkifiedTextView2 = this.binding.m; + LinkifiedTextView linkifiedTextView2 = this.binding.n; linkifiedTextView2.setVisibility(0); GuildScheduledEventExternalLocationParser locationParser2 = getLocationParser(); Context context2 = linkifiedTextView2.getContext(); @@ -261,43 +269,46 @@ public final class GuildScheduledEventItemView extends ConstraintLayout { return (GuildScheduledEventExternalLocationParser) this.locationParser$delegate.getValue(); } - public final void configureAsPreview(GuildScheduledEventModel guildScheduledEventModel, Channel channel) { + public final void configureAsPreview(GuildScheduledEventModel guildScheduledEventModel, Channel channel, UserGuildMember userGuildMember) { m.checkNotNullParameter(guildScheduledEventModel, "eventModel"); long millis = GuildScheduledEventPickerDateTime.INSTANCE.toMillis(guildScheduledEventModel.getStartDate(), guildScheduledEventModel.getStartTime()); ConstraintLayout constraintLayout = this.binding.a; m.checkNotNullExpressionValue(constraintLayout, "binding.root"); constraintLayout.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_floating)); - TextView textView = this.binding.j; + TextView textView = this.binding.k; m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventListItemRsvpText"); textView.setBackgroundTintList(ColorCompat.INSTANCE.createDefaultColorStateList(ColorCompat.getThemedColor(getContext(), (int) R.attr.colorBackgroundTertiary))); - TextView textView2 = this.binding.j; + SimpleDraweeView simpleDraweeView = this.binding.d; + m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildScheduledEventListItemCreatorAvatar"); + SimpleDraweeViewExtensionsKt.configureCreator(simpleDraweeView, userGuildMember); + TextView textView2 = this.binding.k; m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventListItemRsvpText"); Integer userCount = guildScheduledEventModel.getUserCount(); ViewExtensions.setTextAndVisibilityBy(textView2, userCount != null ? String.valueOf(userCount.intValue()) : null); GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView = this.binding.b; m.checkNotNullExpressionValue(guildScheduledEventBottomButtonView, "binding.guildScheduledEventListItemButtomView"); guildScheduledEventBottomButtonView.setVisibility(8); - TextView textView3 = this.binding.k; + TextView textView3 = this.binding.l; m.checkNotNullExpressionValue(textView3, "binding.guildScheduledEventListItemTitleText"); textView3.setText(guildScheduledEventModel.getName()); configureDescription(guildScheduledEventModel.getDescription(), guildScheduledEventModel.getGuildId()); - this.binding.d.configure(millis); + this.binding.e.configure(millis); configureLocation$default(this, GuildScheduledEventLocationInfo.Companion.buildLocationInfo(guildScheduledEventModel, channel), null, 2, null); } - public final void configureInChatList(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, Function0 function0, Function0 function02, Function0 function03, Function0 function04) { + public final void configureInChatList(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, Function0 function0, Function0 function02, Function0 function03, Function0 function04) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); m.checkNotNullParameter(function02, "rsvpButtonClickListener"); m.checkNotNullParameter(function03, "joinServerButtonClickListener"); m.checkNotNullParameter(function04, "shareButtonClickListener"); - configureInternal(guildScheduledEvent, GuildScheduledEventLocationInfo.Companion.buildLocationInfo(guildScheduledEvent, channel), guild, z3, true, false, z6, z4, z5, function0, function02, function03, function04, function03); + configureInternal(guildScheduledEvent, GuildScheduledEventLocationInfo.Companion.buildLocationInfo(guildScheduledEvent, channel), guild, userGuildMember, z3, true, false, z4, z5, function0, function02, function03, function04, function03); ConstraintLayout constraintLayout = this.binding.a; m.checkNotNullExpressionValue(constraintLayout, "binding.root"); - constraintLayout.setBackground((!z4 || guildScheduledEvent.k() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_secondary)); - TextView textView = this.binding.j; + constraintLayout.setBackground((!z4 || guildScheduledEvent.l() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_secondary)); + TextView textView = this.binding.k; m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventListItemRsvpText"); textView.setBackgroundTintList(ColorCompat.INSTANCE.createDefaultColorStateList(ColorCompat.getThemedColor(getContext(), (int) R.attr.colorBackgroundTertiary))); - TextView textView2 = this.binding.k; + TextView textView2 = this.binding.l; ViewGroup.LayoutParams layoutParams = textView2.getLayoutParams(); Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams; @@ -334,26 +345,26 @@ public final class GuildScheduledEventItemView extends ConstraintLayout { m.checkNotNullParameter(function03, "eventStartButtonClickListener"); m.checkNotNullParameter(function04, "shareButtonClickListener"); m.checkNotNullParameter(function05, "joinButtonClickListener"); - configureInternal(event.getEvent(), GuildScheduledEventLocationInfo.Companion.buildLocationInfo(event.getEvent(), event.getChannel()), null, event.isRsvped(), true, event.getCanStartEvent(), event.getCanShare(), event.isConnected(), event.getCanConnect(), function0, function02, function03, function04, function05); + configureInternal(event.getEvent(), GuildScheduledEventLocationInfo.Companion.buildLocationInfo(event.getEvent(), event.getChannel()), null, event.getCreator(), event.isRsvped(), true, event.getCanStartEvent(), event.isConnected(), event.getCanConnect(), function0, function02, function03, function04, function05); ConstraintLayout constraintLayout = this.binding.a; m.checkNotNullExpressionValue(constraintLayout, "binding.root"); - constraintLayout.setBackground((!event.isConnected() || event.getEvent().k() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_primary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_primary)); + constraintLayout.setBackground((!event.isConnected() || event.getEvent().l() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_primary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_primary)); } - public final void configureInVoiceChannel(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, Function0 function0, Function0 function02) { + public final void configureInVoiceChannel(GuildScheduledEvent guildScheduledEvent, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, Function0 function0, Function0 function02) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); m.checkNotNullParameter(function0, "onCardClicked"); m.checkNotNullParameter(function02, "onStartEventButtonClicked"); - configureInternal(guildScheduledEvent, null, null, false, false, z2, false, z4, false, function0, GuildScheduledEventItemView$configureInVoiceChannel$1.INSTANCE, function02, GuildScheduledEventItemView$configureInVoiceChannel$2.INSTANCE, GuildScheduledEventItemView$configureInVoiceChannel$3.INSTANCE); + configureInternal(guildScheduledEvent, null, null, userGuildMember, false, false, z2, z4, false, function0, GuildScheduledEventItemView$configureInVoiceChannel$1.INSTANCE, function02, GuildScheduledEventItemView$configureInVoiceChannel$2.INSTANCE, GuildScheduledEventItemView$configureInVoiceChannel$3.INSTANCE); ConstraintLayout constraintLayout = this.binding.a; m.checkNotNullExpressionValue(constraintLayout, "binding.root"); - constraintLayout.setBackground((!z4 || guildScheduledEvent.k() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_secondary)); - TextView textView = this.binding.j; + constraintLayout.setBackground((!z4 || guildScheduledEvent.l() != GuildScheduledEventStatus.ACTIVE) ? ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary) : ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_connected_secondary)); + TextView textView = this.binding.k; m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventListItemRsvpText"); int i = 8; textView.setVisibility(8); if (z3) { - LinkifiedTextView linkifiedTextView = this.binding.e; + LinkifiedTextView linkifiedTextView = this.binding.f; m.checkNotNullExpressionValue(linkifiedTextView, "binding.guildScheduledEventListItemDescText"); linkifiedTextView.setVisibility(8); } @@ -363,7 +374,7 @@ public final class GuildScheduledEventItemView extends ConstraintLayout { i = 0; } guildScheduledEventBottomButtonView.setVisibility(i); - TextView textView2 = this.binding.k; + TextView textView2 = this.binding.l; if (z3) { textView2.setMaxLines(Integer.MAX_VALUE); textView2.setEllipsize(null); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4.java index 10d53eeb2c..edcfaceab3 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4.java @@ -1,56 +1,15 @@ package com.discord.widgets.guildscheduledevent; -import android.content.Context; -import androidx.fragment.app.Fragment; -import androidx.fragment.app.ViewKt; -import com.discord.api.channel.Channel; -import com.discord.stores.StoreStream; -import com.discord.utilities.channel.ChannelInviteLaunchUtils; -import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; -import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.widgets.guildscheduledevent.GuildScheduledEventListAdapter; import com.discord.widgets.guildscheduledevent.GuildScheduledEventListItem; -import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; -import kotlin.jvm.functions.Function1; -import rx.Observable; /* compiled from: GuildScheduledEventListAdapter.kt */ public final class GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4 extends o implements Function0 { public final /* synthetic */ GuildScheduledEventListItem.Event $item; public final /* synthetic */ GuildScheduledEventListAdapter.EventViewHolder this$0; - /* compiled from: GuildScheduledEventListAdapter.kt */ - /* renamed from: com.discord.widgets.guildscheduledevent.GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4$1 reason: invalid class name */ - public static final class AnonymousClass1 extends o implements Function1 { - public final /* synthetic */ GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4 this$0; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4 guildScheduledEventListAdapter$EventViewHolder$onConfigure$4) { - super(1); - this.this$0 = guildScheduledEventListAdapter$EventViewHolder$onConfigure$4; - } - - /* Return type fixed from 'java.lang.Object' to match base method */ - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ - @Override // kotlin.jvm.functions.Function1 - public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { - invoke(channel); - return Unit.a; - } - - public final void invoke(Channel channel) { - ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; - Fragment findFragment = ViewKt.findFragment(GuildScheduledEventListAdapter.this.getRecycler()); - Channel channel2 = this.this$0.$item.getChannel(); - if (channel2 == null) { - channel2 = channel; - } - ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, findFragment, channel2, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(this.this$0.$item.getEvent().g()), null, 16, null); - } - } - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4(GuildScheduledEventListAdapter.EventViewHolder eventViewHolder, GuildScheduledEventListItem.Event event) { super(0); @@ -61,8 +20,6 @@ public final class GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4 @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(this.$item.getEvent().f()).y(); - m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…\n .first()"); - ObservableExtensionsKt.appSubscribe$default(y2, this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); + GuildScheduledEventListAdapter.EventViewHolder.access$getAdapter$p(this.this$0).getOnShareClicked().invoke(this.$item); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter.java index dbaefa87ae..f797aa6caf 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListAdapter.java @@ -18,6 +18,7 @@ public final class GuildScheduledEventListAdapter extends MGRecyclerAdapterSimpl private final Function1 onEventStartClicked; private final Function1 onJoinClicked; private final Function1 onRsvpClicked; + private final Function1 onShareClicked; /* compiled from: GuildScheduledEventListAdapter.kt */ public final class EventViewHolder extends MGRecyclerViewHolder { @@ -53,19 +54,22 @@ public final class GuildScheduledEventListAdapter extends MGRecyclerAdapterSimpl /* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: kotlin.jvm.functions.Function1 */ /* JADX DEBUG: Multi-variable search result rejected for r7v0, resolved type: kotlin.jvm.functions.Function1 */ /* JADX DEBUG: Multi-variable search result rejected for r8v0, resolved type: kotlin.jvm.functions.Function1 */ + /* JADX DEBUG: Multi-variable search result rejected for r9v0, resolved type: kotlin.jvm.functions.Function1 */ /* JADX WARN: Multi-variable type inference failed */ /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public GuildScheduledEventListAdapter(RecyclerView recyclerView, Function1 function1, Function1 function12, Function1 function13, Function1 function14) { + public GuildScheduledEventListAdapter(RecyclerView recyclerView, Function1 function1, Function1 function12, Function1 function13, Function1 function14, Function1 function15) { super(recyclerView, false, 2, null); m.checkNotNullParameter(recyclerView, "recyclerView"); m.checkNotNullParameter(function1, "onRsvpClicked"); m.checkNotNullParameter(function12, "onEventStartClicked"); m.checkNotNullParameter(function13, "onCardClicked"); m.checkNotNullParameter(function14, "onJoinClicked"); + m.checkNotNullParameter(function15, "onShareClicked"); this.onRsvpClicked = function1; this.onEventStartClicked = function12; this.onCardClicked = function13; this.onJoinClicked = function14; + this.onShareClicked = function15; } public final Function1 getOnCardClicked() { @@ -84,6 +88,10 @@ public final class GuildScheduledEventListAdapter extends MGRecyclerAdapterSimpl return this.onRsvpClicked; } + public final Function1 getOnShareClicked() { + return this.onShareClicked; + } + @Override // androidx.recyclerview.widget.RecyclerView.Adapter public MGRecyclerViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { m.checkNotNullParameter(viewGroup, "parent"); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListItem.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListItem.java index f8aabee511..3a076f026e 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListItem.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListItem.java @@ -3,6 +3,7 @@ package com.discord.widgets.guildscheduledevent; import c.d.b.a.a; import com.discord.api.channel.Channel; import com.discord.api.guildscheduledevent.GuildScheduledEvent; +import com.discord.models.guild.UserGuildMember; import com.discord.utilities.mg_recycler.MGRecyclerDataPayload; import d0.z.d.m; import kotlin.jvm.internal.DefaultConstructorMarker; @@ -27,6 +28,7 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo private final boolean canShare; private final boolean canStartEvent; private final Channel channel; + private final UserGuildMember creator; private final GuildScheduledEvent event; private final boolean isConnected; private final boolean isRsvped; @@ -34,42 +36,22 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo private final int type; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public Event(GuildScheduledEvent guildScheduledEvent, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + public Event(GuildScheduledEvent guildScheduledEvent, Channel channel, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { super(null); m.checkNotNullParameter(guildScheduledEvent, "event"); this.event = guildScheduledEvent; this.channel = channel; + this.creator = userGuildMember; this.isRsvped = z2; this.canStartEvent = z3; this.canShare = z4; this.isConnected = z5; this.canConnect = z6; - this.key = String.valueOf(guildScheduledEvent.g()); + this.key = String.valueOf(guildScheduledEvent.h()); } - public static /* synthetic */ Event copy$default(Event event, GuildScheduledEvent guildScheduledEvent, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, int i, Object obj) { - if ((i & 1) != 0) { - guildScheduledEvent = event.event; - } - if ((i & 2) != 0) { - channel = event.channel; - } - if ((i & 4) != 0) { - z2 = event.isRsvped; - } - if ((i & 8) != 0) { - z3 = event.canStartEvent; - } - if ((i & 16) != 0) { - z4 = event.canShare; - } - if ((i & 32) != 0) { - z5 = event.isConnected; - } - if ((i & 64) != 0) { - z6 = event.canConnect; - } - return event.copy(guildScheduledEvent, channel, z2, z3, z4, z5, z6); + public static /* synthetic */ Event copy$default(Event event, GuildScheduledEvent guildScheduledEvent, Channel channel, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, int i, Object obj) { + return event.copy((i & 1) != 0 ? event.event : guildScheduledEvent, (i & 2) != 0 ? event.channel : channel, (i & 4) != 0 ? event.creator : userGuildMember, (i & 8) != 0 ? event.isRsvped : z2, (i & 16) != 0 ? event.canStartEvent : z3, (i & 32) != 0 ? event.canShare : z4, (i & 64) != 0 ? event.isConnected : z5, (i & 128) != 0 ? event.canConnect : z6); } public final GuildScheduledEvent component1() { @@ -80,29 +62,33 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo return this.channel; } - public final boolean component3() { - return this.isRsvped; + public final UserGuildMember component3() { + return this.creator; } public final boolean component4() { - return this.canStartEvent; + return this.isRsvped; } public final boolean component5() { - return this.canShare; + return this.canStartEvent; } public final boolean component6() { - return this.isConnected; + return this.canShare; } public final boolean component7() { + return this.isConnected; + } + + public final boolean component8() { return this.canConnect; } - public final Event copy(GuildScheduledEvent guildScheduledEvent, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { + public final Event copy(GuildScheduledEvent guildScheduledEvent, Channel channel, UserGuildMember userGuildMember, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6) { m.checkNotNullParameter(guildScheduledEvent, "event"); - return new Event(guildScheduledEvent, channel, z2, z3, z4, z5, z6); + return new Event(guildScheduledEvent, channel, userGuildMember, z2, z3, z4, z5, z6); } public boolean equals(Object obj) { @@ -113,7 +99,7 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo return false; } Event event = (Event) obj; - return m.areEqual(this.event, event.event) && m.areEqual(this.channel, event.channel) && this.isRsvped == event.isRsvped && this.canStartEvent == event.canStartEvent && this.canShare == event.canShare && this.isConnected == event.isConnected && this.canConnect == event.canConnect; + return m.areEqual(this.event, event.event) && m.areEqual(this.channel, event.channel) && m.areEqual(this.creator, event.creator) && this.isRsvped == event.isRsvped && this.canStartEvent == event.canStartEvent && this.canShare == event.canShare && this.isConnected == event.isConnected && this.canConnect == event.canConnect; } public final boolean getCanConnect() { @@ -132,6 +118,10 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo return this.channel; } + public final UserGuildMember getCreator() { + return this.creator; + } + public final GuildScheduledEvent getEvent() { return this.event; } @@ -151,10 +141,12 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo int i = 0; int hashCode = (guildScheduledEvent != null ? guildScheduledEvent.hashCode() : 0) * 31; Channel channel = this.channel; - if (channel != null) { - i = channel.hashCode(); + int hashCode2 = (hashCode + (channel != null ? channel.hashCode() : 0)) * 31; + UserGuildMember userGuildMember = this.creator; + if (userGuildMember != null) { + i = userGuildMember.hashCode(); } - int i2 = (hashCode + i) * 31; + int i2 = (hashCode2 + i) * 31; boolean z2 = this.isRsvped; int i3 = 1; if (z2) { @@ -208,6 +200,8 @@ public abstract class GuildScheduledEventListItem implements MGRecyclerDataPaylo R.append(this.event); R.append(", channel="); R.append(this.channel); + R.append(", creator="); + R.append(this.creator); R.append(", isRsvped="); R.append(this.isRsvped); R.append(", canStartEvent="); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$Companion$observeStores$1.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$Companion$observeStores$1.java index bf310f621b..d1af321abf 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$Companion$observeStores$1.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$Companion$observeStores$1.java @@ -2,20 +2,27 @@ package com.discord.widgets.guildscheduledevent; import com.discord.api.channel.Channel; import com.discord.api.guildscheduledevent.GuildScheduledEvent; +import com.discord.models.guild.UserGuildMember; +import com.discord.models.user.User; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; +import com.discord.stores.StoreGuilds; import com.discord.stores.StorePermissions; +import com.discord.stores.StoreUser; import com.discord.stores.StoreVoiceChannelSelected; import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; import com.discord.utilities.guildscheduledevent.GuildScheduledEventsComparator; import com.discord.widgets.guildscheduledevent.GuildScheduledEventListViewModel; +import d0.t.h0; import d0.t.u; import d0.z.d.m; import d0.z.d.o; import java.util.ArrayList; +import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; +import kotlin.Pair; import kotlin.jvm.functions.Function0; /* compiled from: GuildScheduledEventListViewModel.kt */ public final class GuildScheduledEventListViewModel$Companion$observeStores$1 extends o implements Function0 { @@ -23,16 +30,20 @@ public final class GuildScheduledEventListViewModel$Companion$observeStores$1 ex public final /* synthetic */ StoreChannels $channelStore; public final /* synthetic */ long $guildId; public final /* synthetic */ StoreGuildScheduledEvents $guildScheduledEventsStore; + public final /* synthetic */ StoreGuilds $guildStore; public final /* synthetic */ StorePermissions $permissionsStore; + public final /* synthetic */ StoreUser $userStore; public final /* synthetic */ StoreVoiceChannelSelected $voiceChannelSelectedStore; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public GuildScheduledEventListViewModel$Companion$observeStores$1(StoreChannels storeChannels, long j, StoreGuildScheduledEvents storeGuildScheduledEvents, Long l, StorePermissions storePermissions, StoreVoiceChannelSelected storeVoiceChannelSelected) { + public GuildScheduledEventListViewModel$Companion$observeStores$1(StoreChannels storeChannels, long j, StoreGuildScheduledEvents storeGuildScheduledEvents, Long l, StoreUser storeUser, StoreGuilds storeGuilds, StorePermissions storePermissions, StoreVoiceChannelSelected storeVoiceChannelSelected) { super(0); this.$channelStore = storeChannels; this.$guildId = j; this.$guildScheduledEventsStore = storeGuildScheduledEvents; this.$channelId = l; + this.$userStore = storeUser; + this.$guildStore = storeGuilds; this.$permissionsStore = storePermissions; this.$voiceChannelSelectedStore = storeVoiceChannelSelected; } @@ -51,14 +62,41 @@ public final class GuildScheduledEventListViewModel$Companion$observeStores$1 ex } guildScheduledEvents$default = arrayList; } - List sortedWith = u.sortedWith(guildScheduledEvents$default, GuildScheduledEventsComparator.INSTANCE); + List sortedWith = u.sortedWith(guildScheduledEvents$default, GuildScheduledEventsComparator.INSTANCE); + ArrayList arrayList2 = new ArrayList(); + for (GuildScheduledEvent guildScheduledEvent : sortedWith) { + Long c2 = guildScheduledEvent.c(); + if (c2 != null) { + arrayList2.add(c2); + } + } + Set set = u.toSet(arrayList2); + boolean z2 = true; + Map users = this.$userStore.getUsers(set, true); + ArrayList arrayList3 = new ArrayList(); + Iterator it = set.iterator(); + while (true) { + Pair pair = null; + if (!it.hasNext()) { + break; + } + long longValue = ((Number) it.next()).longValue(); + User user = users.get(Long.valueOf(longValue)); + if (user != null) { + pair = d0.o.to(Long.valueOf(longValue), new UserGuildMember(user, this.$guildStore.getMember(this.$guildId, longValue))); + } + if (pair != null) { + arrayList3.add(pair); + } + } + Map map = h0.toMap(arrayList3); Set userGuildScheduledEventIds = this.$guildScheduledEventsStore.getUserGuildScheduledEventIds(this.$guildId); boolean canCreateAnyEvent = GuildScheduledEventUtilities.Companion.canCreateAnyEvent(this.$guildId, this.$channelStore, this.$permissionsStore); Map permissionsByChannel = this.$permissionsStore.getPermissionsByChannel(); Long valueOf = Long.valueOf(this.$voiceChannelSelectedStore.getSelectedVoiceChannelId()); - if (!(valueOf.longValue() != 0)) { - valueOf = null; + if (valueOf.longValue() == 0) { + z2 = false; } - return new GuildScheduledEventListViewModel.StoreState(sortedWith, userGuildScheduledEventIds, channelsForGuild, canCreateAnyEvent, valueOf, permissionsByChannel); + return new GuildScheduledEventListViewModel.StoreState(sortedWith, userGuildScheduledEventIds, channelsForGuild, map, canCreateAnyEvent, z2 ? valueOf : null, permissionsByChannel); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$onShareClicked$1.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$onShareClicked$1.java new file mode 100644 index 0000000000..09b31530db --- /dev/null +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel$onShareClicked$1.java @@ -0,0 +1,43 @@ +package com.discord.widgets.guildscheduledevent; + +import androidx.fragment.app.Fragment; +import com.discord.api.channel.Channel; +import com.discord.utilities.channel.ChannelInviteLaunchUtils; +import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; +import d0.z.d.m; +import d0.z.d.o; +import java.lang.ref.WeakReference; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: GuildScheduledEventListViewModel.kt */ +public final class GuildScheduledEventListViewModel$onShareClicked$1 extends o implements Function1 { + public final /* synthetic */ Channel $channel; + public final /* synthetic */ long $guildEventId; + public final /* synthetic */ WeakReference $weakFragment; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public GuildScheduledEventListViewModel$onShareClicked$1(WeakReference weakReference, Channel channel, long j) { + super(1); + this.$weakFragment = weakReference; + this.$channel = channel; + this.$guildEventId = j; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { + invoke(channel); + return Unit.a; + } + + public final void invoke(Channel channel) { + Fragment fragment = (Fragment) this.$weakFragment.get(); + if (fragment != null) { + ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; + m.checkNotNullExpressionValue(fragment, "fragment"); + Channel channel2 = this.$channel; + ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, fragment, channel2 != null ? channel2 : channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(this.$guildEventId), null, 16, null); + } + } +} diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel.java index bd809b054f..d7a156b443 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventListViewModel.java @@ -1,16 +1,19 @@ package com.discord.widgets.guildscheduledevent; import android.content.Context; +import androidx.fragment.app.Fragment; import c.d.b.a.a; import com.discord.api.channel.Channel; import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.permission.Permission; import com.discord.app.AppViewModel; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreChannels; import com.discord.stores.StoreGuildScheduledEvents; import com.discord.stores.StoreGuilds; import com.discord.stores.StorePermissions; import com.discord.stores.StoreStream; +import com.discord.stores.StoreUser; import com.discord.stores.StoreVoiceChannelSelected; import com.discord.stores.updates.ObservationDeck; import com.discord.stores.updates.ObservationDeckProvider; @@ -22,6 +25,7 @@ import com.discord.widgets.guildscheduledevent.GuildScheduledEventListItem; import d0.t.o; import d0.z.d.k; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -40,6 +44,7 @@ public final class GuildScheduledEventListViewModel extends AppViewModel observeStores(long j, Long l, StoreGuildScheduledEvents storeGuildScheduledEvents, StoreChannels storeChannels, StorePermissions storePermissions, StoreGuilds storeGuilds, StoreVoiceChannelSelected storeVoiceChannelSelected) { - return ObservationDeck.connectRx$default(ObservationDeckProvider.get(), new ObservationDeck.UpdateSource[]{storeGuildScheduledEvents, storeChannels, storePermissions, storeGuilds, storeVoiceChannelSelected}, false, null, null, new GuildScheduledEventListViewModel$Companion$observeStores$1(storeChannels, j, storeGuildScheduledEvents, l, storePermissions, storeVoiceChannelSelected), 14, null); + private final Observable observeStores(long j, Long l, StoreGuildScheduledEvents storeGuildScheduledEvents, StoreChannels storeChannels, StorePermissions storePermissions, StoreGuilds storeGuilds, StoreVoiceChannelSelected storeVoiceChannelSelected, StoreUser storeUser) { + return ObservationDeck.connectRx$default(ObservationDeckProvider.get(), new ObservationDeck.UpdateSource[]{storeGuildScheduledEvents, storeChannels, storePermissions, storeGuilds, storeVoiceChannelSelected, storeUser}, false, null, null, new GuildScheduledEventListViewModel$Companion$observeStores$1(storeChannels, j, storeGuildScheduledEvents, l, storeUser, storeGuilds, storePermissions, storeVoiceChannelSelected), 14, null); } } @@ -85,27 +90,30 @@ public final class GuildScheduledEventListViewModel extends AppViewModel channelPermissions; + private final Map creators; private final Map guildChannels; private final List guildScheduledEvents; private final Long selectedVoiceChannelId; private final Set userGuildScheduledEventIds; - public StoreState(List list, Set set, Map map, boolean z2, Long l, Map map2) { + public StoreState(List list, Set set, Map map, Map map2, boolean z2, Long l, Map map3) { m.checkNotNullParameter(list, "guildScheduledEvents"); m.checkNotNullParameter(set, "userGuildScheduledEventIds"); m.checkNotNullParameter(map, "guildChannels"); - m.checkNotNullParameter(map2, "channelPermissions"); + m.checkNotNullParameter(map2, "creators"); + m.checkNotNullParameter(map3, "channelPermissions"); this.guildScheduledEvents = list; this.userGuildScheduledEventIds = set; this.guildChannels = map; + this.creators = map2; this.canCreateEvents = z2; this.selectedVoiceChannelId = l; - this.channelPermissions = map2; + this.channelPermissions = map3; } - /* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: com.discord.widgets.guildscheduledevent.GuildScheduledEventListViewModel$StoreState */ + /* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: com.discord.widgets.guildscheduledevent.GuildScheduledEventListViewModel$StoreState */ /* JADX WARN: Multi-variable type inference failed */ - public static /* synthetic */ StoreState copy$default(StoreState storeState, List list, Set set, Map map, boolean z2, Long l, Map map2, int i, Object obj) { + public static /* synthetic */ StoreState copy$default(StoreState storeState, List list, Set set, Map map, Map map2, boolean z2, Long l, Map map3, int i, Object obj) { if ((i & 1) != 0) { list = storeState.guildScheduledEvents; } @@ -116,15 +124,18 @@ public final class GuildScheduledEventListViewModel extends AppViewModel component1() { @@ -139,24 +150,29 @@ public final class GuildScheduledEventListViewModel extends AppViewModel component4() { + return this.creators; + } + + public final boolean component5() { return this.canCreateEvents; } - public final Long component5() { + public final Long component6() { return this.selectedVoiceChannelId; } - public final Map component6() { + public final Map component7() { return this.channelPermissions; } - public final StoreState copy(List list, Set set, Map map, boolean z2, Long l, Map map2) { + public final StoreState copy(List list, Set set, Map map, Map map2, boolean z2, Long l, Map map3) { m.checkNotNullParameter(list, "guildScheduledEvents"); m.checkNotNullParameter(set, "userGuildScheduledEventIds"); m.checkNotNullParameter(map, "guildChannels"); - m.checkNotNullParameter(map2, "channelPermissions"); - return new StoreState(list, set, map, z2, l, map2); + m.checkNotNullParameter(map2, "creators"); + m.checkNotNullParameter(map3, "channelPermissions"); + return new StoreState(list, set, map, map2, z2, l, map3); } public boolean equals(Object obj) { @@ -167,7 +183,7 @@ public final class GuildScheduledEventListViewModel extends AppViewModel getCreators() { + return this.creators; + } + public final Map getGuildChannels() { return this.guildChannels; } @@ -202,6 +222,8 @@ public final class GuildScheduledEventListViewModel extends AppViewModel map = this.guildChannels; int hashCode3 = (hashCode2 + (map != null ? map.hashCode() : 0)) * 31; + Map map2 = this.creators; + int hashCode4 = (hashCode3 + (map2 != null ? map2.hashCode() : 0)) * 31; boolean z2 = this.canCreateEvents; if (z2) { z2 = true; @@ -209,14 +231,14 @@ public final class GuildScheduledEventListViewModel extends AppViewModel map2 = this.channelPermissions; - if (map2 != null) { - i = map2.hashCode(); + int hashCode5 = (i5 + (l != null ? l.hashCode() : 0)) * 31; + Map map3 = this.channelPermissions; + if (map3 != null) { + i = map3.hashCode(); } - return hashCode4 + i; + return hashCode5 + i; } public String toString() { @@ -226,6 +248,8 @@ public final class GuildScheduledEventListViewModel extends AppViewModel weakReference, WeakReference weakReference2) { + Channel channel; + m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + long g = guildScheduledEvent.g(); + long h = guildScheduledEvent.h(); + Long b = guildScheduledEvent.b(); + boolean canShareEvent$default = GuildScheduledEventUtilities.Companion.canShareEvent$default(GuildScheduledEventUtilities.Companion, b, g, null, null, null, null, 60, null); + if (b != null) { + channel = this.channelsStore.getChannel(b.longValue()); + } else { + channel = null; + } + if (canShareEvent$default) { + Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(g).y(); + m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…ildId)\n .first()"); + ObservableExtensionsKt.appSubscribe$default(y2, GuildScheduledEventListViewModel.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new GuildScheduledEventListViewModel$onShareClicked$1(weakReference2, channel, h), 62, (Object) null); + return; + } + Context context = weakReference.get(); + if (context != null) { + CharSequence eventDetailsUrl = GuildScheduledEventUrlUtils.INSTANCE.getEventDetailsUrl(g, h); + m.checkNotNullExpressionValue(context, "context"); + c.a.d.m.c(context, eventDetailsUrl, 0, 4); + } + } + public final void toggleRsvp(GuildScheduledEvent guildScheduledEvent) { m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - this.guildScheduledEventsStore.toggleRsvpGuildScheduledEvent(guildScheduledEvent); + this.guildScheduledEventsStore.toggleMeRsvpForEvent(guildScheduledEvent); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventLocationInfo.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventLocationInfo.java index 43cfe646f9..f417975f82 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventLocationInfo.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventLocationInfo.java @@ -78,11 +78,11 @@ public abstract class GuildScheduledEventLocationInfo { public final GuildScheduledEventLocationInfo buildLocationInfo(GuildScheduledEvent guildScheduledEvent, Channel channel) { String str; m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent"); - if (guildScheduledEvent.e() != GuildScheduledEventEntityType.EXTERNAL) { + if (guildScheduledEvent.f() != GuildScheduledEventEntityType.EXTERNAL) { return new ChannelLocation(channel); } - GuildScheduledEventEntityMetadata d = guildScheduledEvent.d(); - if (d == null || (str = d.a()) == null) { + GuildScheduledEventEntityMetadata e = guildScheduledEvent.e(); + if (e == null || (str = e.a()) == null) { str = ""; } return new ExternalLocation(str); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModel.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModel.java index 0165d47a61..42d6631017 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModel.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModel.java @@ -15,6 +15,7 @@ import java.io.Serializable; /* compiled from: GuildScheduledEventModel.kt */ public final class GuildScheduledEventModel implements Serializable { private final Long channelId; + private final Long creatorId; private final String description; private final GuildScheduledEventPickerDate endDate; private final GuildScheduledEventPickerTime endTime; @@ -26,13 +27,14 @@ public final class GuildScheduledEventModel implements Serializable { private final GuildScheduledEventPickerTime startTime; private final Integer userCount; - public GuildScheduledEventModel(long j, String str, Long l, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num) { + public GuildScheduledEventModel(long j, String str, Long l, Long l2, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num) { m.checkNotNullParameter(guildScheduledEventPickerDate, "startDate"); m.checkNotNullParameter(guildScheduledEventPickerTime, "startTime"); m.checkNotNullParameter(guildScheduledEventEntityType, "entityType"); this.guildId = j; this.name = str; this.channelId = l; + this.creatorId = l2; this.startDate = guildScheduledEventPickerDate; this.startTime = guildScheduledEventPickerTime; this.endDate = guildScheduledEventPickerDate2; @@ -43,19 +45,23 @@ public final class GuildScheduledEventModel implements Serializable { this.userCount = num; } - public static /* synthetic */ GuildScheduledEventModel copy$default(GuildScheduledEventModel guildScheduledEventModel, long j, String str, Long l, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num, int i, Object obj) { - return guildScheduledEventModel.copy((i & 1) != 0 ? guildScheduledEventModel.guildId : j, (i & 2) != 0 ? guildScheduledEventModel.name : str, (i & 4) != 0 ? guildScheduledEventModel.channelId : l, (i & 8) != 0 ? guildScheduledEventModel.startDate : guildScheduledEventPickerDate, (i & 16) != 0 ? guildScheduledEventModel.startTime : guildScheduledEventPickerTime, (i & 32) != 0 ? guildScheduledEventModel.endDate : guildScheduledEventPickerDate2, (i & 64) != 0 ? guildScheduledEventModel.endTime : guildScheduledEventPickerTime2, (i & 128) != 0 ? guildScheduledEventModel.description : str2, (i & 256) != 0 ? guildScheduledEventModel.entityType : guildScheduledEventEntityType, (i & 512) != 0 ? guildScheduledEventModel.entityMetadata : guildScheduledEventEntityMetadata, (i & 1024) != 0 ? guildScheduledEventModel.userCount : num); + public static /* synthetic */ GuildScheduledEventModel copy$default(GuildScheduledEventModel guildScheduledEventModel, long j, String str, Long l, Long l2, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num, int i, Object obj) { + return guildScheduledEventModel.copy((i & 1) != 0 ? guildScheduledEventModel.guildId : j, (i & 2) != 0 ? guildScheduledEventModel.name : str, (i & 4) != 0 ? guildScheduledEventModel.channelId : l, (i & 8) != 0 ? guildScheduledEventModel.creatorId : l2, (i & 16) != 0 ? guildScheduledEventModel.startDate : guildScheduledEventPickerDate, (i & 32) != 0 ? guildScheduledEventModel.startTime : guildScheduledEventPickerTime, (i & 64) != 0 ? guildScheduledEventModel.endDate : guildScheduledEventPickerDate2, (i & 128) != 0 ? guildScheduledEventModel.endTime : guildScheduledEventPickerTime2, (i & 256) != 0 ? guildScheduledEventModel.description : str2, (i & 512) != 0 ? guildScheduledEventModel.entityType : guildScheduledEventEntityType, (i & 1024) != 0 ? guildScheduledEventModel.entityMetadata : guildScheduledEventEntityMetadata, (i & 2048) != 0 ? guildScheduledEventModel.userCount : num); } public final long component1() { return this.guildId; } - public final GuildScheduledEventEntityMetadata component10() { + public final GuildScheduledEventEntityType component10() { + return this.entityType; + } + + public final GuildScheduledEventEntityMetadata component11() { return this.entityMetadata; } - public final Integer component11() { + public final Integer component12() { return this.userCount; } @@ -67,35 +73,35 @@ public final class GuildScheduledEventModel implements Serializable { return this.channelId; } - public final GuildScheduledEventPickerDate component4() { + public final Long component4() { + return this.creatorId; + } + + public final GuildScheduledEventPickerDate component5() { return this.startDate; } - public final GuildScheduledEventPickerTime component5() { + public final GuildScheduledEventPickerTime component6() { return this.startTime; } - public final GuildScheduledEventPickerDate component6() { + public final GuildScheduledEventPickerDate component7() { return this.endDate; } - public final GuildScheduledEventPickerTime component7() { + public final GuildScheduledEventPickerTime component8() { return this.endTime; } - public final String component8() { + public final String component9() { return this.description; } - public final GuildScheduledEventEntityType component9() { - return this.entityType; - } - - public final GuildScheduledEventModel copy(long j, String str, Long l, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num) { + public final GuildScheduledEventModel copy(long j, String str, Long l, Long l2, GuildScheduledEventPickerDate guildScheduledEventPickerDate, GuildScheduledEventPickerTime guildScheduledEventPickerTime, GuildScheduledEventPickerDate guildScheduledEventPickerDate2, GuildScheduledEventPickerTime guildScheduledEventPickerTime2, String str2, GuildScheduledEventEntityType guildScheduledEventEntityType, GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata, Integer num) { m.checkNotNullParameter(guildScheduledEventPickerDate, "startDate"); m.checkNotNullParameter(guildScheduledEventPickerTime, "startTime"); m.checkNotNullParameter(guildScheduledEventEntityType, "entityType"); - return new GuildScheduledEventModel(j, str, l, guildScheduledEventPickerDate, guildScheduledEventPickerTime, guildScheduledEventPickerDate2, guildScheduledEventPickerTime2, str2, guildScheduledEventEntityType, guildScheduledEventEntityMetadata, num); + return new GuildScheduledEventModel(j, str, l, l2, guildScheduledEventPickerDate, guildScheduledEventPickerTime, guildScheduledEventPickerDate2, guildScheduledEventPickerTime2, str2, guildScheduledEventEntityType, guildScheduledEventEntityMetadata, num); } @Override // java.lang.Object @@ -107,13 +113,17 @@ public final class GuildScheduledEventModel implements Serializable { return false; } GuildScheduledEventModel guildScheduledEventModel = (GuildScheduledEventModel) obj; - return this.guildId == guildScheduledEventModel.guildId && m.areEqual(this.name, guildScheduledEventModel.name) && m.areEqual(this.channelId, guildScheduledEventModel.channelId) && m.areEqual(this.startDate, guildScheduledEventModel.startDate) && m.areEqual(this.startTime, guildScheduledEventModel.startTime) && m.areEqual(this.endDate, guildScheduledEventModel.endDate) && m.areEqual(this.endTime, guildScheduledEventModel.endTime) && m.areEqual(this.description, guildScheduledEventModel.description) && m.areEqual(this.entityType, guildScheduledEventModel.entityType) && m.areEqual(this.entityMetadata, guildScheduledEventModel.entityMetadata) && m.areEqual(this.userCount, guildScheduledEventModel.userCount); + return this.guildId == guildScheduledEventModel.guildId && m.areEqual(this.name, guildScheduledEventModel.name) && m.areEqual(this.channelId, guildScheduledEventModel.channelId) && m.areEqual(this.creatorId, guildScheduledEventModel.creatorId) && m.areEqual(this.startDate, guildScheduledEventModel.startDate) && m.areEqual(this.startTime, guildScheduledEventModel.startTime) && m.areEqual(this.endDate, guildScheduledEventModel.endDate) && m.areEqual(this.endTime, guildScheduledEventModel.endTime) && m.areEqual(this.description, guildScheduledEventModel.description) && m.areEqual(this.entityType, guildScheduledEventModel.entityType) && m.areEqual(this.entityMetadata, guildScheduledEventModel.entityMetadata) && m.areEqual(this.userCount, guildScheduledEventModel.userCount); } public final Long getChannelId() { return this.channelId; } + public final Long getCreatorId() { + return this.creatorId; + } + public final String getDescription() { return this.description; } @@ -162,25 +172,27 @@ public final class GuildScheduledEventModel implements Serializable { int hashCode = (a + (str != null ? str.hashCode() : 0)) * 31; Long l = this.channelId; int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31; + Long l2 = this.creatorId; + int hashCode3 = (hashCode2 + (l2 != null ? l2.hashCode() : 0)) * 31; GuildScheduledEventPickerDate guildScheduledEventPickerDate = this.startDate; - int hashCode3 = (hashCode2 + (guildScheduledEventPickerDate != null ? guildScheduledEventPickerDate.hashCode() : 0)) * 31; + int hashCode4 = (hashCode3 + (guildScheduledEventPickerDate != null ? guildScheduledEventPickerDate.hashCode() : 0)) * 31; GuildScheduledEventPickerTime guildScheduledEventPickerTime = this.startTime; - int hashCode4 = (hashCode3 + (guildScheduledEventPickerTime != null ? guildScheduledEventPickerTime.hashCode() : 0)) * 31; + int hashCode5 = (hashCode4 + (guildScheduledEventPickerTime != null ? guildScheduledEventPickerTime.hashCode() : 0)) * 31; GuildScheduledEventPickerDate guildScheduledEventPickerDate2 = this.endDate; - int hashCode5 = (hashCode4 + (guildScheduledEventPickerDate2 != null ? guildScheduledEventPickerDate2.hashCode() : 0)) * 31; + int hashCode6 = (hashCode5 + (guildScheduledEventPickerDate2 != null ? guildScheduledEventPickerDate2.hashCode() : 0)) * 31; GuildScheduledEventPickerTime guildScheduledEventPickerTime2 = this.endTime; - int hashCode6 = (hashCode5 + (guildScheduledEventPickerTime2 != null ? guildScheduledEventPickerTime2.hashCode() : 0)) * 31; + int hashCode7 = (hashCode6 + (guildScheduledEventPickerTime2 != null ? guildScheduledEventPickerTime2.hashCode() : 0)) * 31; String str2 = this.description; - int hashCode7 = (hashCode6 + (str2 != null ? str2.hashCode() : 0)) * 31; + int hashCode8 = (hashCode7 + (str2 != null ? str2.hashCode() : 0)) * 31; GuildScheduledEventEntityType guildScheduledEventEntityType = this.entityType; - int hashCode8 = (hashCode7 + (guildScheduledEventEntityType != null ? guildScheduledEventEntityType.hashCode() : 0)) * 31; + int hashCode9 = (hashCode8 + (guildScheduledEventEntityType != null ? guildScheduledEventEntityType.hashCode() : 0)) * 31; GuildScheduledEventEntityMetadata guildScheduledEventEntityMetadata = this.entityMetadata; - int hashCode9 = (hashCode8 + (guildScheduledEventEntityMetadata != null ? guildScheduledEventEntityMetadata.hashCode() : 0)) * 31; + int hashCode10 = (hashCode9 + (guildScheduledEventEntityMetadata != null ? guildScheduledEventEntityMetadata.hashCode() : 0)) * 31; Integer num = this.userCount; if (num != null) { i = num.hashCode(); } - return hashCode9 + i; + return hashCode10 + i; } public final RestAPIParams.CreateGuildScheduledEventBody toCreateRequestBody() { @@ -207,6 +219,8 @@ public final class GuildScheduledEventModel implements Serializable { R.append(this.name); R.append(", channelId="); R.append(this.channelId); + R.append(", creatorId="); + R.append(this.creatorId); R.append(", startDate="); R.append(this.startDate); R.append(", startTime="); @@ -242,8 +256,8 @@ public final class GuildScheduledEventModel implements Serializable { NullSerializable aVar = (guildScheduledEventEntityMetadata == null || guildScheduledEventEntityMetadata.b()) ? new NullSerializable.a(null, 1) : new NullSerializable.b(this.entityMetadata); String str2 = this.description; StageInstancePrivacyLevel stageInstancePrivacyLevel = StageInstancePrivacyLevel.GUILD_ONLY; - String uTCDateTime$default = guildScheduledEvent.j().g() == millis ? null : TimeUtils.toUTCDateTime$default(Long.valueOf(millis), null, 2, null); - UtcDateTime i = guildScheduledEvent.i(); - return new RestAPIParams.UpdateGuildScheduledEventBody(str, str2, stageInstancePrivacyLevel, uTCDateTime$default, m.areEqual(i != null ? Long.valueOf(i.g()) : null, valueOf) ? null : TimeUtils.toUTCDateTime$default(valueOf, null, 2, null), bVar, this.entityType, aVar, null, 256, null); + String uTCDateTime$default = guildScheduledEvent.k().g() == millis ? null : TimeUtils.toUTCDateTime$default(Long.valueOf(millis), null, 2, null); + UtcDateTime j = guildScheduledEvent.j(); + return new RestAPIParams.UpdateGuildScheduledEventBody(str, str2, stageInstancePrivacyLevel, uTCDateTime$default, m.areEqual(j != null ? Long.valueOf(j.g()) : null, valueOf) ? null : TimeUtils.toUTCDateTime$default(valueOf, null, 2, null), bVar, this.entityType, aVar, null, 256, null); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModelKt.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModelKt.java index 4153a44484..ad03613ce5 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModelKt.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventModelKt.java @@ -9,19 +9,20 @@ public final class GuildScheduledEventModelKt { public static final GuildScheduledEventModel toModel(GuildScheduledEvent guildScheduledEvent) { m.checkNotNullParameter(guildScheduledEvent, "$this$toModel"); GuildScheduledEventPickerDateTime guildScheduledEventPickerDateTime = GuildScheduledEventPickerDateTime.INSTANCE; - Pair fromUtcDateTime = guildScheduledEventPickerDateTime.fromUtcDateTime(guildScheduledEvent.j()); - UtcDateTime i = guildScheduledEvent.i(); + Pair fromUtcDateTime = guildScheduledEventPickerDateTime.fromUtcDateTime(guildScheduledEvent.k()); + UtcDateTime j = guildScheduledEvent.j(); GuildScheduledEventPickerTime guildScheduledEventPickerTime = null; - Pair fromUtcDateTime2 = i != null ? guildScheduledEventPickerDateTime.fromUtcDateTime(i) : null; - long f = guildScheduledEvent.f(); - String h = guildScheduledEvent.h(); + Pair fromUtcDateTime2 = j != null ? guildScheduledEventPickerDateTime.fromUtcDateTime(j) : null; + long g = guildScheduledEvent.g(); + String i = guildScheduledEvent.i(); Long b = guildScheduledEvent.b(); + Long c2 = guildScheduledEvent.c(); GuildScheduledEventPickerDate first = fromUtcDateTime.getFirst(); GuildScheduledEventPickerTime second = fromUtcDateTime.getSecond(); GuildScheduledEventPickerDate first2 = fromUtcDateTime2 != null ? fromUtcDateTime2.getFirst() : null; if (fromUtcDateTime2 != null) { guildScheduledEventPickerTime = fromUtcDateTime2.getSecond(); } - return new GuildScheduledEventModel(f, h, b, first, second, first2, guildScheduledEventPickerTime, guildScheduledEvent.c(), guildScheduledEvent.e(), guildScheduledEvent.d(), guildScheduledEvent.l()); + return new GuildScheduledEventModel(g, i, b, c2, first, second, first2, guildScheduledEventPickerTime, guildScheduledEvent.d(), guildScheduledEvent.f(), guildScheduledEvent.e(), guildScheduledEvent.m()); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventSettingsViewModel.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventSettingsViewModel.java index dba63b962a..4885feea67 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventSettingsViewModel.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/GuildScheduledEventSettingsViewModel.java @@ -136,9 +136,8 @@ public final class GuildScheduledEventSettingsViewModel extends AppViewModel generateAppropriateStartDateTime = GuildScheduledEventPickerDateTime.INSTANCE.generateAppropriateStartDateTime(); - updateViewState(new ViewState.Initialized(guildScheduledEventModel == null ? new GuildScheduledEventModel(j, null, l2, generateAppropriateStartDateTime.getFirst(), generateAppropriateStartDateTime.getSecond(), null, null, null, guildScheduledEventEntityType, GuildScheduledEventEntityMetadata.Companion.a(guildScheduledEventEntityType2, str), Integer.valueOf(i)) : guildScheduledEventModel, guildScheduledEvent)); + updateViewState(new ViewState.Initialized(guildScheduledEventModel == null ? new GuildScheduledEventModel(j, null, l2, null, generateAppropriateStartDateTime.getFirst(), generateAppropriateStartDateTime.getSecond(), null, null, null, guildScheduledEventEntityType, GuildScheduledEventEntityMetadata.Companion.a(guildScheduledEventEntityType, str), Integer.valueOf(i)) : guildScheduledEventModel, guildScheduledEvent)); } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ @@ -182,17 +179,17 @@ public final class GuildScheduledEventSettingsViewModel extends AppViewModel { - public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; +public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2 extends o implements Function1 { + public final /* synthetic */ UserGuildMember $creator; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) { - super(0); - this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; - this.$viewState = viewState; + /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ + /* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2$1 reason: invalid class name */ + public static final class AnonymousClass1 extends o implements Function1 { + public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2 this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public AnonymousClass1(WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2 widgetGuildScheduledEventDetailsBottomSheet$configureUi$2) { + super(1); + this.this$0 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Hook hook) { + invoke(hook); + return Unit.a; + } + + public final void invoke(Hook hook) { + m.checkNotNullParameter(hook, "$receiver"); + hook.b = this.this$0.$creator.getNickOrUserName(); + Context context = this.this$0.this$0.getContext(); + if (context != null) { + FontUtils fontUtils = FontUtils.INSTANCE; + m.checkNotNullExpressionValue(context, "ctx"); + Typeface themedFont = fontUtils.getThemedFont(context, R.attr.font_primary_semibold); + if (themedFont != null) { + hook.a.add(new TypefaceSpanCompat(themedFont)); + } + } + hook.a.add(new ForegroundColorSpan(GuildMember.Companion.getColor(this.this$0.$creator.getGuildMember(), ColorCompat.getThemedColor(this.this$0.this$0.getContext(), (int) R.attr.colorHeaderPrimary)))); + } } - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final void mo1invoke() { - WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion; - Context requireContext = this.this$0.requireContext(); - m.checkNotNullExpressionValue(requireContext, "requireContext()"); - WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), WidgetGuildScheduledEventDetailsBottomSheet.access$getPreviewLauncher$p(this.this$0), false, 16, null); + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, UserGuildMember userGuildMember) { + super(1); + this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; + this.$creator = userGuildMember; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(RenderContext renderContext) { + invoke(renderContext); + return Unit.a; + } + + public final void invoke(RenderContext renderContext) { + m.checkNotNullParameter(renderContext, "$receiver"); + renderContext.a("usernameHook", new AnonymousClass1(this)); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3.java index 3a2f4032e6..ec4a28e55e 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3.java @@ -1,21 +1,30 @@ package com.discord.widgets.guildscheduledevent; +import android.content.Context; +import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; +import com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent; +import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3 extends o implements Function0 { + public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; + this.$viewState = viewState; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0).onRsvpButtonClicked(); + WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion; + Context requireContext = this.this$0.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), WidgetGuildScheduledEventDetailsBottomSheet.access$getPreviewLauncher$p(this.this$0), false, 16, null); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4.java index 69d54363d1..5204dfb249 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4.java @@ -1,68 +1,21 @@ package com.discord.widgets.guildscheduledevent; -import android.content.Context; -import com.discord.api.channel.Channel; -import com.discord.stores.StoreStream; -import com.discord.utilities.channel.ChannelInviteLaunchUtils; -import com.discord.utilities.guildscheduledevent.GuildScheduledEventUtilities; -import com.discord.utilities.rx.ObservableExtensionsKt; -import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; -import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; -import kotlin.jvm.functions.Function1; -import rx.Observable; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 extends o implements Function0 { - public final /* synthetic */ Channel $channel; - public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; - /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ - /* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4$1 reason: invalid class name */ - public static final class AnonymousClass1 extends o implements Function1 { - public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 this$0; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 widgetGuildScheduledEventDetailsBottomSheet$configureUi$4) { - super(1); - this.this$0 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4; - } - - /* Return type fixed from 'java.lang.Object' to match base method */ - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ - @Override // kotlin.jvm.functions.Function1 - public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { - invoke(channel); - return Unit.a; - } - - public final void invoke(Channel channel) { - ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE; - WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 widgetGuildScheduledEventDetailsBottomSheet$configureUi$4 = this.this$0; - WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.this$0; - Channel channel2 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$channel; - if (channel2 != null) { - channel = channel2; - } - ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, widgetGuildScheduledEventDetailsBottomSheet, channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$viewState).getGuildScheduledEvent().g()), null, 16, null); - } - } - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState, Channel channel) { + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; - this.$viewState = viewState; - this.$channel = channel; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - Observable y2 = StoreStream.Companion.getChannels().observeDefaultChannel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().f()).y(); - m.checkNotNullExpressionValue(y2, "StoreStream.getChannels(…d)\n .first()"); - ObservableExtensionsKt.appSubscribe$default(y2, this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); + WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0).onRsvpButtonClicked(); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5.java index 0a14bb919b..350d8c559e 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5.java @@ -1,31 +1,22 @@ package com.discord.widgets.guildscheduledevent; -import androidx.fragment.app.FragmentManager; -import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; -import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsExtrasBottomSheet; -import d0.z.d.m; import d0.z.d.o; +import java.lang.ref.WeakReference; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5 extends o implements Function0 { - public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) { + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; - this.$viewState = viewState; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - this.this$0.dismiss(); - WidgetGuildScheduledEventDetailsExtrasBottomSheet.Companion companion = WidgetGuildScheduledEventDetailsExtrasBottomSheet.Companion; - FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); - m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - companion.show(parentFragmentManager, ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g()); + WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0).onShareButtonClicked(new WeakReference<>(this.this$0.requireContext()), new WeakReference<>(this.this$0)); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6.java index 3a610cd1eb..414265dadc 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6.java @@ -1,29 +1,31 @@ package com.discord.widgets.guildscheduledevent; -import com.discord.api.channel.Channel; -import com.discord.widgets.voice.VoiceUtils; +import androidx.fragment.app.FragmentManager; +import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel; +import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsExtrasBottomSheet; +import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6 extends o implements Function0 { - public final /* synthetic */ Channel $channel; + public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, Channel channel) { + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; - this.$channel = channel; + this.$viewState = viewState; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { this.this$0.dismiss(); - Channel channel = this.$channel; - if (channel != null) { - VoiceUtils.handleCallChannel(channel, this.this$0); - } + WidgetGuildScheduledEventDetailsExtrasBottomSheet.Companion companion = WidgetGuildScheduledEventDetailsExtrasBottomSheet.Companion; + FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); + m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); + companion.show(parentFragmentManager, ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h()); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7.java index 2a32a2959e..2224ef4d35 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7.java @@ -1,44 +1,29 @@ package com.discord.widgets.guildscheduledevent; -import android.content.Context; -import d0.z.d.m; +import com.discord.api.channel.Channel; +import com.discord.widgets.voice.VoiceUtils; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7 extends o implements Function0 { + public final /* synthetic */ Channel $channel; public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; - /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ - /* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7$1 reason: invalid class name */ - public static final class AnonymousClass1 extends o implements Function0 { - public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7 this$0; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7 widgetGuildScheduledEventDetailsBottomSheet$configureUi$7) { - super(0); - this.this$0 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$7; - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final void mo1invoke() { - this.this$0.this$0.dismiss(); - } - } - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, Channel channel) { super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; + this.$channel = channel; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - GuildScheduledEventDetailsViewModel access$getViewModel$p = WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0); - Context requireContext = this.this$0.requireContext(); - m.checkNotNullExpressionValue(requireContext, "requireContext()"); - access$getViewModel$p.endEventClicked(requireContext, new AnonymousClass1(this)); + this.this$0.dismiss(); + Channel channel = this.$channel; + if (channel != null) { + VoiceUtils.handleCallChannel(channel, this.this$0); + } } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8.java index f920cae050..d2d8789971 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8.java @@ -1,17 +1,44 @@ package com.discord.widgets.guildscheduledevent; -import android.view.View; +import android.content.Context; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function0; /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ -public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8 implements View.OnClickListener { +public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8 extends o implements Function0 { public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; + /* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ + /* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8$1 reason: invalid class name */ + public static final class AnonymousClass1 extends o implements Function0 { + public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8 this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public AnonymousClass1(WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8 widgetGuildScheduledEventDetailsBottomSheet$configureUi$8) { + super(0); + this.this$0 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$8; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final void mo1invoke() { + this.this$0.this$0.dismiss(); + } + } + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { + super(0); this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; } - @Override // android.view.View.OnClickListener - public final void onClick(View view) { - WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0).onGuildNameClicked(); - this.this$0.dismiss(); + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final void mo1invoke() { + GuildScheduledEventDetailsViewModel access$getViewModel$p = WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0); + Context requireContext = this.this$0.requireContext(); + m.checkNotNullExpressionValue(requireContext, "requireContext()"); + access$getViewModel$p.endEventClicked(requireContext, new AnonymousClass1(this)); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9.java new file mode 100644 index 0000000000..0fcccacc93 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9.java @@ -0,0 +1,17 @@ +package com.discord.widgets.guildscheduledevent; + +import android.view.View; +/* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */ +public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9 implements View.OnClickListener { + public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0; + + public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) { + this.this$0 = widgetGuildScheduledEventDetailsBottomSheet; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + WidgetGuildScheduledEventDetailsBottomSheet.access$getViewModel$p(this.this$0).onGuildNameClicked(); + this.this$0.dismiss(); + } +} diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$descriptionParser$2.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$descriptionParser$2.java index 37bec2d310..df0f7485d3 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$descriptionParser$2.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet$descriptionParser$2.java @@ -17,7 +17,7 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet$descriptionParser @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final GuildScheduledEventDescriptionParser mo1invoke() { - LinkifiedTextView linkifiedTextView = this.this$0.getBinding().f; + LinkifiedTextView linkifiedTextView = this.this$0.getBinding().h; m.checkNotNullExpressionValue(linkifiedTextView, "binding.guildScheduledEventDetailsDescText"); return new GuildScheduledEventDescriptionParser(linkifiedTextView); } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet.java index cd1b75244f..f180f034e9 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsBottomSheet.java @@ -22,8 +22,10 @@ import com.discord.R; import com.discord.api.channel.Channel; import com.discord.app.AppBottomSheet; import com.discord.databinding.WidgetGuildScheduledEventDetailsBottomSheetBinding; +import com.discord.models.guild.UserGuildMember; import com.discord.stores.StoreNotices; import com.discord.stores.StoreStream; +import com.discord.utilities.extensions.SimpleDraweeViewExtensionsKt; import com.discord.utilities.font.FontUtils; import com.discord.utilities.icon.IconUtils; import com.discord.utilities.images.MGImages; @@ -128,36 +130,36 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom } private final void configureForRsvpUsersFetchState(EventDetailsRsvpUsersFetchState eventDetailsRsvpUsersFetchState) { - ProgressBar progressBar = getBinding().q; + ProgressBar progressBar = getBinding().f1907s; d0.z.d.m.checkNotNullExpressionValue(progressBar, "binding.loadingIndicator"); progressBar.setVisibility(8); - ConstraintLayout constraintLayout = getBinding().l; + ConstraintLayout constraintLayout = getBinding().n; d0.z.d.m.checkNotNullExpressionValue(constraintLayout, "binding.guildScheduledEventEmptyOrErrorContainer"); constraintLayout.setVisibility(8); - RecyclerView recyclerView = getBinding().p; + RecyclerView recyclerView = getBinding().r; d0.z.d.m.checkNotNullExpressionValue(recyclerView, "binding.guildScheduledEventRsvpListRecyclerView"); recyclerView.setVisibility(8); int ordinal = eventDetailsRsvpUsersFetchState.ordinal(); if (ordinal == 0) { - ProgressBar progressBar2 = getBinding().q; + ProgressBar progressBar2 = getBinding().f1907s; d0.z.d.m.checkNotNullExpressionValue(progressBar2, "binding.loadingIndicator"); progressBar2.setVisibility(0); } else if (ordinal == 1) { - ConstraintLayout constraintLayout2 = getBinding().l; + ConstraintLayout constraintLayout2 = getBinding().n; d0.z.d.m.checkNotNullExpressionValue(constraintLayout2, "binding.guildScheduledEventEmptyOrErrorContainer"); constraintLayout2.setVisibility(0); - TextView textView = getBinding().m; + TextView textView = getBinding().o; d0.z.d.m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventEmptyOrErrorTitle"); b.n(textView, R.string.guild_event_details_user_list_fetch_error, new Object[0], null, 4); } else if (ordinal == 2) { - ConstraintLayout constraintLayout3 = getBinding().l; + ConstraintLayout constraintLayout3 = getBinding().n; d0.z.d.m.checkNotNullExpressionValue(constraintLayout3, "binding.guildScheduledEventEmptyOrErrorContainer"); constraintLayout3.setVisibility(0); - TextView textView2 = getBinding().m; + TextView textView2 = getBinding().o; d0.z.d.m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventEmptyOrErrorTitle"); b.n(textView2, R.string.guild_event_details_user_list_empty_title, new Object[0], null, 4); } else if (ordinal == 3) { - RecyclerView recyclerView2 = getBinding().p; + RecyclerView recyclerView2 = getBinding().r; d0.z.d.m.checkNotNullExpressionValue(recyclerView2, "binding.guildScheduledEventRsvpListRecyclerView"); recyclerView2.setVisibility(0); } @@ -168,12 +170,12 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom if (eventDetailsSection == eventDetailsSection2) { configureForRsvpUsersFetchState(eventDetailsRsvpUsersFetchState); } - ConstraintLayout constraintLayout = getBinding().n; + ConstraintLayout constraintLayout = getBinding().p; d0.z.d.m.checkNotNullExpressionValue(constraintLayout, "binding.guildScheduledEventInfoContainer"); boolean z2 = true; int i = 0; constraintLayout.setVisibility(eventDetailsSection == EventDetailsSection.EVENT_INFO ? 0 : 8); - ConstraintLayout constraintLayout2 = getBinding().o; + ConstraintLayout constraintLayout2 = getBinding().q; d0.z.d.m.checkNotNullExpressionValue(constraintLayout2, "binding.guildScheduledEventRsvpListContainer"); if (eventDetailsSection != eventDetailsSection2) { z2 = false; @@ -185,14 +187,14 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom } private final void configureSegmentControl(int i) { - SegmentedControlContainer.b(getBinding().r, 0, 1); - getBinding().r.setOnSegmentSelectedChangeListener(new WidgetGuildScheduledEventDetailsBottomSheet$configureSegmentControl$1(this)); - getBinding().r.setSelectedIndex(i); - CardSegment cardSegment = getBinding().f1907s; + SegmentedControlContainer.b(getBinding().t, 0, 1); + getBinding().t.setOnSegmentSelectedChangeListener(new WidgetGuildScheduledEventDetailsBottomSheet$configureSegmentControl$1(this)); + getBinding().t.setSelectedIndex(i); + CardSegment cardSegment = getBinding().u; Context requireContext = requireContext(); d0.z.d.m.checkNotNullExpressionValue(requireContext, "requireContext()"); cardSegment.setText(b.h(requireContext, R.string.guild_event_details_info_tab_title, new Object[0], null, 4)); - CardSegment cardSegment2 = getBinding().t; + CardSegment cardSegment2 = getBinding().v; Context requireContext2 = requireContext(); d0.z.d.m.checkNotNullExpressionValue(requireContext2, "requireContext()"); cardSegment2.setText(b.h(requireContext2, R.string.indicate_rsvp, new Object[0], null, 4)); @@ -207,14 +209,14 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom GuildScheduledEventDetailsViewModel.ViewState.Initialized initialized = (GuildScheduledEventDetailsViewModel.ViewState.Initialized) viewState; configureSegmentControl(initialized.getSegmentedControlIndex()); configureForSection(initialized.getSection(), initialized.getRsvpUsersFetchState()); - getBinding().e.configure(initialized.getGuildScheduledEvent()); - TextView textView = getBinding().k; + getBinding().g.configure(initialized.getGuildScheduledEvent()); + TextView textView = getBinding().m; d0.z.d.m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventDetailsTitleText"); - textView.setText(initialized.getGuildScheduledEvent().h()); - SimpleDraweeView simpleDraweeView = getBinding().g; + textView.setText(initialized.getGuildScheduledEvent().i()); + SimpleDraweeView simpleDraweeView = getBinding().i; d0.z.d.m.checkNotNullExpressionValue(simpleDraweeView, "binding.guildScheduledEventDetailsGuildIcon"); IconUtils.setIcon$default((ImageView) simpleDraweeView, initialized.getGuild(), 0, (MGImages.ChangeDetector) null, false, 28, (Object) null); - TextView textView2 = getBinding().h; + TextView textView2 = getBinding().j; d0.z.d.m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventDetailsGuildName"); textView2.setText(initialized.getGuild().getName()); getBinding().f1906c.setImageResource(initialized.getLocationInfo().getLocationIcon()); @@ -224,15 +226,15 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom Context requireContext = requireContext(); d0.z.d.m.checkNotNullExpressionValue(requireContext, "requireContext()"); linkifiedTextView.setText(locationParser.getTextFromLocation(requireContext, initialized.getLocationInfo())); - ImageView imageView = getBinding().j; + ImageView imageView = getBinding().l; d0.z.d.m.checkNotNullExpressionValue(imageView, "binding.guildScheduledEventDetailsRsvpIcon"); - imageView.setVisibility(initialized.getGuildScheduledEvent().l() != null ? 0 : 8); - TextView textView3 = getBinding().i; + imageView.setVisibility(initialized.getGuildScheduledEvent().m() != null ? 0 : 8); + TextView textView3 = getBinding().k; d0.z.d.m.checkNotNullExpressionValue(textView3, "binding.guildScheduledEventDetailsRsvpCount"); - Integer l = initialized.getGuildScheduledEvent().l(); + Integer m = initialized.getGuildScheduledEvent().m(); Channel channel = null; - if (l != null) { - int intValue = l.intValue(); + if (m != null) { + int intValue = m.intValue(); Context requireContext2 = requireContext(); d0.z.d.m.checkNotNullExpressionValue(requireContext2, "requireContext()"); Context requireContext3 = requireContext(); @@ -242,7 +244,29 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom charSequence = null; } ViewExtensions.setTextAndVisibilityBy(textView3, charSequence); - getDescriptionParser().configureDescription(initialized.getGuildScheduledEvent().c(), initialized.getGuildScheduledEvent().f()); + UserGuildMember creator = initialized.getCreator(); + if (creator != null) { + TextView textView4 = getBinding().e; + d0.z.d.m.checkNotNullExpressionValue(textView4, "binding.guildScheduledEventDetailsCreatedBy"); + textView4.setVisibility(0); + SimpleDraweeView simpleDraweeView2 = getBinding().f; + d0.z.d.m.checkNotNullExpressionValue(simpleDraweeView2, "binding.guildScheduledEventDetailsCreatorAvatar"); + simpleDraweeView2.setVisibility(0); + TextView textView5 = getBinding().e; + d0.z.d.m.checkNotNullExpressionValue(textView5, "binding.guildScheduledEventDetailsCreatedBy"); + b.m(textView5, R.string.guild_event_created_by_hook, new Object[]{creator.getNickOrUserName()}, new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(this, creator)); + SimpleDraweeView simpleDraweeView3 = getBinding().f; + d0.z.d.m.checkNotNullExpressionValue(simpleDraweeView3, "binding.guildScheduledEventDetailsCreatorAvatar"); + SimpleDraweeViewExtensionsKt.configureCreator(simpleDraweeView3, creator); + } else { + TextView textView6 = getBinding().e; + d0.z.d.m.checkNotNullExpressionValue(textView6, "binding.guildScheduledEventDetailsCreatedBy"); + textView6.setVisibility(8); + SimpleDraweeView simpleDraweeView4 = getBinding().f; + d0.z.d.m.checkNotNullExpressionValue(simpleDraweeView4, "binding.guildScheduledEventDetailsCreatorAvatar"); + simpleDraweeView4.setVisibility(8); + } + getDescriptionParser().configureDescription(initialized.getGuildScheduledEvent().d(), initialized.getGuildScheduledEvent().g()); GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView = getBinding().b; d0.z.d.m.checkNotNullExpressionValue(guildScheduledEventBottomButtonView, "binding.guildScheduledEventDetailsButtonView"); guildScheduledEventBottomButtonView.setVisibility(0); @@ -254,8 +278,8 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom if (channelLocation != null) { channel = channelLocation.getChannel(); } - getBinding().b.configureForDetails(initialized.getGuildScheduledEvent(), initialized.isRsvped(), initialized.isConnected(), initialized.getCanShare(), initialized.getCanStartEvent(), initialized.getCanConnect(), initialized.isDeveloperMode(), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(this), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(this, viewState, channel), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(this, channel), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(this)); - getBinding().h.setOnClickListener(new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8(this)); + getBinding().b.configureForDetails(initialized.getGuildScheduledEvent(), initialized.isRsvped(), initialized.isConnected(), initialized.getCanStartEvent(), initialized.getCanConnect(), initialized.isDeveloperMode(), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(this), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(this), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(this, channel), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$8(this)); + getBinding().j.setOnClickListener(new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$9(this)); GuildScheduledEventRsvpUserListAdapter guildScheduledEventRsvpUserListAdapter = this.adapter; if (guildScheduledEventRsvpUserListAdapter == null) { d0.z.d.m.throwUninitializedPropertyAccessException("adapter"); @@ -298,10 +322,10 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom public void onViewCreated(View view, Bundle bundle) { d0.z.d.m.checkNotNullParameter(view, "view"); super.onViewCreated(view, bundle); - RecyclerView recyclerView = getBinding().p; + RecyclerView recyclerView = getBinding().r; d0.z.d.m.checkNotNullExpressionValue(recyclerView, "binding.guildScheduledEventRsvpListRecyclerView"); this.adapter = new GuildScheduledEventRsvpUserListAdapter(recyclerView, new WidgetGuildScheduledEventDetailsBottomSheet$onViewCreated$1(this)); - RecyclerView recyclerView2 = getBinding().p; + RecyclerView recyclerView2 = getBinding().r; GuildScheduledEventRsvpUserListAdapter guildScheduledEventRsvpUserListAdapter = this.adapter; if (guildScheduledEventRsvpUserListAdapter == null) { d0.z.d.m.throwUninitializedPropertyAccessException("adapter"); diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$2.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$2.java index 5aa6a8f9fb..b4f3f73e0b 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$2.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$2.java @@ -20,6 +20,6 @@ public final class WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion; Context requireContext = this.this$0.requireContext(); m.checkNotNullExpressionValue(requireContext, "requireContext()"); - WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), WidgetGuildScheduledEventDetailsExtrasBottomSheet.access$getPreviewLauncher$p(this.this$0), false, 16, null); + WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), WidgetGuildScheduledEventDetailsExtrasBottomSheet.access$getPreviewLauncher$p(this.this$0), false, 16, null); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$3.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$3.java index 027649f2f3..0d4120576a 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$3.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$3.java @@ -21,6 +21,6 @@ public final class WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi WidgetGuildScheduledEventLocationSelect.Companion companion = WidgetGuildScheduledEventLocationSelect.Companion; Context requireContext = this.this$0.requireContext(); m.checkNotNullExpressionValue(requireContext, "requireContext()"); - companion.launchForEdit(requireContext, ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().f(), ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g()); + companion.launchForEdit(requireContext, ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g(), ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h()); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$5.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$5.java index 907ca273a7..7e18b9dba0 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$5.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$5.java @@ -77,6 +77,6 @@ public final class WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi String string = this.this$0.requireContext().getString(R.string.delete_event); Context requireContext = this.this$0.requireContext(); m.checkNotNullExpressionValue(requireContext, "requireContext()"); - WidgetNoticeDialog.Companion.show$default(companion, childFragmentManager, string, b.h(requireContext, R.string.delete_stage_event_confirmation_description, new Object[]{((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h()}, null, 4), this.this$0.requireContext().getString(R.string.delete_event), this.this$0.requireContext().getString(R.string.back), g0.mapOf(d0.o.to(Integer.valueOf((int) R.id.notice_ok), new AnonymousClass1(this))), null, null, null, null, null, null, 0, null, 16320, null); + WidgetNoticeDialog.Companion.show$default(companion, childFragmentManager, string, b.h(requireContext, R.string.delete_stage_event_confirmation_description, new Object[]{((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().i()}, null, 4), this.this$0.requireContext().getString(R.string.delete_event), this.this$0.requireContext().getString(R.string.back), g0.mapOf(d0.o.to(Integer.valueOf((int) R.id.notice_ok), new AnonymousClass1(this))), null, null, null, null, null, null, 0, null, 16320, null); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$6.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$6.java index a5f2a457f1..861fa19ba2 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$6.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$6.java @@ -19,6 +19,6 @@ public final class WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi WidgetGuildScheduledEventDetailsExtrasBottomSheet.access$dismissWithActionTaken(this.this$0); Context requireContext = this.this$0.requireContext(); m.checkNotNullExpressionValue(requireContext, "requireContext()"); - c.a.d.m.c(requireContext, String.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().g()), 0, 4); + c.a.d.m.c(requireContext, String.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getGuildScheduledEvent().h()), 0, 4); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$5.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$5.java new file mode 100644 index 0000000000..0efd704be6 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$5.java @@ -0,0 +1,26 @@ +package com.discord.widgets.guildscheduledevent; + +import com.discord.widgets.guildscheduledevent.GuildScheduledEventListItem; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetGuildScheduledEventListBottomSheet.kt */ +public final /* synthetic */ class WidgetGuildScheduledEventListBottomSheet$onViewCreated$5 extends k implements Function1 { + public WidgetGuildScheduledEventListBottomSheet$onViewCreated$5(WidgetGuildScheduledEventListBottomSheet widgetGuildScheduledEventListBottomSheet) { + super(1, widgetGuildScheduledEventListBottomSheet, WidgetGuildScheduledEventListBottomSheet.class, "onShareClicked", "onShareClicked(Lcom/discord/widgets/guildscheduledevent/GuildScheduledEventListItem$Event;)V", 0); + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(GuildScheduledEventListItem.Event event) { + invoke(event); + return Unit.a; + } + + public final void invoke(GuildScheduledEventListItem.Event event) { + m.checkNotNullParameter(event, "p1"); + WidgetGuildScheduledEventListBottomSheet.access$onShareClicked((WidgetGuildScheduledEventListBottomSheet) this.receiver, event); + } +} diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$6.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$7.java similarity index 91% rename from app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$6.java rename to app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$7.java index f16b3175eb..9428e58da1 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$6.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$onViewCreated$7.java @@ -5,10 +5,10 @@ import android.view.View; import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventLocationSelect; import d0.z.d.m; /* compiled from: WidgetGuildScheduledEventListBottomSheet.kt */ -public final class WidgetGuildScheduledEventListBottomSheet$onViewCreated$6 implements View.OnClickListener { +public final class WidgetGuildScheduledEventListBottomSheet$onViewCreated$7 implements View.OnClickListener { public final /* synthetic */ WidgetGuildScheduledEventListBottomSheet this$0; - public WidgetGuildScheduledEventListBottomSheet$onViewCreated$6(WidgetGuildScheduledEventListBottomSheet widgetGuildScheduledEventListBottomSheet) { + public WidgetGuildScheduledEventListBottomSheet$onViewCreated$7(WidgetGuildScheduledEventListBottomSheet widgetGuildScheduledEventListBottomSheet) { this.this$0 = widgetGuildScheduledEventListBottomSheet; } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$viewModel$2.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$viewModel$2.java index 70a3bfd93f..d1ced51f91 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$viewModel$2.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet$viewModel$2.java @@ -17,6 +17,6 @@ public final class WidgetGuildScheduledEventListBottomSheet$viewModel$2 extends @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final AppViewModel mo1invoke() { - return new GuildScheduledEventListViewModel(WidgetGuildScheduledEventListBottomSheet.access$getGuildId$p(this.this$0), WidgetGuildScheduledEventListBottomSheet.access$getChannelId$p(this.this$0), null, null, null, null, null, null, 252, null); + return new GuildScheduledEventListViewModel(WidgetGuildScheduledEventListBottomSheet.access$getGuildId$p(this.this$0), WidgetGuildScheduledEventListBottomSheet.access$getChannelId$p(this.this$0), null, null, null, null, null, null, null, 508, null); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet.java index b5e13ca90c..efe8fa501c 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventListBottomSheet.java @@ -32,6 +32,7 @@ import com.discord.widgets.voice.VoiceUtils; import d0.g; import d0.z.d.a0; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.Objects; import kotlin.Lazy; import kotlin.jvm.functions.Function0; @@ -113,6 +114,10 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe widgetGuildScheduledEventListBottomSheet.onRsvpClicked(event); } + public static final /* synthetic */ void access$onShareClicked(WidgetGuildScheduledEventListBottomSheet widgetGuildScheduledEventListBottomSheet, GuildScheduledEventListItem.Event event) { + widgetGuildScheduledEventListBottomSheet.onShareClicked(event); + } + private final void configureUi(GuildScheduledEventListViewModel.ViewState viewState) { if (!(viewState instanceof GuildScheduledEventListViewModel.ViewState.Loaded)) { viewState = null; @@ -162,7 +167,7 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe WidgetGuildScheduledEventDetailsBottomSheet.Companion companion = WidgetGuildScheduledEventDetailsBottomSheet.Companion; FragmentManager parentFragmentManager = getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - companion.show(parentFragmentManager, event.getEvent().g()); + companion.show(parentFragmentManager, event.getEvent().h()); } private final void onEventStartClicked(GuildScheduledEventListItem.Event event) { @@ -170,7 +175,7 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion; Context requireContext = requireContext(); m.checkNotNullExpressionValue(requireContext, "requireContext()"); - WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(event.getEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(event.getEvent().g(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), this.previewLauncher, false, 16, null); + WidgetPreviewGuildScheduledEvent.Companion.launch$default(companion, requireContext, GuildScheduledEventModelKt.toModel(event.getEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(event.getEvent().h(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), this.previewLauncher, false, 16, null); } } @@ -189,6 +194,10 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe getViewModel().toggleRsvp(event.getEvent()); } + private final void onShareClicked(GuildScheduledEventListItem.Event event) { + getViewModel().onShareClicked(event.getEvent(), new WeakReference<>(requireContext()), new WeakReference<>(this)); + } + @Override // com.discord.app.AppBottomSheet public int getContentViewResId() { return R.layout.widget_guild_scheduled_event_list_bottom_sheet; @@ -206,7 +215,7 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe super.onViewCreated(view, bundle); RecyclerView recyclerView = getBinding().d; m.checkNotNullExpressionValue(recyclerView, "binding.guildScheduledEventListRecyclerView"); - this.adapter = new GuildScheduledEventListAdapter(recyclerView, new WidgetGuildScheduledEventListBottomSheet$onViewCreated$2(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$3(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$1(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$4(this)); + this.adapter = new GuildScheduledEventListAdapter(recyclerView, new WidgetGuildScheduledEventListBottomSheet$onViewCreated$2(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$3(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$1(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$4(this), new WidgetGuildScheduledEventListBottomSheet$onViewCreated$5(this)); RecyclerView recyclerView2 = getBinding().d; GuildScheduledEventListAdapter guildScheduledEventListAdapter = this.adapter; if (guildScheduledEventListAdapter == null) { @@ -225,6 +234,6 @@ public final class WidgetGuildScheduledEventListBottomSheet extends AppBottomShe } recyclerView2.addItemDecoration(new SpaceBetweenItemDecoration(context, orientation, guildScheduledEventListAdapter2, 0, 0, 24, null)); recyclerView2.setItemAnimator(null); - getBinding().b.setOnClickListener(new WidgetGuildScheduledEventListBottomSheet$onViewCreated$6(this)); + getBinding().b.setOnClickListener(new WidgetGuildScheduledEventListBottomSheet$onViewCreated$7(this)); } } diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventLocationSelectViewModel.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventLocationSelectViewModel.java index 9ea88b3ff7..9b7118f5bc 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventLocationSelectViewModel.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventLocationSelectViewModel.java @@ -474,7 +474,7 @@ public final class WidgetGuildScheduledEventLocationSelectViewModel extends AppV String externalLocation; boolean z2; GuildScheduledEvent existingGuildScheduledEvent; - GuildScheduledEventEntityMetadata d; + GuildScheduledEventEntityMetadata e; Set features; this.currentStoreState = storeState; ViewState viewState = getViewState(); @@ -507,7 +507,7 @@ public final class WidgetGuildScheduledEventLocationSelectViewModel extends AppV if (selectedChannel != null) { l = Long.valueOf(selectedChannel.h()); Channel channel2 = (Channel) linkedHashMap.get(l); - selectedLocationOption = valid != null ? valid.getSelectedLocationOption() : storeState.getExistingGuildScheduledEvent() != null ? storeState.getExistingGuildScheduledEvent().e() : getEntityTypeForChannel(channel2); + selectedLocationOption = valid != null ? valid.getSelectedLocationOption() : storeState.getExistingGuildScheduledEvent() != null ? storeState.getExistingGuildScheduledEvent().f() : getEntityTypeForChannel(channel2); if (selectedLocationOption != GuildScheduledEventEntityType.STAGE_INSTANCE && hashSet.isEmpty()) { selectedLocationOption = GuildScheduledEventEntityType.NONE; } else if (selectedLocationOption != GuildScheduledEventEntityType.VOICE && hashSet2.isEmpty()) { @@ -517,7 +517,7 @@ public final class WidgetGuildScheduledEventLocationSelectViewModel extends AppV } Guild guild = storeState.getGuild(); boolean contains = (guild != null || (features = guild.getFeatures()) == null) ? false : features.contains(GuildFeature.COMMUNITY); - externalLocation = valid != null ? valid.getExternalLocation() : (!z3 || l != null || (existingGuildScheduledEvent = storeState.getExistingGuildScheduledEvent()) == null || (d = existingGuildScheduledEvent.d()) == null) ? null : d.a(); + externalLocation = valid != null ? valid.getExternalLocation() : (!z3 || l != null || (existingGuildScheduledEvent = storeState.getExistingGuildScheduledEvent()) == null || (e = existingGuildScheduledEvent.e()) == null) ? null : e.a(); if (z3) { GuildScheduledEvent existingGuildScheduledEvent2 = storeState.getExistingGuildScheduledEvent(); if (existingGuildScheduledEvent2 != null) { diff --git a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetPreviewGuildScheduledEvent.java b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetPreviewGuildScheduledEvent.java index 38ca2625e7..cc505b5d99 100644 --- a/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetPreviewGuildScheduledEvent.java +++ b/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetPreviewGuildScheduledEvent.java @@ -21,6 +21,8 @@ import com.discord.R; import com.discord.app.AppFragment; import com.discord.app.AppTransitionActivity; import com.discord.databinding.WidgetPreviewGuildScheduledEventBinding; +import com.discord.models.guild.UserGuildMember; +import com.discord.stores.StoreStream; import com.discord.utilities.dimen.DimenUtils; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.viewbinding.FragmentViewBindingDelegate; @@ -276,7 +278,7 @@ public final class WidgetPreviewGuildScheduledEvent extends AppFragment { locationInfo = null; } GuildScheduledEventLocationInfo.ChannelLocation channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo; - getBinding().e.configureAsPreview(initialized.getEventModel(), channelLocation != null ? channelLocation.getChannel() : null); + getBinding().e.configureAsPreview(initialized.getEventModel(), channelLocation != null ? channelLocation.getChannel() : null, new UserGuildMember(StoreStream.Companion.getUsers().getMe(), null)); MaterialButton materialButton = getBinding().i; materialButton.setEnabled(!initialized.getRequestProcessing()); materialButton.setBackgroundTintList(ContextCompat.getColorStateList(materialButton.getContext(), initialized.isStartingEvent() ? R.color.uikit_btn_bg_color_selector_green : R.color.uikit_btn_bg_color_selector_brand)); diff --git a/app/src/main/java/com/discord/widgets/home/WidgetHomeHeaderManager$getOnSelectedAction$1.java b/app/src/main/java/com/discord/widgets/home/WidgetHomeHeaderManager$getOnSelectedAction$1.java index c159b688ce..2c82942ed9 100644 --- a/app/src/main/java/com/discord/widgets/home/WidgetHomeHeaderManager$getOnSelectedAction$1.java +++ b/app/src/main/java/com/discord/widgets/home/WidgetHomeHeaderManager$getOnSelectedAction$1.java @@ -47,25 +47,25 @@ public final class WidgetHomeHeaderManager$getOnSelectedAction$1 implements Acti m.checkNotNullExpressionValue(parentFragmentManager, "appFragment.parentFragmentManager"); PrivateCallLauncher privateCallLauncher = new PrivateCallLauncher(appFragment, appFragment, context, parentFragmentManager); switch (menuItem.getItemId()) { - case R.id.menu_chat_add_friend /* 2131364200 */: + case R.id.menu_chat_add_friend /* 2131364206 */: WidgetFriendsAdd.Companion.show$default(WidgetFriendsAdd.Companion, context, null, "Toolbar", 2, null); break; - case R.id.menu_chat_search /* 2131364201 */: + case R.id.menu_chat_search /* 2131364207 */: launchForSearch(context); break; - case R.id.menu_chat_side_panel /* 2131364202 */: + case R.id.menu_chat_side_panel /* 2131364208 */: this.$panelLayout.openEndPanel(); break; - case R.id.menu_chat_start_call /* 2131364203 */: + case R.id.menu_chat_start_call /* 2131364209 */: privateCallLauncher.launchVoiceCall(this.$this_getOnSelectedAction.getChannelId()); break; - case R.id.menu_chat_start_group /* 2131364204 */: + case R.id.menu_chat_start_group /* 2131364210 */: ChannelInviteLaunchUtils.inviteToChannel$default(ChannelInviteLaunchUtils.INSTANCE, this.$appFragment, this.$this_getOnSelectedAction.getChannel(), "Toolbar", null, null, 24, null); break; - case R.id.menu_chat_start_video_call /* 2131364205 */: + case R.id.menu_chat_start_video_call /* 2131364211 */: privateCallLauncher.launchVideoCall(this.$this_getOnSelectedAction.getChannelId()); break; - case R.id.menu_chat_stop_call /* 2131364206 */: + case R.id.menu_chat_stop_call /* 2131364212 */: StoreStream.Companion.getVoiceChannelSelected().clear(); break; } diff --git a/app/src/main/java/com/discord/widgets/media/WidgetMedia$onViewBoundOrOnResume$1.java b/app/src/main/java/com/discord/widgets/media/WidgetMedia$onViewBoundOrOnResume$1.java index a44b7fdafe..f77a995615 100644 --- a/app/src/main/java/com/discord/widgets/media/WidgetMedia$onViewBoundOrOnResume$1.java +++ b/app/src/main/java/com/discord/widgets/media/WidgetMedia$onViewBoundOrOnResume$1.java @@ -116,16 +116,16 @@ public final class WidgetMedia$onViewBoundOrOnResume$1 implements Action public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_media_browser /* 2131364223 */: + case R.id.menu_media_browser /* 2131364229 */: m.checkNotNullExpressionValue(context, "context"); String uri = this.$sourceUri.toString(); m.checkNotNullExpressionValue(uri, "sourceUri.toString()"); UriHandler.handleOrUntrusted$default(context, uri, null, 4, null); return; - case R.id.menu_media_download /* 2131364224 */: + case R.id.menu_media_download /* 2131364230 */: this.this$0.requestMediaDownload(new AnonymousClass1(this, context)); return; - case R.id.menu_media_share /* 2131364225 */: + case R.id.menu_media_share /* 2131364231 */: m.checkNotNullExpressionValue(context, "context"); String uri2 = this.$sourceUri.toString(); m.checkNotNullExpressionValue(uri2, "sourceUri.toString()"); diff --git a/app/src/main/java/com/discord/widgets/notice/WidgetNoticeDialog.java b/app/src/main/java/com/discord/widgets/notice/WidgetNoticeDialog.java index ff37f36434..7b293bc280 100644 --- a/app/src/main/java/com/discord/widgets/notice/WidgetNoticeDialog.java +++ b/app/src/main/java/com/discord/widgets/notice/WidgetNoticeDialog.java @@ -64,11 +64,11 @@ public final class WidgetNoticeDialog extends AppDialog { private static final String ARG_THEME_ID = "theme_id"; /* renamed from: CANCEL_BUTTON */ - public static final int notice_cancel = 2131364370; + public static final int notice_cancel = 2131364378; public static final Companion Companion = new Companion(null); /* renamed from: OK_BUTTON */ - public static final int notice_ok = 2131364375; + public static final int notice_ok = 2131364383; public static final int ON_SHOW = 0; private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetNoticeDialog$binding$2.INSTANCE, null, 2, null); private Map> listenerMap; diff --git a/app/src/main/java/com/discord/widgets/search/results/WidgetSearchResults.java b/app/src/main/java/com/discord/widgets/search/results/WidgetSearchResults.java index 4b67477e14..ab0f3c5cb5 100644 --- a/app/src/main/java/com/discord/widgets/search/results/WidgetSearchResults.java +++ b/app/src/main/java/com/discord/widgets/search/results/WidgetSearchResults.java @@ -15,6 +15,7 @@ import com.discord.R; import com.discord.api.activity.Activity; import com.discord.api.application.Application; import com.discord.api.channel.Channel; +import com.discord.api.guildscheduledevent.GuildScheduledEvent; import com.discord.api.message.activity.MessageActivityType; import com.discord.api.message.reaction.MessageReaction; import com.discord.api.sticker.BaseSticker; @@ -38,6 +39,7 @@ import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter; import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemCallMessage; import com.discord.widgets.chat.list.entries.ChatListEntry; import d0.z.d.m; +import java.lang.ref.WeakReference; import java.util.List; import java.util.Map; import java.util.Set; @@ -364,6 +366,14 @@ public final class WidgetSearchResults extends AppFragment { WidgetChatListAdapter.EventHandler.DefaultImpls.onSendGreetMessageClicked(this, j, i, sticker); } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler + public void onShareButtonClick(GuildScheduledEvent guildScheduledEvent, WeakReference weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(guildScheduledEvent, "guildEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + WidgetChatListAdapter.EventHandler.DefaultImpls.onShareButtonClick(this, guildScheduledEvent, weakReference, weakReference2); + } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler public void onStickerClicked(Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); diff --git a/app/src/main/java/com/discord/widgets/servers/NotificationsOverridesAdapter.java b/app/src/main/java/com/discord/widgets/servers/NotificationsOverridesAdapter.java index 5cfc9d9273..b4f8653aa8 100644 --- a/app/src/main/java/com/discord/widgets/servers/NotificationsOverridesAdapter.java +++ b/app/src/main/java/com/discord/widgets/servers/NotificationsOverridesAdapter.java @@ -225,7 +225,7 @@ public final class NotificationsOverridesAdapter extends RecyclerView.Adapter implements public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_sort_channel /* 2131364241 */: + case R.id.menu_sort_channel /* 2131364247 */: WidgetServerSettingsChannelsSortActions.Companion companion = WidgetServerSettingsChannelsSortActions.Companion; FragmentManager childFragmentManager = this.this$0.getChildFragmentManager(); m.checkNotNullExpressionValue(childFragmentManager, "childFragmentManager"); companion.show(childFragmentManager, new AnonymousClass1(this)); return; - case R.id.menu_sort_done /* 2131364242 */: + case R.id.menu_sort_done /* 2131364248 */: WidgetServerSettingsChannels.access$getChannelSortTypeSubject$p(this.this$0).onNext(-1); return; default: diff --git a/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditIntegration.java b/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditIntegration.java index af28c6410c..5eb9d45e82 100644 --- a/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditIntegration.java +++ b/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditIntegration.java @@ -51,9 +51,9 @@ public final class WidgetServerSettingsEditIntegration extends AppFragment { public static final Companion Companion = new Companion(null); private static final String INTENT_EXTRA_GUILD_ID = "INTENT_EXTRA_GUILD_ID"; private static final String INTENT_EXTRA_INTEGRATION_ID = "INTENT_EXTRA_INTEGRATION_ID"; - private static final int STATE_KEY_ENABLE_TWITCH_EMOTES = 2131363070; - private static final int STATE_KEY_EXPIRE_BEHAVIOR = 2131363073; - private static final int STATE_KEY_GRACE_PERIOD = 2131363074; + private static final int STATE_KEY_ENABLE_TWITCH_EMOTES = 2131363071; + private static final int STATE_KEY_EXPIRE_BEHAVIOR = 2131363074; + private static final int STATE_KEY_GRACE_PERIOD = 2131363075; private static final int[] gracePeriodDays = {1, 3, 7, 14, 30}; private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetServerSettingsEditIntegration$binding$2.INSTANCE, null, 2, null); private RadioManager expiryBehaviorRadioManager; diff --git a/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditRole.java b/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditRole.java index 87bf2f11b4..61cc26c824 100644 --- a/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditRole.java +++ b/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsEditRole.java @@ -571,135 +571,135 @@ public final class WidgetServerSettingsEditRole extends AppFragment { for (CheckedSetting checkedSetting : n.listOf((Object[]) new CheckedSetting[]{getBinding().g, getBinding().h, getBinding().i, getBinding().j, getBinding().m, getBinding().r, getBinding().u, getBinding().v, getBinding().f1851y, getBinding().C, getBinding().f1852z, getBinding().w, getBinding().A, getBinding().B, getBinding().D, getBinding().E, getBinding().H, getBinding().I, getBinding().N, getBinding().O, getBinding().o, getBinding().n, getBinding().P, getBinding().Q, getBinding().R, getBinding().S, getBinding().f, getBinding().T, getBinding().V, getBinding().Z, getBinding().f1847b0, getBinding().Y, getBinding().W, getBinding().X, getBinding().f1846a0, getBinding().G, getBinding().U, getBinding().J, getBinding().f1850x})) { m.checkNotNullExpressionValue(checkedSetting, "setting"); switch (checkedSetting.getId()) { - case R.id.role_settings_add_reactions /* 2131364803 */: + case R.id.role_settings_add_reactions /* 2131364812 */: j = 64; break; - case R.id.role_settings_administrator /* 2131364804 */: + case R.id.role_settings_administrator /* 2131364813 */: j = 8; break; - case R.id.role_settings_attach_files /* 2131364805 */: + case R.id.role_settings_attach_files /* 2131364814 */: j = Permission.ATTACH_FILES; break; - case R.id.role_settings_ban_members /* 2131364806 */: + case R.id.role_settings_ban_members /* 2131364815 */: j = 4; break; - case R.id.role_settings_change_nickname /* 2131364807 */: + case R.id.role_settings_change_nickname /* 2131364816 */: j = Permission.CHANGE_NICKNAME; break; - case R.id.role_settings_color_disabled_overlay /* 2131364808 */: - case R.id.role_settings_color_selector_container /* 2131364809 */: - case R.id.role_settings_current_color_display /* 2131364813 */: - case R.id.role_settings_edit_name_disabled_overlay /* 2131364814 */: - case R.id.role_settings_hoist_checkedsetting /* 2131364816 */: - case R.id.role_settings_icon_container /* 2131364817 */: - case R.id.role_settings_mentionable_checkedsetting /* 2131364829 */: - case R.id.role_settings_overview_scroll /* 2131364830 */: - case R.id.role_settings_role_icon /* 2131364835 */: - case R.id.role_settings_role_icon_divider /* 2131364836 */: - case R.id.role_settings_role_icon_header /* 2131364837 */: + case R.id.role_settings_color_disabled_overlay /* 2131364817 */: + case R.id.role_settings_color_selector_container /* 2131364818 */: + case R.id.role_settings_current_color_display /* 2131364822 */: + case R.id.role_settings_edit_name_disabled_overlay /* 2131364823 */: + case R.id.role_settings_hoist_checkedsetting /* 2131364825 */: + case R.id.role_settings_icon_container /* 2131364826 */: + case R.id.role_settings_mentionable_checkedsetting /* 2131364838 */: + case R.id.role_settings_overview_scroll /* 2131364839 */: + case R.id.role_settings_role_icon /* 2131364844 */: + case R.id.role_settings_role_icon_divider /* 2131364845 */: + case R.id.role_settings_role_icon_header /* 2131364846 */: default: j = 0; break; - case R.id.role_settings_create_instant_invite /* 2131364810 */: + case R.id.role_settings_create_instant_invite /* 2131364819 */: j = 1; break; - case R.id.role_settings_create_private_threads /* 2131364811 */: + case R.id.role_settings_create_private_threads /* 2131364820 */: j = Permission.CREATE_PRIVATE_THREADS; break; - case R.id.role_settings_create_public_threads /* 2131364812 */: + case R.id.role_settings_create_public_threads /* 2131364821 */: j = Permission.CREATE_PUBLIC_THREADS; break; - case R.id.role_settings_embed_links /* 2131364815 */: + case R.id.role_settings_embed_links /* 2131364824 */: j = Permission.EMBED_LINKS; break; - case R.id.role_settings_kick_members /* 2131364818 */: + case R.id.role_settings_kick_members /* 2131364827 */: j = 2; break; - case R.id.role_settings_manage_channels /* 2131364819 */: + case R.id.role_settings_manage_channels /* 2131364828 */: j = 16; break; - case R.id.role_settings_manage_emojis_and_stickers /* 2131364820 */: + case R.id.role_settings_manage_emojis_and_stickers /* 2131364829 */: j = Permission.MANAGE_EMOJIS_AND_STICKERS; break; - case R.id.role_settings_manage_events /* 2131364821 */: + case R.id.role_settings_manage_events /* 2131364830 */: j = Permission.MANAGE_EVENTS; break; - case R.id.role_settings_manage_messages /* 2131364822 */: + case R.id.role_settings_manage_messages /* 2131364831 */: j = Permission.MANAGE_MESSAGES; break; - case R.id.role_settings_manage_nicknames /* 2131364823 */: + case R.id.role_settings_manage_nicknames /* 2131364832 */: j = Permission.MANAGE_NICKNAMES; break; - case R.id.role_settings_manage_roles /* 2131364824 */: + case R.id.role_settings_manage_roles /* 2131364833 */: j = Permission.MANAGE_ROLES; break; - case R.id.role_settings_manage_server /* 2131364825 */: + case R.id.role_settings_manage_server /* 2131364834 */: j = 32; break; - case R.id.role_settings_manage_threads /* 2131364826 */: + case R.id.role_settings_manage_threads /* 2131364835 */: j = Permission.MANAGE_THREADS; break; - case R.id.role_settings_manage_webhooks /* 2131364827 */: + case R.id.role_settings_manage_webhooks /* 2131364836 */: j = Permission.MANAGE_WEBHOOKS; break; - case R.id.role_settings_mention_everyone /* 2131364828 */: + case R.id.role_settings_mention_everyone /* 2131364837 */: j = Permission.MENTION_EVERYONE; break; - case R.id.role_settings_priority_speaker /* 2131364831 */: + case R.id.role_settings_priority_speaker /* 2131364840 */: j = 256; break; - case R.id.role_settings_read_message_history /* 2131364832 */: + case R.id.role_settings_read_message_history /* 2131364841 */: j = Permission.READ_MESSAGE_HISTORY; break; - case R.id.role_settings_read_messages /* 2131364833 */: + case R.id.role_settings_read_messages /* 2131364842 */: j = Permission.VIEW_CHANNEL; break; - case R.id.role_settings_request_to_speak /* 2131364834 */: + case R.id.role_settings_request_to_speak /* 2131364843 */: j = Permission.REQUEST_TO_SPEAK; break; - case R.id.role_settings_send_messages /* 2131364838 */: + case R.id.role_settings_send_messages /* 2131364847 */: j = Permission.SEND_MESSAGES; break; - case R.id.role_settings_send_messages_in_threads /* 2131364839 */: + case R.id.role_settings_send_messages_in_threads /* 2131364848 */: j = Permission.SEND_MESSAGES_IN_THREADS; break; - case R.id.role_settings_send_tts_messages /* 2131364840 */: + case R.id.role_settings_send_tts_messages /* 2131364849 */: j = Permission.SEND_TTS_MESSAGES; break; - case R.id.role_settings_use_application_commands /* 2131364841 */: + case R.id.role_settings_use_application_commands /* 2131364850 */: j = Permission.USE_APPLICATION_COMMANDS; break; - case R.id.role_settings_use_external_emojis /* 2131364842 */: + case R.id.role_settings_use_external_emojis /* 2131364851 */: j = Permission.USE_EXTERNAL_EMOJIS; break; - case R.id.role_settings_use_external_stickers /* 2131364843 */: + case R.id.role_settings_use_external_stickers /* 2131364852 */: j = Permission.USE_EXTERNAL_STICKERS; break; - case R.id.role_settings_view_audit_log /* 2131364844 */: + case R.id.role_settings_view_audit_log /* 2131364853 */: j = 128; break; - case R.id.role_settings_view_guild_analytics /* 2131364845 */: + case R.id.role_settings_view_guild_analytics /* 2131364854 */: j = Permission.VIEW_GUILD_ANALYTICS; break; - case R.id.role_settings_voice_connect /* 2131364846 */: + case R.id.role_settings_voice_connect /* 2131364855 */: j = Permission.CONNECT; break; - case R.id.role_settings_voice_deafen_members /* 2131364847 */: + case R.id.role_settings_voice_deafen_members /* 2131364856 */: j = Permission.DEAFEN_MEMBERS; break; - case R.id.role_settings_voice_move_members /* 2131364848 */: + case R.id.role_settings_voice_move_members /* 2131364857 */: j = Permission.MOVE_MEMBERS; break; - case R.id.role_settings_voice_mute_members /* 2131364849 */: + case R.id.role_settings_voice_mute_members /* 2131364858 */: j = Permission.MUTE_MEMBERS; break; - case R.id.role_settings_voice_speak /* 2131364850 */: + case R.id.role_settings_voice_speak /* 2131364859 */: j = Permission.SPEAK; break; - case R.id.role_settings_voice_use_voice_activity /* 2131364851 */: + case R.id.role_settings_voice_use_voice_activity /* 2131364860 */: j = Permission.USE_VAD; break; - case R.id.role_settings_voice_video /* 2131364852 */: + case R.id.role_settings_voice_video /* 2131364861 */: j = 512; break; } diff --git a/app/src/main/java/com/discord/widgets/servers/auditlog/WidgetServerSettingsAuditLog$Model$Companion$get$1.java b/app/src/main/java/com/discord/widgets/servers/auditlog/WidgetServerSettingsAuditLog$Model$Companion$get$1.java index 2ae58c0bbd..5f745d11b3 100644 --- a/app/src/main/java/com/discord/widgets/servers/auditlog/WidgetServerSettingsAuditLog$Model$Companion$get$1.java +++ b/app/src/main/java/com/discord/widgets/servers/auditlog/WidgetServerSettingsAuditLog$Model$Companion$get$1.java @@ -168,7 +168,7 @@ public final class WidgetServerSettingsAuditLog$Model$Companion$get$1 implements Acti public final boolean onMenuItemClick(MenuItem menuItem) { m.checkNotNullExpressionValue(menuItem, "it"); switch (menuItem.getItemId()) { - case R.id.menu_audit_log_sort_actions /* 2131364190 */: + case R.id.menu_audit_log_sort_actions /* 2131364196 */: WidgetServerSettingsAuditLogFilter.Companion.show(a.x(this.$view, "view", "view.context"), WidgetServerSettingsAuditLog.access$getGuildId$p(this.this$0.this$0.this$0), 1); break; - case R.id.menu_audit_log_sort_users /* 2131364191 */: + case R.id.menu_audit_log_sort_users /* 2131364197 */: WidgetServerSettingsAuditLogFilter.Companion.show(a.x(this.$view, "view", "view.context"), WidgetServerSettingsAuditLog.access$getGuildId$p(this.this$0.this$0.this$0), 0); break; } diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$Model$Companion$get$1.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$Model$Companion$get$1.java index d5ce3d6f4d..809afc9ae6 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$Model$Companion$get$1.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$Model$Companion$get$1.java @@ -5,25 +5,25 @@ import com.discord.models.user.MeUser; import com.discord.widgets.settings.WidgetSettings; import d0.z.d.k; import d0.z.d.m; -import kotlin.jvm.functions.Function4; +import kotlin.jvm.functions.Function5; /* compiled from: WidgetSettings.kt */ -public final /* synthetic */ class WidgetSettings$Model$Companion$get$1 extends k implements Function4 { +public final /* synthetic */ class WidgetSettings$Model$Companion$get$1 extends k implements Function5 { public static final WidgetSettings$Model$Companion$get$1 INSTANCE = new WidgetSettings$Model$Companion$get$1(); public WidgetSettings$Model$Companion$get$1() { - super(4, WidgetSettings.Model.class, "", "(Lcom/discord/models/user/MeUser;ZLcom/discord/models/presence/Presence;I)V", 0); + super(5, WidgetSettings.Model.class, "", "(Lcom/discord/models/user/MeUser;ZLcom/discord/models/presence/Presence;IZ)V", 0); } - public final WidgetSettings.Model invoke(MeUser meUser, boolean z2, Presence presence, int i) { + public final WidgetSettings.Model invoke(MeUser meUser, boolean z2, Presence presence, int i, boolean z3) { m.checkNotNullParameter(meUser, "p1"); m.checkNotNullParameter(presence, "p3"); - return new WidgetSettings.Model(meUser, z2, presence, i); + return new WidgetSettings.Model(meUser, z2, presence, i, z3); } /* Return type fixed from 'java.lang.Object' to match base method */ - /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */ - @Override // kotlin.jvm.functions.Function4 - public /* bridge */ /* synthetic */ WidgetSettings.Model invoke(MeUser meUser, Boolean bool, Presence presence, Integer num) { - return invoke(meUser, bool.booleanValue(), presence, num.intValue()); + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object] */ + @Override // kotlin.jvm.functions.Function5 + public /* bridge */ /* synthetic */ WidgetSettings.Model invoke(MeUser meUser, Boolean bool, Presence presence, Integer num, Boolean bool2) { + return invoke(meUser, bool.booleanValue(), presence, num.intValue(), bool2.booleanValue()); } } diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$binding$2.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$binding$2.java index e7ee434b6b..b911d167dc 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$binding$2.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$binding$2.java @@ -3,6 +3,7 @@ package com.discord.widgets.settings; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; +import androidx.appcompat.widget.AppCompatImageView; import androidx.coordinatorlayout.widget.CoordinatorLayout; import com.discord.R; import com.discord.databinding.WidgetSettingsBinding; @@ -88,55 +89,59 @@ public final /* synthetic */ class WidgetSettings$binding$2 extends k implements i = R.id.notification_upsell; LinearLayout linearLayout3 = (LinearLayout) view.findViewById(R.id.notification_upsell); if (linearLayout3 != null) { - i = R.id.notification_upsell_enable; - MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.notification_upsell_enable); - if (materialButton != null) { - i = R.id.notifications; - TextView textView19 = (TextView) view.findViewById(R.id.notifications); - if (textView19 != null) { - i = R.id.privacy; - TextView textView20 = (TextView) view.findViewById(R.id.privacy); - if (textView20 != null) { - i = R.id.profile; - TextView textView21 = (TextView) view.findViewById(R.id.profile); - if (textView21 != null) { - i = R.id.qr_scanner; - TextView textView22 = (TextView) view.findViewById(R.id.qr_scanner); - if (textView22 != null) { - i = R.id.set_status_container; - LinearLayout linearLayout4 = (LinearLayout) view.findViewById(R.id.set_status_container); - if (linearLayout4 != null) { - i = R.id.settings_billing; - TextView textView23 = (TextView) view.findViewById(R.id.settings_billing); - if (textView23 != null) { - i = R.id.settings_nitro; - TextView textView24 = (TextView) view.findViewById(R.id.settings_nitro); - if (textView24 != null) { - i = R.id.settings_presence_text; - TextView textView25 = (TextView) view.findViewById(R.id.settings_presence_text); - if (textView25 != null) { - i = R.id.settings_status_view; - StatusView statusView = (StatusView) view.findViewById(R.id.settings_status_view); - if (statusView != null) { - i = R.id.support; - TextView textView26 = (TextView) view.findViewById(R.id.support); - if (textView26 != null) { - i = R.id.text_images_settings; - TextView textView27 = (TextView) view.findViewById(R.id.text_images_settings); - if (textView27 != null) { - i = R.id.upload_debug_logs; - TextView textView28 = (TextView) view.findViewById(R.id.upload_debug_logs); - if (textView28 != null) { - i = R.id.user_settings_header; - TextView textView29 = (TextView) view.findViewById(R.id.user_settings_header); - if (textView29 != null) { - i = R.id.user_settings_profile_header_view; - UserProfileHeaderView userProfileHeaderView = (UserProfileHeaderView) view.findViewById(R.id.user_settings_profile_header_view); - if (userProfileHeaderView != null) { - i = R.id.voice; - TextView textView30 = (TextView) view.findViewById(R.id.voice); - if (textView30 != null) { - return new WidgetSettingsBinding((CoordinatorLayout) view, textView, textView2, textView3, textView4, textView5, textView6, textView7, textView8, textView9, textView10, textView11, textView12, findViewById, textView13, textView14, textView15, textView16, textView17, linearLayout, textView18, linearLayout2, linearLayout3, materialButton, textView19, textView20, textView21, textView22, linearLayout4, textView23, textView24, textView25, statusView, textView26, textView27, textView28, textView29, userProfileHeaderView, textView30); + i = R.id.notification_upsell_dismiss; + AppCompatImageView appCompatImageView = (AppCompatImageView) view.findViewById(R.id.notification_upsell_dismiss); + if (appCompatImageView != null) { + i = R.id.notification_upsell_enable; + MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.notification_upsell_enable); + if (materialButton != null) { + i = R.id.notifications; + TextView textView19 = (TextView) view.findViewById(R.id.notifications); + if (textView19 != null) { + i = R.id.privacy; + TextView textView20 = (TextView) view.findViewById(R.id.privacy); + if (textView20 != null) { + i = R.id.profile; + TextView textView21 = (TextView) view.findViewById(R.id.profile); + if (textView21 != null) { + i = R.id.qr_scanner; + TextView textView22 = (TextView) view.findViewById(R.id.qr_scanner); + if (textView22 != null) { + i = R.id.set_status_container; + LinearLayout linearLayout4 = (LinearLayout) view.findViewById(R.id.set_status_container); + if (linearLayout4 != null) { + i = R.id.settings_billing; + TextView textView23 = (TextView) view.findViewById(R.id.settings_billing); + if (textView23 != null) { + i = R.id.settings_nitro; + TextView textView24 = (TextView) view.findViewById(R.id.settings_nitro); + if (textView24 != null) { + i = R.id.settings_presence_text; + TextView textView25 = (TextView) view.findViewById(R.id.settings_presence_text); + if (textView25 != null) { + i = R.id.settings_status_view; + StatusView statusView = (StatusView) view.findViewById(R.id.settings_status_view); + if (statusView != null) { + i = R.id.support; + TextView textView26 = (TextView) view.findViewById(R.id.support); + if (textView26 != null) { + i = R.id.text_images_settings; + TextView textView27 = (TextView) view.findViewById(R.id.text_images_settings); + if (textView27 != null) { + i = R.id.upload_debug_logs; + TextView textView28 = (TextView) view.findViewById(R.id.upload_debug_logs); + if (textView28 != null) { + i = R.id.user_settings_header; + TextView textView29 = (TextView) view.findViewById(R.id.user_settings_header); + if (textView29 != null) { + i = R.id.user_settings_profile_header_view; + UserProfileHeaderView userProfileHeaderView = (UserProfileHeaderView) view.findViewById(R.id.user_settings_profile_header_view); + if (userProfileHeaderView != null) { + i = R.id.voice; + TextView textView30 = (TextView) view.findViewById(R.id.voice); + if (textView30 != null) { + return new WidgetSettingsBinding((CoordinatorLayout) view, textView, textView2, textView3, textView4, textView5, textView6, textView7, textView8, textView9, textView10, textView11, textView12, findViewById, textView13, textView14, textView15, textView16, textView17, linearLayout, textView18, linearLayout2, linearLayout3, appCompatImageView, materialButton, textView19, textView20, textView21, textView22, linearLayout4, textView23, textView24, textView25, statusView, textView26, textView27, textView28, textView29, userProfileHeaderView, textView30); + } } } } diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$configureToolbar$1.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$configureToolbar$1.java index 076b9a860f..e8d3826b24 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$configureToolbar$1.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$configureToolbar$1.java @@ -17,12 +17,12 @@ public final class WidgetSettings$configureToolbar$1 implements Action2< public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_settings_debugging /* 2131364236 */: + case R.id.menu_settings_debugging /* 2131364242 */: WidgetDebugging.Companion companion = WidgetDebugging.Companion; m.checkNotNullExpressionValue(context, "context"); companion.launch(context); return; - case R.id.menu_settings_log_out /* 2131364237 */: + case R.id.menu_settings_log_out /* 2131364243 */: WidgetSettings widgetSettings = this.this$0; m.checkNotNullExpressionValue(context, "context"); WidgetSettings.access$showLogoutDialog(widgetSettings, context); diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$$inlined$with$lambda$5.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$$inlined$with$lambda$5.java index 76509db801..55cb25ada8 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$$inlined$with$lambda$5.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$$inlined$with$lambda$5.java @@ -48,10 +48,10 @@ public final class WidgetSettings$onViewBound$$inlined$with$lambda$5 implements public final void invoke(boolean z2) { WidgetSettings widgetSettings; int i; - TextView textView = this.this$0.$this_with.H; + TextView textView = this.this$0.$this_with.I; m.checkNotNullExpressionValue(textView, "uploadDebugLogs"); textView.setEnabled(z2); - TextView textView2 = this.this$0.$this_with.H; + TextView textView2 = this.this$0.$this_with.I; m.checkNotNullExpressionValue(textView2, "uploadDebugLogs"); if (z2) { widgetSettings = this.this$0.this$0; diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$26.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$26.java new file mode 100644 index 0000000000..2c80a10d81 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$26.java @@ -0,0 +1,13 @@ +package com.discord.widgets.settings; + +import android.view.View; +import com.discord.stores.StoreStream; +/* compiled from: WidgetSettings.kt */ +public final class WidgetSettings$onViewBound$1$26 implements View.OnClickListener { + public static final WidgetSettings$onViewBound$1$26 INSTANCE = new WidgetSettings$onViewBound$1$26(); + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + StoreStream.Companion.getNotificationUpsells().dismissPushNotificationsUpsell(); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$9.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$9.java index 67c4d2a523..f0f82ab373 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$9.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$onViewBound$1$9.java @@ -3,13 +3,13 @@ package com.discord.widgets.settings; import android.view.View; import c.d.b.a.a; import com.discord.app.AppTransitionActivity; -import com.discord.widgets.settings.profile.WidgetSettingsUserProfile; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; /* compiled from: WidgetSettings.kt */ public final class WidgetSettings$onViewBound$1$9 implements View.OnClickListener { public static final WidgetSettings$onViewBound$1$9 INSTANCE = new WidgetSettings$onViewBound$1$9(); @Override // android.view.View.OnClickListener public final void onClick(View view) { - WidgetSettingsUserProfile.Companion.launch(a.x(view, "it", "it.context"), AppTransitionActivity.Transition.TYPE_SLIDE_HORIZONTAL); + WidgetEditUserOrGuildMemberProfile.Companion.launch$default(WidgetEditUserOrGuildMemberProfile.Companion, a.x(view, "it", "it.context"), AppTransitionActivity.Transition.TYPE_SLIDE_HORIZONTAL, null, 4, null); } } diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func4$0.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func4$0.java deleted file mode 100644 index 6c8ea6a841..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func4$0.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.discord.widgets.settings; - -import kotlin.jvm.functions.Function4; -import rx.functions.Func4; -/* compiled from: WidgetSettings.kt */ -public final class WidgetSettings$sam$rx_functions_Func4$0 implements Func4 { - private final /* synthetic */ Function4 function; - - public WidgetSettings$sam$rx_functions_Func4$0(Function4 function4) { - this.function = function4; - } - - @Override // rx.functions.Func4 - public final /* synthetic */ Object call(Object obj, Object obj2, Object obj3, Object obj4) { - return this.function.invoke(obj, obj2, obj3, obj4); - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func5$0.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func5$0.java new file mode 100644 index 0000000000..839933d477 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings$sam$rx_functions_Func5$0.java @@ -0,0 +1,17 @@ +package com.discord.widgets.settings; + +import kotlin.jvm.functions.Function5; +import rx.functions.Func5; +/* compiled from: WidgetSettings.kt */ +public final class WidgetSettings$sam$rx_functions_Func5$0 implements Func5 { + private final /* synthetic */ Function5 function; + + public WidgetSettings$sam$rx_functions_Func5$0(Function5 function5) { + this.function = function5; + } + + @Override // rx.functions.Func5 + public final /* synthetic */ Object call(Object obj, Object obj2, Object obj3, Object obj4, Object obj5) { + return this.function.invoke(obj, obj2, obj3, obj4, obj5); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java index d59775ab3c..f9384ef64a 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java @@ -45,7 +45,7 @@ import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.reflect.KProperty; import rx.Observable; -import rx.functions.Func4; +import rx.functions.Func5; /* compiled from: WidgetSettings.kt */ public final class WidgetSettings extends AppFragment implements OnTabSelectedListener { public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetSettings.class, "binding", "getBinding()Lcom/discord/databinding/WidgetSettingsBinding;", 0)}; @@ -60,6 +60,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi private final MeUser meUser; private final Presence presence; private final int promoCount; + private final boolean pushNotificationUpsellDismissed; /* compiled from: WidgetSettings.kt */ public static final class Companion { @@ -78,26 +79,28 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi Observable experimentalAlpha = companion.getExperiments().getExperimentalAlpha(); Observable observeLocalPresence = companion.getPresences().observeLocalPresence(); Observable observeUnseenCount = companion.getOutboundPromotions().observeUnseenCount(); + Observable observePushNotificationUpsellDismissed = companion.getNotificationUpsells().observePushNotificationUpsellDismissed(); WidgetSettings$Model$Companion$get$1 widgetSettings$Model$Companion$get$1 = WidgetSettings$Model$Companion$get$1.INSTANCE; if (widgetSettings$Model$Companion$get$1 != null) { - widgetSettings$Model$Companion$get$1 = new WidgetSettings$sam$rx_functions_Func4$0(widgetSettings$Model$Companion$get$1); + widgetSettings$Model$Companion$get$1 = new WidgetSettings$sam$rx_functions_Func5$0(widgetSettings$Model$Companion$get$1); } - Observable h = Observable.h(observeMe, experimentalAlpha, observeLocalPresence, observeUnseenCount, (Func4) widgetSettings$Model$Companion$get$1); - m.checkNotNullExpressionValue(h, "Observable\n .… ::Model\n )"); - return h; + Observable g = Observable.g(observeMe, experimentalAlpha, observeLocalPresence, observeUnseenCount, observePushNotificationUpsellDismissed, (Func5) widgetSettings$Model$Companion$get$1); + m.checkNotNullExpressionValue(g, "Observable\n .… ::Model\n )"); + return g; } } - public Model(MeUser meUser, boolean z2, Presence presence, int i) { + public Model(MeUser meUser, boolean z2, Presence presence, int i, boolean z3) { m.checkNotNullParameter(meUser, "meUser"); m.checkNotNullParameter(presence, "presence"); this.meUser = meUser; this.isStaffOrAlpha = z2; this.presence = presence; this.promoCount = i; + this.pushNotificationUpsellDismissed = z3; } - public static /* synthetic */ Model copy$default(Model model, MeUser meUser, boolean z2, Presence presence, int i, int i2, Object obj) { + public static /* synthetic */ Model copy$default(Model model, MeUser meUser, boolean z2, Presence presence, int i, boolean z3, int i2, Object obj) { if ((i2 & 1) != 0) { meUser = model.meUser; } @@ -110,7 +113,10 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi if ((i2 & 8) != 0) { i = model.promoCount; } - return model.copy(meUser, z2, presence, i); + if ((i2 & 16) != 0) { + z3 = model.pushNotificationUpsellDismissed; + } + return model.copy(meUser, z2, presence, i, z3); } public final MeUser component1() { @@ -129,10 +135,14 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi return this.promoCount; } - public final Model copy(MeUser meUser, boolean z2, Presence presence, int i) { + public final boolean component5() { + return this.pushNotificationUpsellDismissed; + } + + public final Model copy(MeUser meUser, boolean z2, Presence presence, int i, boolean z3) { m.checkNotNullParameter(meUser, "meUser"); m.checkNotNullParameter(presence, "presence"); - return new Model(meUser, z2, presence, i); + return new Model(meUser, z2, presence, i, z3); } public boolean equals(Object obj) { @@ -143,7 +153,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi return false; } Model model = (Model) obj; - return m.areEqual(this.meUser, model.meUser) && this.isStaffOrAlpha == model.isStaffOrAlpha && m.areEqual(this.presence, model.presence) && this.promoCount == model.promoCount; + return m.areEqual(this.meUser, model.meUser) && this.isStaffOrAlpha == model.isStaffOrAlpha && m.areEqual(this.presence, model.presence) && this.promoCount == model.promoCount && this.pushNotificationUpsellDismissed == model.pushNotificationUpsellDismissed; } public final MeUser getMeUser() { @@ -158,23 +168,33 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi return this.promoCount; } + public final boolean getPushNotificationUpsellDismissed() { + return this.pushNotificationUpsellDismissed; + } + public int hashCode() { MeUser meUser = this.meUser; int i = 0; int hashCode = (meUser != null ? meUser.hashCode() : 0) * 31; boolean z2 = this.isStaffOrAlpha; + int i2 = 1; if (z2) { z2 = true; } - int i2 = z2 ? 1 : 0; int i3 = z2 ? 1 : 0; int i4 = z2 ? 1 : 0; - int i5 = (hashCode + i2) * 31; + int i5 = z2 ? 1 : 0; + int i6 = (hashCode + i3) * 31; Presence presence = this.presence; if (presence != null) { i = presence.hashCode(); } - return ((i5 + i) * 31) + this.promoCount; + int i7 = (((i6 + i) * 31) + this.promoCount) * 31; + boolean z3 = this.pushNotificationUpsellDismissed; + if (!z3) { + i2 = z3 ? 1 : 0; + } + return i7 + i2; } public final boolean isStaffOrAlpha() { @@ -189,7 +209,9 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi R.append(", presence="); R.append(this.presence); R.append(", promoCount="); - return a.A(R, this.promoCount, ")"); + R.append(this.promoCount); + R.append(", pushNotificationUpsellDismissed="); + return a.L(R, this.pushNotificationUpsellDismissed, ")"); } } @@ -223,32 +245,34 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi private final void configureUI(Model model) { MeUser meUser = model.getMeUser(); UserUtils userUtils = UserUtils.INSTANCE; - boolean z2 = userUtils.isStaff(meUser); + boolean z2 = true; + int i = 0; + boolean z3 = userUtils.isStaff(meUser); boolean isVerified = meUser.isVerified(); boolean hasSubscription = userUtils.getHasSubscription(meUser); WidgetSettingsBinding binding = getBinding(); View view = binding.n; m.checkNotNullExpressionValue(view, "developerOptionsDivider"); - view.setVisibility(z2 ? 0 : 8); + view.setVisibility(z3 ? 0 : 8); TextView textView = binding.o; m.checkNotNullExpressionValue(textView, "developerOptionsHeader"); - textView.setVisibility(z2 ? 0 : 8); + textView.setVisibility(z3 ? 0 : 8); TextView textView2 = binding.m; m.checkNotNullExpressionValue(textView2, "developerOptions"); - textView2.setVisibility(z2 ? 0 : 8); + textView2.setVisibility(z3 ? 0 : 8); binding.m.setOnClickListener(WidgetSettings$configureUI$1$1.INSTANCE); LinearLayout linearLayout = binding.u; m.checkNotNullExpressionValue(linearLayout, "nitroSettingsContainer"); linearLayout.setVisibility(isVerified ? 0 : 8); - TextView textView3 = binding.C; + TextView textView3 = binding.D; m.checkNotNullExpressionValue(textView3, "settingsNitro"); textView3.setText(getString(hasSubscription ? R.string.billing_manage_subscription : R.string.premium_settings_subscribe_today)); TextView textView4 = binding.q; m.checkNotNullExpressionValue(textView4, "nitroBoosting"); textView4.setText(getString(hasSubscription ? R.string.premium_guild_perks_modal_manage_your_subscriptions : R.string.premium_settings_premium_guild_subscriptions)); Presence presence = model.getPresence(); - binding.E.setPresence(presence); - TextView textView5 = binding.D; + binding.F.setPresence(presence); + TextView textView5 = binding.E; m.checkNotNullExpressionValue(textView5, "settingsPresenceText"); textView5.setText(getString(PresenceUtils.INSTANCE.getStatusStringResForPresence(presence))); if (model.getPromoCount() > 0) { @@ -263,11 +287,20 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi TextView textView8 = binding.r; m.checkNotNullExpressionValue(textView8, "nitroGiftingBadge"); textView8.setVisibility(0); - return; + } else { + TextView textView9 = binding.r; + m.checkNotNullExpressionValue(textView9, "nitroGiftingBadge"); + textView9.setVisibility(8); } - TextView textView9 = binding.r; - m.checkNotNullExpressionValue(textView9, "nitroGiftingBadge"); - textView9.setVisibility(8); + LinearLayout linearLayout2 = binding.v; + m.checkNotNullExpressionValue(linearLayout2, "notificationUpsell"); + if (NotificationManagerCompat.from(requireContext()).areNotificationsEnabled() || model.getPushNotificationUpsellDismissed()) { + z2 = false; + } + if (!z2) { + i = 8; + } + linearLayout2.setVisibility(i); } private final WidgetSettingsBinding getBinding() { @@ -303,40 +336,41 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi widgetTabsHost.registerTabSelectionListener(NavigationTab.SETTINGS, this); } WidgetSettingsBinding binding = getBinding(); - binding.B.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$1(this)); - UserProfileHeaderView userProfileHeaderView = binding.J; + binding.C.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$1(this)); + UserProfileHeaderView userProfileHeaderView = binding.K; Badge.Companion companion = Badge.Companion; FragmentManager parentFragmentManager = getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); userProfileHeaderView.setOnBadgeClick(companion.onBadgeClick(parentFragmentManager, requireContext())); - binding.J.setOnBannerPress(new WidgetSettings$onViewBound$$inlined$with$lambda$2(this)); + binding.K.setOnBannerPress(new WidgetSettings$onViewBound$$inlined$with$lambda$2(this)); TextView textView = binding.f; m.checkNotNullExpressionValue(textView, "appInfoHeader"); String string = getString(R.string.app_information); - textView.setText(string + " - 100.17 - Stable (100017)"); - binding.A.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this)); + textView.setText(string + " - 101.9 - Stable (101009)"); + binding.B.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this)); binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE); binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE); binding.f2038s.setOnClickListener(WidgetSettings$onViewBound$1$7.INSTANCE); binding.f2037c.setOnClickListener(WidgetSettings$onViewBound$1$8.INSTANCE); - binding.f2041z.setOnClickListener(WidgetSettings$onViewBound$1$9.INSTANCE); + binding.A.setOnClickListener(WidgetSettings$onViewBound$1$9.INSTANCE); binding.i.setOnClickListener(WidgetSettings$onViewBound$1$10.INSTANCE); - binding.f2040y.setOnClickListener(WidgetSettings$onViewBound$1$11.INSTANCE); + binding.f2041z.setOnClickListener(WidgetSettings$onViewBound$1$11.INSTANCE); binding.l.setOnClickListener(WidgetSettings$onViewBound$1$12.INSTANCE); binding.h.setOnClickListener(WidgetSettings$onViewBound$1$13.INSTANCE); binding.b.setOnClickListener(WidgetSettings$onViewBound$1$14.INSTANCE); binding.j.setOnClickListener(WidgetSettings$onViewBound$1$15.INSTANCE); binding.p.setOnClickListener(WidgetSettings$onViewBound$1$16.INSTANCE); binding.e.setOnClickListener(WidgetSettings$onViewBound$1$17.INSTANCE); - binding.f2039x.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$4(this)); - binding.G.setOnClickListener(WidgetSettings$onViewBound$1$19.INSTANCE); - binding.K.setOnClickListener(WidgetSettings$onViewBound$1$20.INSTANCE); - binding.F.setOnClickListener(WidgetSettings$onViewBound$1$21.INSTANCE); - binding.H.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$5(binding, this)); + binding.f2040y.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$4(this)); + binding.H.setOnClickListener(WidgetSettings$onViewBound$1$19.INSTANCE); + binding.L.setOnClickListener(WidgetSettings$onViewBound$1$20.INSTANCE); + binding.G.setOnClickListener(WidgetSettings$onViewBound$1$21.INSTANCE); + binding.I.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$5(binding, this)); binding.d.setOnClickListener(WidgetSettings$onViewBound$1$23.INSTANCE); binding.k.setOnClickListener(WidgetSettings$onViewBound$1$24.INSTANCE); - binding.w.setOnClickListener(WidgetSettings$onViewBound$1$25.INSTANCE); - for (TextView textView2 : n.listOf((Object[]) new TextView[]{binding.I, binding.t, binding.g, binding.o, binding.f})) { + binding.f2039x.setOnClickListener(WidgetSettings$onViewBound$1$25.INSTANCE); + binding.w.setOnClickListener(WidgetSettings$onViewBound$1$26.INSTANCE); + for (TextView textView2 : n.listOf((Object[]) new TextView[]{binding.J, binding.t, binding.g, binding.o, binding.f})) { AccessibilityUtils accessibilityUtils = AccessibilityUtils.INSTANCE; m.checkNotNullExpressionValue(textView2, "header"); accessibilityUtils.setViewIsHeading(textView2); @@ -347,12 +381,9 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi public void onViewBoundOrOnResume() { super.onViewBoundOrOnResume(); UserProfileHeaderView.Companion companion = UserProfileHeaderView.Companion; - UserProfileHeaderView userProfileHeaderView = getBinding().J; + UserProfileHeaderView userProfileHeaderView = getBinding().K; m.checkNotNullExpressionValue(userProfileHeaderView, "binding.userSettingsProfileHeaderView"); companion.bind(userProfileHeaderView, this, getViewModelUserProfileHeader().observeViewState()); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(Model.Companion.get()), this, null, 2, null), WidgetSettings.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettings$onViewBoundOrOnResume$1(this), 62, (Object) null); - LinearLayout linearLayout = getBinding().v; - m.checkNotNullExpressionValue(linearLayout, "binding.notificationUpsell"); - linearLayout.setVisibility(NotificationManagerCompat.from(requireContext()).areNotificationsEnabled() ^ true ? 0 : 8); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/EditUserOrGuildMemberProfileViewModelKt.java b/app/src/main/java/com/discord/widgets/settings/profile/EditUserOrGuildMemberProfileViewModelKt.java new file mode 100644 index 0000000000..7404202763 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/EditUserOrGuildMemberProfileViewModelKt.java @@ -0,0 +1,4 @@ +package com.discord.widgets.settings.profile; +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ +public final class EditUserOrGuildMemberProfileViewModelKt { +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$1.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$1.java index bd6481f20c..bd8a56275b 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$1.java @@ -1,34 +1,14 @@ package com.discord.widgets.settings.profile; -import com.discord.api.user.User; -import com.discord.models.domain.ModelUserProfile; +import com.discord.models.guild.Guild; import com.discord.models.user.MeUser; -import com.discord.stores.StoreUser; -import com.discord.stores.StoreUserProfile; -import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; -import d0.z.d.m; -import d0.z.d.o; -import kotlin.jvm.functions.Function0; -/* compiled from: SettingsUserProfileViewModel.kt */ -public final class SettingsUserProfileViewModel$Companion$observeStoreState$1 extends o implements Function0 { - public final /* synthetic */ StoreUser $storeUser; - public final /* synthetic */ StoreUserProfile $storeUserProfile; +import kotlin.Pair; +import rx.functions.Func2; +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ +public final class SettingsUserProfileViewModel$Companion$observeStoreState$1 implements Func2> { + public static final SettingsUserProfileViewModel$Companion$observeStoreState$1 INSTANCE = new SettingsUserProfileViewModel$Companion$observeStoreState$1(); - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public SettingsUserProfileViewModel$Companion$observeStoreState$1(StoreUser storeUser, StoreUserProfile storeUserProfile) { - super(0); - this.$storeUser = storeUser; - this.$storeUserProfile = storeUserProfile; - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final SettingsUserProfileViewModel.StoreState mo1invoke() { - MeUser me2 = this.$storeUser.getMe(); - ModelUserProfile userProfile = this.$storeUserProfile.getUserProfile(me2.getId()); - MeUser.Companion companion = MeUser.Companion; - User user = userProfile.getUser(); - m.checkNotNullExpressionValue(user, "userProfile.user"); - return new SettingsUserProfileViewModel.StoreState(companion.merge(me2, user), userProfile); + public final Pair call(MeUser meUser, Guild guild) { + return new Pair<>(meUser, guild); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$2.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$2.java new file mode 100644 index 0000000000..97bfe6b8a9 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$Companion$observeStoreState$2.java @@ -0,0 +1,76 @@ +package com.discord.widgets.settings.profile; + +import com.discord.api.user.User; +import com.discord.models.domain.ModelUserProfile; +import com.discord.models.guild.Guild; +import com.discord.models.member.GuildMember; +import com.discord.models.user.MeUser; +import com.discord.stores.StoreGuilds; +import com.discord.stores.StoreUserProfile; +import com.discord.utilities.channel.GuildChannelsInfo; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import d0.z.d.m; +import j0.k.b; +import kotlin.Pair; +import rx.Observable; +import rx.functions.Func3; +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ +public final class SettingsUserProfileViewModel$Companion$observeStoreState$2 implements b, Observable> { + public final /* synthetic */ Long $guildId; + public final /* synthetic */ StoreGuilds $storeGuilds; + public final /* synthetic */ StoreUserProfile $storeUserProfile; + + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ + /* renamed from: com.discord.widgets.settings.profile.SettingsUserProfileViewModel$Companion$observeStoreState$2$1 reason: invalid class name */ + public static final class AnonymousClass1 implements Func3 { + public final /* synthetic */ Guild $guild; + public final /* synthetic */ MeUser $meUser; + + public AnonymousClass1(MeUser meUser, Guild guild) { + this.$meUser = meUser; + this.$guild = guild; + } + + public final SettingsUserProfileViewModel.StoreState call(ModelUserProfile modelUserProfile, GuildMember guildMember, GuildChannelsInfo guildChannelsInfo) { + MeUser.Companion companion = MeUser.Companion; + MeUser meUser = this.$meUser; + m.checkNotNullExpressionValue(meUser, "meUser"); + m.checkNotNullExpressionValue(modelUserProfile, "userProfile"); + User user = modelUserProfile.getUser(); + m.checkNotNullExpressionValue(user, "userProfile.user"); + MeUser merge = companion.merge(meUser, user); + Guild guild = this.$guild; + m.checkNotNullExpressionValue(guildChannelsInfo, "guildChannelsInfo"); + return new SettingsUserProfileViewModel.StoreState(merge, guild, modelUserProfile, guildMember, guildChannelsInfo); + } + } + + public SettingsUserProfileViewModel$Companion$observeStoreState$2(StoreUserProfile storeUserProfile, StoreGuilds storeGuilds, Long l) { + this.$storeUserProfile = storeUserProfile; + this.$storeGuilds = storeGuilds; + this.$guildId = l; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // j0.k.b + public /* bridge */ /* synthetic */ Observable call(Pair pair) { + return call((Pair) pair); + } + + public final Observable call(Pair pair) { + MeUser component1 = pair.component1(); + Guild component2 = pair.component2(); + Observable observeUserProfile = this.$storeUserProfile.observeUserProfile(component1.getId()); + StoreGuilds storeGuilds = this.$storeGuilds; + Long l = this.$guildId; + long j = -1; + Observable observeGuildMember = storeGuilds.observeGuildMember(l != null ? l.longValue() : -1, component1.getId()); + GuildChannelsInfo.Companion companion = GuildChannelsInfo.Companion; + Long l2 = this.$guildId; + if (l2 != null) { + j = l2.longValue(); + } + return Observable.i(observeUserProfile, observeGuildMember, companion.get(j), new AnonymousClass1(component1, component2)); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$observeHeaderViewState$1.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$observeHeaderViewState$1.java index 0ddd261e45..7e56429d90 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$observeHeaderViewState$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$observeHeaderViewState$1.java @@ -1,6 +1,7 @@ package com.discord.widgets.settings.profile; import com.discord.models.domain.ModelUserProfile; +import com.discord.models.member.GuildMember; import com.discord.models.user.MeUser; import com.discord.nullserializable.NullSerializable; import com.discord.utilities.user.UserUtils; @@ -8,21 +9,46 @@ import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; import com.discord.widgets.user.profile.UserProfileHeaderViewModel; import j0.k.b; import kotlin.NoWhenBranchMatchedException; -/* compiled from: SettingsUserProfileViewModel.kt */ +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public final class SettingsUserProfileViewModel$observeHeaderViewState$1 implements b { public static final SettingsUserProfileViewModel$observeHeaderViewState$1 INSTANCE = new SettingsUserProfileViewModel$observeHeaderViewState$1(); public final UserProfileHeaderViewModel.ViewState call(SettingsUserProfileViewModel.ViewState viewState) { + String str; + GuildMember guildMember; if (viewState == null) { return UserProfileHeaderViewModel.ViewState.Uninitialized.INSTANCE; } if (viewState instanceof SettingsUserProfileViewModel.ViewState.Loaded) { SettingsUserProfileViewModel.ViewState.Loaded loaded = (SettingsUserProfileViewModel.ViewState.Loaded) viewState; - MeUser copy$default = loaded.getCurrentAvatar() != null ? MeUser.copy$default(loaded.getUser(), 0, null, loaded.getCurrentAvatar().a(), null, false, false, 0, null, null, false, false, null, 0, 0, null, null, null, null, 262139, null) : loaded.getUser(); + MeUser user = (loaded.getCurrentAvatar() == null || loaded.getMeMember() != null) ? loaded.getUser() : MeUser.copy$default(loaded.getUser(), 0, null, loaded.getCurrentAvatar().a(), null, false, false, 0, null, null, false, false, null, 0, 0, null, null, null, null, 262139, null); ModelUserProfile userProfile = loaded.getUserProfile(); - String a = loaded.getCurrentBannerImage() != null ? loaded.getCurrentBannerImage().a() : loaded.getUser().getBanner(); + if (loaded.getCurrentBannerImage() != null) { + str = loaded.getCurrentBannerImage() instanceof NullSerializable.a ? loaded.getMeMember() != null ? loaded.getUser().getBanner() : null : loaded.getCurrentBannerImage().a(); + } else { + GuildMember meMember = loaded.getMeMember(); + if (meMember == null || (str = meMember.getBannerHash()) == null) { + str = loaded.getUser().getBanner(); + } + } NullSerializable currentBannerColorHex = loaded.getCurrentBannerColorHex(); - return new UserProfileHeaderViewModel.ViewState.Loaded(copy$default, a, (!(currentBannerColorHex instanceof NullSerializable.b) && !(currentBannerColorHex instanceof NullSerializable.a)) ? loaded.getUser().getBannerColor() : currentBannerColorHex.a(), null, null, null, null, userProfile, UserUtils.INSTANCE.isPremium(loaded.getUser()), loaded.getUser().isVerified(), 0, false, false, true, false, false, false, 117880, null); + String bannerColor = (!(currentBannerColorHex instanceof NullSerializable.b) && !(currentBannerColorHex instanceof NullSerializable.a)) ? loaded.getUser().getBannerColor() : currentBannerColorHex.a(); + boolean isPremium = UserUtils.INSTANCE.isPremium(loaded.getUser()); + boolean isVerified = loaded.getUser().isVerified(); + if (loaded.getMeMember() != null) { + GuildMember meMember2 = loaded.getMeMember(); + if (loaded.getCurrentAvatar() != null) { + meMember2 = GuildMember.copy$default(meMember2, 0, 0, null, null, null, false, null, 0, 0, loaded.getCurrentAvatar().a(), null, null, 3583, null); + } + GuildMember guildMember2 = meMember2; + if (loaded.getCurrentBannerImage() != null) { + guildMember2 = GuildMember.copy$default(guildMember2, 0, 0, null, null, null, false, null, 0, 0, null, loaded.getCurrentBannerImage().a(), null, 3071, null); + } + guildMember = guildMember2; + } else { + guildMember = loaded.getMeMember(); + } + return new UserProfileHeaderViewModel.ViewState.Loaded(user, str, bannerColor, guildMember, null, null, null, userProfile, isPremium, isVerified, 0, false, false, true, false, false, false, 117872, null); } throw new NoWhenBranchMatchedException(); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$1.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$1.java new file mode 100644 index 0000000000..444c3d7c1c --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$1.java @@ -0,0 +1,33 @@ +package com.discord.widgets.settings.profile; + +import com.discord.utilities.error.Error; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ +public final class SettingsUserProfileViewModel$saveGuildMemberChanges$1 extends o implements Function1 { + public final /* synthetic */ SettingsUserProfileViewModel this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public SettingsUserProfileViewModel$saveGuildMemberChanges$1(SettingsUserProfileViewModel settingsUserProfileViewModel) { + super(1); + this.this$0 = settingsUserProfileViewModel; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Error error) { + invoke(error); + return Unit.a; + } + + public final void invoke(Error error) { + m.checkNotNullParameter(error, "it"); + PublishSubject access$getEventSubject$p = SettingsUserProfileViewModel.access$getEventSubject$p(this.this$0); + access$getEventSubject$p.j.onNext(SettingsUserProfileViewModel.Event.UserUpdateRequestCompleted.INSTANCE); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$2.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$2.java new file mode 100644 index 0000000000..9c7614cbfd --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveGuildMemberChanges$2.java @@ -0,0 +1,38 @@ +package com.discord.widgets.settings.profile; + +import com.discord.api.guildmember.GuildMember; +import com.discord.models.member.GuildMember; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +import rx.subjects.PublishSubject; +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ +public final class SettingsUserProfileViewModel$saveGuildMemberChanges$2 extends o implements Function1 { + public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState; + public final /* synthetic */ SettingsUserProfileViewModel this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public SettingsUserProfileViewModel$saveGuildMemberChanges$2(SettingsUserProfileViewModel settingsUserProfileViewModel, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + super(1); + this.this$0 = settingsUserProfileViewModel; + this.$viewState = loaded; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(GuildMember guildMember) { + invoke(guildMember); + return Unit.a; + } + + public final void invoke(GuildMember guildMember) { + m.checkNotNullParameter(guildMember, "apiMember"); + SettingsUserProfileViewModel.access$getStoreGuilds$p(this.this$0).handleGuildMemberAdd(GuildMember.a(guildMember, SettingsUserProfileViewModel.access$getGuildId$p(this.this$0).longValue(), null, null, null, null, null, false, null, null, null, null, null, 4094)); + SettingsUserProfileViewModel.access$updateViewState(this.this$0, SettingsUserProfileViewModel.ViewState.Loaded.copy$default(this.$viewState, null, null, GuildMember.Companion.from$default(com.discord.models.member.GuildMember.Companion, guildMember, SettingsUserProfileViewModel.access$getGuildId$p(this.this$0).longValue(), null, SettingsUserProfileViewModel.access$getStoreGuilds$p(this.this$0), 4, null), null, null, null, null, null, null, null, false, false, 3979, null)); + PublishSubject access$getEventSubject$p = SettingsUserProfileViewModel.access$getEventSubject$p(this.this$0); + access$getEventSubject$p.j.onNext(SettingsUserProfileViewModel.Event.UserUpdateRequestCompleted.INSTANCE); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$1.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$1.java index cd5828b696..b5df41330e 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$1.java @@ -7,7 +7,7 @@ import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; import rx.subjects.PublishSubject; -/* compiled from: SettingsUserProfileViewModel.kt */ +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public final class SettingsUserProfileViewModel$saveUserChanges$1 extends o implements Function1 { public final /* synthetic */ SettingsUserProfileViewModel this$0; diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$2.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$2.java index 1043e5fdc9..5aa09af487 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$2.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel$saveUserChanges$2.java @@ -8,7 +8,7 @@ import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; import rx.subjects.PublishSubject; -/* compiled from: SettingsUserProfileViewModel.kt */ +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public final class SettingsUserProfileViewModel$saveUserChanges$2 extends o implements Function1 { public final /* synthetic */ MeUser $meUser; public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState; @@ -33,7 +33,7 @@ public final class SettingsUserProfileViewModel$saveUserChanges$2 extends o impl public final void invoke(User user) { m.checkNotNullParameter(user, "apiUser"); SettingsUserProfileViewModel.access$getStoreUserProfile$p(this.this$0).updateUser(user); - SettingsUserProfileViewModel.access$updateViewState(this.this$0, SettingsUserProfileViewModel.ViewState.Loaded.copy$default(this.$viewState, MeUser.Companion.merge(this.$meUser, user), null, null, null, null, null, null, false, 226, null)); + SettingsUserProfileViewModel.access$updateViewState(this.this$0, SettingsUserProfileViewModel.ViewState.Loaded.copy$default(this.$viewState, MeUser.Companion.merge(this.$meUser, user), null, null, null, null, null, null, null, null, null, false, false, 3982, null)); PublishSubject access$getEventSubject$p = SettingsUserProfileViewModel.access$getEventSubject$p(this.this$0); access$getEventSubject$p.j.onNext(SettingsUserProfileViewModel.Event.UserUpdateRequestCompleted.INSTANCE); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel.java index ae31aa8ddd..39934ab6f4 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModel.java @@ -3,18 +3,22 @@ package com.discord.widgets.settings.profile; import android.content.Context; import androidx.annotation.MainThread; import c.d.b.a.a; +import com.discord.api.guildmember.PatchGuildMemberBody; import com.discord.api.user.PatchUserBody; import com.discord.app.AppViewModel; +import com.discord.models.domain.ModelAuditLogEntry; import com.discord.models.domain.ModelUserProfile; +import com.discord.models.guild.Guild; +import com.discord.models.member.GuildMember; import com.discord.models.user.MeUser; import com.discord.nullserializable.NullSerializable; import com.discord.simpleast.core.node.Node; import com.discord.simpleast.core.parser.Parser; +import com.discord.stores.StoreGuilds; import com.discord.stores.StoreStream; import com.discord.stores.StoreUser; import com.discord.stores.StoreUserProfile; -import com.discord.stores.updates.ObservationDeck; -import com.discord.stores.updates.ObservationDeckProvider; +import com.discord.utilities.channel.GuildChannelsInfo; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import com.discord.utilities.textprocessing.DiscordParser; @@ -35,16 +39,18 @@ import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import rx.Observable; import rx.subjects.PublishSubject; -/* compiled from: SettingsUserProfileViewModel.kt */ +/* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public final class SettingsUserProfileViewModel extends AppViewModel { public static final Companion Companion = new Companion(null); private final Parser, MessageParseState> bioParser; private final PublishSubject eventSubject; + private final Long guildId; private final RestAPI restAPI; private final Set revealedBioIndices; + private final StoreGuilds storeGuilds; private final StoreUserProfile storeUserProfile; - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ /* renamed from: com.discord.widgets.settings.profile.SettingsUserProfileViewModel$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public final /* synthetic */ SettingsUserProfileViewModel this$0; @@ -64,11 +70,11 @@ public final class SettingsUserProfileViewModel extends AppViewModel } public final void invoke(MeUser meUser) { - SettingsUserProfileViewModel.access$getStoreUserProfile$p(this.this$0).fetchProfile(meUser.getId()); + StoreUserProfile.fetchProfile$default(SettingsUserProfileViewModel.access$getStoreUserProfile$p(this.this$0), meUser.getId(), null, 2, null); } } - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ /* renamed from: com.discord.widgets.settings.profile.SettingsUserProfileViewModel$2 reason: invalid class name */ public static final class AnonymousClass2 extends o implements Function1 { public final /* synthetic */ SettingsUserProfileViewModel this$0; @@ -94,7 +100,7 @@ public final class SettingsUserProfileViewModel extends AppViewModel } } - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static final class Companion { private Companion() { } @@ -103,25 +109,30 @@ public final class SettingsUserProfileViewModel extends AppViewModel this(); } - private final Observable observeStoreState(StoreUser storeUser, StoreUserProfile storeUserProfile) { - return ObservationDeck.connectRx$default(ObservationDeckProvider.get(), new ObservationDeck.UpdateSource[]{StoreUser.Companion.getMeUpdate(), storeUserProfile}, false, null, null, new SettingsUserProfileViewModel$Companion$observeStoreState$1(storeUser, storeUserProfile), 14, null); + private final Observable observeStoreState(Long l, StoreUser storeUser, StoreGuilds storeGuilds, StoreUserProfile storeUserProfile) { + Observable Y = Observable.j(StoreUser.observeMe$default(storeUser, false, 1, null), storeGuilds.observeGuild(l != null ? l.longValue() : -1), SettingsUserProfileViewModel$Companion$observeStoreState$1.INSTANCE).Y(new SettingsUserProfileViewModel$Companion$observeStoreState$2(storeUserProfile, storeGuilds, l)); + m.checkNotNullExpressionValue(Y, "Observable.combineLatest… )\n }\n }"); + return Y; } - public static /* synthetic */ Observable observeStoreState$default(Companion companion, StoreUser storeUser, StoreUserProfile storeUserProfile, int i, Object obj) { - if ((i & 1) != 0) { + public static /* synthetic */ Observable observeStoreState$default(Companion companion, Long l, StoreUser storeUser, StoreGuilds storeGuilds, StoreUserProfile storeUserProfile, int i, Object obj) { + if ((i & 2) != 0) { storeUser = StoreStream.Companion.getUsers(); } - if ((i & 2) != 0) { + if ((i & 4) != 0) { + storeGuilds = StoreStream.Companion.getGuilds(); + } + if ((i & 8) != 0) { storeUserProfile = StoreStream.Companion.getUserProfile(); } - return companion.observeStoreState(storeUser, storeUserProfile); + return companion.observeStoreState(l, storeUser, storeGuilds, storeUserProfile); } } - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static abstract class Event { - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static final class UserUpdateRequestCompleted extends Event { public static final UserUpdateRequestCompleted INSTANCE = new UserUpdateRequestCompleted(); @@ -138,40 +149,69 @@ public final class SettingsUserProfileViewModel extends AppViewModel } } - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static final class StoreState { + private final Guild guild; + private final GuildChannelsInfo guildChannelsInfo; + private final GuildMember meMember; private final MeUser user; private final ModelUserProfile userProfile; - public StoreState(MeUser meUser, ModelUserProfile modelUserProfile) { + public StoreState(MeUser meUser, Guild guild, ModelUserProfile modelUserProfile, GuildMember guildMember, GuildChannelsInfo guildChannelsInfo) { m.checkNotNullParameter(meUser, "user"); m.checkNotNullParameter(modelUserProfile, "userProfile"); + m.checkNotNullParameter(guildChannelsInfo, "guildChannelsInfo"); this.user = meUser; + this.guild = guild; this.userProfile = modelUserProfile; + this.meMember = guildMember; + this.guildChannelsInfo = guildChannelsInfo; } - public static /* synthetic */ StoreState copy$default(StoreState storeState, MeUser meUser, ModelUserProfile modelUserProfile, int i, Object obj) { + public static /* synthetic */ StoreState copy$default(StoreState storeState, MeUser meUser, Guild guild, ModelUserProfile modelUserProfile, GuildMember guildMember, GuildChannelsInfo guildChannelsInfo, int i, Object obj) { if ((i & 1) != 0) { meUser = storeState.user; } if ((i & 2) != 0) { + guild = storeState.guild; + } + if ((i & 4) != 0) { modelUserProfile = storeState.userProfile; } - return storeState.copy(meUser, modelUserProfile); + if ((i & 8) != 0) { + guildMember = storeState.meMember; + } + if ((i & 16) != 0) { + guildChannelsInfo = storeState.guildChannelsInfo; + } + return storeState.copy(meUser, guild, modelUserProfile, guildMember, guildChannelsInfo); } public final MeUser component1() { return this.user; } - public final ModelUserProfile component2() { + public final Guild component2() { + return this.guild; + } + + public final ModelUserProfile component3() { return this.userProfile; } - public final StoreState copy(MeUser meUser, ModelUserProfile modelUserProfile) { + public final GuildMember component4() { + return this.meMember; + } + + public final GuildChannelsInfo component5() { + return this.guildChannelsInfo; + } + + public final StoreState copy(MeUser meUser, Guild guild, ModelUserProfile modelUserProfile, GuildMember guildMember, GuildChannelsInfo guildChannelsInfo) { m.checkNotNullParameter(meUser, "user"); m.checkNotNullParameter(modelUserProfile, "userProfile"); - return new StoreState(meUser, modelUserProfile); + m.checkNotNullParameter(guildChannelsInfo, "guildChannelsInfo"); + return new StoreState(meUser, guild, modelUserProfile, guildMember, guildChannelsInfo); } public boolean equals(Object obj) { @@ -182,7 +222,19 @@ public final class SettingsUserProfileViewModel extends AppViewModel return false; } StoreState storeState = (StoreState) obj; - return m.areEqual(this.user, storeState.user) && m.areEqual(this.userProfile, storeState.userProfile); + return m.areEqual(this.user, storeState.user) && m.areEqual(this.guild, storeState.guild) && m.areEqual(this.userProfile, storeState.userProfile) && m.areEqual(this.meMember, storeState.meMember) && m.areEqual(this.guildChannelsInfo, storeState.guildChannelsInfo); + } + + public final Guild getGuild() { + return this.guild; + } + + public final GuildChannelsInfo getGuildChannelsInfo() { + return this.guildChannelsInfo; + } + + public final GuildMember getMeMember() { + return this.meMember; } public final MeUser getUser() { @@ -197,38 +249,58 @@ public final class SettingsUserProfileViewModel extends AppViewModel MeUser meUser = this.user; int i = 0; int hashCode = (meUser != null ? meUser.hashCode() : 0) * 31; + Guild guild = this.guild; + int hashCode2 = (hashCode + (guild != null ? guild.hashCode() : 0)) * 31; ModelUserProfile modelUserProfile = this.userProfile; - if (modelUserProfile != null) { - i = modelUserProfile.hashCode(); + int hashCode3 = (hashCode2 + (modelUserProfile != null ? modelUserProfile.hashCode() : 0)) * 31; + GuildMember guildMember = this.meMember; + int hashCode4 = (hashCode3 + (guildMember != null ? guildMember.hashCode() : 0)) * 31; + GuildChannelsInfo guildChannelsInfo = this.guildChannelsInfo; + if (guildChannelsInfo != null) { + i = guildChannelsInfo.hashCode(); } - return hashCode + i; + return hashCode4 + i; } public String toString() { StringBuilder R = a.R("StoreState(user="); R.append(this.user); + R.append(", guild="); + R.append(this.guild); R.append(", userProfile="); R.append(this.userProfile); + R.append(", meMember="); + R.append(this.meMember); + R.append(", guildChannelsInfo="); + R.append(this.guildChannelsInfo); R.append(")"); return R.toString(); } } - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static abstract class ViewState { - /* compiled from: SettingsUserProfileViewModel.kt */ + /* compiled from: EditUserOrGuildMemberProfileViewModel.kt */ public static final class Loaded extends ViewState { private final List> bioAst; + private final boolean canEditNickname; private final NullSerializable currentAvatar; private final NullSerializable currentBannerColorHex; private final NullSerializable currentBannerImage; private final String currentBio; + private final String currentNickname; + private final Guild guild; private final boolean hasAvatarForDisplay; private final boolean hasBannerImageForDisplay; + private final boolean hasMemberAvatarForDisplay; + private final boolean hasMemberBannerForDisplay; + private final boolean hasUserAvatarForDisplay; + private final boolean hasUserBannerForDisplay; private final boolean isBioChanged; private final boolean isDirty; private final boolean isEditingBio; + private final GuildMember meMember; private final String nonDefaultColorPreviewHex; private final boolean showBioEditor; private final boolean showSaveFab; @@ -236,105 +308,192 @@ public final class SettingsUserProfileViewModel extends AppViewModel private final ModelUserProfile userProfile; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - /* JADX WARNING: Removed duplicated region for block: B:31:0x0079 */ - /* JADX WARNING: Removed duplicated region for block: B:33:0x0080 */ - public Loaded(MeUser meUser, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, List> list, boolean z2) { + /* JADX WARNING: Code restructure failed: missing block: B:20:0x005b, code lost: + if ((!d0.z.d.m.areEqual(r13 == null ? "" : r13, r9 == null ? "" : r9)) != false) goto L_0x0060; + */ + /* JADX WARNING: Removed duplicated region for block: B:30:0x0079 */ + /* JADX WARNING: Removed duplicated region for block: B:40:0x0092 */ + /* JADX WARNING: Removed duplicated region for block: B:46:0x00a5 */ + /* JADX WARNING: Removed duplicated region for block: B:52:0x00b2 */ + /* JADX WARNING: Removed duplicated region for block: B:58:0x00c1 */ + /* JADX WARNING: Removed duplicated region for block: B:66:0x00d0 */ + /* JADX WARNING: Removed duplicated region for block: B:72:0x00dd */ + public Loaded(MeUser meUser, Guild guild, GuildMember guildMember, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, String str2, List> list, boolean z2, boolean z3) { super(null); - boolean z3; + boolean z4; + boolean z5; m.checkNotNullParameter(meUser, "user"); m.checkNotNullParameter(modelUserProfile, "userProfile"); this.user = meUser; + this.guild = guild; + this.meMember = guildMember; this.userProfile = modelUserProfile; this.currentAvatar = nullSerializable; this.currentBannerImage = nullSerializable2; this.currentBannerColorHex = nullSerializable3; - this.currentBio = str; + this.currentNickname = str; + this.currentBio = str2; this.bioAst = list; this.isEditingBio = z2; - boolean z4 = false; - boolean z5 = (nullSerializable == null && nullSerializable2 == null && nullSerializable3 == null && !(m.areEqual(str, meUser.getBio()) ^ true)) ? false : true; - this.isDirty = z5; - this.showSaveFab = z5 && !z2; - this.isBioChanged = !m.areEqual(str, meUser.getBio()); - if (!z2) { - if (!(str == null || t.isBlank(str))) { - z3 = false; - this.showBioEditor = z3; - this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); - this.hasAvatarForDisplay = nullSerializable == null ? meUser.getAvatar() != null : nullSerializable.a() != null; - if (nullSerializable2 == null ? meUser.getBanner() != null : nullSerializable2.a() != null) { - z4 = true; + this.canEditNickname = z3; + boolean z6 = false; + if (nullSerializable == null && nullSerializable2 == null && nullSerializable3 == null) { + if (guildMember != null) { + } + String str3 = ""; + if (!(!m.areEqual(str2, str3))) { + if (guildMember != null) { + String nick = guildMember.getNick(); } - this.hasBannerImageForDisplay = z4; + z4 = false; + this.isDirty = z4; + this.showSaveFab = !z4 && !z2; + this.isBioChanged = !m.areEqual(str2, meUser.getBio()); + if (!z2) { + if (!(str2 == null || t.isBlank(str2))) { + z5 = false; + this.showBioEditor = z5; + this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); + boolean z7 = (guildMember == null || meUser.getAvatar() == null) ? false : true; + this.hasUserAvatarForDisplay = z7; + boolean z8 = guildMember == null && guildMember.hasAvatar(); + this.hasMemberAvatarForDisplay = z8; + this.hasAvatarForDisplay = (nullSerializable instanceof NullSerializable.a) && ((nullSerializable instanceof NullSerializable.b) || z7 || z8); + boolean z9 = (guildMember == null || meUser.getBanner() == null) ? false : true; + this.hasUserBannerForDisplay = z9; + boolean z10 = guildMember == null && guildMember.hasBanner(); + this.hasMemberBannerForDisplay = z10; + if (!(nullSerializable2 instanceof NullSerializable.a) && ((nullSerializable2 instanceof NullSerializable.b) || z9 || z10)) { + z6 = true; + } + this.hasBannerImageForDisplay = z6; + } + } + z5 = true; + this.showBioEditor = z5; + if (!(nullSerializable3 instanceof NullSerializable.b)) { + this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); + if (guildMember == null) { + } + this.hasUserAvatarForDisplay = z7; + if (guildMember == null) { + } + this.hasMemberAvatarForDisplay = z8; + this.hasAvatarForDisplay = (nullSerializable instanceof NullSerializable.a) && ((nullSerializable instanceof NullSerializable.b) || z7 || z8); + if (guildMember == null) { + } + this.hasUserBannerForDisplay = z9; + if (guildMember == null) { + } + this.hasMemberBannerForDisplay = z10; + z6 = true; + this.hasBannerImageForDisplay = z6; + } + this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); + if (guildMember == null) { + } + this.hasUserAvatarForDisplay = z7; + if (guildMember == null) { + } + this.hasMemberAvatarForDisplay = z8; + this.hasAvatarForDisplay = (nullSerializable instanceof NullSerializable.a) && ((nullSerializable instanceof NullSerializable.b) || z7 || z8); + if (guildMember == null) { + } + this.hasUserBannerForDisplay = z9; + if (guildMember == null) { + } + this.hasMemberBannerForDisplay = z10; + z6 = true; + this.hasBannerImageForDisplay = z6; } } - z3 = true; - this.showBioEditor = z3; - if (!(nullSerializable3 instanceof NullSerializable.b)) { - this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); - if (nullSerializable == null) { - this.hasAvatarForDisplay = nullSerializable == null ? meUser.getAvatar() != null : nullSerializable.a() != null; - z4 = true; - this.hasBannerImageForDisplay = z4; - } - this.hasAvatarForDisplay = nullSerializable == null ? meUser.getAvatar() != null : nullSerializable.a() != null; - z4 = true; - this.hasBannerImageForDisplay = z4; - this.hasAvatarForDisplay = nullSerializable == null ? meUser.getAvatar() != null : nullSerializable.a() != null; - z4 = true; - this.hasBannerImageForDisplay = z4; - } - this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); - this.hasAvatarForDisplay = nullSerializable == null ? meUser.getAvatar() != null : nullSerializable.a() != null; z4 = true; - this.hasBannerImageForDisplay = z4; + this.isDirty = z4; + this.showSaveFab = !z4 && !z2; + this.isBioChanged = !m.areEqual(str2, meUser.getBio()); + if (!z2) { + } + z5 = true; + this.showBioEditor = z5; + this.nonDefaultColorPreviewHex = (!(nullSerializable3 instanceof NullSerializable.b) && !(nullSerializable3 instanceof NullSerializable.a)) ? meUser.getBannerColor() : nullSerializable3.a(); + if (guildMember == null) { + } + this.hasUserAvatarForDisplay = z7; + if (guildMember == null) { + } + this.hasMemberAvatarForDisplay = z8; + this.hasAvatarForDisplay = (nullSerializable instanceof NullSerializable.a) && ((nullSerializable instanceof NullSerializable.b) || z7 || z8); + if (guildMember == null) { + } + this.hasUserBannerForDisplay = z9; + if (guildMember == null) { + } + this.hasMemberBannerForDisplay = z10; + z6 = true; + this.hasBannerImageForDisplay = z6; } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ Loaded(MeUser meUser, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, List list, boolean z2, int i, DefaultConstructorMarker defaultConstructorMarker) { - this(meUser, modelUserProfile, (i & 4) != 0 ? null : nullSerializable, (i & 8) != 0 ? null : nullSerializable2, (i & 16) != 0 ? null : nullSerializable3, str, list, z2); + public /* synthetic */ Loaded(MeUser meUser, Guild guild, GuildMember guildMember, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, String str2, List list, boolean z2, boolean z3, int i, DefaultConstructorMarker defaultConstructorMarker) { + this(meUser, guild, guildMember, modelUserProfile, (i & 16) != 0 ? null : nullSerializable, (i & 32) != 0 ? null : nullSerializable2, (i & 64) != 0 ? null : nullSerializable3, (i & 128) != 0 ? null : str, str2, list, z2, z3); } - public static /* synthetic */ Loaded copy$default(Loaded loaded, MeUser meUser, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, List list, boolean z2, int i, Object obj) { - return loaded.copy((i & 1) != 0 ? loaded.user : meUser, (i & 2) != 0 ? loaded.userProfile : modelUserProfile, (i & 4) != 0 ? loaded.currentAvatar : nullSerializable, (i & 8) != 0 ? loaded.currentBannerImage : nullSerializable2, (i & 16) != 0 ? loaded.currentBannerColorHex : nullSerializable3, (i & 32) != 0 ? loaded.currentBio : str, (i & 64) != 0 ? loaded.bioAst : list, (i & 128) != 0 ? loaded.isEditingBio : z2); + public static /* synthetic */ Loaded copy$default(Loaded loaded, MeUser meUser, Guild guild, GuildMember guildMember, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, String str2, List list, boolean z2, boolean z3, int i, Object obj) { + return loaded.copy((i & 1) != 0 ? loaded.user : meUser, (i & 2) != 0 ? loaded.guild : guild, (i & 4) != 0 ? loaded.meMember : guildMember, (i & 8) != 0 ? loaded.userProfile : modelUserProfile, (i & 16) != 0 ? loaded.currentAvatar : nullSerializable, (i & 32) != 0 ? loaded.currentBannerImage : nullSerializable2, (i & 64) != 0 ? loaded.currentBannerColorHex : nullSerializable3, (i & 128) != 0 ? loaded.currentNickname : str, (i & 256) != 0 ? loaded.currentBio : str2, (i & 512) != 0 ? loaded.bioAst : list, (i & 1024) != 0 ? loaded.isEditingBio : z2, (i & 2048) != 0 ? loaded.canEditNickname : z3); } public final MeUser component1() { return this.user; } - public final ModelUserProfile component2() { - return this.userProfile; - } - - public final NullSerializable component3() { - return this.currentAvatar; - } - - public final NullSerializable component4() { - return this.currentBannerImage; - } - - public final NullSerializable component5() { - return this.currentBannerColorHex; - } - - public final String component6() { - return this.currentBio; - } - - public final List> component7() { + public final List> component10() { return this.bioAst; } - public final boolean component8() { + public final boolean component11() { return this.isEditingBio; } - public final Loaded copy(MeUser meUser, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, List> list, boolean z2) { + public final boolean component12() { + return this.canEditNickname; + } + + public final Guild component2() { + return this.guild; + } + + public final GuildMember component3() { + return this.meMember; + } + + public final ModelUserProfile component4() { + return this.userProfile; + } + + public final NullSerializable component5() { + return this.currentAvatar; + } + + public final NullSerializable component6() { + return this.currentBannerImage; + } + + public final NullSerializable component7() { + return this.currentBannerColorHex; + } + + public final String component8() { + return this.currentNickname; + } + + public final String component9() { + return this.currentBio; + } + + public final Loaded copy(MeUser meUser, Guild guild, GuildMember guildMember, ModelUserProfile modelUserProfile, NullSerializable nullSerializable, NullSerializable nullSerializable2, NullSerializable nullSerializable3, String str, String str2, List> list, boolean z2, boolean z3) { m.checkNotNullParameter(meUser, "user"); m.checkNotNullParameter(modelUserProfile, "userProfile"); - return new Loaded(meUser, modelUserProfile, nullSerializable, nullSerializable2, nullSerializable3, str, list, z2); + return new Loaded(meUser, guild, guildMember, modelUserProfile, nullSerializable, nullSerializable2, nullSerializable3, str, str2, list, z2, z3); } public boolean equals(Object obj) { @@ -345,13 +504,17 @@ public final class SettingsUserProfileViewModel extends AppViewModel return false; } Loaded loaded = (Loaded) obj; - return m.areEqual(this.user, loaded.user) && m.areEqual(this.userProfile, loaded.userProfile) && m.areEqual(this.currentAvatar, loaded.currentAvatar) && m.areEqual(this.currentBannerImage, loaded.currentBannerImage) && m.areEqual(this.currentBannerColorHex, loaded.currentBannerColorHex) && m.areEqual(this.currentBio, loaded.currentBio) && m.areEqual(this.bioAst, loaded.bioAst) && this.isEditingBio == loaded.isEditingBio; + return m.areEqual(this.user, loaded.user) && m.areEqual(this.guild, loaded.guild) && m.areEqual(this.meMember, loaded.meMember) && m.areEqual(this.userProfile, loaded.userProfile) && m.areEqual(this.currentAvatar, loaded.currentAvatar) && m.areEqual(this.currentBannerImage, loaded.currentBannerImage) && m.areEqual(this.currentBannerColorHex, loaded.currentBannerColorHex) && m.areEqual(this.currentNickname, loaded.currentNickname) && m.areEqual(this.currentBio, loaded.currentBio) && m.areEqual(this.bioAst, loaded.bioAst) && this.isEditingBio == loaded.isEditingBio && this.canEditNickname == loaded.canEditNickname; } public final List> getBioAst() { return this.bioAst; } + public final boolean getCanEditNickname() { + return this.canEditNickname; + } + public final NullSerializable getCurrentAvatar() { return this.currentAvatar; } @@ -368,6 +531,14 @@ public final class SettingsUserProfileViewModel extends AppViewModel return this.currentBio; } + public final String getCurrentNickname() { + return this.currentNickname; + } + + public final Guild getGuild() { + return this.guild; + } + public final boolean getHasAvatarForDisplay() { return this.hasAvatarForDisplay; } @@ -376,6 +547,10 @@ public final class SettingsUserProfileViewModel extends AppViewModel return this.hasBannerImageForDisplay; } + public final GuildMember getMeMember() { + return this.meMember; + } + public final String getNonDefaultColorPreviewHex() { return this.nonDefaultColorPreviewHex; } @@ -400,29 +575,41 @@ public final class SettingsUserProfileViewModel extends AppViewModel MeUser meUser = this.user; int i = 0; int hashCode = (meUser != null ? meUser.hashCode() : 0) * 31; + Guild guild = this.guild; + int hashCode2 = (hashCode + (guild != null ? guild.hashCode() : 0)) * 31; + GuildMember guildMember = this.meMember; + int hashCode3 = (hashCode2 + (guildMember != null ? guildMember.hashCode() : 0)) * 31; ModelUserProfile modelUserProfile = this.userProfile; - int hashCode2 = (hashCode + (modelUserProfile != null ? modelUserProfile.hashCode() : 0)) * 31; + int hashCode4 = (hashCode3 + (modelUserProfile != null ? modelUserProfile.hashCode() : 0)) * 31; NullSerializable nullSerializable = this.currentAvatar; - int hashCode3 = (hashCode2 + (nullSerializable != null ? nullSerializable.hashCode() : 0)) * 31; + int hashCode5 = (hashCode4 + (nullSerializable != null ? nullSerializable.hashCode() : 0)) * 31; NullSerializable nullSerializable2 = this.currentBannerImage; - int hashCode4 = (hashCode3 + (nullSerializable2 != null ? nullSerializable2.hashCode() : 0)) * 31; + int hashCode6 = (hashCode5 + (nullSerializable2 != null ? nullSerializable2.hashCode() : 0)) * 31; NullSerializable nullSerializable3 = this.currentBannerColorHex; - int hashCode5 = (hashCode4 + (nullSerializable3 != null ? nullSerializable3.hashCode() : 0)) * 31; - String str = this.currentBio; - int hashCode6 = (hashCode5 + (str != null ? str.hashCode() : 0)) * 31; + int hashCode7 = (hashCode6 + (nullSerializable3 != null ? nullSerializable3.hashCode() : 0)) * 31; + String str = this.currentNickname; + int hashCode8 = (hashCode7 + (str != null ? str.hashCode() : 0)) * 31; + String str2 = this.currentBio; + int hashCode9 = (hashCode8 + (str2 != null ? str2.hashCode() : 0)) * 31; List> list = this.bioAst; if (list != null) { i = list.hashCode(); } - int i2 = (hashCode6 + i) * 31; + int i2 = (hashCode9 + i) * 31; boolean z2 = this.isEditingBio; + int i3 = 1; if (z2) { z2 = true; } - int i3 = z2 ? 1 : 0; int i4 = z2 ? 1 : 0; int i5 = z2 ? 1 : 0; - return i2 + i3; + int i6 = z2 ? 1 : 0; + int i7 = (i2 + i4) * 31; + boolean z3 = this.canEditNickname; + if (!z3) { + i3 = z3 ? 1 : 0; + } + return i7 + i3; } public final boolean isBioChanged() { @@ -440,6 +627,10 @@ public final class SettingsUserProfileViewModel extends AppViewModel public String toString() { StringBuilder R = a.R("Loaded(user="); R.append(this.user); + R.append(", guild="); + R.append(this.guild); + R.append(", meMember="); + R.append(this.meMember); R.append(", userProfile="); R.append(this.userProfile); R.append(", currentAvatar="); @@ -448,12 +639,16 @@ public final class SettingsUserProfileViewModel extends AppViewModel R.append(this.currentBannerImage); R.append(", currentBannerColorHex="); R.append(this.currentBannerColorHex); + R.append(", currentNickname="); + R.append(this.currentNickname); R.append(", currentBio="); R.append(this.currentBio); R.append(", bioAst="); R.append(this.bioAst); R.append(", isEditingBio="); - return a.L(R, this.isEditingBio, ")"); + R.append(this.isEditingBio); + R.append(", canEditNickname="); + return a.L(R, this.canEditNickname, ")"); } } @@ -465,19 +660,18 @@ public final class SettingsUserProfileViewModel extends AppViewModel } } - public SettingsUserProfileViewModel() { - this(null, null, null, null, null, 31, null); - } - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public SettingsUserProfileViewModel(StoreUser storeUser, StoreUserProfile storeUserProfile, RestAPI restAPI, Parser, MessageParseState> parser, Observable observable) { + public SettingsUserProfileViewModel(Long l, StoreUser storeUser, StoreUserProfile storeUserProfile, StoreGuilds storeGuilds, RestAPI restAPI, Parser, MessageParseState> parser, Observable observable) { super(null); m.checkNotNullParameter(storeUser, "storeUser"); m.checkNotNullParameter(storeUserProfile, "storeUserProfile"); + m.checkNotNullParameter(storeGuilds, "storeGuilds"); m.checkNotNullParameter(restAPI, "restAPI"); m.checkNotNullParameter(parser, "bioParser"); m.checkNotNullParameter(observable, "storeStateObservable"); + this.guildId = l; this.storeUserProfile = storeUserProfile; + this.storeGuilds = storeGuilds; this.restAPI = restAPI; this.bioParser = parser; this.eventSubject = PublishSubject.k0(); @@ -491,14 +685,22 @@ public final class SettingsUserProfileViewModel extends AppViewModel } /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ SettingsUserProfileViewModel(StoreUser storeUser, StoreUserProfile storeUserProfile, RestAPI restAPI, Parser parser, Observable observable, int i, DefaultConstructorMarker defaultConstructorMarker) { - this((i & 1) != 0 ? StoreStream.Companion.getUsers() : storeUser, (i & 2) != 0 ? StoreStream.Companion.getUserProfile() : storeUserProfile, (i & 4) != 0 ? RestAPI.Companion.getApi() : restAPI, (i & 8) != 0 ? DiscordParser.createParser$default(false, false, false, 4, null) : parser, (i & 16) != 0 ? Companion.observeStoreState$default(Companion, null, null, 3, null) : observable); + public /* synthetic */ SettingsUserProfileViewModel(Long l, StoreUser storeUser, StoreUserProfile storeUserProfile, StoreGuilds storeGuilds, RestAPI restAPI, Parser parser, Observable observable, int i, DefaultConstructorMarker defaultConstructorMarker) { + this(l, (i & 2) != 0 ? StoreStream.Companion.getUsers() : storeUser, (i & 4) != 0 ? StoreStream.Companion.getUserProfile() : storeUserProfile, (i & 8) != 0 ? StoreStream.Companion.getGuilds() : storeGuilds, (i & 16) != 0 ? RestAPI.Companion.getApi() : restAPI, (i & 32) != 0 ? DiscordParser.createParser$default(false, false, false, 4, null) : parser, (i & 64) != 0 ? Companion.observeStoreState$default(Companion, l, null, null, null, 14, null) : observable); } public static final /* synthetic */ PublishSubject access$getEventSubject$p(SettingsUserProfileViewModel settingsUserProfileViewModel) { return settingsUserProfileViewModel.eventSubject; } + public static final /* synthetic */ Long access$getGuildId$p(SettingsUserProfileViewModel settingsUserProfileViewModel) { + return settingsUserProfileViewModel.guildId; + } + + public static final /* synthetic */ StoreGuilds access$getStoreGuilds$p(SettingsUserProfileViewModel settingsUserProfileViewModel) { + return settingsUserProfileViewModel.storeGuilds; + } + public static final /* synthetic */ StoreUserProfile access$getStoreUserProfile$p(SettingsUserProfileViewModel settingsUserProfileViewModel) { return settingsUserProfileViewModel.storeUserProfile; } @@ -521,34 +723,100 @@ public final class SettingsUserProfileViewModel extends AppViewModel return new MessagePreprocessor(-1, this.revealedBioIndices, null, false, null, 28, null); } + /* JADX WARNING: Removed duplicated region for block: B:33:0x0074 */ + /* JADX WARNING: Removed duplicated region for block: B:36:0x0079 */ + /* JADX WARNING: Removed duplicated region for block: B:37:0x007f */ @MainThread private final void handleStoreState(StoreState storeState) { String str; + String str2; + ViewState viewState; + String str3; MeUser user = storeState.getUser(); - String bio = user.getBio(); + ViewState viewState2 = getViewState(); ViewState.Loaded loaded = null; - List> createAndProcessBioAstFromText = bio != null ? createAndProcessBioAstFromText(bio) : null; - ViewState viewState = getViewState(); - if (!(viewState instanceof ViewState.Loaded)) { - viewState = null; + if (!(viewState2 instanceof ViewState.Loaded)) { + viewState2 = null; } - ViewState.Loaded loaded2 = (ViewState.Loaded) viewState; + ViewState.Loaded loaded2 = (ViewState.Loaded) viewState2; if (loaded2 == null || (str = loaded2.getCurrentBio()) == null) { + GuildMember meMember = storeState.getMeMember(); + if (meMember != null) { + str = meMember.getBio(); + if (str == null) { + str = ""; + } + } else { + str = null; + } + } + if (str == null) { str = user.getBio(); } - ModelUserProfile userProfile = storeState.getUserProfile(); - ViewState viewState2 = getViewState(); - if (viewState2 instanceof ViewState.Loaded) { - loaded = viewState2; + List> createAndProcessBioAstFromText = str != null ? createAndProcessBioAstFromText(str) : null; + ViewState viewState3 = getViewState(); + if (!(viewState3 instanceof ViewState.Loaded)) { + viewState3 = null; } - ViewState.Loaded loaded3 = loaded; - updateViewState(new ViewState.Loaded(user, userProfile, null, null, null, str, createAndProcessBioAstFromText, loaded3 != null ? loaded3.isEditingBio() : false, 28, null)); + ViewState.Loaded loaded3 = (ViewState.Loaded) viewState3; + if (loaded3 == null || (str3 = loaded3.getCurrentNickname()) == null) { + GuildMember meMember2 = storeState.getMeMember(); + if (meMember2 != null) { + str3 = meMember2.getNick(); + } else { + str2 = null; + Guild guild = storeState.getGuild(); + ModelUserProfile userProfile = storeState.getUserProfile(); + viewState = getViewState(); + if (viewState instanceof ViewState.Loaded) { + loaded = viewState; + } + ViewState.Loaded loaded4 = loaded; + updateViewState(new ViewState.Loaded(user, guild, storeState.getMeMember(), userProfile, null, null, null, str2, str, createAndProcessBioAstFromText, loaded4 == null ? loaded4.isEditingBio() : false, storeState.getGuildChannelsInfo().getCanChangeNickname(), 112, null)); + } + } + str2 = str3; + Guild guild = storeState.getGuild(); + ModelUserProfile userProfile = storeState.getUserProfile(); + viewState = getViewState(); + if (viewState instanceof ViewState.Loaded) { + } + ViewState.Loaded loaded4 = loaded; + updateViewState(new ViewState.Loaded(user, guild, storeState.getMeMember(), userProfile, null, null, null, str2, str, createAndProcessBioAstFromText, loaded4 == null ? loaded4.isEditingBio() : false, storeState.getGuildChannelsInfo().getCanChangeNickname(), 112, null)); } private final List> parseBio(String str) { return Parser.parse$default(this.bioParser, str, MessageParseState.Companion.getInitialState(), null, 4, null); } + @MainThread + private final void saveGuildMemberChanges(Context context) { + Long l; + ViewState viewState = getViewState(); + if (!(viewState instanceof ViewState.Loaded)) { + viewState = null; + } + ViewState.Loaded loaded = (ViewState.Loaded) viewState; + if (loaded != null && (l = this.guildId) != null) { + l.longValue(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.updateMeGuildMember(this.guildId.longValue(), new PatchGuildMemberBody(loaded.getCurrentNickname(), loaded.getCurrentAvatar(), loaded.getCurrentBannerImage(), loaded.getCurrentBio())), false, 1, null), this, null, 2, null), SettingsUserProfileViewModel.class, context, (Function1) null, new SettingsUserProfileViewModel$saveGuildMemberChanges$1(this), (Function0) null, (Function0) null, new SettingsUserProfileViewModel$saveGuildMemberChanges$2(this, loaded), 52, (Object) null); + } + } + + @MainThread + private final void saveUserChanges(Context context) { + ViewState viewState = getViewState(); + if (!(viewState instanceof ViewState.Loaded)) { + viewState = null; + } + ViewState.Loaded loaded = (ViewState.Loaded) viewState; + if (loaded != null) { + MeUser user = loaded.getUser(); + String currentBio = loaded.getCurrentBio(); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.patchUser(new PatchUserBody(loaded.getCurrentAvatar(), loaded.getCurrentBannerImage(), loaded.getCurrentBannerColorHex(), loaded.isBioChanged() ? currentBio != null ? new NullSerializable.b(currentBio) : new NullSerializable.a(null, 1) : null)), false, 1, null), this, null, 2, null), SettingsUserProfileViewModel.class, context, (Function1) null, new SettingsUserProfileViewModel$saveUserChanges$1(this), (Function0) null, (Function0) null, new SettingsUserProfileViewModel$saveUserChanges$2(this, user, loaded), 52, (Object) null); + } + } + @MainThread public final void handleBioIndexClicked(SpoilerNode spoilerNode) { String currentBio; @@ -560,7 +828,7 @@ public final class SettingsUserProfileViewModel extends AppViewModel ViewState.Loaded loaded = (ViewState.Loaded) viewState; if (loaded != null && (currentBio = loaded.getCurrentBio()) != null) { this.revealedBioIndices.add(Integer.valueOf(spoilerNode.getId())); - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, createAndProcessBioAstFromText(currentBio), false, 191, null)); + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, null, null, null, createAndProcessBioAstFromText(currentBio), false, false, 3583, null)); } } @@ -577,17 +845,12 @@ public final class SettingsUserProfileViewModel extends AppViewModel } @MainThread - public final void saveUserChanges(Context context) { + public final void saveChanges(Context context) { m.checkNotNullParameter(context, "context"); - ViewState viewState = getViewState(); - if (!(viewState instanceof ViewState.Loaded)) { - viewState = null; - } - ViewState.Loaded loaded = (ViewState.Loaded) viewState; - if (loaded != null) { - MeUser user = loaded.getUser(); - String currentBio = loaded.getCurrentBio(); - ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.restAPI.patchUser(new PatchUserBody(loaded.getCurrentAvatar(), loaded.getCurrentBannerImage(), loaded.getCurrentBannerColorHex(), loaded.isBioChanged() ? currentBio != null ? new NullSerializable.b(currentBio) : new NullSerializable.a(null, 1) : null)), false, 1, null), this, null, 2, null), SettingsUserProfileViewModel.class, context, (Function1) null, new SettingsUserProfileViewModel$saveUserChanges$1(this), (Function0) null, (Function0) null, new SettingsUserProfileViewModel$saveUserChanges$2(this, user, loaded), 52, (Object) null); + if (this.guildId != null) { + saveGuildMemberChanges(context); + } else { + saveUserChanges(context); } } @@ -599,7 +862,7 @@ public final class SettingsUserProfileViewModel extends AppViewModel } ViewState.Loaded loaded = (ViewState.Loaded) viewState; if (loaded != null) { - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, null, null, false, 251, null)); + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, null, null, null, false, false, 4079, null)); } } @@ -611,7 +874,7 @@ public final class SettingsUserProfileViewModel extends AppViewModel } ViewState.Loaded loaded = (ViewState.Loaded) viewState; if (loaded != null) { - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, false, 239, null)); + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, null, false, false, 4031, null)); } } @@ -623,7 +886,7 @@ public final class SettingsUserProfileViewModel extends AppViewModel } ViewState.Loaded loaded = (ViewState.Loaded) viewState; if (loaded != null) { - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, null, false, 247, null)); + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, str != null ? new NullSerializable.b(str) : new NullSerializable.a(null, 1), null, null, null, null, false, false, 4063, null)); } } @@ -635,8 +898,11 @@ public final class SettingsUserProfileViewModel extends AppViewModel viewState = null; } ViewState.Loaded loaded = (ViewState.Loaded) viewState; - if (loaded != null && (!m.areEqual(str, loaded.getCurrentBio()))) { - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, str, createAndProcessBioAstFromText(str), false, 159, null)); + if (loaded == null) { + return; + } + if (!m.areEqual(str, loaded.getCurrentBio())) { + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, null, null, str, createAndProcessBioAstFromText(str), false, false, 3327, null)); } } @@ -648,7 +914,20 @@ public final class SettingsUserProfileViewModel extends AppViewModel } ViewState.Loaded loaded = (ViewState.Loaded) viewState; if (loaded != null) { - updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, null, z2, 127, null)); + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, null, null, null, null, z2, false, 3071, null)); + } + } + + @MainThread + public final void updateNickname(String str) { + m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NICK); + ViewState viewState = getViewState(); + if (!(viewState instanceof ViewState.Loaded)) { + viewState = null; + } + ViewState.Loaded loaded = (ViewState.Loaded) viewState; + if (loaded != null) { + updateViewState(ViewState.Loaded.copy$default(loaded, null, null, null, null, null, null, null, str, null, null, false, false, 3967, null)); } } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModelKt.java b/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModelKt.java deleted file mode 100644 index 0a449c666d..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/SettingsUserProfileViewModelKt.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.discord.widgets.settings.profile; -/* compiled from: SettingsUserProfileViewModel.kt */ -public final class SettingsUserProfileViewModelKt { -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet$isGuildContext$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet$isGuildContext$2.java new file mode 100644 index 0000000000..7723b9b4b2 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet$isGuildContext$2.java @@ -0,0 +1,21 @@ +package com.discord.widgets.settings.profile; + +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: WidgetEditProfileBannerSheet.kt */ +public final class WidgetEditProfileBannerSheet$isGuildContext$2 extends o implements Function0 { + public final /* synthetic */ WidgetEditProfileBannerSheet this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetEditProfileBannerSheet$isGuildContext$2(WidgetEditProfileBannerSheet widgetEditProfileBannerSheet) { + super(0); + this.this$0 = widgetEditProfileBannerSheet; + } + + /* Return type fixed from 'boolean' to match base method */ + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final Boolean mo1invoke() { + return WidgetEditProfileBannerSheet.access$getArgumentsOrDefault$p(this.this$0).getLong("com.discord.intent.extra.EXTRA_GUILD_ID") > 0 ? 1 : null; + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet.java index cfb1687688..94eb49726f 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditProfileBannerSheet.java @@ -33,6 +33,7 @@ import com.discord.widgets.settings.profile.EditProfileBannerSheetViewModel; import com.google.android.material.button.MaterialButton; import com.google.android.material.textview.MaterialTextView; import com.jaredrummler.android.colorpicker.ColorPickerDialog; +import d0.g; import d0.z.d.a0; import d0.z.d.m; import kotlin.Lazy; @@ -53,6 +54,7 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetEditProfileBannerSheet$binding$2.INSTANCE, null, 2, null); private ColorPickerDialog colorPickerDialog; private int defaultBannerColor; + private final Lazy isGuildContext$delegate = g.lazy(new WidgetEditProfileBannerSheet$isGuildContext$2(this)); private Function0 onChangeProfileBannerImage = WidgetEditProfileBannerSheet$onChangeProfileBannerImage$1.INSTANCE; private Function1 onColorSelected = WidgetEditProfileBannerSheet$onColorSelected$1.INSTANCE; private Function0 onRemoveProfileBannerImage = WidgetEditProfileBannerSheet$onRemoveProfileBannerImage$1.INSTANCE; @@ -67,11 +69,11 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { this(); } - public static /* synthetic */ void show$default(Companion companion, String str, String str2, boolean z2, FragmentManager fragmentManager, Function0 function0, Function0 function02, Function1 function1, int i, Object obj) { - companion.show(str, str2, z2, fragmentManager, (i & 16) != 0 ? WidgetEditProfileBannerSheet$Companion$show$1.INSTANCE : function0, (i & 32) != 0 ? WidgetEditProfileBannerSheet$Companion$show$2.INSTANCE : function02, (i & 64) != 0 ? WidgetEditProfileBannerSheet$Companion$show$3.INSTANCE : function1); + public static /* synthetic */ void show$default(Companion companion, Long l, String str, String str2, boolean z2, FragmentManager fragmentManager, Function0 function0, Function0 function02, Function1 function1, int i, Object obj) { + companion.show((i & 1) != 0 ? null : l, str, str2, z2, fragmentManager, (i & 32) != 0 ? WidgetEditProfileBannerSheet$Companion$show$1.INSTANCE : function0, (i & 64) != 0 ? WidgetEditProfileBannerSheet$Companion$show$2.INSTANCE : function02, (i & 128) != 0 ? WidgetEditProfileBannerSheet$Companion$show$3.INSTANCE : function1); } - public final void show(String str, String str2, boolean z2, FragmentManager fragmentManager, Function0 function0, Function0 function02, Function1 function1) { + public final void show(Long l, String str, String str2, boolean z2, FragmentManager fragmentManager, Function0 function0, Function0 function02, Function1 function1) { m.checkNotNullParameter(str, "defaultBannerColorHex"); m.checkNotNullParameter(fragmentManager, "fragmentManager"); m.checkNotNullParameter(function0, "onChangeProfileBannerImage"); @@ -82,6 +84,9 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { bundle.putString(WidgetEditProfileBannerSheet.ARG_DEFAULT_BANNER_COLOR_HEX, str); bundle.putString(WidgetEditProfileBannerSheet.ARG_INITIAL_COLOR_PREVIEW_HEX, str2); bundle.putBoolean(WidgetEditProfileBannerSheet.ARG_HAS_BANNER_IMAGE, z2); + if (l != null) { + bundle.putLong("com.discord.intent.extra.EXTRA_GUILD_ID", l.longValue()); + } widgetEditProfileBannerSheet.setArguments(bundle); widgetEditProfileBannerSheet.setOnChangeProfileBannerImage(function0); widgetEditProfileBannerSheet.setOnRemoveProfileBannerImage(function02); @@ -125,12 +130,27 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { widgetEditProfileBannerSheet.defaultBannerColor = i; } + private final void configureStringsForGuild() { + MaterialTextView materialTextView = getBinding().e; + m.checkNotNullExpressionValue(materialTextView, "binding.bannerColorItemTitle"); + materialTextView.setText(b.k(this, R.string.change_identity_profile_color, new Object[0], null, 4)); + MaterialTextView materialTextView2 = getBinding().f1845c; + m.checkNotNullExpressionValue(materialTextView2, "binding.bannerChangeImageItemTitle"); + materialTextView2.setText(b.k(this, R.string.change_identity_profile_banner, new Object[0], null, 4)); + MaterialTextView materialTextView3 = getBinding().g; + m.checkNotNullExpressionValue(materialTextView3, "binding.bannerRemoveImageItem"); + materialTextView3.setText(b.k(this, R.string.change_identity_reset_banner, new Object[0], null, 4)); + } + /* JADX WARNING: Unknown variable types count: 1 */ private final void configureUi(EditProfileBannerSheetViewModel.ViewState viewState) { if (viewState instanceof EditProfileBannerSheetViewModel.ViewState) { String bannerColorHex = viewState.getBannerColorHex(); Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef(); ref$ObjectRef.element = null; + if (isGuildContext()) { + configureStringsForGuild(); + } if (bannerColorHex != null) { try { ref$ObjectRef.element = Integer.valueOf(Color.parseColor(bannerColorHex)); @@ -139,19 +159,19 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { } } if (ref$ObjectRef.element != null) { - ImageView imageView = getBinding().e; + ImageView imageView = getBinding().f; m.checkNotNullExpressionValue(imageView, "binding.bannerColorPreview"); ColorCompatKt.tintWithColor(imageView, ref$ObjectRef.element.intValue()); } - ImageView imageView2 = getBinding().e; + ImageView imageView2 = getBinding().f; m.checkNotNullExpressionValue(imageView2, "binding.bannerColorPreview"); boolean z2 = false; imageView2.setVisibility(ref$ObjectRef.element == null ? 4 : 0); getBinding().d.setOnClickListener(new WidgetEditProfileBannerSheet$configureUi$1(this, ref$ObjectRef)); - MaterialButton materialButton = getBinding().g; + MaterialButton materialButton = getBinding().h; m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellButton"); materialButton.setVisibility(viewState.getShowPremiumUpsell() ? 0 : 8); - MaterialButton materialButton2 = getBinding().g; + MaterialButton materialButton2 = getBinding().h; m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellButton"); if (materialButton2.getVisibility() == 0) { z2 = true; @@ -173,6 +193,10 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { return (EditProfileBannerSheetViewModel) this.viewModel$delegate.getValue(); } + private final boolean isGuildContext() { + return ((Boolean) this.isGuildContext$delegate.getValue()).booleanValue(); + } + private final void launchColorPicker(@ColorInt int i) { ColorPickerDialog.k kVar = new ColorPickerDialog.k(); kVar.h = i; @@ -252,8 +276,8 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { CharSequence charSequence; m.checkNotNullParameter(view, "view"); super.onViewCreated(view, bundle); - getBinding().g.setOnClickListener(new WidgetEditProfileBannerSheet$onViewCreated$1(this)); - getBinding().f.setOnClickListener(new WidgetEditProfileBannerSheet$onViewCreated$2(this)); + getBinding().h.setOnClickListener(new WidgetEditProfileBannerSheet$onViewCreated$1(this)); + getBinding().g.setOnClickListener(new WidgetEditProfileBannerSheet$onViewCreated$2(this)); boolean z2 = getArgumentsOrDefault().getBoolean(ARG_HAS_BANNER_IMAGE); MaterialTextView materialTextView = getBinding().f1845c; m.checkNotNullExpressionValue(materialTextView, "binding.bannerChangeImageItemTitle"); @@ -268,7 +292,7 @@ public final class WidgetEditProfileBannerSheet extends AppBottomSheet { charSequence = b.i(resources2, R.string.user_settings_upload_banner, new Object[0], null, 4); } materialTextView.setText(charSequence); - MaterialTextView materialTextView2 = getBinding().f; + MaterialTextView materialTextView2 = getBinding().g; m.checkNotNullExpressionValue(materialTextView2, "binding.bannerRemoveImageItem"); if (!z2) { i = 8; diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1.java similarity index 77% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1.java index 268db23401..aca9ed4138 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1.java @@ -6,11 +6,11 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.jvm.functions.Function0; /* compiled from: FragmentViewModelLazy.kt */ -public final class WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1 extends o implements Function0 { +public final class WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1 extends o implements Function0 { public final /* synthetic */ Function0 $ownerProducer; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1(Function0 function0) { + public WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1(Function0 function0) { super(0); this.$ownerProducer = function0; } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$imageSelectedResult$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1.java similarity index 59% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$imageSelectedResult$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1.java index 5f99eac91d..890143dc2d 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$imageSelectedResult$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1.java @@ -4,11 +4,11 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$imageSelectedResult$1 extends o implements Function1 { - public static final WidgetSettingsUserProfile$imageSelectedResult$1 INSTANCE = new WidgetSettingsUserProfile$imageSelectedResult$1(); +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1 extends o implements Function1 { + public static final WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1 INSTANCE = new WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1(); - public WidgetSettingsUserProfile$imageSelectedResult$1() { + public WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1() { super(1); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$bannerSelectedResult$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1.java similarity index 59% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$bannerSelectedResult$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1.java index f37e469c53..2f572be4bb 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$bannerSelectedResult$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1.java @@ -4,11 +4,11 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$bannerSelectedResult$1 extends o implements Function1 { - public static final WidgetSettingsUserProfile$bannerSelectedResult$1 INSTANCE = new WidgetSettingsUserProfile$bannerSelectedResult$1(); +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1 extends o implements Function1 { + public static final WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1 INSTANCE = new WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1(); - public WidgetSettingsUserProfile$bannerSelectedResult$1() { + public WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1() { super(1); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$binding$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$binding$2.java new file mode 100644 index 0000000000..50a602dfc8 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$binding$2.java @@ -0,0 +1,104 @@ +package com.discord.widgets.settings.profile; + +import android.view.View; +import android.widget.LinearLayout; +import android.widget.TextView; +import androidx.cardview.widget.CardView; +import androidx.core.widget.NestedScrollView; +import com.discord.R; +import com.discord.databinding.WidgetSettingsUserProfileBinding; +import com.discord.utilities.dimmer.DimmerView; +import com.discord.utilities.view.text.LinkifiedTextView; +import com.discord.widgets.user.profile.UserProfileHeaderView; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +import d0.z.d.k; +import d0.z.d.m; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final /* synthetic */ class WidgetEditUserOrGuildMemberProfile$binding$2 extends k implements Function1 { + public static final WidgetEditUserOrGuildMemberProfile$binding$2 INSTANCE = new WidgetEditUserOrGuildMemberProfile$binding$2(); + + public WidgetEditUserOrGuildMemberProfile$binding$2() { + super(1, WidgetSettingsUserProfileBinding.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetSettingsUserProfileBinding;", 0); + } + + public final WidgetSettingsUserProfileBinding invoke(View view) { + m.checkNotNullParameter(view, "p1"); + int i = R.id.bio_editor_card; + CardView cardView = (CardView) view.findViewById(R.id.bio_editor_card); + if (cardView != null) { + i = R.id.bio_editor_text_input_field; + TextInputEditText textInputEditText = (TextInputEditText) view.findViewById(R.id.bio_editor_text_input_field); + if (textInputEditText != null) { + i = R.id.bio_editor_text_input_field_wrap; + TextInputLayout textInputLayout = (TextInputLayout) view.findViewById(R.id.bio_editor_text_input_field_wrap); + if (textInputLayout != null) { + i = R.id.bio_header; + TextView textView = (TextView) view.findViewById(R.id.bio_header); + if (textView != null) { + i = R.id.bio_help_text; + TextView textView2 = (TextView) view.findViewById(R.id.bio_help_text); + if (textView2 != null) { + i = R.id.bio_preview_card; + CardView cardView2 = (CardView) view.findViewById(R.id.bio_preview_card); + if (cardView2 != null) { + i = R.id.bio_preview_text; + LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view.findViewById(R.id.bio_preview_text); + if (linkifiedTextView != null) { + i = R.id.dimmer_view; + DimmerView dimmerView = (DimmerView) view.findViewById(R.id.dimmer_view); + if (dimmerView != null) { + i = R.id.guild_member_profile_help_text_overall; + TextView textView3 = (TextView) view.findViewById(R.id.guild_member_profile_help_text_overall); + if (textView3 != null) { + i = R.id.guild_profile_explainer_container; + LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.guild_profile_explainer_container); + if (linearLayout != null) { + i = R.id.nick_container; + LinearLayout linearLayout2 = (LinearLayout) view.findViewById(R.id.nick_container); + if (linearLayout2 != null) { + i = R.id.nickname_editor_card; + CardView cardView3 = (CardView) view.findViewById(R.id.nickname_editor_card); + if (cardView3 != null) { + i = R.id.nickname_header; + TextView textView4 = (TextView) view.findViewById(R.id.nickname_header); + if (textView4 != null) { + i = R.id.profile_container; + LinearLayout linearLayout3 = (LinearLayout) view.findViewById(R.id.profile_container); + if (linearLayout3 != null) { + i = R.id.save_fab; + FloatingActionButton floatingActionButton = (FloatingActionButton) view.findViewById(R.id.save_fab); + if (floatingActionButton != null) { + i = R.id.set_nickname_text; + TextInputLayout textInputLayout2 = (TextInputLayout) view.findViewById(R.id.set_nickname_text); + if (textInputLayout2 != null) { + i = R.id.settings_profile_scroll; + NestedScrollView nestedScrollView = (NestedScrollView) view.findViewById(R.id.settings_profile_scroll); + if (nestedScrollView != null) { + i = R.id.user_settings_profile_header_view; + UserProfileHeaderView userProfileHeaderView = (UserProfileHeaderView) view.findViewById(R.id.user_settings_profile_header_view); + if (userProfileHeaderView != null) { + return new WidgetSettingsUserProfileBinding((TouchInterceptingCoordinatorLayout) view, cardView, textInputEditText, textInputLayout, textView, textView2, cardView2, linkifiedTextView, dimmerView, textView3, linearLayout, linearLayout2, cardView3, textView4, linearLayout3, floatingActionButton, textInputLayout2, nestedScrollView, userProfileHeaderView); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1.java similarity index 73% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1.java index 6122061947..1771e28c8a 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1.java @@ -11,15 +11,15 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$configureAvatarSelect$1 extends o implements Function1 { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1 extends o implements Function1 { public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState; - public final /* synthetic */ WidgetSettingsUserProfile this$0; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$configureAvatarSelect$1(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + public WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; this.$viewState = loaded; } @@ -34,7 +34,7 @@ public final class WidgetSettingsUserProfile$configureAvatarSelect$1 extends o i public final void invoke(String str) { m.checkNotNullParameter(str, "dataUrl"); if (UserUtils.INSTANCE.isPremium(this.$viewState.getUser()) || !IconUtils.INSTANCE.isDataUrlForGif(str)) { - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0).updateAvatar(str); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0).updateAvatar(str); return; } b.C0012b bVar = b.j; diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2.java similarity index 55% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$2.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2.java index 4c63fe5256..8ca73bf5b8 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureAvatarSelect$2.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2.java @@ -8,20 +8,20 @@ import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$configureAvatarSelect$2 extends o implements Function0 { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2 extends o implements Function0 { public final /* synthetic */ List $avatarSheetOptions; - public final /* synthetic */ WidgetSettingsUserProfile this$0; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; - /* compiled from: WidgetSettingsUserProfile.kt */ - /* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureAvatarSelect$2$1 reason: invalid class name */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ + /* renamed from: com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile$configureAvatarSelect$2 this$0; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(WidgetSettingsUserProfile$configureAvatarSelect$2 widgetSettingsUserProfile$configureAvatarSelect$2) { + public AnonymousClass1(WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2 widgetEditUserOrGuildMemberProfile$configureAvatarSelect$2) { super(1); - this.this$0 = widgetSettingsUserProfile$configureAvatarSelect$2; + this.this$0 = widgetEditUserOrGuildMemberProfile$configureAvatarSelect$2; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -34,19 +34,19 @@ public final class WidgetSettingsUserProfile$configureAvatarSelect$2 extends o i public final void invoke(int i) { if (i == 0) { - WidgetSettingsUserProfile widgetSettingsUserProfile = this.this$0.this$0; - WidgetSettingsUserProfile.access$setImageSelectedResult$p(widgetSettingsUserProfile, WidgetSettingsUserProfile.access$getAvatarSelectedResult$p(widgetSettingsUserProfile)); + WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile = this.this$0.this$0; + WidgetEditUserOrGuildMemberProfile.access$setImageSelectedResult$p(widgetEditUserOrGuildMemberProfile, WidgetEditUserOrGuildMemberProfile.access$getAvatarSelectedResult$p(widgetEditUserOrGuildMemberProfile)); this.this$0.this$0.openMediaChooser(); } else if (i == 1) { - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0.this$0).updateAvatar(null); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0.this$0).updateAvatar(null); } } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$configureAvatarSelect$2(WidgetSettingsUserProfile widgetSettingsUserProfile, List list) { + public WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, List list) { super(0); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; this.$avatarSheetOptions = list; } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1.java similarity index 55% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1.java index f01335115e..0f7f881e2c 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1.java @@ -4,14 +4,14 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$configureBannerSelect$1 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$configureBannerSelect$1(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -24,6 +24,6 @@ public final class WidgetSettingsUserProfile$configureBannerSelect$1 extends o i public final void invoke(String str) { m.checkNotNullParameter(str, "dataUrl"); - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0).updateBannerImage(str); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0).updateBannerImage(str); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2.java similarity index 66% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$2.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2.java index 92707158c3..39e7d06322 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBannerSelect$2.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2.java @@ -12,18 +12,18 @@ import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import rx.Observable; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$configureBannerSelect$2 extends o implements Function0 { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2 extends o implements Function0 { public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState; - public final /* synthetic */ WidgetSettingsUserProfile this$0; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; - /* compiled from: WidgetSettingsUserProfile.kt */ - /* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureBannerSelect$2$1 reason: invalid class name */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ + /* renamed from: com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile$configureBannerSelect$2 this$0; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2 this$0; - /* compiled from: WidgetSettingsUserProfile.kt */ - /* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureBannerSelect$2$1$1 reason: invalid class name */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ + /* renamed from: com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ AnonymousClass1 this$0; @@ -36,14 +36,14 @@ public final class WidgetSettingsUserProfile$configureBannerSelect$2 extends o i @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - WidgetSettingsUserProfile widgetSettingsUserProfile = this.this$0.this$0.this$0; - WidgetSettingsUserProfile.access$setImageSelectedResult$p(widgetSettingsUserProfile, WidgetSettingsUserProfile.access$getBannerSelectedResult$p(widgetSettingsUserProfile)); + WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile = this.this$0.this$0.this$0; + WidgetEditUserOrGuildMemberProfile.access$setImageSelectedResult$p(widgetEditUserOrGuildMemberProfile, WidgetEditUserOrGuildMemberProfile.access$getBannerSelectedResult$p(widgetEditUserOrGuildMemberProfile)); this.this$0.this$0.this$0.openMediaChooser(); } } - /* compiled from: WidgetSettingsUserProfile.kt */ - /* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureBannerSelect$2$1$2 reason: invalid class name */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ + /* renamed from: com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2$1$2 reason: invalid class name */ public static final class AnonymousClass2 extends o implements Function0 { public final /* synthetic */ AnonymousClass1 this$0; @@ -56,12 +56,12 @@ public final class WidgetSettingsUserProfile$configureBannerSelect$2 extends o i @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0.this$0.this$0).updateBannerImage(null); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0.this$0.this$0).updateBannerImage(null); } } - /* compiled from: WidgetSettingsUserProfile.kt */ - /* renamed from: com.discord.widgets.settings.profile.WidgetSettingsUserProfile$configureBannerSelect$2$1$3 reason: invalid class name */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ + /* renamed from: com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2$1$3 reason: invalid class name */ public static final class AnonymousClass3 extends o implements Function1 { public final /* synthetic */ AnonymousClass1 this$0; @@ -86,14 +86,14 @@ public final class WidgetSettingsUserProfile$configureBannerSelect$2 extends o i } else { str = null; } - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0.this$0.this$0).updateBannerColor(str); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0.this$0.this$0).updateBannerColor(str); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public AnonymousClass1(WidgetSettingsUserProfile$configureBannerSelect$2 widgetSettingsUserProfile$configureBannerSelect$2) { + public AnonymousClass1(WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2 widgetEditUserOrGuildMemberProfile$configureBannerSelect$2) { super(1); - this.this$0 = widgetSettingsUserProfile$configureBannerSelect$2; + this.this$0 = widgetEditUserOrGuildMemberProfile$configureBannerSelect$2; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -106,26 +106,27 @@ public final class WidgetSettingsUserProfile$configureBannerSelect$2 extends o i public final void invoke(String str) { WidgetEditProfileBannerSheet.Companion companion = WidgetEditProfileBannerSheet.Companion; + Long access$getGuildId$p = WidgetEditUserOrGuildMemberProfile.access$getGuildId$p(this.this$0.this$0); m.checkNotNullExpressionValue(str, "avatarRepresentativeColorHex"); String nonDefaultColorPreviewHex = this.this$0.$viewState.getNonDefaultColorPreviewHex(); boolean hasBannerImageForDisplay = this.this$0.$viewState.getHasBannerImageForDisplay(); FragmentManager parentFragmentManager = this.this$0.this$0.getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - companion.show(str, nonDefaultColorPreviewHex, hasBannerImageForDisplay, parentFragmentManager, new AnonymousClass1(this), new AnonymousClass2(this), new AnonymousClass3(this)); + companion.show(access$getGuildId$p, str, nonDefaultColorPreviewHex, hasBannerImageForDisplay, parentFragmentManager, new AnonymousClass1(this), new AnonymousClass2(this), new AnonymousClass3(this)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$configureBannerSelect$2(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + public WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { super(0); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; this.$viewState = loaded; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { - Observable K = WidgetSettingsUserProfile.access$getAvatarRepresentativeColorHexSubject$p(this.this$0).Z(1).K(); + Observable K = WidgetEditUserOrGuildMemberProfile.access$getAvatarRepresentativeColorHexSubject$p(this.this$0).Z(1).K(); m.checkNotNullExpressionValue(K, "avatarRepresentativeColo… .onBackpressureLatest()"); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(K, this.this$0, null, 2, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBio$renderContext$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1.java similarity index 73% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBio$renderContext$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1.java index 9ca15dd006..f98912f9d1 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureBio$renderContext$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1.java @@ -5,9 +5,9 @@ import d0.z.d.k; import d0.z.d.m; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final /* synthetic */ class WidgetSettingsUserProfile$configureBio$renderContext$1 extends k implements Function1, Unit> { - public WidgetSettingsUserProfile$configureBio$renderContext$1(SettingsUserProfileViewModel settingsUserProfileViewModel) { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final /* synthetic */ class WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1 extends k implements Function1, Unit> { + public WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1(SettingsUserProfileViewModel settingsUserProfileViewModel) { super(1, settingsUserProfileViewModel, SettingsUserProfileViewModel.class, "handleBioIndexClicked", "handleBioIndexClicked(Lcom/discord/utilities/textprocessing/node/SpoilerNode;)V", 0); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1.java new file mode 100644 index 0000000000..25b75c2a63 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1.java @@ -0,0 +1,33 @@ +package com.discord.widgets.settings.profile; + +import android.text.Editable; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import d0.z.d.m; +import d0.z.d.o; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1 extends o implements Function1 { + public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState$inlined; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + super(1); + this.this$0 = widgetEditUserOrGuildMemberProfile; + this.$viewState$inlined = loaded; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(Editable editable) { + invoke(editable); + return Unit.a; + } + + public final void invoke(Editable editable) { + m.checkNotNullParameter(editable, "editable"); + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0).updateNickname(editable.toString()); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2.java new file mode 100644 index 0000000000..10753cf473 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2.java @@ -0,0 +1,19 @@ +package com.discord.widgets.settings.profile; + +import android.view.View; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2 implements View.OnClickListener { + public final /* synthetic */ SettingsUserProfileViewModel.ViewState.Loaded $viewState$inlined; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + public WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + this.this$0 = widgetEditUserOrGuildMemberProfile; + this.$viewState$inlined = loaded; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0).updateNickname(""); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureUI$3.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureUI$3.java new file mode 100644 index 0000000000..906be4e648 --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$configureUI$3.java @@ -0,0 +1,19 @@ +package com.discord.widgets.settings.profile; + +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import rx.functions.Func0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$configureUI$3 implements Func0 { + public final /* synthetic */ SettingsUserProfileViewModel.ViewState $viewState; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + public WidgetEditUserOrGuildMemberProfile$configureUI$3(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState viewState) { + this.this$0 = widgetEditUserOrGuildMemberProfile; + this.$viewState = viewState; + } + + @Override // rx.functions.Func0, java.util.concurrent.Callable + public final Boolean call() { + return Boolean.valueOf(WidgetEditUserOrGuildMemberProfile.access$handleBackPressed(this.this$0, (SettingsUserProfileViewModel.ViewState.Loaded) this.$viewState)); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$guildId$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$guildId$2.java new file mode 100644 index 0000000000..32a6acf04f --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$guildId$2.java @@ -0,0 +1,21 @@ +package com.discord.widgets.settings.profile; + +import com.discord.utilities.intent.IntentUtilsKt; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$guildId$2 extends o implements Function0 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetEditUserOrGuildMemberProfile$guildId$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + super(0); + this.this$0 = widgetEditUserOrGuildMemberProfile; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final Long mo1invoke() { + return IntentUtilsKt.getLongExtraOrNull(this.this$0.getMostRecentIntent(), "com.discord.intent.extra.EXTRA_GUILD_ID"); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$1.java similarity index 57% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$1.java index ed53717680..3661b5f18d 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$1.java @@ -2,11 +2,11 @@ package com.discord.widgets.settings.profile; import android.view.View; import androidx.appcompat.app.AlertDialog; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$handleBackPressed$1 implements View.OnClickListener { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$handleBackPressed$1 implements View.OnClickListener { public final /* synthetic */ AlertDialog $dialog; - public WidgetSettingsUserProfile$handleBackPressed$1(AlertDialog alertDialog) { + public WidgetEditUserOrGuildMemberProfile$handleBackPressed$1(AlertDialog alertDialog) { this.$dialog = alertDialog; } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$2.java new file mode 100644 index 0000000000..8460da7c2a --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$handleBackPressed$2.java @@ -0,0 +1,25 @@ +package com.discord.widgets.settings.profile; + +import android.view.View; +import androidx.appcompat.app.AlertDialog; +import androidx.fragment.app.FragmentActivity; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$handleBackPressed$2 implements View.OnClickListener { + public final /* synthetic */ AlertDialog $dialog; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + public WidgetEditUserOrGuildMemberProfile$handleBackPressed$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, AlertDialog alertDialog) { + this.this$0 = widgetEditUserOrGuildMemberProfile; + this.$dialog = alertDialog; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + WidgetEditUserOrGuildMemberProfile.access$getDiscardConfirmed$p(this.this$0).set(true); + this.$dialog.dismiss(); + FragmentActivity activity = this.this$0.getActivity(); + if (activity != null) { + activity.onBackPressed(); + } + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$avatarSelectedResult$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1.java similarity index 59% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$avatarSelectedResult$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1.java index 7fffcda7f2..d839f4615b 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$avatarSelectedResult$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1.java @@ -4,11 +4,11 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$avatarSelectedResult$1 extends o implements Function1 { - public static final WidgetSettingsUserProfile$avatarSelectedResult$1 INSTANCE = new WidgetSettingsUserProfile$avatarSelectedResult$1(); +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1 extends o implements Function1 { + public static final WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1 INSTANCE = new WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1(); - public WidgetSettingsUserProfile$avatarSelectedResult$1() { + public WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1() { super(1); } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$1.java new file mode 100644 index 0000000000..7878bc21ae --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$1.java @@ -0,0 +1,25 @@ +package com.discord.widgets.settings.profile; + +import android.content.Context; +import android.view.View; +import com.discord.utilities.dimmer.DimmerView; +import d0.z.d.m; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBound$1 implements View.OnClickListener { + public final /* synthetic */ View $view; + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + public WidgetEditUserOrGuildMemberProfile$onViewBound$1(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, View view) { + this.this$0 = widgetEditUserOrGuildMemberProfile; + this.$view = view; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + SettingsUserProfileViewModel access$getViewModel$p = WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0); + Context context = this.$view.getContext(); + m.checkNotNullExpressionValue(context, "view.context"); + access$getViewModel$p.saveChanges(context); + DimmerView.setDimmed$default(WidgetEditUserOrGuildMemberProfile.access$getBinding$p(this.this$0).i, true, false, 2, null); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$2.java similarity index 65% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$2.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$2.java index 652c920311..0d3dfde221 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$2.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$2.java @@ -6,14 +6,14 @@ import com.google.android.material.textfield.TextInputLayout; import d0.z.d.m; import d0.z.d.o; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBound$2 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBound$2 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$onViewBound$2(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$onViewBound$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -32,24 +32,24 @@ public final class WidgetSettingsUserProfile$onViewBound$2 extends o implements if (actionMasked == 1 || actionMasked == 3) { float rawX = motionEvent.getRawX(); float rawY = motionEvent.getRawY(); - TextInputLayout textInputLayout = WidgetSettingsUserProfile.access$getBinding$p(this.this$0).d; + TextInputLayout textInputLayout = WidgetEditUserOrGuildMemberProfile.access$getBinding$p(this.this$0).d; m.checkNotNullExpressionValue(textInputLayout, "binding.bioEditorTextInputFieldWrap"); int width = textInputLayout.getWidth(); - TextInputLayout textInputLayout2 = WidgetSettingsUserProfile.access$getBinding$p(this.this$0).d; + TextInputLayout textInputLayout2 = WidgetEditUserOrGuildMemberProfile.access$getBinding$p(this.this$0).d; m.checkNotNullExpressionValue(textInputLayout2, "binding.bioEditorTextInputFieldWrap"); int height = textInputLayout2.getHeight(); int[] iArr = new int[2]; - WidgetSettingsUserProfile.access$getBinding$p(this.this$0).d.getLocationOnScreen(iArr); + WidgetEditUserOrGuildMemberProfile.access$getBinding$p(this.this$0).d.getLocationOnScreen(iArr); int i = iArr[0]; int i2 = iArr[1]; if (rawX < ((float) i) || rawX > ((float) (i + width)) || rawY < ((float) i2) || rawY > ((float) (i2 + height))) { - CardView cardView = WidgetSettingsUserProfile.access$getBinding$p(this.this$0).b; + CardView cardView = WidgetEditUserOrGuildMemberProfile.access$getBinding$p(this.this$0).b; m.checkNotNullExpressionValue(cardView, "binding.bioEditorCard"); if (cardView.getVisibility() != 0) { z2 = false; } if (z2) { - WidgetSettingsUserProfile.access$setCurrentBioFromEditor(this.this$0); + WidgetEditUserOrGuildMemberProfile.access$setCurrentBioFromEditor(this.this$0); } } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$3.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$3.java new file mode 100644 index 0000000000..6db719e21e --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$3.java @@ -0,0 +1,16 @@ +package com.discord.widgets.settings.profile; + +import android.view.View; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBound$3 implements View.OnClickListener { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + public WidgetEditUserOrGuildMemberProfile$onViewBound$3(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + this.this$0 = widgetEditUserOrGuildMemberProfile; + } + + @Override // android.view.View.OnClickListener + public final void onClick(View view) { + WidgetEditUserOrGuildMemberProfile.access$getViewModel$p(this.this$0).updateIsEditingBio(true); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$4.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$4.java similarity index 53% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$4.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$4.java index 71b70c18df..67d2f58717 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$4.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$4.java @@ -4,14 +4,14 @@ import com.discord.utilities.color.ColorCompat; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBound$4 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBound$4 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$onViewBound$4(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$onViewBound$4(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -23,6 +23,6 @@ public final class WidgetSettingsUserProfile$onViewBound$4 extends o implements } public final void invoke(int i) { - WidgetSettingsUserProfile.access$getAvatarRepresentativeColorHexSubject$p(this.this$0).onNext(ColorCompat.INSTANCE.getColorHexFromColorInt(i)); + WidgetEditUserOrGuildMemberProfile.access$getAvatarRepresentativeColorHexSubject$p(this.this$0).onNext(ColorCompat.INSTANCE.getColorHexFromColorInt(i)); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$5.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$5.java similarity index 71% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$5.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$5.java index 880e50fb2c..0986123616 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$5.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBound$5.java @@ -6,14 +6,14 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBound$5 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBound$5 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$onViewBound$5(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$onViewBound$5(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1.java similarity index 55% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$1.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1.java index 2be1e622c3..fda73fad6e 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$1.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1.java @@ -5,14 +5,14 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBoundOrOnResume$1 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$onViewBoundOrOnResume$1(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -24,8 +24,8 @@ public final class WidgetSettingsUserProfile$onViewBoundOrOnResume$1 extends o i } public final void invoke(SettingsUserProfileViewModel.ViewState viewState) { - WidgetSettingsUserProfile widgetSettingsUserProfile = this.this$0; + WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile = this.this$0; m.checkNotNullExpressionValue(viewState, "viewState"); - WidgetSettingsUserProfile.access$configureUI(widgetSettingsUserProfile, viewState); + WidgetEditUserOrGuildMemberProfile.access$configureUI(widgetEditUserOrGuildMemberProfile, viewState); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2.java similarity index 59% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$2.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2.java index a530e9f96b..0dc41815eb 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBoundOrOnResume$2.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2.java @@ -5,14 +5,14 @@ import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBoundOrOnResume$2 extends o implements Function1 { - public final /* synthetic */ WidgetSettingsUserProfile this$0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2 extends o implements Function1 { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public WidgetSettingsUserProfile$onViewBoundOrOnResume$2(WidgetSettingsUserProfile widgetSettingsUserProfile) { + public WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { super(1); - this.this$0 = widgetSettingsUserProfile; + this.this$0 = widgetEditUserOrGuildMemberProfile; } /* Return type fixed from 'java.lang.Object' to match base method */ @@ -25,6 +25,6 @@ public final class WidgetSettingsUserProfile$onViewBoundOrOnResume$2 extends o i public final void invoke(SettingsUserProfileViewModel.Event event) { m.checkNotNullParameter(event, "event"); - WidgetSettingsUserProfile.access$handleEvent(this.this$0, event); + WidgetEditUserOrGuildMemberProfile.access$handleEvent(this.this$0, event); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$sam$rx_functions_Action1$0.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0.java similarity index 61% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$sam$rx_functions_Action1$0.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0.java index bcbe456433..42d76d82fe 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$sam$rx_functions_Action1$0.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0.java @@ -3,11 +3,11 @@ package com.discord.widgets.settings.profile; import d0.z.d.m; import kotlin.jvm.functions.Function1; import rx.functions.Action1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$sam$rx_functions_Action1$0 implements Action1 { +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0 implements Action1 { private final /* synthetic */ Function1 function; - public WidgetSettingsUserProfile$sam$rx_functions_Action1$0(Function1 function1) { + public WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0(Function1 function1) { this.function = function1; } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$viewModel$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$viewModel$2.java new file mode 100644 index 0000000000..5db5112f9b --- /dev/null +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile$viewModel$2.java @@ -0,0 +1,22 @@ +package com.discord.widgets.settings.profile; + +import com.discord.app.AppViewModel; +import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; +import d0.z.d.o; +import kotlin.jvm.functions.Function0; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile$viewModel$2 extends o implements Function0> { + public final /* synthetic */ WidgetEditUserOrGuildMemberProfile this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetEditUserOrGuildMemberProfile$viewModel$2(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + super(0); + this.this$0 = widgetEditUserOrGuildMemberProfile; + } + + @Override // kotlin.jvm.functions.Function0 + /* renamed from: invoke */ + public final AppViewModel mo1invoke() { + return new SettingsUserProfileViewModel(WidgetEditUserOrGuildMemberProfile.access$getGuildId$p(this.this$0), null, null, null, null, null, null, 126, null); + } +} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile.java similarity index 53% rename from app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile.java rename to app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile.java index 507159e379..6f66991e61 100644 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile.java +++ b/app/src/main/java/com/discord/widgets/settings/profile/WidgetEditUserOrGuildMemberProfile.java @@ -2,17 +2,26 @@ package com.discord.widgets.settings.profile; import android.content.Context; import android.content.Intent; +import android.graphics.drawable.Drawable; import android.net.Uri; +import android.text.Editable; +import android.text.Selection; import android.view.LayoutInflater; import android.view.View; +import android.widget.EditText; +import android.widget.LinearLayout; +import android.widget.TextView; import androidx.appcompat.app.AlertDialog; import androidx.cardview.widget.CardView; import androidx.core.app.NotificationCompat; +import androidx.core.content.ContextCompat; +import androidx.core.graphics.drawable.DrawableCompat; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentViewModelLazyKt; import c.a.d.f0; import c.a.d.h0; import c.a.d.j; +import c.a.k.b; import c.a.y.c0; import c.d.b.a.a; import com.discord.R; @@ -38,6 +47,7 @@ import com.discord.widgets.user.profile.UserProfileHeaderView; import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.textfield.TextInputEditText; import com.google.android.material.textfield.TextInputLayout; +import d0.g; import d0.g0.t; import d0.t.n; import d0.z.d.a0; @@ -53,21 +63,22 @@ import kotlin.reflect.KProperty; import rx.Observable; import rx.functions.Action1; import rx.subjects.BehaviorSubject; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile extends AppFragment { - public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetSettingsUserProfile.class, "binding", "getBinding()Lcom/discord/databinding/WidgetSettingsUserProfileBinding;", 0)}; +/* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ +public final class WidgetEditUserOrGuildMemberProfile extends AppFragment { + public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetEditUserOrGuildMemberProfile.class, "binding", "getBinding()Lcom/discord/databinding/WidgetSettingsUserProfileBinding;", 0)}; public static final Companion Companion = new Companion(null); public static final int MAX_AVATAR_SIZE = 1024; public static final int MAX_BANNER_IMAGE_SIZE = 1080; private final BehaviorSubject avatarRepresentativeColorHexSubject; - private Function1 avatarSelectedResult = WidgetSettingsUserProfile$avatarSelectedResult$1.INSTANCE; - private Function1 bannerSelectedResult = WidgetSettingsUserProfile$bannerSelectedResult$1.INSTANCE; - private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetSettingsUserProfile$binding$2.INSTANCE, null, 2, null); + private Function1 avatarSelectedResult = WidgetEditUserOrGuildMemberProfile$avatarSelectedResult$1.INSTANCE; + private Function1 bannerSelectedResult = WidgetEditUserOrGuildMemberProfile$bannerSelectedResult$1.INSTANCE; + private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetEditUserOrGuildMemberProfile$binding$2.INSTANCE, null, 2, null); private final AtomicBoolean discardConfirmed; - private Function1 imageSelectedResult = WidgetSettingsUserProfile$imageSelectedResult$1.INSTANCE; + private final Lazy guildId$delegate = g.lazy(new WidgetEditUserOrGuildMemberProfile$guildId$2(this)); + private Function1 imageSelectedResult = WidgetEditUserOrGuildMemberProfile$imageSelectedResult$1.INSTANCE; private final Lazy viewModel$delegate; - /* compiled from: WidgetSettingsUserProfile.kt */ + /* compiled from: WidgetEditUserOrGuildMemberProfile.kt */ public static final class Companion { private Companion() { } @@ -76,93 +87,103 @@ public final class WidgetSettingsUserProfile extends AppFragment { this(); } - public static /* synthetic */ void launch$default(Companion companion, Context context, AppTransitionActivity.Transition transition, int i, Object obj) { + public static /* synthetic */ void launch$default(Companion companion, Context context, AppTransitionActivity.Transition transition, Long l, int i, Object obj) { if ((i & 2) != 0) { transition = null; } - companion.launch(context, transition); + if ((i & 4) != 0) { + l = null; + } + companion.launch(context, transition, l); } - public final void launch(Context context, AppTransitionActivity.Transition transition) { + public final void launch(Context context, AppTransitionActivity.Transition transition, Long l) { m.checkNotNullParameter(context, "context"); Intent intent = new Intent(); if (transition != null) { intent.putExtra("transition", transition); } - j.d(context, WidgetSettingsUserProfile.class, intent); + if (l != null) { + intent.putExtra("com.discord.intent.extra.EXTRA_GUILD_ID", l.longValue()); + } + j.d(context, WidgetEditUserOrGuildMemberProfile.class, intent); StoreAnalytics.onUserSettingsPaneViewed$default(StoreStream.Companion.getAnalytics(), "User Profile", null, 2, null); } } - public WidgetSettingsUserProfile() { + public WidgetEditUserOrGuildMemberProfile() { super(R.layout.widget_settings_user_profile); - WidgetSettingsUserProfile$viewModel$2 widgetSettingsUserProfile$viewModel$2 = WidgetSettingsUserProfile$viewModel$2.INSTANCE; + WidgetEditUserOrGuildMemberProfile$viewModel$2 widgetEditUserOrGuildMemberProfile$viewModel$2 = new WidgetEditUserOrGuildMemberProfile$viewModel$2(this); f0 f0Var = new f0(this); - this.viewModel$delegate = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(SettingsUserProfileViewModel.class), new WidgetSettingsUserProfile$appViewModels$$inlined$viewModels$1(f0Var), new h0(widgetSettingsUserProfile$viewModel$2)); + this.viewModel$delegate = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(SettingsUserProfileViewModel.class), new WidgetEditUserOrGuildMemberProfile$appViewModels$$inlined$viewModels$1(f0Var), new h0(widgetEditUserOrGuildMemberProfile$viewModel$2)); this.discardConfirmed = new AtomicBoolean(false); this.avatarRepresentativeColorHexSubject = BehaviorSubject.k0(); } - public static final /* synthetic */ void access$configureUI(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState viewState) { - widgetSettingsUserProfile.configureUI(viewState); + public static final /* synthetic */ void access$configureUI(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState viewState) { + widgetEditUserOrGuildMemberProfile.configureUI(viewState); } - public static final /* synthetic */ BehaviorSubject access$getAvatarRepresentativeColorHexSubject$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.avatarRepresentativeColorHexSubject; + public static final /* synthetic */ BehaviorSubject access$getAvatarRepresentativeColorHexSubject$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.avatarRepresentativeColorHexSubject; } - public static final /* synthetic */ Function1 access$getAvatarSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.avatarSelectedResult; + public static final /* synthetic */ Function1 access$getAvatarSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.avatarSelectedResult; } - public static final /* synthetic */ Function1 access$getBannerSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.bannerSelectedResult; + public static final /* synthetic */ Function1 access$getBannerSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.bannerSelectedResult; } - public static final /* synthetic */ WidgetSettingsUserProfileBinding access$getBinding$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.getBinding(); + public static final /* synthetic */ WidgetSettingsUserProfileBinding access$getBinding$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.getBinding(); } - public static final /* synthetic */ AtomicBoolean access$getDiscardConfirmed$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.discardConfirmed; + public static final /* synthetic */ AtomicBoolean access$getDiscardConfirmed$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.discardConfirmed; } - public static final /* synthetic */ Function1 access$getImageSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.imageSelectedResult; + public static final /* synthetic */ Long access$getGuildId$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.getGuildId(); } - public static final /* synthetic */ SettingsUserProfileViewModel access$getViewModel$p(WidgetSettingsUserProfile widgetSettingsUserProfile) { - return widgetSettingsUserProfile.getViewModel(); + public static final /* synthetic */ Function1 access$getImageSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.imageSelectedResult; } - public static final /* synthetic */ boolean access$handleBackPressed(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { - return widgetSettingsUserProfile.handleBackPressed(loaded); + public static final /* synthetic */ SettingsUserProfileViewModel access$getViewModel$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + return widgetEditUserOrGuildMemberProfile.getViewModel(); } - public static final /* synthetic */ void access$handleEvent(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.Event event) { - widgetSettingsUserProfile.handleEvent(event); + public static final /* synthetic */ boolean access$handleBackPressed(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.ViewState.Loaded loaded) { + return widgetEditUserOrGuildMemberProfile.handleBackPressed(loaded); } - public static final /* synthetic */ void access$setAvatarSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile, Function1 function1) { - widgetSettingsUserProfile.avatarSelectedResult = function1; + public static final /* synthetic */ void access$handleEvent(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, SettingsUserProfileViewModel.Event event) { + widgetEditUserOrGuildMemberProfile.handleEvent(event); } - public static final /* synthetic */ void access$setBannerSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile, Function1 function1) { - widgetSettingsUserProfile.bannerSelectedResult = function1; + public static final /* synthetic */ void access$setAvatarSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, Function1 function1) { + widgetEditUserOrGuildMemberProfile.avatarSelectedResult = function1; } - public static final /* synthetic */ void access$setCurrentBioFromEditor(WidgetSettingsUserProfile widgetSettingsUserProfile) { - widgetSettingsUserProfile.setCurrentBioFromEditor(); + public static final /* synthetic */ void access$setBannerSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, Function1 function1) { + widgetEditUserOrGuildMemberProfile.bannerSelectedResult = function1; } - public static final /* synthetic */ void access$setImageSelectedResult$p(WidgetSettingsUserProfile widgetSettingsUserProfile, Function1 function1) { - widgetSettingsUserProfile.imageSelectedResult = function1; + public static final /* synthetic */ void access$setCurrentBioFromEditor(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile) { + widgetEditUserOrGuildMemberProfile.setCurrentBioFromEditor(); } - /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x002f: APUT + public static final /* synthetic */ void access$setImageSelectedResult$p(WidgetEditUserOrGuildMemberProfile widgetEditUserOrGuildMemberProfile, Function1 function1) { + widgetEditUserOrGuildMemberProfile.imageSelectedResult = function1; + } + + /* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x004b: APUT (r0v2 c.a.y.c0[]) (0 ??[int, short, byte, char]) - (wrap: c.a.y.c0 : 0x002b: CONSTRUCTOR (r10v0 c.a.y.c0) = + (wrap: c.a.y.c0 : 0x0047: CONSTRUCTOR (r10v0 c.a.y.c0) = (r1v1 java.lang.String) (null java.lang.CharSequence) (null java.lang.Integer) @@ -174,29 +195,47 @@ public final class WidgetSettingsUserProfile extends AppFragment { call: c.a.y.c0.(java.lang.String, java.lang.CharSequence, java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer, int):void type: CONSTRUCTOR) */ private final void configureAvatarSelect(SettingsUserProfileViewModel.ViewState.Loaded loaded) { - this.avatarSelectedResult = new WidgetSettingsUserProfile$configureAvatarSelect$1(this, loaded); + this.avatarSelectedResult = new WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$1(this, loaded); c0[] c0VarArr = new c0[1]; - c0VarArr[0] = new c0(loaded.getHasAvatarForDisplay() ? getString(R.string.user_settings_change_avatar) : getString(R.string.user_settings_upload_avatar), null, null, null, null, null, null, 116); + c0VarArr[0] = new c0(loaded.getMeMember() != null ? loaded.getHasAvatarForDisplay() ? getString(R.string.change_guild_member_avatar) : getString(R.string.upload_guild_member_avatar) : loaded.getHasAvatarForDisplay() ? getString(R.string.user_settings_change_avatar) : getString(R.string.user_settings_upload_avatar), null, null, null, null, null, null, 116); List mutableListOf = n.mutableListOf(c0VarArr); if (loaded.getHasAvatarForDisplay()) { - mutableListOf.add(new c0(getString(R.string.user_settings_remove_avatar), null, null, null, null, Integer.valueOf(ColorCompat.getColor(requireContext(), (int) R.color.status_red_500)), null, 84)); + mutableListOf.add(new c0(loaded.getMeMember() != null ? getString(R.string.change_identity_modal_reset_primary_avatar) : getString(R.string.user_settings_remove_avatar), null, null, null, null, Integer.valueOf(ColorCompat.getColor(requireContext(), (int) R.color.status_red_500)), null, 84)); } - getBinding().i.setOnAvatarEdit(new WidgetSettingsUserProfile$configureAvatarSelect$2(this, mutableListOf)); + getBinding().o.setOnAvatarEdit(new WidgetEditUserOrGuildMemberProfile$configureAvatarSelect$2(this, mutableListOf)); } private final void configureBannerSelect(SettingsUserProfileViewModel.ViewState.Loaded loaded) { - this.bannerSelectedResult = new WidgetSettingsUserProfile$configureBannerSelect$1(this); - getBinding().i.setOnBannerPress(new WidgetSettingsUserProfile$configureBannerSelect$2(this, loaded)); + this.bannerSelectedResult = new WidgetEditUserOrGuildMemberProfile$configureBannerSelect$1(this); + getBinding().o.setOnBannerPress(new WidgetEditUserOrGuildMemberProfile$configureBannerSelect$2(this, loaded)); } private final void configureBio(SettingsUserProfileViewModel.ViewState.Loaded loaded) { + Drawable drawable; List> bioAst = loaded.getBioAst(); boolean showBioEditor = loaded.getShowBioEditor(); CardView cardView = getBinding().b; m.checkNotNullExpressionValue(cardView, "binding.bioEditorCard"); + boolean z2 = true; int i = 0; - boolean z2 = cardView.getVisibility() == 0; - CardView cardView2 = getBinding().e; + boolean z3 = cardView.getVisibility() == 0; + TextView textView = getBinding().f; + m.checkNotNullExpressionValue(textView, "binding.bioHelpText"); + if (loaded.getMeMember() == null) { + z2 = false; + } + textView.setVisibility(z2 ? 0 : 8); + TextView textView2 = getBinding().e; + Drawable drawable2 = null; + textView2.setText(loaded.getMeMember() != null ? b.j(textView2, R.string.change_identity_bio_header, new Object[0], null, 4) : b.j(textView2, R.string.user_profile_about_me, new Object[0], null, 4)); + if (!(loaded.getMeMember() == null || (drawable = ContextCompat.getDrawable(textView2.getContext(), R.drawable.ic_nitro_wheel_16dp)) == null)) { + TextView textView3 = getBinding().e; + m.checkNotNullExpressionValue(textView3, "binding.bioHeader"); + DrawableCompat.setTint(drawable, ColorCompat.getThemedColor(textView3, (int) R.attr.colorHeaderSecondary)); + drawable2 = drawable; + } + com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(textView2, (Drawable) null, (Drawable) null, drawable2, (Drawable) null, 11, (Object) null); + CardView cardView2 = getBinding().g; m.checkNotNullExpressionValue(cardView2, "binding.bioPreviewCard"); cardView2.setVisibility(showBioEditor ^ true ? 0 : 8); CardView cardView3 = getBinding().b; @@ -209,7 +248,7 @@ public final class WidgetSettingsUserProfile extends AppFragment { TextInputLayout textInputLayout = getBinding().d; m.checkNotNullExpressionValue(textInputLayout, "binding.bioEditorTextInputFieldWrap"); ViewExtensions.setText(textInputLayout, loaded.getCurrentBio()); - if (!z2) { + if (!z3) { getBinding().d.requestFocus(); TextInputLayout textInputLayout2 = getBinding().d; m.checkNotNullExpressionValue(textInputLayout2, "binding.bioEditorTextInputFieldWrap"); @@ -219,28 +258,72 @@ public final class WidgetSettingsUserProfile extends AppFragment { showKeyboard(textInputLayout3); } } else if (bioAst != null) { - LinkifiedTextView linkifiedTextView = getBinding().f; + LinkifiedTextView linkifiedTextView = getBinding().h; m.checkNotNullExpressionValue(linkifiedTextView, "binding.bioPreviewText"); Context context = linkifiedTextView.getContext(); m.checkNotNullExpressionValue(context, "binding.bioPreviewText.context"); - getBinding().f.setDraweeSpanStringBuilder(AstRenderer.render(bioAst, new MessageRenderContext(context, 0, false, null, null, null, 0, null, null, 0, 0, new WidgetSettingsUserProfile$configureBio$renderContext$1(getViewModel()), null, null, 14328, null))); + getBinding().h.setDraweeSpanStringBuilder(AstRenderer.render(bioAst, new MessageRenderContext(context, 0, false, null, null, null, 0, null, null, 0, 0, new WidgetEditUserOrGuildMemberProfile$configureBio$renderContext$1(getViewModel()), null, null, 14328, null))); } } private final void configureFab(SettingsUserProfileViewModel.ViewState.Loaded loaded) { - FloatingActionButton floatingActionButton = getBinding().h; + FloatingActionButton floatingActionButton = getBinding().m; m.checkNotNullExpressionValue(floatingActionButton, "binding.saveFab"); floatingActionButton.setVisibility(loaded.getShowSaveFab() ? 0 : 8); } + private final void configureNick(SettingsUserProfileViewModel.ViewState.Loaded loaded) { + boolean z2 = false; + boolean z3 = loaded.getGuild() != null; + LinearLayout linearLayout = getBinding().l; + m.checkNotNullExpressionValue(linearLayout, "binding.nickContainer"); + linearLayout.setVisibility(z3 ? 0 : 8); + TextInputLayout textInputLayout = getBinding().n; + m.checkNotNullExpressionValue(textInputLayout, "textInputLayout"); + String currentNickname = loaded.getCurrentNickname(); + textInputLayout.setEndIconVisible(!(currentNickname == null || currentNickname.length() == 0)); + Editable editable = null; + ViewExtensions.setEnabledAndAlpha$default(textInputLayout, loaded.getCanEditNickname(), 0.0f, 2, null); + textInputLayout.setHint(loaded.getCanEditNickname() ? getString(R.string.nickname) : getString(R.string.change_identity_modal_change_nickname_disabled)); + textInputLayout.setPlaceholderText(loaded.getUser().getUsername()); + ViewExtensions.addBindedTextWatcher(textInputLayout, this, new WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$1(this, loaded)); + textInputLayout.setEndIconOnClickListener(new WidgetEditUserOrGuildMemberProfile$configureNick$$inlined$also$lambda$2(this, loaded)); + TextInputLayout textInputLayout2 = getBinding().n; + m.checkNotNullExpressionValue(textInputLayout2, "binding.setNicknameText"); + String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout2); + if (!m.areEqual(loaded.getCurrentNickname(), textOrEmpty)) { + ViewExtensions.setText(textInputLayout, loaded.getCurrentNickname()); + if (textOrEmpty.length() == 0) { + z2 = true; + } + if (z2) { + EditText editText = textInputLayout.getEditText(); + if (editText != null) { + editable = editText.getText(); + } + Selection.setSelection(editable, ViewExtensions.getTextOrEmpty(textInputLayout).length()); + } + } + } + private final void configureUI(SettingsUserProfileViewModel.ViewState viewState) { if (viewState instanceof SettingsUserProfileViewModel.ViewState.Loaded) { SettingsUserProfileViewModel.ViewState.Loaded loaded = (SettingsUserProfileViewModel.ViewState.Loaded) viewState; + if (loaded.getGuild() != null) { + setActionBarSubtitle(loaded.getGuild().getName()); + } + configureNick(loaded); + getBinding().k.setVisibility(loaded.getGuild() != null ? 0 : 8); + if (loaded.getGuild() != null) { + TextView textView = getBinding().j; + m.checkNotNullExpressionValue(textView, "binding.guildMemberProfileHelpTextOverall"); + textView.setText(b.k(this, R.string.change_identity_help_text_overall, new Object[]{loaded.getGuild().getName()}, null, 4)); + } configureBio(loaded); configureAvatarSelect(loaded); configureBannerSelect(loaded); configureFab(loaded); - AppFragment.setOnBackPressed$default(this, new WidgetSettingsUserProfile$configureUI$1(this, viewState), 0, 2, null); + AppFragment.setOnBackPressed$default(this, new WidgetEditUserOrGuildMemberProfile$configureUI$3(this, viewState), 0, 2, null); } } @@ -248,6 +331,10 @@ public final class WidgetSettingsUserProfile extends AppFragment { return (WidgetSettingsUserProfileBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]); } + private final Long getGuildId() { + return (Long) this.guildId$delegate.getValue(); + } + private final SettingsUserProfileViewModel getViewModel() { return (SettingsUserProfileViewModel) this.viewModel$delegate.getValue(); } @@ -265,9 +352,9 @@ public final class WidgetSettingsUserProfile extends AppFragment { m.checkNotNullExpressionValue(create, "AlertDialog.Builder(requ…logBinding.root).create()"); b.d.setText(R.string.discard_changes); b.e.setText(R.string.discard_changes_description); - b.b.setOnClickListener(new WidgetSettingsUserProfile$handleBackPressed$1(create)); + b.b.setOnClickListener(new WidgetEditUserOrGuildMemberProfile$handleBackPressed$1(create)); b.f1708c.setText(R.string.okay); - b.f1708c.setOnClickListener(new WidgetSettingsUserProfile$handleBackPressed$2(this, create)); + b.f1708c.setOnClickListener(new WidgetEditUserOrGuildMemberProfile$handleBackPressed$2(this, create)); create.show(); return true; } @@ -275,7 +362,7 @@ public final class WidgetSettingsUserProfile extends AppFragment { private final void handleEvent(SettingsUserProfileViewModel.Event event) { if (m.areEqual(event, SettingsUserProfileViewModel.Event.UserUpdateRequestCompleted.INSTANCE)) { - DimmerView.setDimmed$default(getBinding().g, false, false, 2, null); + DimmerView.setDimmed$default(getBinding().i, false, false, 2, null); } } @@ -301,7 +388,7 @@ public final class WidgetSettingsUserProfile extends AppFragment { Context context = getContext(); Function1 function1 = this.imageSelectedResult; if (function1 != null) { - function1 = new WidgetSettingsUserProfile$sam$rx_functions_Action1$0(function1); + function1 = new WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0(function1); } MGImages.requestDataUrl(context, uri, str, (Action1) function1); } else { @@ -319,7 +406,7 @@ public final class WidgetSettingsUserProfile extends AppFragment { Context context = getContext(); Function1 function1 = this.imageSelectedResult; if (function1 != null) { - function1 = new WidgetSettingsUserProfile$sam$rx_functions_Action1$0(function1); + function1 = new WidgetEditUserOrGuildMemberProfile$sam$rx_functions_Action1$0(function1); } MGImages.requestDataUrl(context, uri, str, (Action1) function1); } @@ -328,15 +415,19 @@ public final class WidgetSettingsUserProfile extends AppFragment { public void onViewBound(View view) { m.checkNotNullParameter(view, "view"); super.onViewBound(view); - setActionBarTitle(R.string.user_settings_user_profile); - setActionBarSubtitle(R.string.user_settings); + if (getGuildId() != null) { + setActionBarTitle(R.string.change_identity); + } else { + setActionBarTitle(R.string.user_settings_user_profile); + setActionBarSubtitle(R.string.user_settings); + } AppFragment.setActionBarDisplayHomeAsUpEnabled$default(this, false, 1, null); - getBinding().h.setOnClickListener(new WidgetSettingsUserProfile$onViewBound$1(this, view)); - ((TouchInterceptingCoordinatorLayout) view).setOnInterceptTouchEvent(new WidgetSettingsUserProfile$onViewBound$2(this)); + getBinding().m.setOnClickListener(new WidgetEditUserOrGuildMemberProfile$onViewBound$1(this, view)); + ((TouchInterceptingCoordinatorLayout) view).setOnInterceptTouchEvent(new WidgetEditUserOrGuildMemberProfile$onViewBound$2(this)); getBinding().f2064c.setRawInputType(1); - getBinding().e.setOnClickListener(new WidgetSettingsUserProfile$onViewBound$3(this)); - getBinding().i.setOnAvatarRepresentativeColorUpdated(new WidgetSettingsUserProfile$onViewBound$4(this)); - getBinding().i.setOnBadgeClick(new WidgetSettingsUserProfile$onViewBound$5(this)); + getBinding().g.setOnClickListener(new WidgetEditUserOrGuildMemberProfile$onViewBound$3(this)); + getBinding().o.setOnAvatarRepresentativeColorUpdated(new WidgetEditUserOrGuildMemberProfile$onViewBound$4(this)); + getBinding().o.setOnBadgeClick(new WidgetEditUserOrGuildMemberProfile$onViewBound$5(this)); } @Override // com.discord.app.AppFragment @@ -344,11 +435,11 @@ public final class WidgetSettingsUserProfile extends AppFragment { super.onViewBoundOrOnResume(); Observable q = getViewModel().observeViewState().q(); m.checkNotNullExpressionValue(q, "viewModel.observeViewSta… .distinctUntilChanged()"); - ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(q, this, null, 2, null), WidgetSettingsUserProfile.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettingsUserProfile$onViewBoundOrOnResume$1(this), 62, (Object) null); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(q, this, null, 2, null), WidgetEditUserOrGuildMemberProfile.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$1(this), 62, (Object) null); UserProfileHeaderView.Companion companion = UserProfileHeaderView.Companion; - UserProfileHeaderView userProfileHeaderView = getBinding().i; + UserProfileHeaderView userProfileHeaderView = getBinding().o; m.checkNotNullExpressionValue(userProfileHeaderView, "binding.userSettingsProfileHeaderView"); companion.bind(userProfileHeaderView, this, getViewModel().observeHeaderViewState()); - ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(getViewModel().observeEvents(), this, null, 2, null), WidgetSettingsUserProfile.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettingsUserProfile$onViewBoundOrOnResume$2(this), 62, (Object) null); + ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle$default(getViewModel().observeEvents(), this, null, 2, null), WidgetEditUserOrGuildMemberProfile.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetEditUserOrGuildMemberProfile$onViewBoundOrOnResume$2(this), 62, (Object) null); } } diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$binding$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$binding$2.java deleted file mode 100644 index 4f87fd0897..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$binding$2.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.discord.widgets.settings.profile; - -import android.view.View; -import android.widget.LinearLayout; -import android.widget.TextView; -import androidx.cardview.widget.CardView; -import androidx.core.widget.NestedScrollView; -import com.discord.R; -import com.discord.databinding.WidgetSettingsUserProfileBinding; -import com.discord.utilities.dimmer.DimmerView; -import com.discord.utilities.view.text.LinkifiedTextView; -import com.discord.widgets.user.profile.UserProfileHeaderView; -import com.google.android.material.floatingactionbutton.FloatingActionButton; -import com.google.android.material.textfield.TextInputEditText; -import com.google.android.material.textfield.TextInputLayout; -import d0.z.d.k; -import d0.z.d.m; -import kotlin.jvm.functions.Function1; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final /* synthetic */ class WidgetSettingsUserProfile$binding$2 extends k implements Function1 { - public static final WidgetSettingsUserProfile$binding$2 INSTANCE = new WidgetSettingsUserProfile$binding$2(); - - public WidgetSettingsUserProfile$binding$2() { - super(1, WidgetSettingsUserProfileBinding.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetSettingsUserProfileBinding;", 0); - } - - public final WidgetSettingsUserProfileBinding invoke(View view) { - m.checkNotNullParameter(view, "p1"); - int i = R.id.bio_editor_card; - CardView cardView = (CardView) view.findViewById(R.id.bio_editor_card); - if (cardView != null) { - i = R.id.bio_editor_text_input_field; - TextInputEditText textInputEditText = (TextInputEditText) view.findViewById(R.id.bio_editor_text_input_field); - if (textInputEditText != null) { - i = R.id.bio_editor_text_input_field_wrap; - TextInputLayout textInputLayout = (TextInputLayout) view.findViewById(R.id.bio_editor_text_input_field_wrap); - if (textInputLayout != null) { - i = R.id.bio_header; - TextView textView = (TextView) view.findViewById(R.id.bio_header); - if (textView != null) { - i = R.id.bio_preview_card; - CardView cardView2 = (CardView) view.findViewById(R.id.bio_preview_card); - if (cardView2 != null) { - i = R.id.bio_preview_text; - LinkifiedTextView linkifiedTextView = (LinkifiedTextView) view.findViewById(R.id.bio_preview_text); - if (linkifiedTextView != null) { - i = R.id.dimmer_view; - DimmerView dimmerView = (DimmerView) view.findViewById(R.id.dimmer_view); - if (dimmerView != null) { - i = R.id.profile_container; - LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.profile_container); - if (linearLayout != null) { - i = R.id.save_fab; - FloatingActionButton floatingActionButton = (FloatingActionButton) view.findViewById(R.id.save_fab); - if (floatingActionButton != null) { - i = R.id.settings_profile_scroll; - NestedScrollView nestedScrollView = (NestedScrollView) view.findViewById(R.id.settings_profile_scroll); - if (nestedScrollView != null) { - i = R.id.user_settings_profile_header_view; - UserProfileHeaderView userProfileHeaderView = (UserProfileHeaderView) view.findViewById(R.id.user_settings_profile_header_view); - if (userProfileHeaderView != null) { - return new WidgetSettingsUserProfileBinding((TouchInterceptingCoordinatorLayout) view, cardView, textInputEditText, textInputLayout, textView, cardView2, linkifiedTextView, dimmerView, linearLayout, floatingActionButton, nestedScrollView, userProfileHeaderView); - } - } - } - } - } - } - } - } - } - } - } - throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i))); - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureUI$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureUI$1.java deleted file mode 100644 index a13c8ded42..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$configureUI$1.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.discord.widgets.settings.profile; - -import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; -import rx.functions.Func0; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$configureUI$1 implements Func0 { - public final /* synthetic */ SettingsUserProfileViewModel.ViewState $viewState; - public final /* synthetic */ WidgetSettingsUserProfile this$0; - - public WidgetSettingsUserProfile$configureUI$1(WidgetSettingsUserProfile widgetSettingsUserProfile, SettingsUserProfileViewModel.ViewState viewState) { - this.this$0 = widgetSettingsUserProfile; - this.$viewState = viewState; - } - - @Override // rx.functions.Func0, java.util.concurrent.Callable - public final Boolean call() { - return Boolean.valueOf(WidgetSettingsUserProfile.access$handleBackPressed(this.this$0, (SettingsUserProfileViewModel.ViewState.Loaded) this.$viewState)); - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$2.java deleted file mode 100644 index 956f7596fa..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$handleBackPressed$2.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.discord.widgets.settings.profile; - -import android.view.View; -import androidx.appcompat.app.AlertDialog; -import androidx.fragment.app.FragmentActivity; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$handleBackPressed$2 implements View.OnClickListener { - public final /* synthetic */ AlertDialog $dialog; - public final /* synthetic */ WidgetSettingsUserProfile this$0; - - public WidgetSettingsUserProfile$handleBackPressed$2(WidgetSettingsUserProfile widgetSettingsUserProfile, AlertDialog alertDialog) { - this.this$0 = widgetSettingsUserProfile; - this.$dialog = alertDialog; - } - - @Override // android.view.View.OnClickListener - public final void onClick(View view) { - WidgetSettingsUserProfile.access$getDiscardConfirmed$p(this.this$0).set(true); - this.$dialog.dismiss(); - FragmentActivity activity = this.this$0.getActivity(); - if (activity != null) { - activity.onBackPressed(); - } - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$1.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$1.java deleted file mode 100644 index 043f90cb21..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$1.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.discord.widgets.settings.profile; - -import android.content.Context; -import android.view.View; -import com.discord.utilities.dimmer.DimmerView; -import d0.z.d.m; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBound$1 implements View.OnClickListener { - public final /* synthetic */ View $view; - public final /* synthetic */ WidgetSettingsUserProfile this$0; - - public WidgetSettingsUserProfile$onViewBound$1(WidgetSettingsUserProfile widgetSettingsUserProfile, View view) { - this.this$0 = widgetSettingsUserProfile; - this.$view = view; - } - - @Override // android.view.View.OnClickListener - public final void onClick(View view) { - SettingsUserProfileViewModel access$getViewModel$p = WidgetSettingsUserProfile.access$getViewModel$p(this.this$0); - Context context = this.$view.getContext(); - m.checkNotNullExpressionValue(context, "view.context"); - access$getViewModel$p.saveUserChanges(context); - DimmerView.setDimmed$default(WidgetSettingsUserProfile.access$getBinding$p(this.this$0).g, true, false, 2, null); - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$3.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$3.java deleted file mode 100644 index e780fdc36a..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$onViewBound$3.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.discord.widgets.settings.profile; - -import android.view.View; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$onViewBound$3 implements View.OnClickListener { - public final /* synthetic */ WidgetSettingsUserProfile this$0; - - public WidgetSettingsUserProfile$onViewBound$3(WidgetSettingsUserProfile widgetSettingsUserProfile) { - this.this$0 = widgetSettingsUserProfile; - } - - @Override // android.view.View.OnClickListener - public final void onClick(View view) { - WidgetSettingsUserProfile.access$getViewModel$p(this.this$0).updateIsEditingBio(true); - } -} diff --git a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$viewModel$2.java b/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$viewModel$2.java deleted file mode 100644 index 643c3fb1c9..0000000000 --- a/app/src/main/java/com/discord/widgets/settings/profile/WidgetSettingsUserProfile$viewModel$2.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.discord.widgets.settings.profile; - -import com.discord.app.AppViewModel; -import com.discord.widgets.settings.profile.SettingsUserProfileViewModel; -import d0.z.d.o; -import kotlin.jvm.functions.Function0; -/* compiled from: WidgetSettingsUserProfile.kt */ -public final class WidgetSettingsUserProfile$viewModel$2 extends o implements Function0> { - public static final WidgetSettingsUserProfile$viewModel$2 INSTANCE = new WidgetSettingsUserProfile$viewModel$2(); - - public WidgetSettingsUserProfile$viewModel$2() { - super(0); - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final AppViewModel mo1invoke() { - return new SettingsUserProfileViewModel(null, null, null, null, null, 31, null); - } -} diff --git a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2.java b/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2.java deleted file mode 100644 index ef3cbd1a44..0000000000 --- a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.discord.widgets.stage; - -import d0.z.d.o; -import kotlin.jvm.functions.Function0; -/* compiled from: LiveStageNotificationsFeatureFlag.kt */ -public final class LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2 extends o implements Function0 { - public static final LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2 INSTANCE = new LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2(); - - public LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2() { - super(0); - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final LiveStageNotificationsFeatureFlag mo1invoke() { - return new LiveStageNotificationsFeatureFlag(null, null, 3, null); - } -} diff --git a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeExperiment$1.java b/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeExperiment$1.java deleted file mode 100644 index 8ef6de455d..0000000000 --- a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeExperiment$1.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.discord.widgets.stage; - -import com.discord.models.experiments.domain.Experiment; -import d0.z.d.o; -import kotlin.jvm.functions.Function0; -/* compiled from: LiveStageNotificationsFeatureFlag.kt */ -public final class LiveStageNotificationsFeatureFlag$observeExperiment$1 extends o implements Function0 { - public final /* synthetic */ long $guildId; - public final /* synthetic */ LiveStageNotificationsFeatureFlag this$0; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public LiveStageNotificationsFeatureFlag$observeExperiment$1(LiveStageNotificationsFeatureFlag liveStageNotificationsFeatureFlag, long j) { - super(0); - this.this$0 = liveStageNotificationsFeatureFlag; - this.$guildId = j; - } - - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final Experiment mo1invoke() { - return this.this$0.getExperiment(this.$guildId); - } -} diff --git a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1.java b/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1.java deleted file mode 100644 index 8159093223..0000000000 --- a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.discord.widgets.stage; - -import d0.z.d.o; -import kotlin.jvm.functions.Function0; -/* compiled from: LiveStageNotificationsFeatureFlag.kt */ -public final class LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1 extends o implements Function0 { - public final /* synthetic */ long $guildId; - public final /* synthetic */ LiveStageNotificationsFeatureFlag this$0; - - /* JADX INFO: super call moved to the top of the method (can break code semantics) */ - public LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1(LiveStageNotificationsFeatureFlag liveStageNotificationsFeatureFlag, long j) { - super(0); - this.this$0 = liveStageNotificationsFeatureFlag; - this.$guildId = j; - } - - /* Return type fixed from 'boolean' to match base method */ - /* JADX WARNING: Unknown variable types count: 1 */ - @Override // kotlin.jvm.functions.Function0 - /* renamed from: invoke */ - public final Boolean mo1invoke() { - return this.this$0.showNotificationSurfaces(this.$guildId); - } -} diff --git a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag.java b/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag.java deleted file mode 100644 index 9bb06a3219..0000000000 --- a/app/src/main/java/com/discord/widgets/stage/LiveStageNotificationsFeatureFlag.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.discord.widgets.stage; - -import com.discord.models.experiments.domain.Experiment; -import com.discord.stores.StoreExperiments; -import com.discord.stores.StoreStream; -import com.discord.stores.updates.ObservationDeck; -import com.discord.stores.updates.ObservationDeckProvider; -import d0.g; -import d0.z.d.m; -import kotlin.Lazy; -import kotlin.jvm.internal.DefaultConstructorMarker; -import rx.Observable; -/* compiled from: LiveStageNotificationsFeatureFlag.kt */ -public final class LiveStageNotificationsFeatureFlag { - public static final Companion Companion = new Companion(null); - private static final Lazy INSTANCE$delegate = g.lazy(LiveStageNotificationsFeatureFlag$Companion$INSTANCE$2.INSTANCE); - private final ObservationDeck observationDeck; - private final StoreExperiments storeExperiments; - - /* compiled from: LiveStageNotificationsFeatureFlag.kt */ - public static final class Companion { - private Companion() { - } - - public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { - this(); - } - - public final LiveStageNotificationsFeatureFlag getINSTANCE() { - Lazy access$getINSTANCE$cp = LiveStageNotificationsFeatureFlag.access$getINSTANCE$cp(); - Companion companion = LiveStageNotificationsFeatureFlag.Companion; - return (LiveStageNotificationsFeatureFlag) access$getINSTANCE$cp.getValue(); - } - } - - public LiveStageNotificationsFeatureFlag() { - this(null, null, 3, null); - } - - public LiveStageNotificationsFeatureFlag(StoreExperiments storeExperiments, ObservationDeck observationDeck) { - m.checkNotNullParameter(storeExperiments, "storeExperiments"); - m.checkNotNullParameter(observationDeck, "observationDeck"); - this.storeExperiments = storeExperiments; - this.observationDeck = observationDeck; - } - - /* JADX INFO: this call moved to the top of the method (can break code semantics) */ - public /* synthetic */ LiveStageNotificationsFeatureFlag(StoreExperiments storeExperiments, ObservationDeck observationDeck, int i, DefaultConstructorMarker defaultConstructorMarker) { - this((i & 1) != 0 ? StoreStream.Companion.getExperiments() : storeExperiments, (i & 2) != 0 ? ObservationDeckProvider.get() : observationDeck); - } - - public static final /* synthetic */ Lazy access$getINSTANCE$cp() { - return INSTANCE$delegate; - } - - public final Experiment getExperiment(long j) { - return this.storeExperiments.getGuildExperiment("2021-07_live_stage_notifications", j, false); - } - - public final Observable observeExperiment(long j) { - Observable q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.storeExperiments}, false, null, null, new LiveStageNotificationsFeatureFlag$observeExperiment$1(this, j), 14, null).q(); - m.checkNotNullExpressionValue(q, "observationDeck.connectR… }.distinctUntilChanged()"); - return q; - } - - public final Observable observeShowNotificationSurfaces(long j) { - Observable q = ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.storeExperiments}, false, null, null, new LiveStageNotificationsFeatureFlag$observeShowNotificationSurfaces$1(this, j), 14, null).q(); - m.checkNotNullExpressionValue(q, "observationDeck.connectR… }.distinctUntilChanged()"); - return q; - } - - public final boolean showNotificationSurfaces(long j) { - Experiment experiment = getExperiment(j); - Integer valueOf = experiment != null ? Integer.valueOf(experiment.getBucket()) : null; - if (valueOf != null && valueOf.intValue() == 1) { - return true; - } - if (valueOf != null && valueOf.intValue() == 2) { - return true; - } - return valueOf != null && valueOf.intValue() == 3; - } -} diff --git a/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageAdapter.java b/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageAdapter.java index 128c920876..45ffc26a3e 100644 --- a/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageAdapter.java +++ b/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageAdapter.java @@ -174,7 +174,7 @@ public final class ModeratorStartStageAdapter extends MGRecyclerAdapterSimple implements Comparator { @Override // java.util.Comparator public final int compare(T t, T t2) { - return a.compareValues(t.j(), t2.j()); + return a.compareValues(t.k(), t2.k()); } } diff --git a/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageViewModel.java b/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageViewModel.java index 90ba052c1e..bbfa173e4e 100644 --- a/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageViewModel.java +++ b/app/src/main/java/com/discord/widgets/stage/start/ModeratorStartStageViewModel.java @@ -352,7 +352,7 @@ public final class ModeratorStartStageViewModel extends AppViewModel break; } Object next = it2.next(); - if (((GuildScheduledEvent) next).k() == GuildScheduledEventStatus.ACTIVE) { + if (((GuildScheduledEvent) next).l() == GuildScheduledEventStatus.ACTIVE) { z2 = true; continue; } else { diff --git a/app/src/main/java/com/discord/widgets/stage/start/WidgetModeratorStartStage.java b/app/src/main/java/com/discord/widgets/stage/start/WidgetModeratorStartStage.java index c0458fb5c4..bec3cae687 100644 --- a/app/src/main/java/com/discord/widgets/stage/start/WidgetModeratorStartStage.java +++ b/app/src/main/java/com/discord/widgets/stage/start/WidgetModeratorStartStage.java @@ -140,7 +140,7 @@ public final class WidgetModeratorStartStage extends AppFragment { WidgetGuildScheduledEventLocationSelect.Companion.launch(requireContext(), getGuildId(), Long.valueOf(getChannelId())); } else if (moderatorStartStageItem instanceof ModeratorStartStageItem.ListItem.Event) { ModeratorStartStageItem.ListItem.Event event = (ModeratorStartStageItem.ListItem.Event) moderatorStartStageItem; - WidgetPreviewGuildScheduledEvent.Companion.launch$default(WidgetPreviewGuildScheduledEvent.Companion, requireContext(), GuildScheduledEventModelKt.toModel(event.getEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(event.getEvent().g(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), this.previewLauncher, false, 16, null); + WidgetPreviewGuildScheduledEvent.Companion.launch$default(WidgetPreviewGuildScheduledEvent.Companion, requireContext(), GuildScheduledEventModelKt.toModel(event.getEvent()), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(event.getEvent().h(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), this.previewLauncher, false, 16, null); } else if (moderatorStartStageItem instanceof ModeratorStartStageItem.Continue) { launchStageCall(getChannelId()); } diff --git a/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel$sendReportAPICall$onFetchSuccess$1.java b/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel$sendReportAPICall$onFetchSuccess$1.java new file mode 100644 index 0000000000..e28ecfefef --- /dev/null +++ b/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel$sendReportAPICall$onFetchSuccess$1.java @@ -0,0 +1,45 @@ +package com.discord.widgets.tos; + +import com.discord.models.domain.ModelUserProfile; +import com.discord.utilities.analytics.AnalyticsTracker; +import d0.z.d.m; +import d0.z.d.o; +import java.util.ArrayList; +import java.util.Collection; +import kotlin.Unit; +import kotlin.jvm.functions.Function1; +/* compiled from: WidgetTosReportViolationViewModel.kt */ +public final class WidgetTosReportViolationViewModel$sendReportAPICall$onFetchSuccess$1 extends o implements Function1 { + public final /* synthetic */ long $channelId; + public final /* synthetic */ long $messageId; + public final /* synthetic */ int $reason; + public final /* synthetic */ WidgetTosReportViolationViewModel this$0; + + /* JADX INFO: super call moved to the top of the method (can break code semantics) */ + public WidgetTosReportViolationViewModel$sendReportAPICall$onFetchSuccess$1(WidgetTosReportViolationViewModel widgetTosReportViolationViewModel, int i, long j, long j2) { + super(1); + this.this$0 = widgetTosReportViolationViewModel; + this.$reason = i; + this.$channelId = j; + this.$messageId = j2; + } + + /* Return type fixed from 'java.lang.Object' to match base method */ + /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ + @Override // kotlin.jvm.functions.Function1 + public /* bridge */ /* synthetic */ Unit invoke(ModelUserProfile modelUserProfile) { + invoke(modelUserProfile); + return Unit.a; + } + + public final void invoke(ModelUserProfile modelUserProfile) { + m.checkNotNullParameter(modelUserProfile, "userProfile"); + Collection values = modelUserProfile.getMutualGuilds().values(); + ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(values, 10)); + for (ModelUserProfile.GuildReference guildReference : values) { + m.checkNotNullExpressionValue(guildReference, "guildReference"); + arrayList.add(Long.valueOf(guildReference.getGuildId())); + } + AnalyticsTracker.INSTANCE.reportTosViolation(this.$reason, this.$channelId, this.$messageId, arrayList); + } +} diff --git a/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel.java b/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel.java index f4910a8187..5a2d95d89c 100644 --- a/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel.java +++ b/app/src/main/java/com/discord/widgets/tos/WidgetTosReportViolationViewModel.java @@ -3,11 +3,14 @@ package com.discord.widgets.tos; import android.content.Context; import androidx.annotation.MainThread; import c.d.b.a.a; +import com.discord.api.channel.Channel; +import com.discord.api.channel.ChannelUtils; import com.discord.api.report.ReportReason; import com.discord.app.AppViewModel; +import com.discord.models.user.User; import com.discord.restapi.RestAPIInterface; import com.discord.restapi.RestAPIParams; -import com.discord.utilities.analytics.AnalyticsTracker; +import com.discord.stores.StoreStream; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import d0.z.d.k; @@ -299,7 +302,15 @@ public final class WidgetTosReportViolationViewModel extends AppViewModel weakReference, WeakReference weakReference2) { + m.checkNotNullParameter(guildScheduledEvent, "guildEvent"); + m.checkNotNullParameter(weakReference, "weakContext"); + m.checkNotNullParameter(weakReference2, "weakFragment"); + WidgetChatListAdapter.EventHandler.DefaultImpls.onShareButtonClick(this, guildScheduledEvent, weakReference, weakReference2); + } + @Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler public void onStickerClicked(Message message, BaseSticker baseSticker) { m.checkNotNullParameter(message, "message"); diff --git a/app/src/main/java/com/discord/widgets/user/WidgetUserMutualGuilds.java b/app/src/main/java/com/discord/widgets/user/WidgetUserMutualGuilds.java index 6c05b25820..521c89ec0e 100644 --- a/app/src/main/java/com/discord/widgets/user/WidgetUserMutualGuilds.java +++ b/app/src/main/java/com/discord/widgets/user/WidgetUserMutualGuilds.java @@ -582,7 +582,7 @@ public final class WidgetUserMutualGuilds extends AppFragment { @Override // com.discord.app.AppFragment public void onViewBoundOrOnResume() { super.onViewBoundOrOnResume(); - StoreStream.Companion.getUserProfile().fetchProfile(getUserId()); + StoreUserProfile.fetchProfile$default(StoreStream.Companion.getUserProfile(), getUserId(), null, 2, null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(Model.Companion.get$default(Model.Companion, getUserId(), null, null, null, null, 30, null), this, null, 2, null), WidgetUserMutualGuilds.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetUserMutualGuilds$onViewBoundOrOnResume$1(this), 62, (Object) null); } } diff --git a/app/src/main/java/com/discord/widgets/user/profile/UserProfileHeaderView.java b/app/src/main/java/com/discord/widgets/user/profile/UserProfileHeaderView.java index 49980fa702..9da0e04458 100644 --- a/app/src/main/java/com/discord/widgets/user/profile/UserProfileHeaderView.java +++ b/app/src/main/java/com/discord/widgets/user/profile/UserProfileHeaderView.java @@ -259,16 +259,35 @@ public final class UserProfileHeaderView extends ConstraintLayout { } private final void configureBanner(UserProfileHeaderViewModel.ViewState.Loaded loaded) { - String banner = loaded.getBanner(); + String str; + String str2; + String str3; + GuildMember guildMember = loaded.getGuildMember(); + if (guildMember == null || (str = guildMember.getBannerHash()) == null) { + str = loaded.getBanner(); + } Resources resources = getResources(); m.checkNotNullExpressionValue(resources, "resources"); int i = resources.getDisplayMetrics().widthPixels; Resources resources2 = getResources(); m.checkNotNullExpressionValue(resources2, "resources"); + int max = Math.max(i, resources2.getDisplayMetrics().heightPixels); int i2 = 0; - String forUserBanner = (banner == null || !t.startsWith$default(banner, "data:", false, 2, null)) ? IconUtils.INSTANCE.getForUserBanner(loaded.getUser().getId(), banner, Integer.valueOf(Math.max(i, resources2.getDisplayMetrics().heightPixels)), loaded.getShouldAnimateBanner()) : banner; - boolean z2 = !(forUserBanner == null || t.isBlank(forUserBanner)); - boolean z3 = (banner != null && IconUtils.INSTANCE.isDataUrlForGif(banner)) || (banner != null && !t.startsWith$default(banner, "data:", false, 2, null) && IconUtils.INSTANCE.isImageHashAnimated(banner)); + if (str == null || !t.startsWith$default(str, "data:", false, 2, null)) { + GuildMember guildMember2 = loaded.getGuildMember(); + if (guildMember2 == null || !guildMember2.hasBanner()) { + str3 = IconUtils.INSTANCE.getForUserBanner(loaded.getUser().getId(), str, Integer.valueOf(max), loaded.getShouldAnimateBanner()); + } else { + IconUtils iconUtils = IconUtils.INSTANCE; + GuildMember guildMember3 = loaded.getGuildMember(); + str3 = iconUtils.getForGuildMemberBanner(str, (guildMember3 != null ? Long.valueOf(guildMember3.getGuildId()) : null).longValue(), loaded.getUser().getId(), Integer.valueOf(max), loaded.getShouldAnimateBanner()); + } + str2 = str3; + } else { + str2 = str; + } + boolean z2 = !(str2 == null || t.isBlank(str2)); + boolean z3 = (str != null && IconUtils.INSTANCE.isDataUrlForGif(str)) || (str != null && !t.startsWith$default(str, "data:", false, 2, null) && IconUtils.INSTANCE.isImageHashAnimated(str)); SimpleDraweeView simpleDraweeView = this.binding.f1697c; m.checkNotNullExpressionValue(simpleDraweeView, "binding.banner"); simpleDraweeView.setAspectRatio(!z2 ? 5.0f : 2.5f); @@ -283,7 +302,7 @@ public final class UserProfileHeaderView extends ConstraintLayout { } SimpleDraweeView simpleDraweeView2 = this.binding.f1697c; m.checkNotNullExpressionValue(simpleDraweeView2, "binding.banner"); - MGImages.setImage$default(simpleDraweeView2, forUserBanner, 0, 0, false, new UserProfileHeaderView$configureBanner$1(this, ref$BooleanRef, loaded), this.bannerChangeDetector, 28, null); + MGImages.setImage$default(simpleDraweeView2, str2, 0, 0, false, new UserProfileHeaderView$configureBanner$1(this, ref$BooleanRef, loaded), this.bannerChangeDetector, 28, null); this.binding.f1697c.setOnClickListener(new UserProfileHeaderView$configureBanner$2(this)); this.binding.d.setOnClickListener(new UserProfileHeaderView$configureBanner$3(this)); ImageView imageView = this.binding.e; diff --git a/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$1.java b/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$1.java index ff44262326..e498966357 100644 --- a/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$1.java +++ b/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$1.java @@ -2,7 +2,7 @@ package com.discord.widgets.user.usersheet; import android.content.Context; import android.view.View; -import com.discord.widgets.settings.profile.WidgetSettingsUserProfile; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; import d0.z.d.m; /* compiled from: WidgetUserSheet.kt */ public final class WidgetUserSheet$configureProfileActionButtons$1 implements View.OnClickListener { @@ -14,9 +14,9 @@ public final class WidgetUserSheet$configureProfileActionButtons$1 implements Vi @Override // android.view.View.OnClickListener public final void onClick(View view) { - WidgetSettingsUserProfile.Companion companion = WidgetSettingsUserProfile.Companion; + WidgetEditUserOrGuildMemberProfile.Companion companion = WidgetEditUserOrGuildMemberProfile.Companion; Context requireContext = this.this$0.requireContext(); m.checkNotNullExpressionValue(requireContext, "this@WidgetUserSheet.requireContext()"); - WidgetSettingsUserProfile.Companion.launch$default(companion, requireContext, null, 2, null); + WidgetEditUserOrGuildMemberProfile.Companion.launch$default(companion, requireContext, null, null, 6, null); } } diff --git a/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$2.java b/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$2.java index 1b7ed7da4f..11e925ae0e 100644 --- a/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$2.java +++ b/app/src/main/java/com/discord/widgets/user/usersheet/WidgetUserSheet$configureProfileActionButtons$2.java @@ -2,7 +2,11 @@ package com.discord.widgets.user.usersheet; import android.content.Context; import android.view.View; +import c.d.b.a.a; +import com.discord.models.experiments.domain.Experiment; +import com.discord.stores.StoreStream; import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentity; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; import d0.z.d.m; /* compiled from: WidgetUserSheet.kt */ public final class WidgetUserSheet$configureProfileActionButtons$2 implements View.OnClickListener { @@ -14,14 +18,18 @@ public final class WidgetUserSheet$configureProfileActionButtons$2 implements Vi @Override // android.view.View.OnClickListener public final void onClick(View view) { - Long l = this.$guildId; - if (l != null) { - WidgetChangeGuildIdentity.Companion companion = WidgetChangeGuildIdentity.Companion; - long longValue = l.longValue(); - m.checkNotNullExpressionValue(view, "it"); - Context context = view.getContext(); - m.checkNotNullExpressionValue(context, "it.context"); - companion.launch(longValue, "User Bottom Sheet", context); + if (this.$guildId != null) { + Experiment userExperiment = StoreStream.Companion.getExperiments().getUserExperiment("2021-10_premium_guild_member_profiles", true); + if (userExperiment == null || userExperiment.getBucket() != 1) { + WidgetChangeGuildIdentity.Companion companion = WidgetChangeGuildIdentity.Companion; + long longValue = this.$guildId.longValue(); + m.checkNotNullExpressionValue(view, "it"); + Context context = view.getContext(); + m.checkNotNullExpressionValue(context, "it.context"); + companion.launch(longValue, "User Bottom Sheet", context); + return; + } + WidgetEditUserOrGuildMemberProfile.Companion.launch$default(WidgetEditUserOrGuildMemberProfile.Companion, a.x(view, "it", "it.context"), null, this.$guildId, 2, null); } } } diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1.java index 752ec4a2f7..14fc7d0a6e 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1.java @@ -23,6 +23,6 @@ public final class WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1 WidgetGuildScheduledEventDetailsBottomSheet.Companion companion = WidgetGuildScheduledEventDetailsBottomSheet.Companion; FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); - companion.show(parentFragmentManager, this.$activeEvent$inlined.g()); + companion.show(parentFragmentManager, this.$activeEvent$inlined.h()); } } diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureBottomControls$1.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureBottomControls$1.java index b152097433..5276c673f5 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureBottomControls$1.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureBottomControls$1.java @@ -40,7 +40,7 @@ public final class WidgetCallFullscreen$configureBottomControls$1 extends o impl WidgetEndGuildScheduledEventBottomSheet.Companion companion2 = WidgetEndGuildScheduledEventBottomSheet.Companion; FragmentManager parentFragmentManager2 = this.this$0.getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager2, "parentFragmentManager"); - companion2.show(parentFragmentManager2, "END_EVENT_REQUEST_KEY", guildScheduledEventToEndForCall$default.g()); + companion2.show(parentFragmentManager2, "END_EVENT_REQUEST_KEY", guildScheduledEventToEndForCall$default.h()); } } } diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureEventPrompt$onStartEvent$1.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureEventPrompt$onStartEvent$1.java index d598c87791..ddb7f4f899 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureEventPrompt$onStartEvent$1.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureEventPrompt$onStartEvent$1.java @@ -22,7 +22,7 @@ public final class WidgetCallFullscreen$configureEventPrompt$onStartEvent$1 exte /* renamed from: invoke */ public final void mo1invoke() { if (this.$startableEvent != null) { - WidgetPreviewGuildScheduledEvent.Companion.launch$default(WidgetPreviewGuildScheduledEvent.Companion, this.this$0.requireContext(), GuildScheduledEventModelKt.toModel(this.$startableEvent), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(this.$startableEvent.g(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), null, false, 24, null); + WidgetPreviewGuildScheduledEvent.Companion.launch$default(WidgetPreviewGuildScheduledEvent.Companion, this.this$0.requireContext(), GuildScheduledEventModelKt.toModel(this.$startableEvent), new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(this.$startableEvent.h(), WidgetPreviewGuildScheduledEvent.Companion.Action.START_EVENT), null, false, 24, null); } } } diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureMenu$1.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureMenu$1.java index 1767318fee..5449b2c517 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureMenu$1.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen$configureMenu$1.java @@ -52,21 +52,21 @@ public final class WidgetCallFullscreen$configureMenu$1 implements Actio public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { - case R.id.menu_call_overlay_launcher /* 2131364194 */: + case R.id.menu_call_overlay_launcher /* 2131364200 */: DiscordOverlayService.Companion companion = DiscordOverlayService.Companion; m.checkNotNullExpressionValue(context, "context"); companion.launchForConnect(context); return; - case R.id.menu_call_switch_camera /* 2131364195 */: + case R.id.menu_call_switch_camera /* 2131364201 */: WidgetCallFullscreen.access$getViewModel$p(this.this$0).switchCameraInputPressed(); return; - case R.id.menu_call_video_list /* 2131364196 */: + case R.id.menu_call_video_list /* 2131364202 */: WidgetVoiceBottomSheet.Companion companion2 = WidgetVoiceBottomSheet.Companion; FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager(); m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager"); companion2.show(parentFragmentManager, this.$viewState.getCallModel().getChannel().h(), false, WidgetVoiceBottomSheet.FeatureContext.FULLSCREEN_CALL).setOnStreamPreviewClickedListener(new AnonymousClass1(this)); return; - case R.id.menu_call_voice_settings /* 2131364197 */: + case R.id.menu_call_voice_settings /* 2131364203 */: WidgetVoiceSettingsBottomSheet.Companion companion3 = WidgetVoiceSettingsBottomSheet.Companion; Long valueOf = Long.valueOf(this.$viewState.getCallModel().getChannel().h()); FragmentManager parentFragmentManager2 = this.this$0.getParentFragmentManager(); diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen.java index f2976caa96..52eab07854 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreen.java @@ -404,7 +404,7 @@ public final class WidgetCallFullscreen extends AppFragment { textView3.setText(channel.m()); TextView textView4 = voiceCallActiveEventView2.i.f78c; m.checkNotNullExpressionValue(textView4, "binding.eventName"); - textView4.setText(activeEvent.h()); + textView4.setText(activeEvent.i()); voiceCallActiveEventView2.setOnClickListener(new WidgetCallFullscreen$configureActionBar$$inlined$let$lambda$1(activeEvent, this, valid)); z6 = true; } else { diff --git a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreenViewModel$handleStoreState$$inlined$sortedBy$1.java b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreenViewModel$handleStoreState$$inlined$sortedBy$1.java index d2657412a4..121a79a7ea 100644 --- a/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreenViewModel$handleStoreState$$inlined$sortedBy$1.java +++ b/app/src/main/java/com/discord/widgets/voice/fullscreen/WidgetCallFullscreenViewModel$handleStoreState$$inlined$sortedBy$1.java @@ -6,6 +6,6 @@ import java.util.Comparator; public final class WidgetCallFullscreenViewModel$handleStoreState$$inlined$sortedBy$1 implements Comparator { @Override // java.util.Comparator public final int compare(T t, T t2) { - return a.compareValues(t.j(), t2.j()); + return a.compareValues(t.k(), t2.k()); } } diff --git a/app/src/main/java/com/discord/widgets/voice/sheet/CallParticipantsAdapter.java b/app/src/main/java/com/discord/widgets/voice/sheet/CallParticipantsAdapter.java index 9ca5cc735e..68e26b5dc0 100644 --- a/app/src/main/java/com/discord/widgets/voice/sheet/CallParticipantsAdapter.java +++ b/app/src/main/java/com/discord/widgets/voice/sheet/CallParticipantsAdapter.java @@ -488,7 +488,7 @@ public final class CallParticipantsAdapter extends MGRecyclerAdapterSimple implements b> { public final /* synthetic */ long $channelId; @@ -17,17 +14,15 @@ public final class WidgetVoiceSettingsBottomSheetViewModel$Companion$observeStor /* compiled from: WidgetVoiceSettingsBottomSheetViewModel.kt */ /* renamed from: com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheetViewModel$Companion$observeStoreState$1$1 reason: invalid class name */ - public static final class AnonymousClass1 implements Func2 { + public static final class AnonymousClass1 implements b { public final /* synthetic */ CallModel $callModel; public AnonymousClass1(CallModel callModel) { this.$callModel = callModel; } - public final WidgetVoiceSettingsBottomSheetViewModel.StoreState.Valid call(StageRoles stageRoles, Boolean bool) { - CallModel callModel = this.$callModel; - m.checkNotNullExpressionValue(bool, "showStageNotificationSurfaces"); - return new WidgetVoiceSettingsBottomSheetViewModel.StoreState.Valid(callModel, stageRoles, bool.booleanValue(), null); + public final WidgetVoiceSettingsBottomSheetViewModel.StoreState.Valid call(StageRoles stageRoles) { + return new WidgetVoiceSettingsBottomSheetViewModel.StoreState.Valid(this.$callModel, stageRoles, null); } } @@ -37,6 +32,6 @@ public final class WidgetVoiceSettingsBottomSheetViewModel$Companion$observeStor } public final Observable call(CallModel callModel) { - return callModel == null ? new j(WidgetVoiceSettingsBottomSheetViewModel.StoreState.Invalid.INSTANCE) : Observable.j(this.$stageChannelsStore.observeMyRoles(this.$channelId), LiveStageNotificationsFeatureFlag.Companion.getINSTANCE().observeShowNotificationSurfaces(callModel.getChannel().f()), new AnonymousClass1(callModel)); + return callModel == null ? new j(WidgetVoiceSettingsBottomSheetViewModel.StoreState.Invalid.INSTANCE) : this.$stageChannelsStore.observeMyRoles(this.$channelId).F(new AnonymousClass1(callModel)); } } diff --git a/app/src/main/java/com/discord/widgets/voice/sheet/WidgetVoiceSettingsBottomSheetViewModel.java b/app/src/main/java/com/discord/widgets/voice/sheet/WidgetVoiceSettingsBottomSheetViewModel.java index 1c4a05a29b..00ebb11f4e 100644 --- a/app/src/main/java/com/discord/widgets/voice/sheet/WidgetVoiceSettingsBottomSheetViewModel.java +++ b/app/src/main/java/com/discord/widgets/voice/sheet/WidgetVoiceSettingsBottomSheetViewModel.java @@ -5,6 +5,7 @@ import c.d.b.a.a; import com.discord.api.channel.Channel; import com.discord.api.channel.ChannelUtils; import com.discord.app.AppViewModel; +import com.discord.models.guild.Guild; import com.discord.stores.StoreMediaSettings; import com.discord.stores.StoreStageChannels; import com.discord.stores.StoreStream; @@ -88,31 +89,26 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< public static final class Valid extends StoreState { private final CallModel callModel; private final StageRoles myStageRoles; - private final boolean showStageNotificationSurfaces; - private Valid(CallModel callModel, StageRoles stageRoles, boolean z2) { + private Valid(CallModel callModel, StageRoles stageRoles) { super(null); this.callModel = callModel; this.myStageRoles = stageRoles; - this.showStageNotificationSurfaces = z2; } - public /* synthetic */ Valid(CallModel callModel, StageRoles stageRoles, boolean z2, DefaultConstructorMarker defaultConstructorMarker) { - this(callModel, stageRoles, z2); + public /* synthetic */ Valid(CallModel callModel, StageRoles stageRoles, DefaultConstructorMarker defaultConstructorMarker) { + this(callModel, stageRoles); } - /* renamed from: copy-P2fzehM$default reason: not valid java name */ - public static /* synthetic */ Valid m67copyP2fzehM$default(Valid valid, CallModel callModel, StageRoles stageRoles, boolean z2, int i, Object obj) { + /* renamed from: copy-FZvHQiQ$default reason: not valid java name */ + public static /* synthetic */ Valid m67copyFZvHQiQ$default(Valid valid, CallModel callModel, StageRoles stageRoles, int i, Object obj) { if ((i & 1) != 0) { callModel = valid.callModel; } if ((i & 2) != 0) { stageRoles = valid.myStageRoles; } - if ((i & 4) != 0) { - z2 = valid.showStageNotificationSurfaces; - } - return valid.m69copyP2fzehM(callModel, stageRoles, z2); + return valid.m69copyFZvHQiQ(callModel, stageRoles); } public final CallModel component1() { @@ -124,14 +120,10 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return this.myStageRoles; } - public final boolean component3() { - return this.showStageNotificationSurfaces; - } - - /* renamed from: copy-P2fzehM reason: not valid java name */ - public final Valid m69copyP2fzehM(CallModel callModel, StageRoles stageRoles, boolean z2) { + /* renamed from: copy-FZvHQiQ reason: not valid java name */ + public final Valid m69copyFZvHQiQ(CallModel callModel, StageRoles stageRoles) { m.checkNotNullParameter(callModel, "callModel"); - return new Valid(callModel, stageRoles, z2); + return new Valid(callModel, stageRoles); } public boolean equals(Object obj) { @@ -142,7 +134,7 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return false; } Valid valid = (Valid) obj; - return m.areEqual(this.callModel, valid.callModel) && m.areEqual(this.myStageRoles, valid.myStageRoles) && this.showStageNotificationSurfaces == valid.showStageNotificationSurfaces; + return m.areEqual(this.callModel, valid.callModel) && m.areEqual(this.myStageRoles, valid.myStageRoles); } public final CallModel getCallModel() { @@ -154,10 +146,6 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return this.myStageRoles; } - public final boolean getShowStageNotificationSurfaces() { - return this.showStageNotificationSurfaces; - } - public int hashCode() { CallModel callModel = this.callModel; int i = 0; @@ -166,15 +154,7 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< if (stageRoles != null) { i = stageRoles.hashCode(); } - int i2 = (hashCode + i) * 31; - boolean z2 = this.showStageNotificationSurfaces; - if (z2) { - z2 = true; - } - int i3 = z2 ? 1 : 0; - int i4 = z2 ? 1 : 0; - int i5 = z2 ? 1 : 0; - return i2 + i3; + return hashCode + i; } public String toString() { @@ -182,8 +162,8 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< R.append(this.callModel); R.append(", myStageRoles="); R.append(this.myStageRoles); - R.append(", showStageNotificationSurfaces="); - return a.L(R, this.showStageNotificationSurfaces, ")"); + R.append(")"); + return R.toString(); } } @@ -198,15 +178,15 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< /* compiled from: WidgetVoiceSettingsBottomSheetViewModel.kt */ public static final class ViewState implements WidgetVoiceSettingsBottomSheet.ViewState { private final Channel channel; + private final Guild guild; private final boolean noiseCancellationEnabled; private final boolean showInviteItem; private final boolean showReportItem; - private final boolean showStageNotificationSurfaces; private final boolean showStageSettings; private final boolean showVoiceParticipants; private final boolean showVoiceParticipantsToggle; - public ViewState(Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8) { + public ViewState(Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Guild guild) { m.checkNotNullParameter(channel, "channel"); this.channel = channel; this.showVoiceParticipants = z2; @@ -215,11 +195,11 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< this.noiseCancellationEnabled = z5; this.showStageSettings = z6; this.showReportItem = z7; - this.showStageNotificationSurfaces = z8; + this.guild = guild; } - public static /* synthetic */ ViewState copy$default(ViewState viewState, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, int i, Object obj) { - return viewState.copy((i & 1) != 0 ? viewState.getChannel() : channel, (i & 2) != 0 ? viewState.getShowVoiceParticipants() : z2, (i & 4) != 0 ? viewState.getShowVoiceParticipantsToggle() : z3, (i & 8) != 0 ? viewState.getShowInviteItem() : z4, (i & 16) != 0 ? viewState.getNoiseCancellationEnabled() : z5, (i & 32) != 0 ? viewState.getShowStageSettings() : z6, (i & 64) != 0 ? viewState.getShowReportItem() : z7, (i & 128) != 0 ? viewState.getShowStageNotificationSurfaces() : z8); + public static /* synthetic */ ViewState copy$default(ViewState viewState, Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Guild guild, int i, Object obj) { + return viewState.copy((i & 1) != 0 ? viewState.getChannel() : channel, (i & 2) != 0 ? viewState.getShowVoiceParticipants() : z2, (i & 4) != 0 ? viewState.getShowVoiceParticipantsToggle() : z3, (i & 8) != 0 ? viewState.getShowInviteItem() : z4, (i & 16) != 0 ? viewState.getNoiseCancellationEnabled() : z5, (i & 32) != 0 ? viewState.getShowStageSettings() : z6, (i & 64) != 0 ? viewState.getShowReportItem() : z7, (i & 128) != 0 ? viewState.getGuild() : guild); } public final Channel component1() { @@ -250,13 +230,13 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return getShowReportItem(); } - public final boolean component8() { - return getShowStageNotificationSurfaces(); + public final Guild component8() { + return getGuild(); } - public final ViewState copy(Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8) { + public final ViewState copy(Channel channel, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, Guild guild) { m.checkNotNullParameter(channel, "channel"); - return new ViewState(channel, z2, z3, z4, z5, z6, z7, z8); + return new ViewState(channel, z2, z3, z4, z5, z6, z7, guild); } public boolean equals(Object obj) { @@ -267,7 +247,7 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return false; } ViewState viewState = (ViewState) obj; - return m.areEqual(getChannel(), viewState.getChannel()) && getShowVoiceParticipants() == viewState.getShowVoiceParticipants() && getShowVoiceParticipantsToggle() == viewState.getShowVoiceParticipantsToggle() && getShowInviteItem() == viewState.getShowInviteItem() && getNoiseCancellationEnabled() == viewState.getNoiseCancellationEnabled() && getShowStageSettings() == viewState.getShowStageSettings() && getShowReportItem() == viewState.getShowReportItem() && getShowStageNotificationSurfaces() == viewState.getShowStageNotificationSurfaces(); + return m.areEqual(getChannel(), viewState.getChannel()) && getShowVoiceParticipants() == viewState.getShowVoiceParticipants() && getShowVoiceParticipantsToggle() == viewState.getShowVoiceParticipantsToggle() && getShowInviteItem() == viewState.getShowInviteItem() && getNoiseCancellationEnabled() == viewState.getNoiseCancellationEnabled() && getShowStageSettings() == viewState.getShowStageSettings() && getShowReportItem() == viewState.getShowReportItem() && m.areEqual(getGuild(), viewState.getGuild()); } @Override // com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheet.ViewState @@ -275,6 +255,11 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return this.channel; } + @Override // com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheet.ViewState + public Guild getGuild() { + return this.guild; + } + @Override // com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheet.ViewState public boolean getNoiseCancellationEnabled() { return this.noiseCancellationEnabled; @@ -290,11 +275,6 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< return this.showReportItem; } - @Override // com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheet.ViewState - public boolean getShowStageNotificationSurfaces() { - return this.showStageNotificationSurfaces; - } - @Override // com.discord.widgets.voice.sheet.WidgetVoiceSettingsBottomSheet.ViewState public boolean getShowStageSettings() { return this.showStageSettings; @@ -312,61 +292,59 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< public int hashCode() { Channel channel = getChannel(); + int i = 0; int hashCode = (channel != null ? channel.hashCode() : 0) * 31; boolean showVoiceParticipants = getShowVoiceParticipants(); - int i = 1; + int i2 = 1; if (showVoiceParticipants) { showVoiceParticipants = true; } - int i2 = showVoiceParticipants ? 1 : 0; int i3 = showVoiceParticipants ? 1 : 0; int i4 = showVoiceParticipants ? 1 : 0; - int i5 = (hashCode + i2) * 31; + int i5 = showVoiceParticipants ? 1 : 0; + int i6 = (hashCode + i3) * 31; boolean showVoiceParticipantsToggle = getShowVoiceParticipantsToggle(); if (showVoiceParticipantsToggle) { showVoiceParticipantsToggle = true; } - int i6 = showVoiceParticipantsToggle ? 1 : 0; int i7 = showVoiceParticipantsToggle ? 1 : 0; int i8 = showVoiceParticipantsToggle ? 1 : 0; - int i9 = (i5 + i6) * 31; + int i9 = showVoiceParticipantsToggle ? 1 : 0; + int i10 = (i6 + i7) * 31; boolean showInviteItem = getShowInviteItem(); if (showInviteItem) { showInviteItem = true; } - int i10 = showInviteItem ? 1 : 0; int i11 = showInviteItem ? 1 : 0; int i12 = showInviteItem ? 1 : 0; - int i13 = (i9 + i10) * 31; + int i13 = showInviteItem ? 1 : 0; + int i14 = (i10 + i11) * 31; boolean noiseCancellationEnabled = getNoiseCancellationEnabled(); if (noiseCancellationEnabled) { noiseCancellationEnabled = true; } - int i14 = noiseCancellationEnabled ? 1 : 0; int i15 = noiseCancellationEnabled ? 1 : 0; int i16 = noiseCancellationEnabled ? 1 : 0; - int i17 = (i13 + i14) * 31; + int i17 = noiseCancellationEnabled ? 1 : 0; + int i18 = (i14 + i15) * 31; boolean showStageSettings = getShowStageSettings(); if (showStageSettings) { showStageSettings = true; } - int i18 = showStageSettings ? 1 : 0; int i19 = showStageSettings ? 1 : 0; int i20 = showStageSettings ? 1 : 0; - int i21 = (i17 + i18) * 31; + int i21 = showStageSettings ? 1 : 0; + int i22 = (i18 + i19) * 31; boolean showReportItem = getShowReportItem(); - if (showReportItem) { - showReportItem = true; + if (!showReportItem) { + i2 = showReportItem; } - int i22 = showReportItem ? 1 : 0; - int i23 = showReportItem ? 1 : 0; - int i24 = showReportItem ? 1 : 0; - int i25 = (i21 + i22) * 31; - boolean showStageNotificationSurfaces = getShowStageNotificationSurfaces(); - if (!showStageNotificationSurfaces) { - i = showStageNotificationSurfaces; + int i23 = (i22 + i2) * 31; + Guild guild = getGuild(); + if (guild != null) { + i = guild.hashCode(); } - return i25 + i; + return i23 + i; } public String toString() { @@ -384,8 +362,8 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< R.append(getShowStageSettings()); R.append(", showReportItem="); R.append(getShowReportItem()); - R.append(", showStageNotificationSurfaces="); - R.append(getShowStageNotificationSurfaces()); + R.append(", guild="); + R.append(getGuild()); R.append(")"); return R.toString(); } @@ -423,7 +401,7 @@ public final class WidgetVoiceSettingsBottomSheetViewModel extends AppViewModel< boolean z5 = ChannelUtils.z(valid.getCallModel().getChannel()); boolean z6 = valid.getCallModel().getVoiceSettings().getNoiseProcessing() == StoreMediaSettings.NoiseProcessing.Cancellation; StageRoles r3 = valid.m70getMyStageRolestwRsX0(); - updateViewState(new ViewState(valid.getCallModel().getChannel(), !valid.getCallModel().getVoiceSettings().getVoiceParticipantsHidden(), z2, z4, z6, z3 && (r3 != null && StageRoles.m26isModeratorimpl(r3.m29unboximpl())), z5, valid.getShowStageNotificationSurfaces())); + updateViewState(new ViewState(valid.getCallModel().getChannel(), !valid.getCallModel().getVoiceSettings().getVoiceParticipantsHidden(), z2, z4, z6, z3 && (r3 != null && StageRoles.m26isModeratorimpl(r3.m29unboximpl())), z5, valid.getCallModel().getGuild())); } } diff --git a/app/src/main/java/com/google/android/gms/measurement/AppMeasurement.java b/app/src/main/java/com/google/android/gms/measurement/AppMeasurement.java index 7f0811c07b..f24cb75f5b 100644 --- a/app/src/main/java/com/google/android/gms/measurement/AppMeasurement.java +++ b/app/src/main/java/com/google/android/gms/measurement/AppMeasurement.java @@ -81,22 +81,22 @@ public class AppMeasurement { public ConditionalUserProperty(@NonNull Bundle bundle) { Objects.requireNonNull(bundle, "null reference"); - this.mAppId = (String) f.z1(bundle, "app_id", String.class, null); - this.mOrigin = (String) f.z1(bundle, "origin", String.class, null); - this.mName = (String) f.z1(bundle, ModelAuditLogEntry.CHANGE_KEY_NAME, String.class, null); - this.mValue = f.z1(bundle, "value", Object.class, null); - this.mTriggerEventName = (String) f.z1(bundle, "trigger_event_name", String.class, null); - this.mTriggerTimeout = ((Long) f.z1(bundle, "trigger_timeout", Long.class, 0L)).longValue(); - this.mTimedOutEventName = (String) f.z1(bundle, "timed_out_event_name", String.class, null); - this.mTimedOutEventParams = (Bundle) f.z1(bundle, "timed_out_event_params", Bundle.class, null); - this.mTriggeredEventName = (String) f.z1(bundle, "triggered_event_name", String.class, null); - this.mTriggeredEventParams = (Bundle) f.z1(bundle, "triggered_event_params", Bundle.class, null); - this.mTimeToLive = ((Long) f.z1(bundle, "time_to_live", Long.class, 0L)).longValue(); - this.mExpiredEventName = (String) f.z1(bundle, "expired_event_name", String.class, null); - this.mExpiredEventParams = (Bundle) f.z1(bundle, "expired_event_params", Bundle.class, null); - this.mActive = ((Boolean) f.z1(bundle, "active", Boolean.class, Boolean.FALSE)).booleanValue(); - this.mCreationTimestamp = ((Long) f.z1(bundle, "creation_timestamp", Long.class, 0L)).longValue(); - this.mTriggeredTimestamp = ((Long) f.z1(bundle, "triggered_timestamp", Long.class, 0L)).longValue(); + this.mAppId = (String) f.A1(bundle, "app_id", String.class, null); + this.mOrigin = (String) f.A1(bundle, "origin", String.class, null); + this.mName = (String) f.A1(bundle, ModelAuditLogEntry.CHANGE_KEY_NAME, String.class, null); + this.mValue = f.A1(bundle, "value", Object.class, null); + this.mTriggerEventName = (String) f.A1(bundle, "trigger_event_name", String.class, null); + this.mTriggerTimeout = ((Long) f.A1(bundle, "trigger_timeout", Long.class, 0L)).longValue(); + this.mTimedOutEventName = (String) f.A1(bundle, "timed_out_event_name", String.class, null); + this.mTimedOutEventParams = (Bundle) f.A1(bundle, "timed_out_event_params", Bundle.class, null); + this.mTriggeredEventName = (String) f.A1(bundle, "triggered_event_name", String.class, null); + this.mTriggeredEventParams = (Bundle) f.A1(bundle, "triggered_event_params", Bundle.class, null); + this.mTimeToLive = ((Long) f.A1(bundle, "time_to_live", Long.class, 0L)).longValue(); + this.mExpiredEventName = (String) f.A1(bundle, "expired_event_name", String.class, null); + this.mExpiredEventParams = (Bundle) f.A1(bundle, "expired_event_params", Bundle.class, null); + this.mActive = ((Boolean) f.A1(bundle, "active", Boolean.class, Boolean.FALSE)).booleanValue(); + this.mCreationTimestamp = ((Long) f.A1(bundle, "creation_timestamp", Long.class, 0L)).longValue(); + this.mTriggeredTimestamp = ((Long) f.A1(bundle, "triggered_timestamp", Long.class, 0L)).longValue(); } public final Bundle a() { @@ -115,7 +115,7 @@ public class AppMeasurement { } Object obj = this.mValue; if (obj != null) { - f.K1(bundle, obj); + f.L1(bundle, obj); } String str4 = this.mTriggerEventName; if (str4 != null) { diff --git a/app/src/main/java/org/webrtc/CameraEnumerationAndroid.java b/app/src/main/java/org/webrtc/CameraEnumerationAndroid.java index 583d5d369a..50a4515937 100644 --- a/app/src/main/java/org/webrtc/CameraEnumerationAndroid.java +++ b/app/src/main/java/org/webrtc/CameraEnumerationAndroid.java @@ -2,14 +2,14 @@ package org.webrtc; import android.graphics.ImageFormat; import c.d.b.a.a; -import com.discord.widgets.settings.profile.WidgetSettingsUserProfile; +import com.discord.widgets.settings.profile.WidgetEditUserOrGuildMemberProfile; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; public class CameraEnumerationAndroid { - public static final ArrayList COMMON_RESOLUTIONS = new ArrayList<>(Arrays.asList(new Size(160, 120), new Size(240, 160), new Size(320, 240), new Size(400, 240), new Size(480, 320), new Size(640, 360), new Size(640, 480), new Size(768, 480), new Size(854, 480), new Size(800, 600), new Size(960, 540), new Size(960, 640), new Size(1024, 576), new Size(1024, 600), new Size(1280, 720), new Size(1280, 1024), new Size(1920, WidgetSettingsUserProfile.MAX_BANNER_IMAGE_SIZE), new Size(1920, 1440), new Size(2560, 1440), new Size(3840, 2160))); + public static final ArrayList COMMON_RESOLUTIONS = new ArrayList<>(Arrays.asList(new Size(160, 120), new Size(240, 160), new Size(320, 240), new Size(400, 240), new Size(480, 320), new Size(640, 360), new Size(640, 480), new Size(768, 480), new Size(854, 480), new Size(800, 600), new Size(960, 540), new Size(960, 640), new Size(1024, 576), new Size(1024, 600), new Size(1280, 720), new Size(1280, 1024), new Size(1920, WidgetEditUserOrGuildMemberProfile.MAX_BANNER_IMAGE_SIZE), new Size(1920, 1440), new Size(2560, 1440), new Size(3840, 2160))); private static final String TAG = "CameraEnumerationAndroid"; /* renamed from: org.webrtc.CameraEnumerationAndroid$1 reason: invalid class name */ diff --git a/app/src/main/res/drawable-anydpi-v24/ic_nitro_wheel_16dp.xml b/app/src/main/res/drawable-anydpi-v24/ic_nitro_wheel_16dp.xml new file mode 100644 index 0000000000..cb92c2183c --- /dev/null +++ b/app/src/main/res/drawable-anydpi-v24/ic_nitro_wheel_16dp.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/drawable-hdpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-hdpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..ab6453e6c5 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/drawable-ldpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-ldpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..15f7f96ab0 Binary files /dev/null and b/app/src/main/res/drawable-ldpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-mdpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..a81d72135f Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-xhdpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..c375322673 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-xxhdpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..f74f77459b Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_nitro_wheel_16dp.png b/app/src/main/res/drawable-xxxhdpi/ic_nitro_wheel_16dp.png new file mode 100644 index 0000000000..3f8b2cbc17 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_nitro_wheel_16dp.png differ diff --git a/app/src/main/res/layout-sw600dp/design_layout_snackbar.xml b/app/src/main/res/layout-sw600dp/design_layout_snackbar.xml index bdef3e8dbf..48b113e781 100644 --- a/app/src/main/res/layout-sw600dp/design_layout_snackbar.xml +++ b/app/src/main/res/layout-sw600dp/design_layout_snackbar.xml @@ -1,2 +1,2 @@ - + diff --git a/app/src/main/res/layout-v22/guild_scheduled_event_item_view.xml b/app/src/main/res/layout-v22/guild_scheduled_event_item_view.xml index 0c5654ec54..6304f48f65 100644 --- a/app/src/main/res/layout-v22/guild_scheduled_event_item_view.xml +++ b/app/src/main/res/layout-v22/guild_scheduled_event_item_view.xml @@ -1,6 +1,7 @@ + diff --git a/app/src/main/res/layout-v22/view_upload_progress.xml b/app/src/main/res/layout-v22/view_upload_progress.xml index 22e9c28862..da4d41d822 100644 --- a/app/src/main/res/layout-v22/view_upload_progress.xml +++ b/app/src/main/res/layout-v22/view_upload_progress.xml @@ -3,5 +3,5 @@ - + diff --git a/app/src/main/res/layout-v22/widget_bug_report.xml b/app/src/main/res/layout-v22/widget_bug_report.xml index 5fe31a1cd6..37dd116445 100644 --- a/app/src/main/res/layout-v22/widget_bug_report.xml +++ b/app/src/main/res/layout-v22/widget_bug_report.xml @@ -43,7 +43,7 @@ - + diff --git a/app/src/main/res/layout-v22/widget_channel_picker_sheet.xml b/app/src/main/res/layout-v22/widget_channel_picker_sheet.xml index b74ef55569..55eb6cfd35 100644 --- a/app/src/main/res/layout-v22/widget_channel_picker_sheet.xml +++ b/app/src/main/res/layout-v22/widget_channel_picker_sheet.xml @@ -9,7 +9,7 @@ - + diff --git a/app/src/main/res/layout-v22/widget_guild_scheduled_event_details_bottom_sheet.xml b/app/src/main/res/layout-v22/widget_guild_scheduled_event_details_bottom_sheet.xml index 39c018a4af..ac73d619b6 100644 --- a/app/src/main/res/layout-v22/widget_guild_scheduled_event_details_bottom_sheet.xml +++ b/app/src/main/res/layout-v22/widget_guild_scheduled_event_details_bottom_sheet.xml @@ -22,7 +22,9 @@ - + + + diff --git a/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_edit_tier.xml b/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_edit_tier.xml index d89f074c44..f80a2cc737 100644 --- a/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_edit_tier.xml +++ b/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_edit_tier.xml @@ -4,7 +4,7 @@ - + diff --git a/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_tier_list.xml b/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_tier_list.xml index 306cc6f88c..79630923a5 100644 --- a/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_tier_list.xml +++ b/app/src/main/res/layout-v22/widget_server_settings_guild_role_subscription_tier_list.xml @@ -4,7 +4,7 @@ - + diff --git a/app/src/main/res/layout-v22/widget_server_settings_role_members.xml b/app/src/main/res/layout-v22/widget_server_settings_role_members.xml index 9c11fae12d..7156fd4240 100644 --- a/app/src/main/res/layout-v22/widget_server_settings_role_members.xml +++ b/app/src/main/res/layout-v22/widget_server_settings_role_members.xml @@ -1,7 +1,7 @@ - + diff --git a/app/src/main/res/layout-v22/widget_settings.xml b/app/src/main/res/layout-v22/widget_settings.xml index 15eebd7041..e2fccc9ca4 100644 --- a/app/src/main/res/layout-v22/widget_settings.xml +++ b/app/src/main/res/layout-v22/widget_settings.xml @@ -11,6 +11,7 @@ + diff --git a/app/src/main/res/layout-v22/widget_settings_user_profile.xml b/app/src/main/res/layout-v22/widget_settings_user_profile.xml new file mode 100644 index 0000000000..b7ee5d814d --- /dev/null +++ b/app/src/main/res/layout-v22/widget_settings_user_profile.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml b/app/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml index 2a390dcb1b..66dcc8e4cf 100644 --- a/app/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml +++ b/app/src/main/res/layout-v23/exo_styled_player_control_ffwd_button.xml @@ -1,4 +1,4 @@ -