103.12 - Beta (103112)
This commit is contained in:
parent
653099223e
commit
94ceb34d4c
|
@ -10,8 +10,8 @@ android {
|
||||||
applicationId 'com.discord'
|
applicationId 'com.discord'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 103111
|
versionCode 103112
|
||||||
versionName "103.11 - Beta"
|
versionName "103.12 - Beta"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="103111" android:versionName="103.11 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="103112" android:versionName="103.12 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
|
||||||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
|
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
|
||||||
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
||||||
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
||||||
|
|
|
@ -9,7 +9,6 @@ import android.widget.TextView;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentActivity;
|
import androidx.fragment.app.FragmentActivity;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import c.a.d.f;
|
|
||||||
import c.a.i.h4;
|
import c.a.i.h4;
|
||||||
import com.discord.R;
|
import com.discord.R;
|
||||||
import com.discord.api.application.Application;
|
import com.discord.api.application.Application;
|
||||||
|
@ -19,11 +18,15 @@ import com.discord.app.AppViewFlipper;
|
||||||
import com.discord.models.domain.ModelGift;
|
import com.discord.models.domain.ModelGift;
|
||||||
import com.discord.models.domain.ModelSku;
|
import com.discord.models.domain.ModelSku;
|
||||||
import com.discord.models.domain.ModelStoreListing;
|
import com.discord.models.domain.ModelStoreListing;
|
||||||
|
import com.discord.rlottie.RLottieImageView;
|
||||||
import com.discord.stores.StoreGifting;
|
import com.discord.stores.StoreGifting;
|
||||||
import com.discord.stores.StoreNotices;
|
import com.discord.stores.StoreNotices;
|
||||||
import com.discord.stores.StoreStream;
|
import com.discord.stores.StoreStream;
|
||||||
|
import com.discord.utilities.dimen.DimenUtils;
|
||||||
import com.discord.utilities.error.Error;
|
import com.discord.utilities.error.Error;
|
||||||
import com.discord.utilities.font.FontUtils;
|
import com.discord.utilities.font.FontUtils;
|
||||||
|
import com.discord.utilities.gifting.GiftStyle;
|
||||||
|
import com.discord.utilities.gifting.GiftStyleKt;
|
||||||
import com.discord.utilities.icon.IconUtils;
|
import com.discord.utilities.icon.IconUtils;
|
||||||
import com.discord.utilities.images.MGImages;
|
import com.discord.utilities.images.MGImages;
|
||||||
import com.discord.utilities.premium.PremiumUtils;
|
import com.discord.utilities.premium.PremiumUtils;
|
||||||
|
@ -32,10 +35,12 @@ import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||||
import com.discord.utilities.view.text.LinkifiedTextView;
|
import com.discord.utilities.view.text.LinkifiedTextView;
|
||||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||||
|
import com.discord.utilities.views.ViewCoroutineScopeKt;
|
||||||
import com.discord.widgets.home.WidgetHome;
|
import com.discord.widgets.home.WidgetHome;
|
||||||
import com.discord.widgets.settings.premium.WidgetSettingsGifting;
|
import com.discord.widgets.settings.premium.WidgetSettingsGifting;
|
||||||
import com.facebook.drawee.view.SimpleDraweeView;
|
import com.facebook.drawee.view.SimpleDraweeView;
|
||||||
import com.google.android.material.button.MaterialButton;
|
import com.google.android.material.button.MaterialButton;
|
||||||
|
import d0.l;
|
||||||
import d0.t.n;
|
import d0.t.n;
|
||||||
import d0.z.d.a0;
|
import d0.z.d.a0;
|
||||||
import d0.z.d.k;
|
import d0.z.d.k;
|
||||||
|
@ -44,10 +49,15 @@ import d0.z.d.o;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import kotlin.NoWhenBranchMatchedException;
|
import kotlin.NoWhenBranchMatchedException;
|
||||||
import kotlin.Unit;
|
import kotlin.Unit;
|
||||||
|
import kotlin.coroutines.Continuation;
|
||||||
import kotlin.jvm.functions.Function0;
|
import kotlin.jvm.functions.Function0;
|
||||||
import kotlin.jvm.functions.Function1;
|
import kotlin.jvm.functions.Function1;
|
||||||
|
import kotlin.jvm.functions.Function2;
|
||||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||||
import kotlin.reflect.KProperty;
|
import kotlin.reflect.KProperty;
|
||||||
|
import kotlinx.coroutines.CoroutineScope;
|
||||||
|
import rx.Observable;
|
||||||
|
import rx.functions.Func2;
|
||||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
public final class c extends AppDialog {
|
public final class c extends AppDialog {
|
||||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0)};
|
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0)};
|
||||||
|
@ -59,13 +69,56 @@ public final class c extends AppDialog {
|
||||||
|
|
||||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
/* renamed from: c.a.a.z.c$a$a reason: collision with other inner class name */
|
/* renamed from: c.a.a.z.c$a$a reason: collision with other inner class name */
|
||||||
public static final class C0021a extends o implements Function1<FragmentActivity, Boolean> {
|
public static final class C0021a {
|
||||||
|
public final StoreGifting.GiftState a;
|
||||||
|
public final boolean b;
|
||||||
|
|
||||||
|
public C0021a(StoreGifting.GiftState giftState, boolean z2) {
|
||||||
|
m.checkNotNullParameter(giftState, "giftState");
|
||||||
|
this.a = giftState;
|
||||||
|
this.b = z2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(obj instanceof C0021a)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
C0021a aVar = (C0021a) obj;
|
||||||
|
return m.areEqual(this.a, aVar.a) && this.b == aVar.b;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int hashCode() {
|
||||||
|
StoreGifting.GiftState giftState = this.a;
|
||||||
|
int hashCode = (giftState != null ? giftState.hashCode() : 0) * 31;
|
||||||
|
boolean z2 = this.b;
|
||||||
|
if (z2) {
|
||||||
|
z2 = true;
|
||||||
|
}
|
||||||
|
int i = z2 ? 1 : 0;
|
||||||
|
int i2 = z2 ? 1 : 0;
|
||||||
|
int i3 = z2 ? 1 : 0;
|
||||||
|
return hashCode + i;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder R = c.d.b.a.a.R("GiftUiState(giftState=");
|
||||||
|
R.append(this.a);
|
||||||
|
R.append(", reduceMotion=");
|
||||||
|
return c.d.b.a.a.L(R, this.b, ")");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
|
public static final class b extends o implements Function1<FragmentActivity, Boolean> {
|
||||||
public final /* synthetic */ long $channelId;
|
public final /* synthetic */ long $channelId;
|
||||||
public final /* synthetic */ String $giftCode;
|
public final /* synthetic */ String $giftCode;
|
||||||
public final /* synthetic */ String $source;
|
public final /* synthetic */ String $source;
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
public C0021a(String str, String str2, long j) {
|
public b(String str, String str2, long j) {
|
||||||
super(1);
|
super(1);
|
||||||
this.$giftCode = str;
|
this.$giftCode = str;
|
||||||
this.$source = str2;
|
this.$source = str2;
|
||||||
|
@ -97,7 +150,7 @@ public final class c extends AppDialog {
|
||||||
m.checkNotNullParameter(str, "giftCode");
|
m.checkNotNullParameter(str, "giftCode");
|
||||||
m.checkNotNullParameter(str2, "source");
|
m.checkNotNullParameter(str2, "source");
|
||||||
m.checkNotNullParameter(str, "giftCode");
|
m.checkNotNullParameter(str, "giftCode");
|
||||||
StoreStream.Companion.getNotices().requestToShow(new StoreNotices.Notice("gift:" + str, null, 0, 0, false, n.listOf((Object[]) new d0.e0.c[]{a0.getOrCreateKotlinClass(WidgetSettingsGifting.class), a0.getOrCreateKotlinClass(WidgetHome.class)}), 0, false, 0, new C0021a(str, str2, j), FontUtils.MAX_FONT_SCALING, null));
|
StoreStream.Companion.getNotices().requestToShow(new StoreNotices.Notice("gift:" + str, null, 0, 0, false, n.listOf((Object[]) new d0.e0.c[]{a0.getOrCreateKotlinClass(WidgetSettingsGifting.class), a0.getOrCreateKotlinClass(WidgetHome.class)}), 0, false, 0, new b(str, str2, j), FontUtils.MAX_FONT_SCALING, null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,6 +174,9 @@ public final class c extends AppDialog {
|
||||||
i2 = R.id.accept_gift_body_image;
|
i2 = R.id.accept_gift_body_image;
|
||||||
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(R.id.accept_gift_body_image);
|
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(R.id.accept_gift_body_image);
|
||||||
if (simpleDraweeView != null) {
|
if (simpleDraweeView != null) {
|
||||||
|
i2 = R.id.accept_gift_body_lottie;
|
||||||
|
RLottieImageView rLottieImageView = (RLottieImageView) view2.findViewById(R.id.accept_gift_body_lottie);
|
||||||
|
if (rLottieImageView != null) {
|
||||||
i2 = R.id.accept_gift_body_text;
|
i2 = R.id.accept_gift_body_text;
|
||||||
TextView textView = (TextView) view2.findViewById(R.id.accept_gift_body_text);
|
TextView textView = (TextView) view2.findViewById(R.id.accept_gift_body_text);
|
||||||
if (textView != null) {
|
if (textView != null) {
|
||||||
|
@ -142,7 +198,8 @@ public final class c extends AppDialog {
|
||||||
i2 = R.id.accept_gift_progress;
|
i2 = R.id.accept_gift_progress;
|
||||||
ProgressBar progressBar = (ProgressBar) view2.findViewById(R.id.accept_gift_progress);
|
ProgressBar progressBar = (ProgressBar) view2.findViewById(R.id.accept_gift_progress);
|
||||||
if (progressBar != null) {
|
if (progressBar != null) {
|
||||||
return new h4((LinearLayout) view2, linearLayout, simpleDraweeView, textView, materialButton, linearLayout2, linkifiedTextView, appViewFlipper, textView2, progressBar);
|
return new h4((LinearLayout) view2, linearLayout, simpleDraweeView, rLottieImageView, textView, materialButton, linearLayout2, linkifiedTextView, appViewFlipper, textView2, progressBar);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -157,12 +214,242 @@ public final class c extends AppDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
|
@d0.w.i.a.e(c = "com.discord.dialogs.gifting.WidgetGiftAcceptDialog$configureUI$1$1", f = "WidgetGiftAcceptDialog.kt", l = {117}, m = "invokeSuspend")
|
||||||
/* renamed from: c.a.a.z.c$c reason: collision with other inner class name */
|
/* renamed from: c.a.a.z.c$c reason: collision with other inner class name */
|
||||||
public static final class C0022c extends o implements Function1<Error, Unit> {
|
public static final class C0022c extends d0.w.i.a.k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
||||||
|
public final /* synthetic */ RLottieImageView $this_apply;
|
||||||
|
public int label;
|
||||||
|
|
||||||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
|
public C0022c(RLottieImageView rLottieImageView, Continuation continuation) {
|
||||||
|
super(2, continuation);
|
||||||
|
this.$this_apply = rLottieImageView;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override // d0.w.i.a.a
|
||||||
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||||
|
m.checkNotNullParameter(continuation, "completion");
|
||||||
|
return new C0022c(this.$this_apply, continuation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
||||||
|
@Override // kotlin.jvm.functions.Function2
|
||||||
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
||||||
|
Continuation<? super Unit> continuation2 = continuation;
|
||||||
|
m.checkNotNullParameter(continuation2, "completion");
|
||||||
|
return new C0022c(this.$this_apply, continuation2).invokeSuspend(Unit.a);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override // d0.w.i.a.a
|
||||||
|
public final Object invokeSuspend(Object obj) {
|
||||||
|
Object coroutine_suspended = d0.w.h.c.getCOROUTINE_SUSPENDED();
|
||||||
|
int i = this.label;
|
||||||
|
if (i == 0) {
|
||||||
|
l.throwOnFailure(obj);
|
||||||
|
this.label = 1;
|
||||||
|
if (c.i.a.f.e.o.f.I(200, this) == coroutine_suspended) {
|
||||||
|
return coroutine_suspended;
|
||||||
|
}
|
||||||
|
} else if (i == 1) {
|
||||||
|
l.throwOnFailure(obj);
|
||||||
|
} else {
|
||||||
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
||||||
|
}
|
||||||
|
this.$this_apply.b();
|
||||||
|
return Unit.a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
|
public static final class d<T1, T2, R> implements Func2<StoreGifting.GiftState, Boolean, a.C0021a> {
|
||||||
|
public static final d i = new d();
|
||||||
|
|
||||||
|
/* 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] */
|
||||||
|
@Override // rx.functions.Func2
|
||||||
|
public a.C0021a call(StoreGifting.GiftState giftState, Boolean bool) {
|
||||||
|
StoreGifting.GiftState giftState2 = giftState;
|
||||||
|
Boolean bool2 = bool;
|
||||||
|
m.checkNotNullExpressionValue(giftState2, "giftState");
|
||||||
|
m.checkNotNullExpressionValue(bool2, "reduceMotion");
|
||||||
|
return new a.C0021a(giftState2, bool2.booleanValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
|
public static final class e extends o implements Function1<a.C0021a, Unit> {
|
||||||
public final /* synthetic */ c this$0;
|
public final /* synthetic */ c this$0;
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
public C0022c(c cVar) {
|
public e(c cVar) {
|
||||||
|
super(1);
|
||||||
|
this.this$0 = cVar;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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 Unit invoke(a.C0021a aVar) {
|
||||||
|
ModelSku sku;
|
||||||
|
ModelSku sku2;
|
||||||
|
String str;
|
||||||
|
ModelSku sku3;
|
||||||
|
a.C0021a aVar2 = aVar;
|
||||||
|
StoreGifting.GiftState giftState = aVar2.a;
|
||||||
|
int i = 0;
|
||||||
|
if (giftState instanceof StoreGifting.GiftState.Loading) {
|
||||||
|
c cVar = this.this$0;
|
||||||
|
KProperty[] kPropertyArr = c.i;
|
||||||
|
AppViewFlipper appViewFlipper = cVar.h().h;
|
||||||
|
m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper");
|
||||||
|
appViewFlipper.setDisplayedChild(0);
|
||||||
|
} else {
|
||||||
|
CharSequence charSequence = null;
|
||||||
|
int i2 = 8;
|
||||||
|
if (giftState instanceof StoreGifting.GiftState.Resolved) {
|
||||||
|
StoreGifting.GiftState.Resolved resolved = (StoreGifting.GiftState.Resolved) giftState;
|
||||||
|
if (resolved.getGift().getRedeemed()) {
|
||||||
|
c cVar2 = this.this$0;
|
||||||
|
m.checkNotNullExpressionValue(aVar2, "giftUiState");
|
||||||
|
KProperty[] kPropertyArr2 = c.i;
|
||||||
|
Objects.requireNonNull(cVar2);
|
||||||
|
ModelGift gift = resolved.getGift();
|
||||||
|
cVar2.g(gift, aVar2);
|
||||||
|
ModelStoreListing storeListing = gift.getStoreListing();
|
||||||
|
if (storeListing == null || (sku3 = storeListing.getSku()) == null || (str = sku3.getName()) == null) {
|
||||||
|
str = "";
|
||||||
|
}
|
||||||
|
CharSequence i3 = cVar2.i(gift);
|
||||||
|
LinearLayout linearLayout = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar2.h().i, "binding.acceptGiftHeader", gift.isAnyNitroGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_header_success_nitro, new Object[]{str}, null, 4) : c.a.k.b.k(cVar2, R.string.gift_confirmation_header_success, new Object[0], null, 4), cVar2).d, "binding.acceptGiftBodyText", gift.isNitroClassicGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_classic_mobile, new Object[]{i3}, null, 4) : gift.isNitroGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_mobile, new Object[]{i3}, null, 4) : c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_mobile, new Object[]{str}, null, 4), cVar2).f;
|
||||||
|
m.checkNotNullExpressionValue(linearLayout, "binding.acceptGiftDisclaimerContainer");
|
||||||
|
linearLayout.setVisibility(8);
|
||||||
|
MaterialButton materialButton = cVar2.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm");
|
||||||
|
Context context = cVar2.getContext();
|
||||||
|
if (context != null) {
|
||||||
|
charSequence = context.getText(R.string.gift_confirmation_button_success_mobile);
|
||||||
|
}
|
||||||
|
materialButton.setText(charSequence);
|
||||||
|
cVar2.h().e.setOnClickListener(new d(cVar2));
|
||||||
|
} else if (resolved.getGift().getMaxUses() == resolved.getGift().getUses()) {
|
||||||
|
c cVar3 = this.this$0;
|
||||||
|
m.checkNotNullExpressionValue(aVar2, "giftUiState");
|
||||||
|
KProperty[] kPropertyArr3 = c.i;
|
||||||
|
Objects.requireNonNull(cVar3);
|
||||||
|
cVar3.g(resolved.getGift(), aVar2);
|
||||||
|
TextView textView = cVar3.h().i;
|
||||||
|
m.checkNotNullExpressionValue(textView, "binding.acceptGiftHeader");
|
||||||
|
c.a.k.b.n(textView, R.string.gift_confirmation_header_fail, new Object[0], null, 4);
|
||||||
|
TextView textView2 = cVar3.h().d;
|
||||||
|
m.checkNotNullExpressionValue(textView2, "binding.acceptGiftBodyText");
|
||||||
|
c.a.k.b.n(textView2, R.string.gift_confirmation_body_claimed, new Object[0], null, 4);
|
||||||
|
LinearLayout linearLayout2 = cVar3.h().f;
|
||||||
|
m.checkNotNullExpressionValue(linearLayout2, "binding.acceptGiftDisclaimerContainer");
|
||||||
|
linearLayout2.setVisibility(8);
|
||||||
|
MaterialButton materialButton2 = cVar3.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton2, "binding.acceptGiftConfirm");
|
||||||
|
c.a.k.b.n(materialButton2, R.string.gift_confirmation_button_fail, new Object[0], null, 4);
|
||||||
|
cVar3.h().e.setOnClickListener(new e(cVar3));
|
||||||
|
} else {
|
||||||
|
c cVar4 = this.this$0;
|
||||||
|
m.checkNotNullExpressionValue(aVar2, "giftUiState");
|
||||||
|
KProperty[] kPropertyArr4 = c.i;
|
||||||
|
Objects.requireNonNull(cVar4);
|
||||||
|
ModelGift gift2 = ((StoreGifting.HasGift) giftState).getGift();
|
||||||
|
cVar4.g(gift2, aVar2);
|
||||||
|
ModelStoreListing storeListing2 = gift2.getStoreListing();
|
||||||
|
String name = (storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? null : sku2.getName();
|
||||||
|
LinearLayout linearLayout3 = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar4.h().i, "binding.acceptGiftHeader", gift2.isAnyNitroGift() ? c.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name}, null, 4) : c.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar4).d, "binding.acceptGiftBodyText", gift2.isAnyNitroGift() ? c.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name, cVar4.i(gift2)}, null, 4) : c.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm, new Object[]{name}, null, 4), cVar4).f;
|
||||||
|
m.checkNotNullExpressionValue(linearLayout3, "binding.acceptGiftDisclaimerContainer");
|
||||||
|
if (gift2.isAnyNitroGift()) {
|
||||||
|
i2 = 0;
|
||||||
|
}
|
||||||
|
linearLayout3.setVisibility(i2);
|
||||||
|
MaterialButton materialButton3 = cVar4.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton3, "binding.acceptGiftConfirm");
|
||||||
|
c.a.k.b.n(materialButton3, R.string.gift_confirmation_button_confirm_mobile, new Object[0], null, 4);
|
||||||
|
cVar4.h().e.setOnClickListener(new f(gift2));
|
||||||
|
}
|
||||||
|
} else if (giftState instanceof StoreGifting.GiftState.Redeeming) {
|
||||||
|
c cVar5 = this.this$0;
|
||||||
|
m.checkNotNullExpressionValue(aVar2, "giftUiState");
|
||||||
|
KProperty[] kPropertyArr5 = c.i;
|
||||||
|
Objects.requireNonNull(cVar5);
|
||||||
|
ModelGift gift3 = ((StoreGifting.GiftState.Redeeming) giftState).getGift();
|
||||||
|
cVar5.g(gift3, aVar2);
|
||||||
|
ModelStoreListing storeListing3 = gift3.getStoreListing();
|
||||||
|
String name2 = (storeListing3 == null || (sku = storeListing3.getSku()) == null) ? null : sku.getName();
|
||||||
|
MaterialButton materialButton4 = cVar5.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton4, "binding.acceptGiftConfirm");
|
||||||
|
materialButton4.setVisibility(8);
|
||||||
|
ProgressBar progressBar = cVar5.h().j;
|
||||||
|
m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress");
|
||||||
|
progressBar.setVisibility(0);
|
||||||
|
LinearLayout linearLayout4 = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar5.h().i, "binding.acceptGiftHeader", gift3.isAnyNitroGift() ? c.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name2}, null, 4) : c.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar5).d, "binding.acceptGiftBodyText", gift3.isAnyNitroGift() ? c.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name2, cVar5.i(gift3)}, null, 4) : c.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm, new Object[]{name2}, null, 4), cVar5).f;
|
||||||
|
m.checkNotNullExpressionValue(linearLayout4, "binding.acceptGiftDisclaimerContainer");
|
||||||
|
if (!gift3.isAnyNitroGift()) {
|
||||||
|
i = 8;
|
||||||
|
}
|
||||||
|
linearLayout4.setVisibility(i);
|
||||||
|
} else if (giftState instanceof StoreGifting.GiftState.RedeemedFailed) {
|
||||||
|
c cVar6 = this.this$0;
|
||||||
|
StoreGifting.GiftState.RedeemedFailed redeemedFailed = (StoreGifting.GiftState.RedeemedFailed) giftState;
|
||||||
|
m.checkNotNullExpressionValue(aVar2, "giftUiState");
|
||||||
|
KProperty[] kPropertyArr6 = c.i;
|
||||||
|
Objects.requireNonNull(cVar6);
|
||||||
|
cVar6.g(redeemedFailed.getGift(), aVar2);
|
||||||
|
TextView textView3 = cVar6.h().i;
|
||||||
|
m.checkNotNullExpressionValue(textView3, "binding.acceptGiftHeader");
|
||||||
|
textView3.setText(c.a.k.b.k(cVar6, R.string.gift_confirmation_header_fail, new Object[0], null, 4));
|
||||||
|
TextView textView4 = cVar6.h().d;
|
||||||
|
m.checkNotNullExpressionValue(textView4, "binding.acceptGiftBodyText");
|
||||||
|
c.a.k.b.n(textView4, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
||||||
|
if (redeemedFailed.getCanRetry()) {
|
||||||
|
TextView textView5 = cVar6.h().d;
|
||||||
|
m.checkNotNullExpressionValue(textView5, "binding.acceptGiftBodyText");
|
||||||
|
c.a.k.b.n(textView5, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
||||||
|
MaterialButton materialButton5 = cVar6.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton5, "binding.acceptGiftConfirm");
|
||||||
|
Context context2 = cVar6.getContext();
|
||||||
|
if (context2 != null) {
|
||||||
|
charSequence = context2.getText(R.string.retry);
|
||||||
|
}
|
||||||
|
materialButton5.setText(charSequence);
|
||||||
|
cVar6.h().e.setOnClickListener(new g(0, redeemedFailed));
|
||||||
|
} else {
|
||||||
|
Integer errorCode = redeemedFailed.getErrorCode();
|
||||||
|
if (errorCode != null && errorCode.intValue() == 50054) {
|
||||||
|
cVar6.h().d.setText(R.string.gift_confirmation_body_self_gift_no_payment);
|
||||||
|
} else if (errorCode != null && errorCode.intValue() == 100024) {
|
||||||
|
cVar6.h().d.setText(R.string.gift_confirmation_body_error_nitro_upgrade_downgrade);
|
||||||
|
} else if (errorCode != null && errorCode.intValue() == 100022) {
|
||||||
|
cVar6.h().d.setText(R.string.gift_confirmation_body_error_subscription_managed);
|
||||||
|
} else if (errorCode != null && errorCode.intValue() == 100025) {
|
||||||
|
cVar6.h().d.setText(R.string.gift_confirmation_body_error_invoice_open);
|
||||||
|
}
|
||||||
|
MaterialButton materialButton6 = cVar6.h().e;
|
||||||
|
m.checkNotNullExpressionValue(materialButton6, "binding.acceptGiftConfirm");
|
||||||
|
Context context3 = cVar6.getContext();
|
||||||
|
if (context3 != null) {
|
||||||
|
charSequence = context3.getText(R.string.gift_confirmation_button_fail);
|
||||||
|
}
|
||||||
|
materialButton6.setText(charSequence);
|
||||||
|
cVar6.h().e.setOnClickListener(new g(1, cVar6));
|
||||||
|
}
|
||||||
|
} else if ((giftState instanceof StoreGifting.GiftState.Invalid) || (giftState instanceof StoreGifting.GiftState.LoadFailed) || (giftState instanceof StoreGifting.GiftState.Revoking)) {
|
||||||
|
this.this$0.dismiss();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Unit.a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||||
|
public static final class f extends o implements Function1<Error, Unit> {
|
||||||
|
public final /* synthetic */ c this$0;
|
||||||
|
|
||||||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
|
public f(c cVar) {
|
||||||
super(1);
|
super(1);
|
||||||
this.this$0 = cVar;
|
this.this$0 = cVar;
|
||||||
}
|
}
|
||||||
|
@ -177,201 +464,63 @@ public final class c extends AppDialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
|
||||||
public static final class d extends o implements Function1<StoreGifting.GiftState, Unit> {
|
|
||||||
public final /* synthetic */ c this$0;
|
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
||||||
public d(c cVar) {
|
|
||||||
super(1);
|
|
||||||
this.this$0 = cVar;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 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 Unit invoke(StoreGifting.GiftState giftState) {
|
|
||||||
ModelSku sku;
|
|
||||||
ModelSku sku2;
|
|
||||||
String str;
|
|
||||||
ModelSku sku3;
|
|
||||||
StoreGifting.GiftState giftState2 = giftState;
|
|
||||||
m.checkNotNullParameter(giftState2, "giftState");
|
|
||||||
int i = 0;
|
|
||||||
if (giftState2 instanceof StoreGifting.GiftState.Loading) {
|
|
||||||
c cVar = this.this$0;
|
|
||||||
KProperty[] kPropertyArr = c.i;
|
|
||||||
AppViewFlipper appViewFlipper = cVar.h().g;
|
|
||||||
m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper");
|
|
||||||
appViewFlipper.setDisplayedChild(0);
|
|
||||||
} else {
|
|
||||||
CharSequence charSequence = null;
|
|
||||||
if (giftState2 instanceof StoreGifting.GiftState.Resolved) {
|
|
||||||
StoreGifting.GiftState.Resolved resolved = (StoreGifting.GiftState.Resolved) giftState2;
|
|
||||||
if (resolved.getGift().getRedeemed()) {
|
|
||||||
c cVar2 = this.this$0;
|
|
||||||
ModelGift gift = resolved.getGift();
|
|
||||||
KProperty[] kPropertyArr2 = c.i;
|
|
||||||
cVar2.g(gift);
|
|
||||||
ModelStoreListing storeListing = gift.getStoreListing();
|
|
||||||
if (storeListing == null || (sku3 = storeListing.getSku()) == null || (str = sku3.getName()) == null) {
|
|
||||||
str = "";
|
|
||||||
}
|
|
||||||
CharSequence i2 = cVar2.i(gift);
|
|
||||||
LinearLayout linearLayout = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar2.h().h, "binding.acceptGiftHeader", gift.isAnyNitroGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_header_success_nitro, new Object[]{str}, null, 4) : c.a.k.b.k(cVar2, R.string.gift_confirmation_header_success, new Object[0], null, 4), cVar2).f107c, "binding.acceptGiftBodyText", gift.isNitroClassicGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_classic_mobile, new Object[]{i2}, null, 4) : gift.isNitroGift() ? c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_mobile, new Object[]{i2}, null, 4) : c.a.k.b.k(cVar2, R.string.gift_confirmation_body_success_mobile, new Object[]{str}, null, 4), cVar2).e;
|
|
||||||
m.checkNotNullExpressionValue(linearLayout, "binding.acceptGiftDisclaimerContainer");
|
|
||||||
linearLayout.setVisibility(8);
|
|
||||||
MaterialButton materialButton = cVar2.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm");
|
|
||||||
Context context = cVar2.getContext();
|
|
||||||
if (context != null) {
|
|
||||||
charSequence = context.getText(R.string.gift_confirmation_button_success_mobile);
|
|
||||||
}
|
|
||||||
materialButton.setText(charSequence);
|
|
||||||
cVar2.h().d.setOnClickListener(new d(cVar2));
|
|
||||||
} else if (resolved.getGift().getMaxUses() == resolved.getGift().getUses()) {
|
|
||||||
c cVar3 = this.this$0;
|
|
||||||
ModelGift gift2 = resolved.getGift();
|
|
||||||
KProperty[] kPropertyArr3 = c.i;
|
|
||||||
cVar3.g(gift2);
|
|
||||||
TextView textView = cVar3.h().h;
|
|
||||||
m.checkNotNullExpressionValue(textView, "binding.acceptGiftHeader");
|
|
||||||
c.a.k.b.n(textView, R.string.gift_confirmation_header_fail, new Object[0], null, 4);
|
|
||||||
TextView textView2 = cVar3.h().f107c;
|
|
||||||
m.checkNotNullExpressionValue(textView2, "binding.acceptGiftBodyText");
|
|
||||||
c.a.k.b.n(textView2, R.string.gift_confirmation_body_claimed, new Object[0], null, 4);
|
|
||||||
LinearLayout linearLayout2 = cVar3.h().e;
|
|
||||||
m.checkNotNullExpressionValue(linearLayout2, "binding.acceptGiftDisclaimerContainer");
|
|
||||||
linearLayout2.setVisibility(8);
|
|
||||||
MaterialButton materialButton2 = cVar3.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton2, "binding.acceptGiftConfirm");
|
|
||||||
c.a.k.b.n(materialButton2, R.string.gift_confirmation_button_fail, new Object[0], null, 4);
|
|
||||||
cVar3.h().d.setOnClickListener(new e(cVar3));
|
|
||||||
} else {
|
|
||||||
c cVar4 = this.this$0;
|
|
||||||
ModelGift gift3 = resolved.getGift();
|
|
||||||
KProperty[] kPropertyArr4 = c.i;
|
|
||||||
cVar4.g(gift3);
|
|
||||||
ModelStoreListing storeListing2 = gift3.getStoreListing();
|
|
||||||
String name = (storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? null : sku2.getName();
|
|
||||||
LinearLayout linearLayout3 = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar4.h().h, "binding.acceptGiftHeader", gift3.isAnyNitroGift() ? c.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name}, null, 4) : c.a.k.b.k(cVar4, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar4).f107c, "binding.acceptGiftBodyText", gift3.isAnyNitroGift() ? c.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name, cVar4.i(gift3)}, null, 4) : c.a.k.b.k(cVar4, R.string.gift_confirmation_body_confirm, new Object[]{name}, null, 4), cVar4).e;
|
|
||||||
m.checkNotNullExpressionValue(linearLayout3, "binding.acceptGiftDisclaimerContainer");
|
|
||||||
if (!gift3.isAnyNitroGift()) {
|
|
||||||
i = 8;
|
|
||||||
}
|
|
||||||
linearLayout3.setVisibility(i);
|
|
||||||
MaterialButton materialButton3 = cVar4.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton3, "binding.acceptGiftConfirm");
|
|
||||||
Context context2 = cVar4.getContext();
|
|
||||||
if (context2 != null) {
|
|
||||||
charSequence = context2.getText(R.string.gift_confirmation_button_confirm_mobile);
|
|
||||||
}
|
|
||||||
materialButton3.setText(charSequence);
|
|
||||||
cVar4.h().d.setOnClickListener(new f(gift3));
|
|
||||||
}
|
|
||||||
} else if (giftState2 instanceof StoreGifting.GiftState.Redeeming) {
|
|
||||||
c cVar5 = this.this$0;
|
|
||||||
ModelGift gift4 = ((StoreGifting.GiftState.Redeeming) giftState2).getGift();
|
|
||||||
KProperty[] kPropertyArr5 = c.i;
|
|
||||||
cVar5.g(gift4);
|
|
||||||
ModelStoreListing storeListing3 = gift4.getStoreListing();
|
|
||||||
String name2 = (storeListing3 == null || (sku = storeListing3.getSku()) == null) ? null : sku.getName();
|
|
||||||
MaterialButton materialButton4 = cVar5.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton4, "binding.acceptGiftConfirm");
|
|
||||||
materialButton4.setVisibility(8);
|
|
||||||
ProgressBar progressBar = cVar5.h().i;
|
|
||||||
m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress");
|
|
||||||
progressBar.setVisibility(0);
|
|
||||||
LinearLayout linearLayout4 = c.d.b.a.a.p0(c.d.b.a.a.p0(cVar5.h().h, "binding.acceptGiftHeader", gift4.isAnyNitroGift() ? c.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name2}, null, 4) : c.a.k.b.k(cVar5, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar5).f107c, "binding.acceptGiftBodyText", gift4.isAnyNitroGift() ? c.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name2, cVar5.i(gift4)}, null, 4) : c.a.k.b.k(cVar5, R.string.gift_confirmation_body_confirm, new Object[]{name2}, null, 4), cVar5).e;
|
|
||||||
m.checkNotNullExpressionValue(linearLayout4, "binding.acceptGiftDisclaimerContainer");
|
|
||||||
if (!gift4.isAnyNitroGift()) {
|
|
||||||
i = 8;
|
|
||||||
}
|
|
||||||
linearLayout4.setVisibility(i);
|
|
||||||
} else if (giftState2 instanceof StoreGifting.GiftState.RedeemedFailed) {
|
|
||||||
c cVar6 = this.this$0;
|
|
||||||
StoreGifting.GiftState.RedeemedFailed redeemedFailed = (StoreGifting.GiftState.RedeemedFailed) giftState2;
|
|
||||||
KProperty[] kPropertyArr6 = c.i;
|
|
||||||
Objects.requireNonNull(cVar6);
|
|
||||||
cVar6.g(redeemedFailed.getGift());
|
|
||||||
TextView textView3 = cVar6.h().h;
|
|
||||||
m.checkNotNullExpressionValue(textView3, "binding.acceptGiftHeader");
|
|
||||||
textView3.setText(c.a.k.b.k(cVar6, R.string.gift_confirmation_header_fail, new Object[0], null, 4));
|
|
||||||
TextView textView4 = cVar6.h().f107c;
|
|
||||||
m.checkNotNullExpressionValue(textView4, "binding.acceptGiftBodyText");
|
|
||||||
c.a.k.b.n(textView4, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
|
||||||
if (redeemedFailed.getCanRetry()) {
|
|
||||||
TextView textView5 = cVar6.h().f107c;
|
|
||||||
m.checkNotNullExpressionValue(textView5, "binding.acceptGiftBodyText");
|
|
||||||
c.a.k.b.n(textView5, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
|
||||||
MaterialButton materialButton5 = cVar6.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton5, "binding.acceptGiftConfirm");
|
|
||||||
Context context3 = cVar6.getContext();
|
|
||||||
if (context3 != null) {
|
|
||||||
charSequence = context3.getText(R.string.retry);
|
|
||||||
}
|
|
||||||
materialButton5.setText(charSequence);
|
|
||||||
cVar6.h().d.setOnClickListener(new g(0, redeemedFailed));
|
|
||||||
} else {
|
|
||||||
Integer errorCode = redeemedFailed.getErrorCode();
|
|
||||||
if (errorCode != null && errorCode.intValue() == 50054) {
|
|
||||||
cVar6.h().f107c.setText(R.string.gift_confirmation_body_self_gift_no_payment);
|
|
||||||
} else if (errorCode != null && errorCode.intValue() == 100024) {
|
|
||||||
cVar6.h().f107c.setText(R.string.gift_confirmation_body_error_nitro_upgrade_downgrade);
|
|
||||||
} else if (errorCode != null && errorCode.intValue() == 100022) {
|
|
||||||
cVar6.h().f107c.setText(R.string.gift_confirmation_body_error_subscription_managed);
|
|
||||||
} else if (errorCode != null && errorCode.intValue() == 100025) {
|
|
||||||
cVar6.h().f107c.setText(R.string.gift_confirmation_body_error_invoice_open);
|
|
||||||
}
|
|
||||||
MaterialButton materialButton6 = cVar6.h().d;
|
|
||||||
m.checkNotNullExpressionValue(materialButton6, "binding.acceptGiftConfirm");
|
|
||||||
Context context4 = cVar6.getContext();
|
|
||||||
if (context4 != null) {
|
|
||||||
charSequence = context4.getText(R.string.gift_confirmation_button_fail);
|
|
||||||
}
|
|
||||||
materialButton6.setText(charSequence);
|
|
||||||
cVar6.h().d.setOnClickListener(new g(1, cVar6));
|
|
||||||
}
|
|
||||||
} else if ((giftState2 instanceof StoreGifting.GiftState.Invalid) || (giftState2 instanceof StoreGifting.GiftState.LoadFailed) || (giftState2 instanceof StoreGifting.GiftState.Revoking)) {
|
|
||||||
this.this$0.dismiss();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Unit.a;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public c() {
|
public c() {
|
||||||
super(R.layout.widget_accept_gift_dialog);
|
super(R.layout.widget_accept_gift_dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void g(ModelGift modelGift) {
|
public final void g(ModelGift modelGift, a.C0021a aVar) {
|
||||||
String str;
|
|
||||||
ModelSku sku;
|
ModelSku sku;
|
||||||
Application application;
|
Application application;
|
||||||
String f;
|
String f2;
|
||||||
ModelSku sku2;
|
ModelSku sku2;
|
||||||
AppViewFlipper appViewFlipper = h().g;
|
AppViewFlipper appViewFlipper = h().h;
|
||||||
m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper");
|
m.checkNotNullExpressionValue(appViewFlipper, "binding.acceptGiftFlipper");
|
||||||
appViewFlipper.setDisplayedChild(1);
|
appViewFlipper.setDisplayedChild(1);
|
||||||
|
String str = null;
|
||||||
if (modelGift.isAnyNitroGift()) {
|
if (modelGift.isAnyNitroGift()) {
|
||||||
MGImages mGImages = MGImages.INSTANCE;
|
GiftStyle customStyle = GiftStyleKt.getCustomStyle(modelGift);
|
||||||
|
if (customStyle != null) {
|
||||||
|
RLottieImageView rLottieImageView = h().f107c;
|
||||||
|
m.checkNotNullExpressionValue(rLottieImageView, "binding.acceptGiftBodyLottie");
|
||||||
|
rLottieImageView.setVisibility(0);
|
||||||
SimpleDraweeView simpleDraweeView = h().b;
|
SimpleDraweeView simpleDraweeView = h().b;
|
||||||
m.checkNotNullExpressionValue(simpleDraweeView, "binding.acceptGiftBodyImage");
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.acceptGiftBodyImage");
|
||||||
MGImages.setImage$default(mGImages, simpleDraweeView, PremiumUtils.INSTANCE.getNitroGiftIcon(modelGift), (MGImages.ChangeDetector) null, 4, (Object) null);
|
simpleDraweeView.setVisibility(8);
|
||||||
|
RLottieImageView rLottieImageView2 = h().f107c;
|
||||||
|
if (aVar.b) {
|
||||||
|
rLottieImageView2.setImageResource(customStyle.getStaticRes());
|
||||||
|
} else {
|
||||||
|
int animRes = customStyle.getAnimRes();
|
||||||
|
RLottieImageView rLottieImageView3 = h().f107c;
|
||||||
|
m.checkNotNullExpressionValue(rLottieImageView3, "binding.acceptGiftBodyLottie");
|
||||||
|
int dpToPixels = DimenUtils.dpToPixels(rLottieImageView3.getLayoutParams().width);
|
||||||
|
RLottieImageView rLottieImageView4 = h().f107c;
|
||||||
|
m.checkNotNullExpressionValue(rLottieImageView4, "binding.acceptGiftBodyLottie");
|
||||||
|
rLottieImageView2.c(animRes, dpToPixels, DimenUtils.dpToPixels(rLottieImageView4.getLayoutParams().height));
|
||||||
|
CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(rLottieImageView2);
|
||||||
|
if (coroutineScope != null) {
|
||||||
|
c.i.a.f.e.o.f.x0(coroutineScope, null, null, new C0022c(rLottieImageView2, null), 3, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m.checkNotNullExpressionValue(rLottieImageView2, "binding.acceptGiftBodyLo… }\n }\n }");
|
||||||
|
} else {
|
||||||
|
MGImages mGImages = MGImages.INSTANCE;
|
||||||
|
SimpleDraweeView simpleDraweeView2 = h().b;
|
||||||
|
m.checkNotNullExpressionValue(simpleDraweeView2, "binding.acceptGiftBodyImage");
|
||||||
|
MGImages.setImage$default(mGImages, simpleDraweeView2, PremiumUtils.INSTANCE.getNitroGiftIcon(modelGift), (MGImages.ChangeDetector) null, 4, (Object) null);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ModelStoreListing storeListing = modelGift.getStoreListing();
|
ModelStoreListing storeListing = modelGift.getStoreListing();
|
||||||
if (storeListing == null || (sku = storeListing.getSku()) == null || (application = sku.getApplication()) == null || (f = application.f()) == null) {
|
if (!(storeListing == null || (sku = storeListing.getSku()) == null || (application = sku.getApplication()) == null || (f2 = application.f()) == null)) {
|
||||||
str = null;
|
|
||||||
} else {
|
|
||||||
ModelStoreListing storeListing2 = modelGift.getStoreListing();
|
ModelStoreListing storeListing2 = modelGift.getStoreListing();
|
||||||
str = IconUtils.getApplicationIcon$default((storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? 0 : sku2.getApplicationId(), f, 0, 4, null);
|
str = IconUtils.getApplicationIcon$default((storeListing2 == null || (sku2 = storeListing2.getSku()) == null) ? 0 : sku2.getApplicationId(), f2, 0, 4, null);
|
||||||
}
|
}
|
||||||
h().b.setImageURI(str);
|
h().b.setImageURI(str);
|
||||||
}
|
}
|
||||||
MaterialButton materialButton = h().d;
|
MaterialButton materialButton = h().e;
|
||||||
m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm");
|
m.checkNotNullExpressionValue(materialButton, "binding.acceptGiftConfirm");
|
||||||
materialButton.setVisibility(0);
|
materialButton.setVisibility(0);
|
||||||
ProgressBar progressBar = h().i;
|
ProgressBar progressBar = h().j;
|
||||||
m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress");
|
m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress");
|
||||||
progressBar.setVisibility(8);
|
progressBar.setVisibility(8);
|
||||||
}
|
}
|
||||||
|
@ -434,9 +583,12 @@ public final class c extends AppDialog {
|
||||||
dismiss();
|
dismiss();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LinkifiedTextView linkifiedTextView = h().f;
|
LinkifiedTextView linkifiedTextView = h().g;
|
||||||
m.checkNotNullExpressionValue(linkifiedTextView, "binding.acceptGiftDisclaimerText");
|
m.checkNotNullExpressionValue(linkifiedTextView, "binding.acceptGiftDisclaimerText");
|
||||||
c.a.k.b.n(linkifiedTextView, R.string.gift_confirmation_body_confirm_nitro_disclaimer, new Object[]{f.a.a(360055386693L, null)}, null, 4);
|
c.a.k.b.n(linkifiedTextView, R.string.gift_confirmation_body_confirm_nitro_disclaimer, new Object[]{c.a.d.f.a.a(360055386693L, null)}, null, 4);
|
||||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(StoreStream.Companion.getGifting().requestGift(string), this, null, 2, null), c.class, (Context) null, (Function1) null, new C0022c(this), (Function0) null, (Function0) null, new d(this), 54, (Object) null);
|
StoreStream.Companion companion = StoreStream.Companion;
|
||||||
|
Observable j2 = Observable.j(companion.getGifting().requestGift(string), companion.getAccessibility().observeReducedMotionEnabled(), d.i);
|
||||||
|
m.checkNotNullExpressionValue(j2, "Observable.combineLatest…iftState, reduceMotion) }");
|
||||||
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(j2, this, null, 2, null), c.class, (Context) null, (Function1) null, new f(this), (Function0) null, (Function0) null, new e(this), 54, (Object) null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ import android.widget.TextView;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.viewbinding.ViewBinding;
|
import androidx.viewbinding.ViewBinding;
|
||||||
import com.discord.app.AppViewFlipper;
|
import com.discord.app.AppViewFlipper;
|
||||||
|
import com.discord.rlottie.RLottieImageView;
|
||||||
import com.discord.utilities.view.text.LinkifiedTextView;
|
import com.discord.utilities.view.text.LinkifiedTextView;
|
||||||
import com.facebook.drawee.view.SimpleDraweeView;
|
import com.facebook.drawee.view.SimpleDraweeView;
|
||||||
import com.google.android.material.button.MaterialButton;
|
import com.google.android.material.button.MaterialButton;
|
||||||
|
@ -19,30 +20,33 @@ public final class h4 implements ViewBinding {
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
||||||
/* renamed from: c reason: collision with root package name */
|
/* renamed from: c reason: collision with root package name */
|
||||||
public final TextView f107c;
|
public final RLottieImageView f107c;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final MaterialButton d;
|
public final TextView d;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final LinearLayout e;
|
public final MaterialButton e;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final LinkifiedTextView f;
|
public final LinearLayout f;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final AppViewFlipper g;
|
public final LinkifiedTextView g;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView h;
|
public final AppViewFlipper h;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final ProgressBar i;
|
public final TextView i;
|
||||||
|
@NonNull
|
||||||
|
public final ProgressBar j;
|
||||||
|
|
||||||
public h4(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout3, @NonNull LinkifiedTextView linkifiedTextView, @NonNull AppViewFlipper appViewFlipper, @NonNull TextView textView2, @NonNull ProgressBar progressBar) {
|
public h4(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull RLottieImageView rLottieImageView, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull LinearLayout linearLayout3, @NonNull LinkifiedTextView linkifiedTextView, @NonNull AppViewFlipper appViewFlipper, @NonNull TextView textView2, @NonNull ProgressBar progressBar) {
|
||||||
this.a = linearLayout;
|
this.a = linearLayout;
|
||||||
this.b = simpleDraweeView;
|
this.b = simpleDraweeView;
|
||||||
this.f107c = textView;
|
this.f107c = rLottieImageView;
|
||||||
this.d = materialButton;
|
this.d = textView;
|
||||||
this.e = linearLayout3;
|
this.e = materialButton;
|
||||||
this.f = linkifiedTextView;
|
this.f = linearLayout3;
|
||||||
this.g = appViewFlipper;
|
this.g = linkifiedTextView;
|
||||||
this.h = textView2;
|
this.h = appViewFlipper;
|
||||||
this.i = progressBar;
|
this.i = textView2;
|
||||||
|
this.j = progressBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.viewbinding.ViewBinding
|
@Override // androidx.viewbinding.ViewBinding
|
||||||
|
|
|
@ -638,7 +638,7 @@ public final class a extends WebSocketListener implements DebugPrintable {
|
||||||
aVar.a(1, TimeUnit.MINUTES);
|
aVar.a(1, TimeUnit.MINUTES);
|
||||||
SSLSocketFactory sSLSocketFactory = this.E;
|
SSLSocketFactory sSLSocketFactory = this.E;
|
||||||
if (sSLSocketFactory != null) {
|
if (sSLSocketFactory != null) {
|
||||||
h.a aVar2 = f0.e0.k.h.f2848c;
|
h.a aVar2 = f0.e0.k.h.f2849c;
|
||||||
aVar.b(sSLSocketFactory, f0.e0.k.h.a.n());
|
aVar.b(sSLSocketFactory, f0.e0.k.h.a.n());
|
||||||
}
|
}
|
||||||
String H = c.d.b.a.a.H(new StringBuilder(), this.C, "?v=5");
|
String H = c.d.b.a.a.H(new StringBuilder(), this.C, "?v=5");
|
||||||
|
|
|
@ -77,7 +77,7 @@ public final class b extends k implements Function2<CoroutineScope, Continuation
|
||||||
}
|
}
|
||||||
String joinToString$default = u.joinToString$default(arrayList, "&", null, null, 0, null, null, 62, null);
|
String joinToString$default = u.joinToString$default(arrayList, "&", null, null, 0, null, null, 62, null);
|
||||||
RequestBody.Companion companion = RequestBody.Companion;
|
RequestBody.Companion companion = RequestBody.Companion;
|
||||||
MediaType.a aVar = MediaType.f2965c;
|
MediaType.a aVar = MediaType.f2966c;
|
||||||
RequestBody a = companion.a(joinToString$default, MediaType.a.a(ShareTarget.ENCODING_TYPE_URL_ENCODED));
|
RequestBody a = companion.a(joinToString$default, MediaType.a.a(ShareTarget.ENCODING_TYPE_URL_ENCODED));
|
||||||
Request.a aVar2 = new Request.a();
|
Request.a aVar2 = new Request.a();
|
||||||
m.checkParameterIsNotNull(a, "body");
|
m.checkParameterIsNotNull(a, "body");
|
||||||
|
|
|
@ -77,8 +77,8 @@ public abstract class c {
|
||||||
q(fVar, replace2, arrayList, w.i);
|
q(fVar, replace2, arrayList, w.i);
|
||||||
n(fVar, replace2, arrayList, w.g);
|
n(fVar, replace2, arrayList, w.g);
|
||||||
q(fVar, replace2, arrayList, w.g);
|
q(fVar, replace2, arrayList, w.g);
|
||||||
n(fVar, replace2, arrayList, w.f2915c);
|
n(fVar, replace2, arrayList, w.f2916c);
|
||||||
q(fVar, replace2, arrayList, w.f2915c);
|
q(fVar, replace2, arrayList, w.f2916c);
|
||||||
o(fVar, replace2, arrayList);
|
o(fVar, replace2, arrayList);
|
||||||
cls2 = b.a(v, fVar.b());
|
cls2 = b.a(v, fVar.b());
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,13 +311,13 @@ public class c extends AbstractDraweeController<CloseableReference<c.f.j.j.c>, I
|
||||||
ImageRequest imageRequest = this.I;
|
ImageRequest imageRequest = this.I;
|
||||||
ImageRequest imageRequest2 = this.K;
|
ImageRequest imageRequest2 = this.K;
|
||||||
ImageRequest[] imageRequestArr = this.J;
|
ImageRequest[] imageRequestArr = this.J;
|
||||||
if (imageRequest == null || (uri = imageRequest.f2298c) == null) {
|
if (imageRequest == null || (uri = imageRequest.f2299c) == null) {
|
||||||
if (!(imageRequestArr == null || imageRequestArr.length <= 0 || imageRequestArr[0] == null)) {
|
if (!(imageRequestArr == null || imageRequestArr.length <= 0 || imageRequestArr[0] == null)) {
|
||||||
ImageRequest imageRequest3 = imageRequestArr[0];
|
ImageRequest imageRequest3 = imageRequestArr[0];
|
||||||
uri = imageRequest3 != null ? imageRequest3.f2298c : null;
|
uri = imageRequest3 != null ? imageRequest3.f2299c : null;
|
||||||
}
|
}
|
||||||
if (imageRequest2 != null) {
|
if (imageRequest2 != null) {
|
||||||
return imageRequest2.f2298c;
|
return imageRequest2.f2299c;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class d extends AbstractDraweeControllerBuilder<d, ImageRequest, Closeabl
|
||||||
c.f.j.r.b.b();
|
c.f.j.r.b.b();
|
||||||
try {
|
try {
|
||||||
DraweeController draweeController = this.n;
|
DraweeController draweeController = this.n;
|
||||||
String valueOf = String.valueOf(AbstractDraweeControllerBuilder.f2285c.getAndIncrement());
|
String valueOf = String.valueOf(AbstractDraweeControllerBuilder.f2286c.getAndIncrement());
|
||||||
if (draweeController instanceof c) {
|
if (draweeController instanceof c) {
|
||||||
cVar = (c) draweeController;
|
cVar = (c) draweeController;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class b extends g implements f0 {
|
||||||
if (!draweeHolder.a) {
|
if (!draweeHolder.a) {
|
||||||
a.m(c.class, "%x: Draw requested for a non-attached controller %x. %s", Integer.valueOf(System.identityHashCode(draweeHolder)), Integer.valueOf(System.identityHashCode(draweeHolder.e)), draweeHolder.toString());
|
a.m(c.class, "%x: Draw requested for a non-attached controller %x. %s", Integer.valueOf(System.identityHashCode(draweeHolder)), Integer.valueOf(System.identityHashCode(draweeHolder.e)), draweeHolder.toString());
|
||||||
draweeHolder.b = true;
|
draweeHolder.b = true;
|
||||||
draweeHolder.f2289c = true;
|
draweeHolder.f2290c = true;
|
||||||
draweeHolder.b();
|
draweeHolder.b();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class f {
|
||||||
Objects.requireNonNull((z) this.g);
|
Objects.requireNonNull((z) this.g);
|
||||||
Executor executor = z.g.a;
|
Executor executor = z.g.a;
|
||||||
if (eVar instanceof Boolean) {
|
if (eVar instanceof Boolean) {
|
||||||
return ((Boolean) eVar).booleanValue() ? z.g.f2996c : z.g.d;
|
return ((Boolean) eVar).booleanValue() ? z.g.f2997c : z.g.d;
|
||||||
}
|
}
|
||||||
z.g<e> gVar = new z.g<>();
|
z.g<e> gVar = new z.g<>();
|
||||||
if (gVar.h(eVar)) {
|
if (gVar.h(eVar)) {
|
||||||
|
|
|
@ -9,11 +9,11 @@ public class n implements i {
|
||||||
public static n a;
|
public static n a;
|
||||||
|
|
||||||
public CacheKey a(ImageRequest imageRequest, Object obj) {
|
public CacheKey a(ImageRequest imageRequest, Object obj) {
|
||||||
return new b(imageRequest.f2298c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, null, null, obj);
|
return new b(imageRequest.f2299c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, null, null, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CacheKey b(ImageRequest imageRequest, Object obj) {
|
public CacheKey b(ImageRequest imageRequest, Object obj) {
|
||||||
return new f(imageRequest.f2298c.toString());
|
return new f(imageRequest.f2299c.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CacheKey c(ImageRequest imageRequest, Object obj) {
|
public CacheKey c(ImageRequest imageRequest, Object obj) {
|
||||||
|
@ -28,6 +28,6 @@ public class n implements i {
|
||||||
cacheKey = null;
|
cacheKey = null;
|
||||||
str = null;
|
str = null;
|
||||||
}
|
}
|
||||||
return new b(imageRequest.f2298c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, cacheKey, str, obj);
|
return new b(imageRequest.f2299c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, cacheKey, str, obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,7 +262,7 @@ public class v<K, V> implements m<K, V>, w<K, V> {
|
||||||
MemoryCacheParams memoryCacheParams = this.f;
|
MemoryCacheParams memoryCacheParams = this.f;
|
||||||
int min = Math.min(memoryCacheParams.d, memoryCacheParams.b - e());
|
int min = Math.min(memoryCacheParams.d, memoryCacheParams.b - e());
|
||||||
MemoryCacheParams memoryCacheParams2 = this.f;
|
MemoryCacheParams memoryCacheParams2 = this.f;
|
||||||
p = p(min, Math.min(memoryCacheParams2.f2291c, memoryCacheParams2.a - f()));
|
p = p(min, Math.min(memoryCacheParams2.f2292c, memoryCacheParams2.a - f()));
|
||||||
h(p);
|
h(p);
|
||||||
}
|
}
|
||||||
i(p);
|
i(p);
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class c implements f {
|
||||||
|
|
||||||
public h a(DiskCacheConfig diskCacheConfig) {
|
public h a(DiskCacheConfig diskCacheConfig) {
|
||||||
Objects.requireNonNull(this.a);
|
Objects.requireNonNull(this.a);
|
||||||
e eVar = new e(diskCacheConfig.a, diskCacheConfig.f2279c, diskCacheConfig.b, diskCacheConfig.h);
|
e eVar = new e(diskCacheConfig.a, diskCacheConfig.f2280c, diskCacheConfig.b, diskCacheConfig.h);
|
||||||
ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor();
|
ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor();
|
||||||
return new d(eVar, diskCacheConfig.g, new d.c(diskCacheConfig.f, diskCacheConfig.e, diskCacheConfig.d), diskCacheConfig.i, diskCacheConfig.h, diskCacheConfig.j, newSingleThreadExecutor, false);
|
return new d(eVar, diskCacheConfig.g, new d.c(diskCacheConfig.f, diskCacheConfig.e, diskCacheConfig.d), diskCacheConfig.i, diskCacheConfig.h, diskCacheConfig.j, newSingleThreadExecutor, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ public class h {
|
||||||
ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar);
|
ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar);
|
||||||
String valueOf = String.valueOf(this.i.getAndIncrement());
|
String valueOf = String.valueOf(this.i.getAndIncrement());
|
||||||
if (!imageRequest.f) {
|
if (!imageRequest.f) {
|
||||||
if (c.f.d.l.b.e(imageRequest.f2298c)) {
|
if (c.f.d.l.b.e(imageRequest.f2299c)) {
|
||||||
z2 = false;
|
z2 = false;
|
||||||
c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l);
|
c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l);
|
||||||
c.f.j.r.b.b();
|
c.f.j.r.b.b();
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class p {
|
||||||
try {
|
try {
|
||||||
b.b();
|
b.b();
|
||||||
Objects.requireNonNull(imageRequest);
|
Objects.requireNonNull(imageRequest);
|
||||||
Uri uri = imageRequest.f2298c;
|
Uri uri = imageRequest.f2299c;
|
||||||
d.y(uri, "Uri is null.");
|
d.y(uri, "Uri is null.");
|
||||||
int i = imageRequest.d;
|
int i = imageRequest.d;
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
|
@ -247,7 +247,7 @@ public class p {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.m && imageRequest.f2299s > 0) {
|
if (this.m && imageRequest.f2300s > 0) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
oVar = new o(r0Var, this.b.j.g());
|
oVar = new o(r0Var, this.b.j.g());
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class a1 extends g0 {
|
||||||
|
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
public e d(ImageRequest imageRequest) throws IOException {
|
public e d(ImageRequest imageRequest) throws IOException {
|
||||||
return c(this.f473c.openInputStream(imageRequest.f2298c), -1);
|
return c(this.f473c.openInputStream(imageRequest.f2299c), -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class d implements w0 {
|
||||||
HashMap hashMap = new HashMap();
|
HashMap hashMap = new HashMap();
|
||||||
this.h = hashMap;
|
this.h = hashMap;
|
||||||
hashMap.put(ModelAuditLogEntry.CHANGE_KEY_ID, str);
|
hashMap.put(ModelAuditLogEntry.CHANGE_KEY_ID, str);
|
||||||
hashMap.put("uri_source", imageRequest == null ? "null-request" : imageRequest.f2298c);
|
hashMap.put("uri_source", imageRequest == null ? "null-request" : imageRequest.f2299c);
|
||||||
this.d = str2;
|
this.d = str2;
|
||||||
this.e = y0Var;
|
this.e = y0Var;
|
||||||
this.f = obj;
|
this.f = obj;
|
||||||
|
|
|
@ -25,10 +25,10 @@ public class d0 extends g0 {
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
public e d(ImageRequest imageRequest) throws IOException {
|
public e d(ImageRequest imageRequest) throws IOException {
|
||||||
int i;
|
int i;
|
||||||
InputStream open = this.f479c.open(imageRequest.f2298c.getPath().substring(1), 2);
|
InputStream open = this.f479c.open(imageRequest.f2299c.getPath().substring(1), 2);
|
||||||
AssetFileDescriptor assetFileDescriptor = null;
|
AssetFileDescriptor assetFileDescriptor = null;
|
||||||
try {
|
try {
|
||||||
assetFileDescriptor = this.f479c.openFd(imageRequest.f2298c.getPath().substring(1));
|
assetFileDescriptor = this.f479c.openFd(imageRequest.f2299c.getPath().substring(1));
|
||||||
i = (int) assetFileDescriptor.getLength();
|
i = (int) assetFileDescriptor.getLength();
|
||||||
} catch (IOException unused) {
|
} catch (IOException unused) {
|
||||||
i = -1;
|
i = -1;
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class e0 extends g0 {
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
public e d(ImageRequest imageRequest) throws IOException {
|
public e d(ImageRequest imageRequest) throws IOException {
|
||||||
InputStream inputStream;
|
InputStream inputStream;
|
||||||
Uri uri = imageRequest.f2298c;
|
Uri uri = imageRequest.f2299c;
|
||||||
Uri uri2 = b.a;
|
Uri uri2 = b.a;
|
||||||
boolean z2 = false;
|
boolean z2 = false;
|
||||||
if (uri.getPath() != null && b.c(uri) && "com.android.contacts".equals(uri.getAuthority()) && !uri.getPath().startsWith(b.a.getPath())) {
|
if (uri.getPath() != null && b.c(uri) && "com.android.contacts".equals(uri.getAuthority()) && !uri.getPath().startsWith(b.a.getPath())) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class f0 extends g0 implements j1<e> {
|
||||||
c.f.j.d.e eVar;
|
c.f.j.d.e eVar;
|
||||||
Cursor query;
|
Cursor query;
|
||||||
e f2;
|
e f2;
|
||||||
Uri uri = imageRequest.f2298c;
|
Uri uri = imageRequest.f2299c;
|
||||||
if (!b.b(uri) || (eVar = imageRequest.i) == null || (query = this.g.query(uri, f481c, null, null, null)) == null) {
|
if (!b.b(uri) || (eVar = imageRequest.i) == null || (query = this.g.query(uri, f481c, null, null, null)) == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,10 +25,10 @@ public class i0 extends g0 {
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
public e d(ImageRequest imageRequest) throws IOException {
|
public e d(ImageRequest imageRequest) throws IOException {
|
||||||
int i;
|
int i;
|
||||||
InputStream openRawResource = this.f488c.openRawResource(Integer.parseInt(imageRequest.f2298c.getPath().substring(1)));
|
InputStream openRawResource = this.f488c.openRawResource(Integer.parseInt(imageRequest.f2299c.getPath().substring(1)));
|
||||||
AssetFileDescriptor assetFileDescriptor = null;
|
AssetFileDescriptor assetFileDescriptor = null;
|
||||||
try {
|
try {
|
||||||
assetFileDescriptor = this.f488c.openRawResourceFd(Integer.parseInt(imageRequest.f2298c.getPath().substring(1)));
|
assetFileDescriptor = this.f488c.openRawResourceFd(Integer.parseInt(imageRequest.f2299c.getPath().substring(1)));
|
||||||
i = (int) assetFileDescriptor.getLength();
|
i = (int) assetFileDescriptor.getLength();
|
||||||
} catch (Resources.NotFoundException unused) {
|
} catch (Resources.NotFoundException unused) {
|
||||||
i = -1;
|
i = -1;
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class j0 implements v0<CloseableReference<c>> {
|
||||||
bitmap = ThumbnailUtils.createVideoThumbnail(str, i);
|
bitmap = ThumbnailUtils.createVideoThumbnail(str, i);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
ParcelFileDescriptor openFileDescriptor = j0.this.b.openFileDescriptor(this.p.f2298c, "r");
|
ParcelFileDescriptor openFileDescriptor = j0.this.b.openFileDescriptor(this.p.f2299c, "r");
|
||||||
MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();
|
MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();
|
||||||
mediaMetadataRetriever.setDataSource(openFileDescriptor.getFileDescriptor());
|
mediaMetadataRetriever.setDataSource(openFileDescriptor.getFileDescriptor());
|
||||||
bitmap = mediaMetadataRetriever.getFrameAtTime(-1);
|
bitmap = mediaMetadataRetriever.getFrameAtTime(-1);
|
||||||
|
@ -141,7 +141,7 @@ public class j0 implements v0<CloseableReference<c>> {
|
||||||
String str;
|
String str;
|
||||||
Uri uri;
|
Uri uri;
|
||||||
Objects.requireNonNull(j0Var);
|
Objects.requireNonNull(j0Var);
|
||||||
Uri uri2 = imageRequest.f2298c;
|
Uri uri2 = imageRequest.f2299c;
|
||||||
if (c.f.d.l.b.d(uri2)) {
|
if (c.f.d.l.b.d(uri2)) {
|
||||||
return imageRequest.a().getPath();
|
return imageRequest.a().getPath();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class m extends g0 {
|
||||||
@Override // c.f.j.p.g0
|
@Override // c.f.j.p.g0
|
||||||
public e d(ImageRequest imageRequest) throws IOException {
|
public e d(ImageRequest imageRequest) throws IOException {
|
||||||
boolean z2;
|
boolean z2;
|
||||||
String uri = imageRequest.f2298c.toString();
|
String uri = imageRequest.f2299c.toString();
|
||||||
d.i(Boolean.valueOf(uri.substring(0, 5).equals("data:")));
|
d.i(Boolean.valueOf(uri.substring(0, 5).equals("data:")));
|
||||||
int indexOf = uri.indexOf(44);
|
int indexOf = uri.indexOf(44);
|
||||||
String substring = uri.substring(indexOf + 1, uri.length());
|
String substring = uri.substring(indexOf + 1, uri.length());
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
|
||||||
w0Var.d("image_format", eVar.k.b);
|
w0Var.d("image_format", eVar.k.b);
|
||||||
if (n.this.f || !b.m(i2, 16)) {
|
if (n.this.f || !b.m(i2, 16)) {
|
||||||
ImageRequest e2 = this.a.e();
|
ImageRequest e2 = this.a.e();
|
||||||
if (n.this.g || !c.f.d.l.b.e(e2.f2298c)) {
|
if (n.this.g || !c.f.d.l.b.e(e2.f2299c)) {
|
||||||
eVar.p = c.c.a.a0.d.Z(e2.j, e2.i, eVar, this.b);
|
eVar.p = c.c.a.a0.d.Z(e2.j, e2.i, eVar, this.b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
|
||||||
synchronized (c0Var) {
|
synchronized (c0Var) {
|
||||||
j = c0Var.j - c0Var.i;
|
j = c0Var.j - c0Var.i;
|
||||||
}
|
}
|
||||||
String valueOf2 = String.valueOf(cVar2.f497c.e().f2298c);
|
String valueOf2 = String.valueOf(cVar2.f497c.e().f2299c);
|
||||||
int f = (z3 || m) ? eVar.f() : cVar2.o(eVar);
|
int f = (z3 || m) ? eVar.f() : cVar2.o(eVar);
|
||||||
i p = (z3 || m) ? h.a : cVar2.p();
|
i p = (z3 || m) ? h.a : cVar2.p();
|
||||||
cVar2.d.e(cVar2.f497c, "DecodeProducer");
|
cVar2.d.e(cVar2.f497c, "DecodeProducer");
|
||||||
|
@ -439,7 +439,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
|
||||||
public void b(l<CloseableReference<c.f.j.j.c>> lVar, w0 w0Var) {
|
public void b(l<CloseableReference<c.f.j.j.c>> lVar, w0 w0Var) {
|
||||||
try {
|
try {
|
||||||
c.f.j.r.b.b();
|
c.f.j.r.b.b();
|
||||||
this.e.b(!c.f.d.l.b.e(w0Var.e().f2298c) ? new a(this, lVar, w0Var, this.h, this.i) : new b(this, lVar, w0Var, new d(this.a), this.d, this.h, this.i), w0Var);
|
this.e.b(!c.f.d.l.b.e(w0Var.e().f2299c) ? new a(this, lVar, w0Var, this.h, this.i) : new b(this, lVar, w0Var, new d(this.a), this.d, this.h, this.i), w0Var);
|
||||||
c.f.j.r.b.b();
|
c.f.j.r.b.b();
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
c.f.j.r.b.b();
|
c.f.j.r.b.b();
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class o implements v0<CloseableReference<c>> {
|
||||||
ImageRequest e = w0Var.e();
|
ImageRequest e = w0Var.e();
|
||||||
ScheduledExecutorService scheduledExecutorService = this.b;
|
ScheduledExecutorService scheduledExecutorService = this.b;
|
||||||
if (scheduledExecutorService != null) {
|
if (scheduledExecutorService != null) {
|
||||||
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2299s, TimeUnit.MILLISECONDS);
|
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2300s, TimeUnit.MILLISECONDS);
|
||||||
} else {
|
} else {
|
||||||
this.a.b(lVar, w0Var);
|
this.a.b(lVar, w0Var);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class o0 implements c<e, Void> {
|
||||||
this.f499c.b(eVar2, 9);
|
this.f499c.b(eVar2, 9);
|
||||||
} else {
|
} else {
|
||||||
this.f499c.b(eVar2, 8);
|
this.f499c.b(eVar2, 8);
|
||||||
ImageRequestBuilder b = ImageRequestBuilder.b(e.f2298c);
|
ImageRequestBuilder b = ImageRequestBuilder.b(e.f2299c);
|
||||||
b.e = e.h;
|
b.e = e.h;
|
||||||
b.o = e.k;
|
b.o = e.k;
|
||||||
b.f = e.b;
|
b.f = e.b;
|
||||||
|
@ -73,11 +73,11 @@ public class o0 implements c<e, Void> {
|
||||||
b.j = e.q;
|
b.j = e.q;
|
||||||
b.g = e.f;
|
b.g = e.f;
|
||||||
b.i = e.l;
|
b.i = e.l;
|
||||||
b.f2300c = e.i;
|
b.f2301c = e.i;
|
||||||
b.n = e.r;
|
b.n = e.r;
|
||||||
b.d = e.j;
|
b.d = e.j;
|
||||||
b.m = e.p;
|
b.m = e.p;
|
||||||
b.p = e.f2299s;
|
b.p = e.f2300s;
|
||||||
int i = f2 - 1;
|
int i = f2 - 1;
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
z3 = true;
|
z3 = true;
|
||||||
|
|
|
@ -185,7 +185,7 @@ public class q0 implements v0<e> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
w0Var.o().e(w0Var, "PartialDiskCacheProducer");
|
w0Var.o().e(w0Var, "PartialDiskCacheProducer");
|
||||||
Uri build = e.f2298c.buildUpon().appendQueryParameter("fresco_partial", "true").build();
|
Uri build = e.f2299c.buildUpon().appendQueryParameter("fresco_partial", "true").build();
|
||||||
i iVar = this.b;
|
i iVar = this.b;
|
||||||
w0Var.b();
|
w0Var.b();
|
||||||
Objects.requireNonNull((n) iVar);
|
Objects.requireNonNull((n) iVar);
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class y implements Runnable {
|
||||||
Objects.requireNonNull(a0Var);
|
Objects.requireNonNull(a0Var);
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
try {
|
try {
|
||||||
httpURLConnection = a0Var.a(aVar.b.e().f2298c, 5);
|
httpURLConnection = a0Var.a(aVar.b.e().f2299c, 5);
|
||||||
try {
|
try {
|
||||||
aVar.e = a0Var.f472c.now();
|
aVar.e = a0Var.f472c.now();
|
||||||
if (httpURLConnection != null) {
|
if (httpURLConnection != null) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ public class j implements b {
|
||||||
boolean z2;
|
boolean z2;
|
||||||
boolean contains;
|
boolean contains;
|
||||||
int i2 = ((i & 1) != 0 ? 16 : 0) | 0;
|
int i2 = ((i & 1) != 0 ? 16 : 0) | 0;
|
||||||
ReentrantReadWriteLock reentrantReadWriteLock = SoLoader.f2302c;
|
ReentrantReadWriteLock reentrantReadWriteLock = SoLoader.f2303c;
|
||||||
reentrantReadWriteLock.readLock().lock();
|
reentrantReadWriteLock.readLock().lock();
|
||||||
try {
|
try {
|
||||||
if (SoLoader.d == null) {
|
if (SoLoader.d == null) {
|
||||||
|
@ -49,7 +49,7 @@ public class j implements b {
|
||||||
continue;
|
continue;
|
||||||
} catch (UnsatisfiedLinkError e) {
|
} catch (UnsatisfiedLinkError e) {
|
||||||
int i3 = SoLoader.e;
|
int i3 = SoLoader.e;
|
||||||
SoLoader.f2302c.writeLock().lock();
|
SoLoader.f2303c.writeLock().lock();
|
||||||
try {
|
try {
|
||||||
if (SoLoader.g == null || !SoLoader.g.c()) {
|
if (SoLoader.g == null || !SoLoader.g.c()) {
|
||||||
z2 = false;
|
z2 = false;
|
||||||
|
@ -58,21 +58,21 @@ public class j implements b {
|
||||||
SoLoader.e = SoLoader.e + 1;
|
SoLoader.e = SoLoader.e + 1;
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
SoLoader.f2302c.writeLock().unlock();
|
SoLoader.f2303c.writeLock().unlock();
|
||||||
if (SoLoader.e == i3) {
|
if (SoLoader.e == i3) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
} catch (IOException e2) {
|
} catch (IOException e2) {
|
||||||
throw new RuntimeException(e2);
|
throw new RuntimeException(e2);
|
||||||
} catch (Throwable th2) {
|
} catch (Throwable th2) {
|
||||||
SoLoader.f2302c.writeLock().unlock();
|
SoLoader.f2303c.writeLock().unlock();
|
||||||
throw th2;
|
throw th2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (z2);
|
} while (z2);
|
||||||
return z5;
|
return z5;
|
||||||
} finally {
|
} finally {
|
||||||
SoLoader.f2302c.readLock().unlock();
|
SoLoader.f2303c.readLock().unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,8 +92,8 @@ public final class f0 extends l implements e0.b {
|
||||||
if (dVar != null) {
|
if (dVar != null) {
|
||||||
dVar.a(true);
|
dVar.a(true);
|
||||||
}
|
}
|
||||||
loader.f2367c.execute(new Loader.g(e0Var));
|
loader.f2368c.execute(new Loader.g(e0Var));
|
||||||
loader.f2367c.shutdown();
|
loader.f2368c.shutdown();
|
||||||
e0Var.f653z.removeCallbacksAndMessages(null);
|
e0Var.f653z.removeCallbacksAndMessages(null);
|
||||||
e0Var.A = null;
|
e0Var.A = null;
|
||||||
e0Var.V = true;
|
e0Var.V = true;
|
||||||
|
|
|
@ -84,7 +84,7 @@ public final class b0 extends v {
|
||||||
public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException {
|
public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException {
|
||||||
int i = aVar.d;
|
int i = aVar.d;
|
||||||
if (i == 3 || i == 2 || i == 268435456 || i == 536870912 || i == 805306368 || i == 4) {
|
if (i == 3 || i == 2 || i == 268435456 || i == 536870912 || i == 805306368 || i == 4) {
|
||||||
return i != 2 ? new AudioProcessor.a(aVar.b, aVar.f2309c, 2) : AudioProcessor.a.a;
|
return i != 2 ? new AudioProcessor.a(aVar.b, aVar.f2310c, 2) : AudioProcessor.a.a;
|
||||||
}
|
}
|
||||||
throw new AudioProcessor.UnhandledAudioFormatException(aVar);
|
throw new AudioProcessor.UnhandledAudioFormatException(aVar);
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ public final class e0 implements AudioProcessor {
|
||||||
i = aVar.b;
|
i = aVar.b;
|
||||||
}
|
}
|
||||||
this.e = aVar;
|
this.e = aVar;
|
||||||
AudioProcessor.a aVar2 = new AudioProcessor.a(i, aVar.f2309c, 2);
|
AudioProcessor.a aVar2 = new AudioProcessor.a(i, aVar.f2310c, 2);
|
||||||
this.f = aVar2;
|
this.f = aVar2;
|
||||||
this.i = true;
|
this.i = true;
|
||||||
return aVar2;
|
return aVar2;
|
||||||
|
@ -128,7 +128,7 @@ public final class e0 implements AudioProcessor {
|
||||||
AudioProcessor.a aVar2 = this.f;
|
AudioProcessor.a aVar2 = this.f;
|
||||||
this.h = aVar2;
|
this.h = aVar2;
|
||||||
if (this.i) {
|
if (this.i) {
|
||||||
this.j = new d0(aVar.b, aVar.f2309c, this.f889c, this.d, aVar2.b);
|
this.j = new d0(aVar.b, aVar.f2310c, this.f889c, this.d, aVar2.b);
|
||||||
} else {
|
} else {
|
||||||
d0 d0Var = this.j;
|
d0 d0Var = this.j;
|
||||||
if (d0Var != null) {
|
if (d0Var != null) {
|
||||||
|
|
|
@ -35,11 +35,11 @@ public final class w extends v {
|
||||||
return AudioProcessor.a.a;
|
return AudioProcessor.a.a;
|
||||||
}
|
}
|
||||||
if (aVar.d == 2) {
|
if (aVar.d == 2) {
|
||||||
boolean z2 = aVar.f2309c != iArr.length;
|
boolean z2 = aVar.f2310c != iArr.length;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < iArr.length) {
|
while (i < iArr.length) {
|
||||||
int i2 = iArr[i];
|
int i2 = iArr[i];
|
||||||
if (i2 < aVar.f2309c) {
|
if (i2 < aVar.f2310c) {
|
||||||
z2 |= i2 != i;
|
z2 |= i2 != i;
|
||||||
i++;
|
i++;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -45,7 +45,7 @@ public final class y extends v {
|
||||||
public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException {
|
public AudioProcessor.a f(AudioProcessor.a aVar) throws AudioProcessor.UnhandledAudioFormatException {
|
||||||
int i2 = aVar.d;
|
int i2 = aVar.d;
|
||||||
if (e0.y(i2)) {
|
if (e0.y(i2)) {
|
||||||
return i2 != 4 ? new AudioProcessor.a(aVar.b, aVar.f2309c, 4) : AudioProcessor.a.a;
|
return i2 != 4 ? new AudioProcessor.a(aVar.b, aVar.f2310c, 4) : AudioProcessor.a.a;
|
||||||
}
|
}
|
||||||
throw new AudioProcessor.UnhandledAudioFormatException(aVar);
|
throw new AudioProcessor.UnhandledAudioFormatException(aVar);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ public final /* synthetic */ class d implements Runnable {
|
||||||
public final void run() {
|
public final void run() {
|
||||||
DefaultDrmSessionManager.d dVar = this.i;
|
DefaultDrmSessionManager.d dVar = this.i;
|
||||||
if (!dVar.d) {
|
if (!dVar.d) {
|
||||||
DrmSession drmSession = dVar.f2325c;
|
DrmSession drmSession = dVar.f2326c;
|
||||||
if (drmSession != null) {
|
if (drmSession != null) {
|
||||||
drmSession.b(dVar.b);
|
drmSession.b(dVar.b);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final /* synthetic */ class e implements Runnable {
|
||||||
if (defaultDrmSessionManager.p != 0 && !dVar.d) {
|
if (defaultDrmSessionManager.p != 0 && !dVar.d) {
|
||||||
Looper looper = defaultDrmSessionManager.t;
|
Looper looper = defaultDrmSessionManager.t;
|
||||||
Objects.requireNonNull(looper);
|
Objects.requireNonNull(looper);
|
||||||
dVar.f2325c = defaultDrmSessionManager.e(looper, dVar.b, j1Var, false);
|
dVar.f2326c = defaultDrmSessionManager.e(looper, dVar.b, j1Var, false);
|
||||||
DefaultDrmSessionManager.this.n.add(dVar);
|
DefaultDrmSessionManager.this.n.add(dVar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ public final /* synthetic */ class o implements MediaDrm.OnEventListener {
|
||||||
c0 c0Var = this.a;
|
c0 c0Var = this.a;
|
||||||
a0.b bVar = this.b;
|
a0.b bVar = this.b;
|
||||||
Objects.requireNonNull(c0Var);
|
Objects.requireNonNull(c0Var);
|
||||||
DefaultDrmSessionManager.c cVar = DefaultDrmSessionManager.this.f2324x;
|
DefaultDrmSessionManager.c cVar = DefaultDrmSessionManager.this.f2325x;
|
||||||
Objects.requireNonNull(cVar);
|
Objects.requireNonNull(cVar);
|
||||||
cVar.obtainMessage(i, bArr).sendToTarget();
|
cVar.obtainMessage(i, bArr).sendToTarget();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class a extends b<GoogleSignInOptions> {
|
||||||
public final synchronized int f() {
|
public final synchronized int f() {
|
||||||
if (j == 1) {
|
if (j == 1) {
|
||||||
Context context = this.a;
|
Context context = this.a;
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
||||||
int b = googleApiAvailability.b(context, 12451000);
|
int b = googleApiAvailability.b(context, 12451000);
|
||||||
if (b == 0) {
|
if (b == 0) {
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class a {
|
||||||
if (str5 != null) {
|
if (str5 != null) {
|
||||||
jSONObject.put("displayName", str5);
|
jSONObject.put("displayName", str5);
|
||||||
}
|
}
|
||||||
String str6 = googleSignInAccount.f2380s;
|
String str6 = googleSignInAccount.f2381s;
|
||||||
if (str6 != null) {
|
if (str6 != null) {
|
||||||
jSONObject.put("givenName", str6);
|
jSONObject.put("givenName", str6);
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@ public class a {
|
||||||
}
|
}
|
||||||
jSONObject2.put("idTokenRequested", googleSignInOptions.r);
|
jSONObject2.put("idTokenRequested", googleSignInOptions.r);
|
||||||
jSONObject2.put("forceCodeForRefreshToken", googleSignInOptions.t);
|
jSONObject2.put("forceCodeForRefreshToken", googleSignInOptions.t);
|
||||||
jSONObject2.put("serverAuthRequested", googleSignInOptions.f2381s);
|
jSONObject2.put("serverAuthRequested", googleSignInOptions.f2382s);
|
||||||
if (!TextUtils.isEmpty(googleSignInOptions.u)) {
|
if (!TextUtils.isEmpty(googleSignInOptions.u)) {
|
||||||
jSONObject2.put("serverClientId", googleSignInOptions.u);
|
jSONObject2.put("serverClientId", googleSignInOptions.u);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class a1 extends t0 {
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
public a1(j jVar, g gVar) {
|
public a1(j jVar, g gVar) {
|
||||||
super(jVar, GoogleApiAvailability.d);
|
super(jVar, GoogleApiAvailability.d);
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
this.o = gVar;
|
this.o = gVar;
|
||||||
jVar.a("ConnectionlessLifecycleHelper", this);
|
jVar.a("ConnectionlessLifecycleHelper", this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class b0 extends t0 {
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
public b0(j jVar) {
|
public b0(j jVar) {
|
||||||
super(jVar, GoogleApiAvailability.d);
|
super(jVar, GoogleApiAvailability.d);
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
jVar.a("GmsAvailabilityHelper", this);
|
jVar.a("GmsAvailabilityHelper", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -654,7 +654,7 @@ public class g implements Handler.Callback {
|
||||||
handlerThread.start();
|
handlerThread.start();
|
||||||
Looper looper = handlerThread.getLooper();
|
Looper looper = handlerThread.getLooper();
|
||||||
Context applicationContext = context.getApplicationContext();
|
Context applicationContext = context.getApplicationContext();
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
l = new g(applicationContext, looper, GoogleApiAvailability.d);
|
l = new g(applicationContext, looper, GoogleApiAvailability.d);
|
||||||
}
|
}
|
||||||
gVar = l;
|
gVar = l;
|
||||||
|
|
|
@ -31,7 +31,7 @@ public abstract class d<T extends IInterface> extends b<T> implements a.f {
|
||||||
public d(Context context, Looper looper, int i, c cVar, f fVar, l lVar) {
|
public d(Context context, Looper looper, int i, c cVar, f fVar, l lVar) {
|
||||||
super(context, looper, r3, r4, i, new r(fVar), new q(lVar), cVar.f);
|
super(context, looper, r3, r4, i, new r(fVar), new q(lVar), cVar.f);
|
||||||
e a = e.a(context);
|
e a = e.a(context);
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
||||||
Objects.requireNonNull(fVar, "null reference");
|
Objects.requireNonNull(fVar, "null reference");
|
||||||
Objects.requireNonNull(lVar, "null reference");
|
Objects.requireNonNull(lVar, "null reference");
|
||||||
|
|
|
@ -1763,7 +1763,7 @@ public final class f {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final void c(f0.e0.f.a aVar, f0.e0.f.c cVar, String str) {
|
public static final void c(f0.e0.f.a aVar, f0.e0.f.c cVar, String str) {
|
||||||
d.b bVar = f0.e0.f.d.f2818c;
|
d.b bVar = f0.e0.f.d.f2819c;
|
||||||
Logger logger = f0.e0.f.d.b;
|
Logger logger = f0.e0.f.d.b;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(cVar.f);
|
sb.append(cVar.f);
|
||||||
|
@ -1772,7 +1772,7 @@ public final class f {
|
||||||
m.checkExpressionValueIsNotNull(format, "java.lang.String.format(format, *args)");
|
m.checkExpressionValueIsNotNull(format, "java.lang.String.format(format, *args)");
|
||||||
sb.append(format);
|
sb.append(format);
|
||||||
sb.append(": ");
|
sb.append(": ");
|
||||||
sb.append(aVar.f2816c);
|
sb.append(aVar.f2817c);
|
||||||
logger.fine(sb.toString());
|
logger.fine(sb.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,12 @@ public final class b implements DynamiteModule.a {
|
||||||
int b = bVar.b(context, str);
|
int b = bVar.b(context, str);
|
||||||
aVar.a = b;
|
aVar.a = b;
|
||||||
if (b != 0) {
|
if (b != 0) {
|
||||||
aVar.f2389c = -1;
|
aVar.f2390c = -1;
|
||||||
} else {
|
} else {
|
||||||
int a = bVar.a(context, str, true);
|
int a = bVar.a(context, str, true);
|
||||||
aVar.b = a;
|
aVar.b = a;
|
||||||
if (a != 0) {
|
if (a != 0) {
|
||||||
aVar.f2389c = 1;
|
aVar.f2390c = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return aVar;
|
return aVar;
|
||||||
|
|
|
@ -16,11 +16,11 @@ public final class c implements DynamiteModule.a {
|
||||||
}
|
}
|
||||||
int i = aVar.a;
|
int i = aVar.a;
|
||||||
if (i == 0 && aVar.b == 0) {
|
if (i == 0 && aVar.b == 0) {
|
||||||
aVar.f2389c = 0;
|
aVar.f2390c = 0;
|
||||||
} else if (i >= aVar.b) {
|
} else if (i >= aVar.b) {
|
||||||
aVar.f2389c = -1;
|
aVar.f2390c = -1;
|
||||||
} else {
|
} else {
|
||||||
aVar.f2389c = 1;
|
aVar.f2390c = 1;
|
||||||
}
|
}
|
||||||
return aVar;
|
return aVar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,11 +12,11 @@ public final class d implements DynamiteModule.a {
|
||||||
aVar.b = a;
|
aVar.b = a;
|
||||||
int i = aVar.a;
|
int i = aVar.a;
|
||||||
if (i == 0 && a == 0) {
|
if (i == 0 && a == 0) {
|
||||||
aVar.f2389c = 0;
|
aVar.f2390c = 0;
|
||||||
} else if (a >= i) {
|
} else if (a >= i) {
|
||||||
aVar.f2389c = 1;
|
aVar.f2390c = 1;
|
||||||
} else {
|
} else {
|
||||||
aVar.f2389c = -1;
|
aVar.f2390c = -1;
|
||||||
}
|
}
|
||||||
return aVar;
|
return aVar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ public final class g4 implements v7 {
|
||||||
public g4(zzhi zzhi) {
|
public g4(zzhi zzhi) {
|
||||||
Charset charset = w4.a;
|
Charset charset = w4.a;
|
||||||
this.a = zzhi;
|
this.a = zzhi;
|
||||||
zzhi.f2390c = this;
|
zzhi.f2391c = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void a(int i, double d) throws IOException {
|
public final void a(int i, double d) throws IOException {
|
||||||
|
@ -41,7 +41,7 @@ public final class g4 implements v7 {
|
||||||
public final void e(int i, Object obj, q6 q6Var) throws IOException {
|
public final void e(int i, Object obj, q6 q6Var) throws IOException {
|
||||||
zzhi zzhi = this.a;
|
zzhi zzhi = this.a;
|
||||||
zzhi.f(i, 3);
|
zzhi.f(i, 3);
|
||||||
q6Var.g((c6) obj, zzhi.f2390c);
|
q6Var.g((c6) obj, zzhi.f2391c);
|
||||||
zzhi.f(i, 4);
|
zzhi.f(i, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@ public abstract class u4<MessageType extends u4<MessageType, BuilderType>, Build
|
||||||
@Override // c.i.a.f.h.l.c6
|
@Override // c.i.a.f.h.l.c6
|
||||||
public final void i(zzhi zzhi) throws IOException {
|
public final void i(zzhi zzhi) throws IOException {
|
||||||
q6 b2 = n6.a.b(this);
|
q6 b2 = n6.a.b(this);
|
||||||
g4 g4Var = zzhi.f2390c;
|
g4 g4Var = zzhi.f2391c;
|
||||||
if (g4Var == null) {
|
if (g4Var == null) {
|
||||||
g4Var = new g4(zzhi);
|
g4Var = new g4(zzhi);
|
||||||
}
|
}
|
||||||
|
|
|
@ -696,7 +696,7 @@ public final class g extends i9 {
|
||||||
contentValues.put("triggered_timestamp", Long.valueOf(zzz.k.k));
|
contentValues.put("triggered_timestamp", Long.valueOf(zzz.k.k));
|
||||||
contentValues.put("time_to_live", Long.valueOf(zzz.r));
|
contentValues.put("time_to_live", Long.valueOf(zzz.r));
|
||||||
e();
|
e();
|
||||||
contentValues.put("expired_event", t9.g0(zzz.f2396s));
|
contentValues.put("expired_event", t9.g0(zzz.f2397s));
|
||||||
try {
|
try {
|
||||||
if (t().insertWithOnConflict("conditional_properties", null, contentValues, 5) == -1) {
|
if (t().insertWithOnConflict("conditional_properties", null, contentValues, 5) == -1) {
|
||||||
g().f.b("Failed to insert/update conditional user property (got -1)", q3.s(zzz.i));
|
g().f.b("Failed to insert/update conditional user property (got -1)", q3.s(zzz.i));
|
||||||
|
|
|
@ -355,7 +355,7 @@ public class k9 implements t5 {
|
||||||
T = K().T(zzn.i);
|
T = K().T(zzn.i);
|
||||||
if (T != null) {
|
if (T != null) {
|
||||||
this.k.t();
|
this.k.t();
|
||||||
if (t9.d0(zzn.j, T.v(), zzn.f2395z, T.y())) {
|
if (t9.d0(zzn.j, T.v(), zzn.f2396z, T.y())) {
|
||||||
this.k.g().i.b("New GMP App Id passed in. Removing cached database data. appId", q3.s(T.o()));
|
this.k.g().i.b("New GMP App Id passed in. Removing cached database data. appId", q3.s(T.o()));
|
||||||
g K = K();
|
g K = K();
|
||||||
String o = T.o();
|
String o = T.o();
|
||||||
|
@ -404,7 +404,7 @@ public class k9 implements t5 {
|
||||||
str2 = "_et";
|
str2 = "_et";
|
||||||
j2 = 1;
|
j2 = 1;
|
||||||
}
|
}
|
||||||
if (zzn.f2394y) {
|
if (zzn.f2395y) {
|
||||||
bundle2.putLong("_dac", j2);
|
bundle2.putLong("_dac", j2);
|
||||||
}
|
}
|
||||||
g K2 = K();
|
g K2 = K();
|
||||||
|
@ -482,7 +482,7 @@ public class k9 implements t5 {
|
||||||
} else {
|
} else {
|
||||||
j = 1;
|
j = 1;
|
||||||
}
|
}
|
||||||
if (zzn.f2394y) {
|
if (zzn.f2395y) {
|
||||||
bundle3.putLong("_dac", j);
|
bundle3.putLong("_dac", j);
|
||||||
}
|
}
|
||||||
B(new zzaq("_v", new zzap(bundle3), "auto", j4), zzn);
|
B(new zzaq("_v", new zzap(bundle3), "auto", j4), zzn);
|
||||||
|
@ -559,7 +559,7 @@ public class k9 implements t5 {
|
||||||
if (Z.m) {
|
if (Z.m) {
|
||||||
K().V(zzz.i, zzz.k.j);
|
K().V(zzz.i, zzz.k.j);
|
||||||
}
|
}
|
||||||
zzaq zzaq = zzz.f2396s;
|
zzaq zzaq = zzz.f2397s;
|
||||||
if (zzaq != null) {
|
if (zzaq != null) {
|
||||||
Bundle bundle = null;
|
Bundle bundle = null;
|
||||||
zzap zzap = zzaq.j;
|
zzap zzap = zzaq.j;
|
||||||
|
@ -568,7 +568,7 @@ public class k9 implements t5 {
|
||||||
}
|
}
|
||||||
t9 t = this.k.t();
|
t9 t = this.k.t();
|
||||||
String str = zzz.i;
|
String str = zzz.i;
|
||||||
zzaq zzaq2 = zzz.f2396s;
|
zzaq zzaq2 = zzz.f2397s;
|
||||||
I(t.B(str, zzaq2.i, bundle, Z.j, zzaq2.l, true, x7.b() && this.k.h.o(p.M0)), zzn);
|
I(t.B(str, zzaq2.i, bundle, Z.j, zzaq2.l, true, x7.b() && this.k.h.o(p.M0)), zzn);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -634,16 +634,16 @@ public class k9 implements t5 {
|
||||||
T.m(zzn.j);
|
T.m(zzn.j);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
if (!TextUtils.equals(zzn.f2395z, T.y())) {
|
if (!TextUtils.equals(zzn.f2396z, T.y())) {
|
||||||
T.q(zzn.f2395z);
|
T.q(zzn.f2396z);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
if (da.b() && this.k.h.u(T.o(), p.f1229j0) && !TextUtils.equals(zzn.D, T.B())) {
|
if (da.b() && this.k.h.u(T.o(), p.f1229j0) && !TextUtils.equals(zzn.D, T.B())) {
|
||||||
T.u(zzn.D);
|
T.u(zzn.D);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(zzn.f2392s) && !zzn.f2392s.equals(T.H())) {
|
if (!TextUtils.isEmpty(zzn.f2393s) && !zzn.f2393s.equals(T.H())) {
|
||||||
T.A(zzn.f2392s);
|
T.A(zzn.f2393s);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
long j2 = zzn.m;
|
long j2 = zzn.m;
|
||||||
|
@ -688,8 +688,8 @@ public class k9 implements t5 {
|
||||||
T.n(zzn.w);
|
T.n(zzn.w);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
if (zzn.f2393x != T.i()) {
|
if (zzn.f2394x != T.i()) {
|
||||||
T.r(zzn.f2393x);
|
T.r(zzn.f2394x);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
}
|
}
|
||||||
if (zzn.A != T.j()) {
|
if (zzn.A != T.j()) {
|
||||||
|
@ -712,11 +712,11 @@ public class k9 implements t5 {
|
||||||
z2 = true;
|
z2 = true;
|
||||||
if (!TextUtils.equals(zzn.j, T.v())) {
|
if (!TextUtils.equals(zzn.j, T.v())) {
|
||||||
}
|
}
|
||||||
if (!TextUtils.equals(zzn.f2395z, T.y())) {
|
if (!TextUtils.equals(zzn.f2396z, T.y())) {
|
||||||
}
|
}
|
||||||
T.u(zzn.D);
|
T.u(zzn.D);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
T.A(zzn.f2392s);
|
T.A(zzn.f2393s);
|
||||||
z2 = true;
|
z2 = true;
|
||||||
long j2 = zzn.m;
|
long j2 = zzn.m;
|
||||||
T.t(zzn.m);
|
T.t(zzn.m);
|
||||||
|
@ -738,7 +738,7 @@ public class k9 implements t5 {
|
||||||
z2 = true;
|
z2 = true;
|
||||||
if (zzn.w != T.h()) {
|
if (zzn.w != T.h()) {
|
||||||
}
|
}
|
||||||
if (zzn.f2393x != T.i()) {
|
if (zzn.f2394x != T.i()) {
|
||||||
}
|
}
|
||||||
if (zzn.A != T.j()) {
|
if (zzn.A != T.j()) {
|
||||||
}
|
}
|
||||||
|
@ -774,12 +774,12 @@ public class k9 implements t5 {
|
||||||
T.c(c(h));
|
T.c(c(h));
|
||||||
}
|
}
|
||||||
T.m(zzn.j);
|
T.m(zzn.j);
|
||||||
T.q(zzn.f2395z);
|
T.q(zzn.f2396z);
|
||||||
if (da.b() && this.k.h.u(T.o(), p.f1229j0)) {
|
if (da.b() && this.k.h.u(T.o(), p.f1229j0)) {
|
||||||
T.u(zzn.D);
|
T.u(zzn.D);
|
||||||
}
|
}
|
||||||
if (!TextUtils.isEmpty(zzn.f2392s)) {
|
if (!TextUtils.isEmpty(zzn.f2393s)) {
|
||||||
T.A(zzn.f2392s);
|
T.A(zzn.f2393s);
|
||||||
}
|
}
|
||||||
long j3 = zzn.m;
|
long j3 = zzn.m;
|
||||||
if (j3 != 0) {
|
if (j3 != 0) {
|
||||||
|
@ -802,7 +802,7 @@ public class k9 implements t5 {
|
||||||
T.R(zzn.t);
|
T.R(zzn.t);
|
||||||
}
|
}
|
||||||
T.n(zzn.w);
|
T.n(zzn.w);
|
||||||
T.r(zzn.f2393x);
|
T.r(zzn.f2394x);
|
||||||
T.b(zzn.A);
|
T.b(zzn.A);
|
||||||
T.z(zzn.B);
|
T.z(zzn.B);
|
||||||
T.a.f().b();
|
T.a.f().b();
|
||||||
|
@ -1055,11 +1055,11 @@ public class k9 implements t5 {
|
||||||
if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.D)) {
|
if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.D)) {
|
||||||
u0.u0(zzn.D);
|
u0.u0(zzn.D);
|
||||||
}
|
}
|
||||||
if (TextUtils.isEmpty(u0.s0()) && TextUtils.isEmpty(u0.x0()) && !TextUtils.isEmpty(zzn.f2395z)) {
|
if (TextUtils.isEmpty(u0.s0()) && TextUtils.isEmpty(u0.x0()) && !TextUtils.isEmpty(zzn.f2396z)) {
|
||||||
u0.r0(zzn.f2395z);
|
u0.r0(zzn.f2396z);
|
||||||
}
|
}
|
||||||
} else if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.f2395z)) {
|
} else if (TextUtils.isEmpty(u0.s0()) && !TextUtils.isEmpty(zzn.f2396z)) {
|
||||||
u0.r0(zzn.f2395z);
|
u0.r0(zzn.f2396z);
|
||||||
}
|
}
|
||||||
long j4 = zzn.n;
|
long j4 = zzn.n;
|
||||||
if (j4 != 0) {
|
if (j4 != 0) {
|
||||||
|
@ -1081,7 +1081,7 @@ public class k9 implements t5 {
|
||||||
u0.y(((Boolean) obj2).booleanValue());
|
u0.y(((Boolean) obj2).booleanValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!this.k.y().s(this.k.j()) && zzn.f2393x && (!hb.b() || !this.k.a().v(zzn.i, p.G0))) {
|
} else if (!this.k.y().s(this.k.j()) && zzn.f2394x && (!hb.b() || !this.k.a().v(zzn.i, p.G0))) {
|
||||||
String string = Settings.Secure.getString(this.k.j().getContentResolver(), "android_id");
|
String string = Settings.Secure.getString(this.k.j().getContentResolver(), "android_id");
|
||||||
if (string == null) {
|
if (string == null) {
|
||||||
this.k.g().A().b("null secure ID. appId", q3.s(u0.k0()));
|
this.k.g().A().b("null secure ID. appId", q3.s(u0.k0()));
|
||||||
|
@ -1120,7 +1120,7 @@ public class k9 implements t5 {
|
||||||
} else {
|
} else {
|
||||||
T2.c(c(h));
|
T2.c(c(h));
|
||||||
}
|
}
|
||||||
T2.A(zzn.f2392s);
|
T2.A(zzn.f2393s);
|
||||||
T2.m(zzn.j);
|
T2.m(zzn.j);
|
||||||
if (!t8.b() || !this.k.a().o(p.J0) || h.j()) {
|
if (!t8.b() || !this.k.a().o(p.J0) || h.j()) {
|
||||||
T2.x(this.j.t(zzn.i));
|
T2.x(this.j.t(zzn.i));
|
||||||
|
@ -1200,7 +1200,7 @@ public class k9 implements t5 {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean L(zzn zzn) {
|
public final boolean L(zzn zzn) {
|
||||||
return (!da.b() || !this.k.h.u(zzn.i, p.f1229j0)) ? !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.f2395z) : !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.D) || !TextUtils.isEmpty(zzn.f2395z);
|
return (!da.b() || !this.k.h.u(zzn.i, p.f1229j0)) ? !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.f2396z) : !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.D) || !TextUtils.isEmpty(zzn.f2396z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ba M() {
|
public final ba M() {
|
||||||
|
@ -1753,7 +1753,7 @@ public class k9 implements t5 {
|
||||||
if (zzz2 != null) {
|
if (zzz2 != null) {
|
||||||
this.k.g().n.d("User property expired", zzz2.i, this.k.u().y(zzz2.k.j), zzz2.k.w0());
|
this.k.g().n.d("User property expired", zzz2.i, this.k.u().y(zzz2.k.j), zzz2.k.w0());
|
||||||
K().V(str, zzz2.k.j);
|
K().V(str, zzz2.k.j);
|
||||||
zzaq zzaq4 = zzz2.f2396s;
|
zzaq zzaq4 = zzz2.f2397s;
|
||||||
if (zzaq4 != null) {
|
if (zzaq4 != null) {
|
||||||
arrayList.add(zzaq4);
|
arrayList.add(zzaq4);
|
||||||
}
|
}
|
||||||
|
|
|
@ -282,7 +282,7 @@ public final class q9 extends i9 {
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
public static boolean O(zzaq zzaq, zzn zzn) {
|
public static boolean O(zzaq zzaq, zzn zzn) {
|
||||||
Objects.requireNonNull(zzaq, "null reference");
|
Objects.requireNonNull(zzaq, "null reference");
|
||||||
return !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.f2395z);
|
return !TextUtils.isEmpty(zzn.j) || !TextUtils.isEmpty(zzn.f2396z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean P(String str) {
|
public static boolean P(String str) {
|
||||||
|
|
|
@ -212,10 +212,10 @@ public final class t9 extends r5 {
|
||||||
}
|
}
|
||||||
bundle.putLong("triggered_timestamp", zzz.k.k);
|
bundle.putLong("triggered_timestamp", zzz.k.k);
|
||||||
bundle.putLong("time_to_live", zzz.r);
|
bundle.putLong("time_to_live", zzz.r);
|
||||||
zzaq zzaq3 = zzz.f2396s;
|
zzaq zzaq3 = zzz.f2397s;
|
||||||
if (zzaq3 != null) {
|
if (zzaq3 != null) {
|
||||||
bundle.putString("expired_event_name", zzaq3.i);
|
bundle.putString("expired_event_name", zzaq3.i);
|
||||||
zzap zzap3 = zzz.f2396s.j;
|
zzap zzap3 = zzz.f2397s.j;
|
||||||
if (zzap3 != null) {
|
if (zzap3 != null) {
|
||||||
bundle.putBundle("expired_event_params", zzap3.x0());
|
bundle.putBundle("expired_event_params", zzap3.x0());
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,6 +286,6 @@ public final class z4 extends l3 {
|
||||||
public final void y0(zzn zzn) {
|
public final void y0(zzn zzn) {
|
||||||
Objects.requireNonNull(zzn, "null reference");
|
Objects.requireNonNull(zzn, "null reference");
|
||||||
x0(zzn.i, false);
|
x0(zzn.i, false);
|
||||||
this.a.k.t().c0(zzn.j, zzn.f2395z, zzn.D);
|
this.a.k.t().c0(zzn.j, zzn.f2396z, zzn.D);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ public final class i extends MessagesClient {
|
||||||
public final Task<Void> g(MessageListener messageListener, SubscribeOptions subscribeOptions) {
|
public final Task<Void> g(MessageListener messageListener, SubscribeOptions subscribeOptions) {
|
||||||
d.o(subscribeOptions.a.r == 0, "Strategy.setBackgroundScanMode() is only supported by background subscribe (the version which takes a PendingIntent).");
|
d.o(subscribeOptions.a.r == 0, "Strategy.setBackgroundScanMode() is only supported by background subscribe (the version which takes a PendingIntent).");
|
||||||
k m = m(messageListener);
|
k m = m(messageListener);
|
||||||
return k(m, new l(this, m, new s(this, m(subscribeOptions.f2397c), m), subscribeOptions), new m(m));
|
return k(m, new l(this, m, new s(this, m(subscribeOptions.f2398c), m), subscribeOptions), new m(m));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // com.google.android.gms.nearby.messages.MessagesClient
|
@Override // com.google.android.gms.nearby.messages.MessagesClient
|
||||||
|
|
|
@ -18,12 +18,12 @@ public class b implements ViewTreeObserver.OnPreDrawListener {
|
||||||
}
|
}
|
||||||
this.i.getViewTreeObserver().removeOnPreDrawListener(this);
|
this.i.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||||
ClockFaceView clockFaceView = this.i;
|
ClockFaceView clockFaceView = this.i;
|
||||||
int height = ((this.i.getHeight() / 2) - clockFaceView.l.q) - clockFaceView.f2428s;
|
int height = ((this.i.getHeight() / 2) - clockFaceView.l.q) - clockFaceView.f2429s;
|
||||||
if (height != clockFaceView.j) {
|
if (height != clockFaceView.j) {
|
||||||
clockFaceView.j = height;
|
clockFaceView.j = height;
|
||||||
clockFaceView.a();
|
clockFaceView.a();
|
||||||
ClockHandView clockHandView = clockFaceView.l;
|
ClockHandView clockHandView = clockFaceView.l;
|
||||||
clockHandView.f2432z = clockFaceView.j;
|
clockHandView.f2433z = clockFaceView.j;
|
||||||
clockHandView.invalidate();
|
clockHandView.invalidate();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class f implements ClockHandView.OnRotateListener, TimePickerView.d, Time
|
||||||
TimePickerView timePickerView2 = this.l;
|
TimePickerView timePickerView2 = this.l;
|
||||||
timePickerView2.p = this;
|
timePickerView2.p = this;
|
||||||
timePickerView2.o = this;
|
timePickerView2.o = this;
|
||||||
timePickerView2.k.f2430x = this;
|
timePickerView2.k.f2431x = this;
|
||||||
g(i, "%d");
|
g(i, "%d");
|
||||||
g(j, "%d");
|
g(j, "%d");
|
||||||
g(k, "%02d");
|
g(k, "%02d");
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class a {
|
||||||
}
|
}
|
||||||
|
|
||||||
public a c(String str, String str2, String str3, File file) {
|
public a c(String str, String str2, String str3, File file) {
|
||||||
MediaType.a aVar = MediaType.f2965c;
|
MediaType.a aVar = MediaType.f2966c;
|
||||||
RequestBody create = RequestBody.create(MediaType.a.b(str3), file);
|
RequestBody create = RequestBody.create(MediaType.a.b(str3), file);
|
||||||
if (this.f == null) {
|
if (this.f == null) {
|
||||||
MultipartBody.a aVar2 = new MultipartBody.a();
|
MultipartBody.a aVar2 = new MultipartBody.a();
|
||||||
|
|
|
@ -106,7 +106,7 @@ public final class b extends JsonWriter {
|
||||||
|
|
||||||
public final void O(JsonElement jsonElement) {
|
public final void O(JsonElement jsonElement) {
|
||||||
if (this.w != null) {
|
if (this.w != null) {
|
||||||
if (!(jsonElement instanceof j) || this.f2472s) {
|
if (!(jsonElement instanceof j) || this.f2473s) {
|
||||||
((JsonObject) N()).a.put(this.w, jsonElement);
|
((JsonObject) N()).a.put(this.w, jsonElement);
|
||||||
}
|
}
|
||||||
this.w = null;
|
this.w = null;
|
||||||
|
|
|
@ -54,7 +54,7 @@ public final class j extends k {
|
||||||
if (z3 || !z2) {
|
if (z3 || !z2) {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
Result result = new Result(k.a.substring(1), k.b, k.f2473c, aVar2);
|
Result result = new Result(k.a.substring(1), k.b, k.f2474c, aVar2);
|
||||||
result.a(k.e);
|
result.a(k.e);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,7 @@ public abstract class k implements i {
|
||||||
i = (((Integer) map2.get(jVar)).intValue() + 270) % 360;
|
i = (((Integer) map2.get(jVar)).intValue() + 270) % 360;
|
||||||
}
|
}
|
||||||
c2.b(jVar, Integer.valueOf(i));
|
c2.b(jVar, Integer.valueOf(i));
|
||||||
c.i.e.k[] kVarArr = c2.f2473c;
|
c.i.e.k[] kVarArr = c2.f2474c;
|
||||||
if (kVarArr != null) {
|
if (kVarArr != null) {
|
||||||
int i2 = d.b;
|
int i2 = d.b;
|
||||||
for (int i3 = 0; i3 < kVarArr.length; i3++) {
|
for (int i3 = 0; i3 < kVarArr.length; i3++) {
|
||||||
|
@ -171,7 +171,7 @@ public abstract class k implements i {
|
||||||
Result b = kVar.b(i10, aVar, enumMap);
|
Result b = kVar.b(i10, aVar, enumMap);
|
||||||
if (i11 != i4) {
|
if (i11 != i4) {
|
||||||
b.b(j.ORIENTATION, Integer.valueOf((int) BaseTransientBottomBar.ANIMATION_FADE_DURATION));
|
b.b(j.ORIENTATION, Integer.valueOf((int) BaseTransientBottomBar.ANIMATION_FADE_DURATION));
|
||||||
c.i.e.k[] kVarArr = b.f2473c;
|
c.i.e.k[] kVarArr = b.f2474c;
|
||||||
if (kVarArr != null) {
|
if (kVarArr != null) {
|
||||||
float f = (float) i2;
|
float f = (float) i2;
|
||||||
map2 = enumMap;
|
map2 = enumMap;
|
||||||
|
|
|
@ -16,7 +16,7 @@ public final class l extends p {
|
||||||
public static Result o(Result result) throws FormatException {
|
public static Result o(Result result) throws FormatException {
|
||||||
String str = result.a;
|
String str = result.a;
|
||||||
if (str.charAt(0) == '0') {
|
if (str.charAt(0) == '0') {
|
||||||
Result result2 = new Result(str.substring(1), null, result.f2473c, a.UPC_A);
|
Result result2 = new Result(str.substring(1), null, result.f2474c, a.UPC_A);
|
||||||
Map<j, Object> map = result.e;
|
Map<j, Object> map = result.e;
|
||||||
if (map != null) {
|
if (map != null) {
|
||||||
result2.a(map);
|
result2.a(map);
|
||||||
|
|
|
@ -187,15 +187,15 @@ public abstract class p extends k {
|
||||||
Result a2 = this.f.a(i, aVar, i3[1]);
|
Result a2 = this.f.a(i, aVar, i3[1]);
|
||||||
result.b(j.UPC_EAN_EXTENSION, a2.a);
|
result.b(j.UPC_EAN_EXTENSION, a2.a);
|
||||||
result.a(a2.e);
|
result.a(a2.e);
|
||||||
k[] kVarArr = a2.f2473c;
|
k[] kVarArr = a2.f2474c;
|
||||||
k[] kVarArr2 = result.f2473c;
|
k[] kVarArr2 = result.f2474c;
|
||||||
if (kVarArr2 == null) {
|
if (kVarArr2 == null) {
|
||||||
result.f2473c = kVarArr;
|
result.f2474c = kVarArr;
|
||||||
} else if (kVarArr != null && kVarArr.length > 0) {
|
} else if (kVarArr != null && kVarArr.length > 0) {
|
||||||
k[] kVarArr3 = new k[(kVarArr2.length + kVarArr.length)];
|
k[] kVarArr3 = new k[(kVarArr2.length + kVarArr.length)];
|
||||||
System.arraycopy(kVarArr2, 0, kVarArr3, 0, kVarArr2.length);
|
System.arraycopy(kVarArr2, 0, kVarArr3, 0, kVarArr2.length);
|
||||||
System.arraycopy(kVarArr, 0, kVarArr3, kVarArr2.length, kVarArr.length);
|
System.arraycopy(kVarArr, 0, kVarArr3, kVarArr2.length, kVarArr.length);
|
||||||
result.f2473c = kVarArr3;
|
result.f2474c = kVarArr3;
|
||||||
}
|
}
|
||||||
i2 = a2.a.length();
|
i2 = a2.a.length();
|
||||||
} catch (ReaderException unused) {
|
} catch (ReaderException unused) {
|
||||||
|
|
|
@ -26,13 +26,13 @@ public class e implements SeekBar.OnSeekBarChangeListener {
|
||||||
int i2 = 255 - i;
|
int i2 = 255 - i;
|
||||||
int i3 = 0;
|
int i3 = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
bVar = this.a.f2476s;
|
bVar = this.a.f2477s;
|
||||||
int[] iArr = bVar.j;
|
int[] iArr = bVar.j;
|
||||||
if (i3 >= iArr.length) {
|
if (i3 >= iArr.length) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int i4 = iArr[i3];
|
int i4 = iArr[i3];
|
||||||
this.a.f2476s.j[i3] = Color.argb(i2, Color.red(i4), Color.green(i4), Color.blue(i4));
|
this.a.f2477s.j[i3] = Color.argb(i2, Color.red(i4), Color.green(i4), Color.blue(i4));
|
||||||
i3++;
|
i3++;
|
||||||
}
|
}
|
||||||
bVar.notifyDataSetChanged();
|
bVar.notifyDataSetChanged();
|
||||||
|
|
|
@ -426,7 +426,7 @@ public abstract class g extends i {
|
||||||
if (aVar != null) {
|
if (aVar != null) {
|
||||||
CameraView.b bVar = (CameraView.b) this.l;
|
CameraView.b bVar = (CameraView.b) this.l;
|
||||||
bVar.b.a(1, "dispatchOnPictureTaken", aVar);
|
bVar.b.a(1, "dispatchOnPictureTaken", aVar);
|
||||||
CameraView.this.f2501s.post(new c.o.a.i(bVar, aVar));
|
CameraView.this.f2502s.post(new c.o.a.i(bVar, aVar));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
i.i.a(3, "onPictureResult", "result is null: something went wrong.", exc);
|
i.i.a(3, "onPictureResult", "result is null: something went wrong.", exc);
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class k implements f<c, Void> {
|
||||||
if (cVar2 != null) {
|
if (cVar2 != null) {
|
||||||
CameraView.b bVar = (CameraView.b) this.a.l;
|
CameraView.b bVar = (CameraView.b) this.a.l;
|
||||||
bVar.b.a(1, "dispatchOnCameraOpened", cVar2);
|
bVar.b.a(1, "dispatchOnCameraOpened", cVar2);
|
||||||
CameraView.this.f2501s.post(new c.o.a.f(bVar, cVar2));
|
CameraView.this.f2502s.post(new c.o.a.f(bVar, cVar2));
|
||||||
return c.i.a.f.e.o.f.R(null);
|
return c.i.a.f.e.o.f.R(null);
|
||||||
}
|
}
|
||||||
throw new RuntimeException("Null options!");
|
throw new RuntimeException("Null options!");
|
||||||
|
|
|
@ -16,6 +16,6 @@ public class m implements e<Void> {
|
||||||
public void onSuccess(Void r6) {
|
public void onSuccess(Void r6) {
|
||||||
CameraView.b bVar = (CameraView.b) this.a.l;
|
CameraView.b bVar = (CameraView.b) this.a.l;
|
||||||
bVar.b.a(1, "dispatchOnCameraClosed");
|
bVar.b.a(1, "dispatchOnCameraClosed");
|
||||||
CameraView.this.f2501s.post(new g(bVar));
|
CameraView.this.f2502s.post(new g(bVar));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,17 +65,17 @@ public class f {
|
||||||
int i3 = cameraView.w.g;
|
int i3 = cameraView.w.g;
|
||||||
if (!cameraView.l) {
|
if (!cameraView.l) {
|
||||||
int i4 = (360 - i3) % 360;
|
int i4 = (360 - i3) % 360;
|
||||||
c.o.a.n.t.a e = cameraView.f2502x.e();
|
c.o.a.n.t.a e = cameraView.f2503x.e();
|
||||||
e.e(i4);
|
e.e(i4);
|
||||||
e.e = i4;
|
e.e = i4;
|
||||||
e.d();
|
e.d();
|
||||||
} else {
|
} else {
|
||||||
c.o.a.n.t.a e2 = cameraView.f2502x.e();
|
c.o.a.n.t.a e2 = cameraView.f2503x.e();
|
||||||
e2.e(i2);
|
e2.e(i2);
|
||||||
e2.e = i2;
|
e2.e = i2;
|
||||||
e2.d();
|
e2.d();
|
||||||
}
|
}
|
||||||
CameraView.this.f2501s.post(new j(bVar, (i2 + i3) % 360));
|
CameraView.this.f2502s.post(new j(bVar, (i2 + i3) % 360));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -34,12 +34,12 @@ public abstract class d {
|
||||||
boolean z4 = !z2;
|
boolean z4 = !z2;
|
||||||
CameraView.b bVar = (CameraView.b) ((g) aVar).l;
|
CameraView.b bVar = (CameraView.b) ((g) aVar).l;
|
||||||
if (z4 && (z3 = (cameraView = CameraView.this).k) && z3) {
|
if (z4 && (z3 = (cameraView = CameraView.this).k) && z3) {
|
||||||
if (cameraView.f2504z == null) {
|
if (cameraView.f2505z == null) {
|
||||||
cameraView.f2504z = new MediaActionSound();
|
cameraView.f2505z = new MediaActionSound();
|
||||||
}
|
}
|
||||||
cameraView.f2504z.play(0);
|
cameraView.f2505z.play(0);
|
||||||
}
|
}
|
||||||
CameraView.this.f2501s.post(new h(bVar));
|
CameraView.this.f2502s.post(new h(bVar));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.discord.databinding;
|
package com.discord.databinding;
|
||||||
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.widget.FrameLayout;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
@ -13,40 +14,46 @@ public final class WidgetChatListAdapterItemGiftBinding implements ViewBinding {
|
||||||
@NonNull
|
@NonNull
|
||||||
public final ConstraintLayout a;
|
public final ConstraintLayout a;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final MaterialButton b;
|
public final FrameLayout b;
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
||||||
/* renamed from: c reason: collision with root package name */
|
/* renamed from: c reason: collision with root package name */
|
||||||
public final MaterialButton f1816c;
|
public final MaterialButton f1816c;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView d;
|
public final MaterialButton d;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView e;
|
public final TextView e;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final SimpleDraweeView f;
|
public final TextView f;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final SimpleDraweeView g;
|
public final SimpleDraweeView g;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final View h;
|
public final SimpleDraweeView h;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView i;
|
public final View i;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView j;
|
public final TextView j;
|
||||||
@NonNull
|
@NonNull
|
||||||
public final MaterialButton k;
|
public final MaterialButton k;
|
||||||
|
@NonNull
|
||||||
|
public final TextView l;
|
||||||
|
@NonNull
|
||||||
|
public final MaterialButton m;
|
||||||
|
|
||||||
public WidgetChatListAdapterItemGiftBinding(@NonNull ConstraintLayout constraintLayout, @NonNull Barrier barrier, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull View view, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull MaterialButton materialButton3, @NonNull ConstraintLayout constraintLayout2) {
|
public WidgetChatListAdapterItemGiftBinding(@NonNull ConstraintLayout constraintLayout, @NonNull Barrier barrier, @NonNull FrameLayout frameLayout, @NonNull MaterialButton materialButton, @NonNull MaterialButton materialButton2, @NonNull LinearLayout linearLayout, @NonNull TextView textView, @NonNull TextView textView2, @NonNull SimpleDraweeView simpleDraweeView, @NonNull SimpleDraweeView simpleDraweeView2, @NonNull View view, @NonNull TextView textView3, @NonNull MaterialButton materialButton3, @NonNull TextView textView4, @NonNull MaterialButton materialButton4, @NonNull ConstraintLayout constraintLayout2) {
|
||||||
this.a = constraintLayout;
|
this.a = constraintLayout;
|
||||||
this.b = materialButton;
|
this.b = frameLayout;
|
||||||
this.f1816c = materialButton2;
|
this.f1816c = materialButton;
|
||||||
this.d = textView;
|
this.d = materialButton2;
|
||||||
this.e = textView2;
|
this.e = textView;
|
||||||
this.f = simpleDraweeView;
|
this.f = textView2;
|
||||||
this.g = simpleDraweeView2;
|
this.g = simpleDraweeView;
|
||||||
this.h = view;
|
this.h = simpleDraweeView2;
|
||||||
this.i = textView3;
|
this.i = view;
|
||||||
this.j = textView4;
|
this.j = textView3;
|
||||||
this.k = materialButton3;
|
this.k = materialButton3;
|
||||||
|
this.l = textView4;
|
||||||
|
this.m = materialButton4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // androidx.viewbinding.ViewBinding
|
@Override // androidx.viewbinding.ViewBinding
|
||||||
|
|
|
@ -10,6 +10,7 @@ import d0.z.d.m;
|
||||||
public final class ModelGift {
|
public final class ModelGift {
|
||||||
private final String code;
|
private final String code;
|
||||||
private final String expiresAt;
|
private final String expiresAt;
|
||||||
|
private final Integer giftStyle;
|
||||||
private final int maxUses;
|
private final int maxUses;
|
||||||
private final boolean redeemed;
|
private final boolean redeemed;
|
||||||
private final long skuId;
|
private final long skuId;
|
||||||
|
@ -19,7 +20,7 @@ public final class ModelGift {
|
||||||
private final User user;
|
private final User user;
|
||||||
private final int uses;
|
private final int uses;
|
||||||
|
|
||||||
public ModelGift(long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan) {
|
public ModelGift(long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan, Integer num) {
|
||||||
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_CODE);
|
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_CODE);
|
||||||
this.skuId = j;
|
this.skuId = j;
|
||||||
this.redeemed = z2;
|
this.redeemed = z2;
|
||||||
|
@ -31,10 +32,11 @@ public final class ModelGift {
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.subscriptionPlanId = l;
|
this.subscriptionPlanId = l;
|
||||||
this.subscriptionPlan = subscriptionPlan;
|
this.subscriptionPlan = subscriptionPlan;
|
||||||
|
this.giftStyle = num;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static /* synthetic */ ModelGift copy$default(ModelGift modelGift, long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan, int i3, Object obj) {
|
public static /* synthetic */ ModelGift copy$default(ModelGift modelGift, long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan, Integer num, int i3, Object obj) {
|
||||||
return modelGift.copy((i3 & 1) != 0 ? modelGift.skuId : j, (i3 & 2) != 0 ? modelGift.redeemed : z2, (i3 & 4) != 0 ? modelGift.expiresAt : str, (i3 & 8) != 0 ? modelGift.code : str2, (i3 & 16) != 0 ? modelGift.uses : i, (i3 & 32) != 0 ? modelGift.storeListing : modelStoreListing, (i3 & 64) != 0 ? modelGift.maxUses : i2, (i3 & 128) != 0 ? modelGift.user : user, (i3 & 256) != 0 ? modelGift.subscriptionPlanId : l, (i3 & 512) != 0 ? modelGift.subscriptionPlan : subscriptionPlan);
|
return modelGift.copy((i3 & 1) != 0 ? modelGift.skuId : j, (i3 & 2) != 0 ? modelGift.redeemed : z2, (i3 & 4) != 0 ? modelGift.expiresAt : str, (i3 & 8) != 0 ? modelGift.code : str2, (i3 & 16) != 0 ? modelGift.uses : i, (i3 & 32) != 0 ? modelGift.storeListing : modelStoreListing, (i3 & 64) != 0 ? modelGift.maxUses : i2, (i3 & 128) != 0 ? modelGift.user : user, (i3 & 256) != 0 ? modelGift.subscriptionPlanId : l, (i3 & 512) != 0 ? modelGift.subscriptionPlan : subscriptionPlan, (i3 & 1024) != 0 ? modelGift.giftStyle : num);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final long component1() {
|
public final long component1() {
|
||||||
|
@ -45,6 +47,10 @@ public final class ModelGift {
|
||||||
return this.subscriptionPlan;
|
return this.subscriptionPlan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final Integer component11() {
|
||||||
|
return this.giftStyle;
|
||||||
|
}
|
||||||
|
|
||||||
public final boolean component2() {
|
public final boolean component2() {
|
||||||
return this.redeemed;
|
return this.redeemed;
|
||||||
}
|
}
|
||||||
|
@ -77,9 +83,9 @@ public final class ModelGift {
|
||||||
return this.subscriptionPlanId;
|
return this.subscriptionPlanId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift copy(long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan) {
|
public final ModelGift copy(long j, boolean z2, String str, String str2, int i, ModelStoreListing modelStoreListing, int i2, User user, Long l, SubscriptionPlan subscriptionPlan, Integer num) {
|
||||||
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_CODE);
|
m.checkNotNullParameter(str2, ModelAuditLogEntry.CHANGE_KEY_CODE);
|
||||||
return new ModelGift(j, z2, str, str2, i, modelStoreListing, i2, user, l, subscriptionPlan);
|
return new ModelGift(j, z2, str, str2, i, modelStoreListing, i2, user, l, subscriptionPlan, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
|
@ -90,7 +96,7 @@ public final class ModelGift {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ModelGift modelGift = (ModelGift) obj;
|
ModelGift modelGift = (ModelGift) obj;
|
||||||
return this.skuId == modelGift.skuId && this.redeemed == modelGift.redeemed && m.areEqual(this.expiresAt, modelGift.expiresAt) && m.areEqual(this.code, modelGift.code) && this.uses == modelGift.uses && m.areEqual(this.storeListing, modelGift.storeListing) && this.maxUses == modelGift.maxUses && m.areEqual(this.user, modelGift.user) && m.areEqual(this.subscriptionPlanId, modelGift.subscriptionPlanId) && m.areEqual(this.subscriptionPlan, modelGift.subscriptionPlan);
|
return this.skuId == modelGift.skuId && this.redeemed == modelGift.redeemed && m.areEqual(this.expiresAt, modelGift.expiresAt) && m.areEqual(this.code, modelGift.code) && this.uses == modelGift.uses && m.areEqual(this.storeListing, modelGift.storeListing) && this.maxUses == modelGift.maxUses && m.areEqual(this.user, modelGift.user) && m.areEqual(this.subscriptionPlanId, modelGift.subscriptionPlanId) && m.areEqual(this.subscriptionPlan, modelGift.subscriptionPlan) && m.areEqual(this.giftStyle, modelGift.giftStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final String getCode() {
|
public final String getCode() {
|
||||||
|
@ -109,6 +115,10 @@ public final class ModelGift {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final Integer getGiftStyle() {
|
||||||
|
return this.giftStyle;
|
||||||
|
}
|
||||||
|
|
||||||
public final int getMaxUses() {
|
public final int getMaxUses() {
|
||||||
return this.maxUses;
|
return this.maxUses;
|
||||||
}
|
}
|
||||||
|
@ -164,10 +174,12 @@ public final class ModelGift {
|
||||||
Long l = this.subscriptionPlanId;
|
Long l = this.subscriptionPlanId;
|
||||||
int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31;
|
int hashCode5 = (hashCode4 + (l != null ? l.hashCode() : 0)) * 31;
|
||||||
SubscriptionPlan subscriptionPlan = this.subscriptionPlan;
|
SubscriptionPlan subscriptionPlan = this.subscriptionPlan;
|
||||||
if (subscriptionPlan != null) {
|
int hashCode6 = (hashCode5 + (subscriptionPlan != null ? subscriptionPlan.hashCode() : 0)) * 31;
|
||||||
i6 = subscriptionPlan.hashCode();
|
Integer num = this.giftStyle;
|
||||||
|
if (num != null) {
|
||||||
|
i6 = num.hashCode();
|
||||||
}
|
}
|
||||||
return hashCode5 + i6;
|
return hashCode6 + i6;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean isAnyNitroGift() {
|
public final boolean isAnyNitroGift() {
|
||||||
|
@ -220,7 +232,7 @@ public final class ModelGift {
|
||||||
R.append(this.subscriptionPlanId);
|
R.append(this.subscriptionPlanId);
|
||||||
R.append(", subscriptionPlan=");
|
R.append(", subscriptionPlan=");
|
||||||
R.append(this.subscriptionPlan);
|
R.append(this.subscriptionPlan);
|
||||||
R.append(")");
|
R.append(", giftStyle=");
|
||||||
return R.toString();
|
return a.E(R, this.giftStyle, ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,15 +38,15 @@ public final class NullSerializableTypeAdapter<T> extends TypeAdapter<NullSerial
|
||||||
Objects.requireNonNull(i, "null cannot be cast to non-null type com.google.gson.TypeAdapter<T>");
|
Objects.requireNonNull(i, "null cannot be cast to non-null type com.google.gson.TypeAdapter<T>");
|
||||||
i.write(jsonWriter, a);
|
i.write(jsonWriter, a);
|
||||||
} else if (nullSerializable instanceof NullSerializable.a) {
|
} else if (nullSerializable instanceof NullSerializable.a) {
|
||||||
boolean z2 = jsonWriter.f2472s;
|
boolean z2 = jsonWriter.f2473s;
|
||||||
jsonWriter.f2472s = true;
|
jsonWriter.f2473s = true;
|
||||||
jsonWriter.s();
|
jsonWriter.s();
|
||||||
jsonWriter.f2472s = z2;
|
jsonWriter.f2473s = z2;
|
||||||
} else if (nullSerializable == null) {
|
} else if (nullSerializable == null) {
|
||||||
boolean z3 = jsonWriter.f2472s;
|
boolean z3 = jsonWriter.f2473s;
|
||||||
jsonWriter.f2472s = false;
|
jsonWriter.f2473s = false;
|
||||||
jsonWriter.s();
|
jsonWriter.s();
|
||||||
jsonWriter.f2472s = z3;
|
jsonWriter.f2473s = z3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ public final class BreadcrumbInterceptor implements Interceptor {
|
||||||
public Response intercept(Interceptor.Chain chain) {
|
public Response intercept(Interceptor.Chain chain) {
|
||||||
m.checkNotNullParameter(chain, "chain");
|
m.checkNotNullParameter(chain, "chain");
|
||||||
Request c2 = chain.c();
|
Request c2 = chain.c();
|
||||||
String str = c2.f2968c;
|
String str = c2.f2969c;
|
||||||
w wVar = c2.b;
|
w wVar = c2.b;
|
||||||
Logger logger = this.logger;
|
Logger logger = this.logger;
|
||||||
logger.recordBreadcrumb("HTTP[" + str + "] - " + wVar, "http");
|
logger.recordBreadcrumb("HTTP[" + str + "] - " + wVar, "http");
|
||||||
|
|
|
@ -45,7 +45,7 @@ public final class RequiredHeadersInterceptor implements Interceptor {
|
||||||
m.checkParameterIsNotNull(c2, "request");
|
m.checkParameterIsNotNull(c2, "request");
|
||||||
new LinkedHashMap();
|
new LinkedHashMap();
|
||||||
w wVar = c2.b;
|
w wVar = c2.b;
|
||||||
String str = c2.f2968c;
|
String str = c2.f2969c;
|
||||||
RequestBody requestBody = c2.e;
|
RequestBody requestBody = c2.e;
|
||||||
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
||||||
Headers.a e = c2.d.e();
|
Headers.a e = c2.d.e();
|
||||||
|
|
|
@ -184,7 +184,7 @@ public final class RestAPIBuilder {
|
||||||
if (list != null) {
|
if (list != null) {
|
||||||
for (Interceptor interceptor : list) {
|
for (Interceptor interceptor : list) {
|
||||||
m.checkParameterIsNotNull(interceptor, "interceptor");
|
m.checkParameterIsNotNull(interceptor, "interceptor");
|
||||||
aVar.f2879c.add(interceptor);
|
aVar.f2880c.add(interceptor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (l != null) {
|
if (l != null) {
|
||||||
|
@ -193,10 +193,10 @@ public final class RestAPIBuilder {
|
||||||
aVar.a(longValue, timeUnit);
|
aVar.a(longValue, timeUnit);
|
||||||
long longValue2 = l.longValue();
|
long longValue2 = l.longValue();
|
||||||
m.checkParameterIsNotNull(timeUnit, "unit");
|
m.checkParameterIsNotNull(timeUnit, "unit");
|
||||||
aVar.f2883z = f0.e0.c.b("timeout", longValue2, timeUnit);
|
aVar.f2884z = f0.e0.c.b("timeout", longValue2, timeUnit);
|
||||||
long longValue3 = l.longValue();
|
long longValue3 = l.longValue();
|
||||||
m.checkParameterIsNotNull(timeUnit, "unit");
|
m.checkParameterIsNotNull(timeUnit, "unit");
|
||||||
aVar.f2881x = f0.e0.c.b("timeout", longValue3, timeUnit);
|
aVar.f2882x = f0.e0.c.b("timeout", longValue3, timeUnit);
|
||||||
}
|
}
|
||||||
p pVar = this.cookieJar;
|
p pVar = this.cookieJar;
|
||||||
m.checkParameterIsNotNull(pVar, "cookieJar");
|
m.checkParameterIsNotNull(pVar, "cookieJar");
|
||||||
|
|
|
@ -30,7 +30,7 @@ public final class SpotifyTokenInterceptor implements Interceptor {
|
||||||
m.checkParameterIsNotNull(c2, "request");
|
m.checkParameterIsNotNull(c2, "request");
|
||||||
new LinkedHashMap();
|
new LinkedHashMap();
|
||||||
w wVar = c2.b;
|
w wVar = c2.b;
|
||||||
String str = c2.f2968c;
|
String str = c2.f2969c;
|
||||||
RequestBody requestBody = c2.e;
|
RequestBody requestBody = c2.e;
|
||||||
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
||||||
Headers.a e = c2.d.e();
|
Headers.a e = c2.d.e();
|
||||||
|
|
|
@ -33,7 +33,7 @@ public final class RetryWithDelay$restRetry$1 extends o implements Function1<Thr
|
||||||
HttpException httpException = (HttpException) th;
|
HttpException httpException = (HttpException) th;
|
||||||
int a = httpException.a();
|
int a = httpException.a();
|
||||||
retrofit2.Response<?> response2 = httpException.i;
|
retrofit2.Response<?> response2 = httpException.i;
|
||||||
if (!(response2 == null || (response = response2.a) == null || (request = response.i) == null || (str = request.f2968c) == null || !(!m.areEqual(str, ShareTarget.METHOD_GET))) || a == 401 || a == 429 || a == 503 || a == 403 || a == 404) {
|
if (!(response2 == null || (response = response2.a) == null || (request = response.i) == null || (str = request.f2969c) == null || !(!m.areEqual(str, ShareTarget.METHOD_GET))) || a == 401 || a == 429 || a == 503 || a == 403 || a == 404) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (th instanceof TimeoutException) {
|
} else if (th instanceof TimeoutException) {
|
||||||
|
|
|
@ -52,6 +52,24 @@ public class RLottieImageView extends AppCompatImageView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final void c(int i, int i2, int i3) {
|
||||||
|
RLottieDrawable.PlaybackMode playbackMode = RLottieDrawable.PlaybackMode.LOOP;
|
||||||
|
m.checkParameterIsNotNull(playbackMode, "playbackMode");
|
||||||
|
Context context = getContext();
|
||||||
|
m.checkExpressionValueIsNotNull(context, "context");
|
||||||
|
String valueOf = String.valueOf(i);
|
||||||
|
Context context2 = getContext();
|
||||||
|
m.checkExpressionValueIsNotNull(context2, "context");
|
||||||
|
RLottieDrawable rLottieDrawable = new RLottieDrawable(context, i, valueOf, i2, i3, a(context2).getRefreshRate(), false, (int[]) null);
|
||||||
|
this.i = rLottieDrawable;
|
||||||
|
rLottieDrawable.f(playbackMode);
|
||||||
|
RLottieDrawable rLottieDrawable2 = this.i;
|
||||||
|
if (rLottieDrawable2 != null) {
|
||||||
|
rLottieDrawable2.e(true);
|
||||||
|
}
|
||||||
|
setImageDrawable(this.i);
|
||||||
|
}
|
||||||
|
|
||||||
@Override // android.widget.ImageView, android.view.View
|
@Override // android.widget.ImageView, android.view.View
|
||||||
public void onAttachedToWindow() {
|
public void onAttachedToWindow() {
|
||||||
RLottieDrawable rLottieDrawable;
|
RLottieDrawable rLottieDrawable;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.discord.stores;
|
package com.discord.stores;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.core.view.PointerIconCompat;
|
|
||||||
import com.discord.models.domain.ModelGift;
|
import com.discord.models.domain.ModelGift;
|
||||||
import com.discord.restapi.RestAPIAbortCodes;
|
import com.discord.restapi.RestAPIAbortCodes;
|
||||||
import com.discord.stores.StoreGifting;
|
import com.discord.stores.StoreGifting;
|
||||||
|
@ -51,11 +50,11 @@ public final class StoreGifting$acceptGift$1 extends o implements Function0<Unit
|
||||||
StoreGifting storeGifting = storeGifting$acceptGift$1.this$0;
|
StoreGifting storeGifting = storeGifting$acceptGift$1.this$0;
|
||||||
String code = storeGifting$acceptGift$1.$gift.getCode();
|
String code = storeGifting$acceptGift$1.$gift.getCode();
|
||||||
ModelGift modelGift = this.this$0.this$0.$gift;
|
ModelGift modelGift = this.this$0.this$0.$gift;
|
||||||
StoreGifting.access$setGifts(storeGifting, code, new StoreGifting.GiftState.Resolved(ModelGift.copy$default(modelGift, 0, false, null, null, modelGift.getMaxUses(), null, 0, null, null, null, PointerIconCompat.TYPE_CROSSHAIR, null)));
|
StoreGifting.access$setGifts(storeGifting, code, new StoreGifting.GiftState.Resolved(ModelGift.copy$default(modelGift, 0, false, null, null, modelGift.getMaxUses(), null, 0, null, null, null, null, 2031, null)));
|
||||||
return;
|
return;
|
||||||
case RestAPIAbortCodes.GIFTING_ALREADY_OWNED_ERROR_CODE /* 50051 */:
|
case RestAPIAbortCodes.GIFTING_ALREADY_OWNED_ERROR_CODE /* 50051 */:
|
||||||
StoreGifting$acceptGift$1 storeGifting$acceptGift$12 = this.this$0.this$0;
|
StoreGifting$acceptGift$1 storeGifting$acceptGift$12 = this.this$0.this$0;
|
||||||
StoreGifting.access$setGifts(storeGifting$acceptGift$12.this$0, storeGifting$acceptGift$12.$gift.getCode(), new StoreGifting.GiftState.Resolved(ModelGift.copy$default(this.this$0.this$0.$gift, 0, true, null, null, 0, null, 0, null, null, null, PointerIconCompat.TYPE_GRABBING, null)));
|
StoreGifting.access$setGifts(storeGifting$acceptGift$12.this$0, storeGifting$acceptGift$12.$gift.getCode(), new StoreGifting.GiftState.Resolved(ModelGift.copy$default(this.this$0.this$0.$gift, 0, true, null, null, 0, null, 0, null, null, null, null, 2045, null)));
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
StoreGifting$acceptGift$1 storeGifting$acceptGift$13 = this.this$0.this$0;
|
StoreGifting$acceptGift$1 storeGifting$acceptGift$13 = this.this$0.this$0;
|
||||||
|
@ -114,7 +113,7 @@ public final class StoreGifting$acceptGift$1 extends o implements Function0<Unit
|
||||||
/* renamed from: invoke */
|
/* renamed from: invoke */
|
||||||
public final void mo1invoke() {
|
public final void mo1invoke() {
|
||||||
StoreGifting$acceptGift$1 storeGifting$acceptGift$1 = this.this$0.this$0;
|
StoreGifting$acceptGift$1 storeGifting$acceptGift$1 = this.this$0.this$0;
|
||||||
StoreGifting.access$setGifts(storeGifting$acceptGift$1.this$0, storeGifting$acceptGift$1.$gift.getCode(), new StoreGifting.GiftState.Resolved(ModelGift.copy$default(this.this$0.this$0.$gift, 0, true, null, null, 0, null, 0, null, null, null, PointerIconCompat.TYPE_GRABBING, null)));
|
StoreGifting.access$setGifts(storeGifting$acceptGift$1.this$0, storeGifting$acceptGift$1.$gift.getCode(), new StoreGifting.GiftState.Resolved(ModelGift.copy$default(this.this$0.this$0.$gift, 0, true, null, null, 0, null, 0, null, null, null, null, 2045, null)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ public final class StoreGifting {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: StoreGifting.kt */
|
/* compiled from: StoreGifting.kt */
|
||||||
public static final class RedeemedFailed extends GiftState {
|
public static final class RedeemedFailed extends GiftState implements HasGift {
|
||||||
private final boolean canRetry;
|
private final boolean canRetry;
|
||||||
private final Integer errorCode;
|
private final Integer errorCode;
|
||||||
private final ModelGift gift;
|
private final ModelGift gift;
|
||||||
|
@ -94,7 +94,7 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public static /* synthetic */ RedeemedFailed copy$default(RedeemedFailed redeemedFailed, ModelGift modelGift, boolean z2, Integer num, int i, Object obj) {
|
public static /* synthetic */ RedeemedFailed copy$default(RedeemedFailed redeemedFailed, ModelGift modelGift, boolean z2, Integer num, int i, Object obj) {
|
||||||
if ((i & 1) != 0) {
|
if ((i & 1) != 0) {
|
||||||
modelGift = redeemedFailed.gift;
|
modelGift = redeemedFailed.getGift();
|
||||||
}
|
}
|
||||||
if ((i & 2) != 0) {
|
if ((i & 2) != 0) {
|
||||||
z2 = redeemedFailed.canRetry;
|
z2 = redeemedFailed.canRetry;
|
||||||
|
@ -106,7 +106,7 @@ public final class StoreGifting {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift component1() {
|
public final ModelGift component1() {
|
||||||
return this.gift;
|
return getGift();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean component2() {
|
public final boolean component2() {
|
||||||
|
@ -130,7 +130,7 @@ public final class StoreGifting {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
RedeemedFailed redeemedFailed = (RedeemedFailed) obj;
|
RedeemedFailed redeemedFailed = (RedeemedFailed) obj;
|
||||||
return m.areEqual(this.gift, redeemedFailed.gift) && this.canRetry == redeemedFailed.canRetry && m.areEqual(this.errorCode, redeemedFailed.errorCode);
|
return m.areEqual(getGift(), redeemedFailed.getGift()) && this.canRetry == redeemedFailed.canRetry && m.areEqual(this.errorCode, redeemedFailed.errorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean getCanRetry() {
|
public final boolean getCanRetry() {
|
||||||
|
@ -141,14 +141,15 @@ public final class StoreGifting {
|
||||||
return this.errorCode;
|
return this.errorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift getGift() {
|
@Override // com.discord.stores.StoreGifting.HasGift
|
||||||
|
public ModelGift getGift() {
|
||||||
return this.gift;
|
return this.gift;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
ModelGift modelGift = this.gift;
|
ModelGift gift = getGift();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int hashCode = (modelGift != null ? modelGift.hashCode() : 0) * 31;
|
int hashCode = (gift != null ? gift.hashCode() : 0) * 31;
|
||||||
boolean z2 = this.canRetry;
|
boolean z2 = this.canRetry;
|
||||||
if (z2) {
|
if (z2) {
|
||||||
z2 = true;
|
z2 = true;
|
||||||
|
@ -166,7 +167,7 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder R = a.R("RedeemedFailed(gift=");
|
StringBuilder R = a.R("RedeemedFailed(gift=");
|
||||||
R.append(this.gift);
|
R.append(getGift());
|
||||||
R.append(", canRetry=");
|
R.append(", canRetry=");
|
||||||
R.append(this.canRetry);
|
R.append(this.canRetry);
|
||||||
R.append(", errorCode=");
|
R.append(", errorCode=");
|
||||||
|
@ -175,7 +176,7 @@ public final class StoreGifting {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: StoreGifting.kt */
|
/* compiled from: StoreGifting.kt */
|
||||||
public static final class Redeeming extends GiftState {
|
public static final class Redeeming extends GiftState implements HasGift {
|
||||||
private final ModelGift gift;
|
private final ModelGift gift;
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
|
@ -187,13 +188,13 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public static /* synthetic */ Redeeming copy$default(Redeeming redeeming, ModelGift modelGift, int i, Object obj) {
|
public static /* synthetic */ Redeeming copy$default(Redeeming redeeming, ModelGift modelGift, int i, Object obj) {
|
||||||
if ((i & 1) != 0) {
|
if ((i & 1) != 0) {
|
||||||
modelGift = redeeming.gift;
|
modelGift = redeeming.getGift();
|
||||||
}
|
}
|
||||||
return redeeming.copy(modelGift);
|
return redeeming.copy(modelGift);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift component1() {
|
public final ModelGift component1() {
|
||||||
return this.gift;
|
return getGift();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final Redeeming copy(ModelGift modelGift) {
|
public final Redeeming copy(ModelGift modelGift) {
|
||||||
|
@ -203,33 +204,34 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (this != obj) {
|
if (this != obj) {
|
||||||
return (obj instanceof Redeeming) && m.areEqual(this.gift, ((Redeeming) obj).gift);
|
return (obj instanceof Redeeming) && m.areEqual(getGift(), ((Redeeming) obj).getGift());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift getGift() {
|
@Override // com.discord.stores.StoreGifting.HasGift
|
||||||
|
public ModelGift getGift() {
|
||||||
return this.gift;
|
return this.gift;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
ModelGift modelGift = this.gift;
|
ModelGift gift = getGift();
|
||||||
if (modelGift != null) {
|
if (gift != null) {
|
||||||
return modelGift.hashCode();
|
return gift.hashCode();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder R = a.R("Redeeming(gift=");
|
StringBuilder R = a.R("Redeeming(gift=");
|
||||||
R.append(this.gift);
|
R.append(getGift());
|
||||||
R.append(")");
|
R.append(")");
|
||||||
return R.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: StoreGifting.kt */
|
/* compiled from: StoreGifting.kt */
|
||||||
public static final class Resolved extends GiftState {
|
public static final class Resolved extends GiftState implements HasGift {
|
||||||
private final ModelGift gift;
|
private final ModelGift gift;
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
|
@ -241,13 +243,13 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public static /* synthetic */ Resolved copy$default(Resolved resolved, ModelGift modelGift, int i, Object obj) {
|
public static /* synthetic */ Resolved copy$default(Resolved resolved, ModelGift modelGift, int i, Object obj) {
|
||||||
if ((i & 1) != 0) {
|
if ((i & 1) != 0) {
|
||||||
modelGift = resolved.gift;
|
modelGift = resolved.getGift();
|
||||||
}
|
}
|
||||||
return resolved.copy(modelGift);
|
return resolved.copy(modelGift);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift component1() {
|
public final ModelGift component1() {
|
||||||
return this.gift;
|
return getGift();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final Resolved copy(ModelGift modelGift) {
|
public final Resolved copy(ModelGift modelGift) {
|
||||||
|
@ -257,33 +259,34 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (this != obj) {
|
if (this != obj) {
|
||||||
return (obj instanceof Resolved) && m.areEqual(this.gift, ((Resolved) obj).gift);
|
return (obj instanceof Resolved) && m.areEqual(getGift(), ((Resolved) obj).getGift());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift getGift() {
|
@Override // com.discord.stores.StoreGifting.HasGift
|
||||||
|
public ModelGift getGift() {
|
||||||
return this.gift;
|
return this.gift;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
ModelGift modelGift = this.gift;
|
ModelGift gift = getGift();
|
||||||
if (modelGift != null) {
|
if (gift != null) {
|
||||||
return modelGift.hashCode();
|
return gift.hashCode();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder R = a.R("Resolved(gift=");
|
StringBuilder R = a.R("Resolved(gift=");
|
||||||
R.append(this.gift);
|
R.append(getGift());
|
||||||
R.append(")");
|
R.append(")");
|
||||||
return R.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compiled from: StoreGifting.kt */
|
/* compiled from: StoreGifting.kt */
|
||||||
public static final class Revoking extends GiftState {
|
public static final class Revoking extends GiftState implements HasGift {
|
||||||
private final ModelGift gift;
|
private final ModelGift gift;
|
||||||
|
|
||||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||||
|
@ -295,13 +298,13 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public static /* synthetic */ Revoking copy$default(Revoking revoking, ModelGift modelGift, int i, Object obj) {
|
public static /* synthetic */ Revoking copy$default(Revoking revoking, ModelGift modelGift, int i, Object obj) {
|
||||||
if ((i & 1) != 0) {
|
if ((i & 1) != 0) {
|
||||||
modelGift = revoking.gift;
|
modelGift = revoking.getGift();
|
||||||
}
|
}
|
||||||
return revoking.copy(modelGift);
|
return revoking.copy(modelGift);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift component1() {
|
public final ModelGift component1() {
|
||||||
return this.gift;
|
return getGift();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final Revoking copy(ModelGift modelGift) {
|
public final Revoking copy(ModelGift modelGift) {
|
||||||
|
@ -311,26 +314,27 @@ public final class StoreGifting {
|
||||||
|
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (this != obj) {
|
if (this != obj) {
|
||||||
return (obj instanceof Revoking) && m.areEqual(this.gift, ((Revoking) obj).gift);
|
return (obj instanceof Revoking) && m.areEqual(getGift(), ((Revoking) obj).getGift());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final ModelGift getGift() {
|
@Override // com.discord.stores.StoreGifting.HasGift
|
||||||
|
public ModelGift getGift() {
|
||||||
return this.gift;
|
return this.gift;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
ModelGift modelGift = this.gift;
|
ModelGift gift = getGift();
|
||||||
if (modelGift != null) {
|
if (gift != null) {
|
||||||
return modelGift.hashCode();
|
return gift.hashCode();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder R = a.R("Revoking(gift=");
|
StringBuilder R = a.R("Revoking(gift=");
|
||||||
R.append(this.gift);
|
R.append(getGift());
|
||||||
R.append(")");
|
R.append(")");
|
||||||
return R.toString();
|
return R.toString();
|
||||||
}
|
}
|
||||||
|
@ -344,6 +348,11 @@ public final class StoreGifting {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* compiled from: StoreGifting.kt */
|
||||||
|
public interface HasGift {
|
||||||
|
ModelGift getGift();
|
||||||
|
}
|
||||||
|
|
||||||
public final /* synthetic */ class WhenMappings {
|
public final /* synthetic */ class WhenMappings {
|
||||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||||
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
||||||
|
|
|
@ -30,7 +30,7 @@ public final class RestCallStateKt$logNetworkAction$2<T> implements Action1<Resp
|
||||||
m.checkNotNullExpressionValue(response, "response");
|
m.checkNotNullExpressionValue(response, "response");
|
||||||
if (response.a()) {
|
if (response.a()) {
|
||||||
Request request = RestCallStateKt.getRequest(response);
|
Request request = RestCallStateKt.getRequest(response);
|
||||||
if (GrowthTeamFeatures.INSTANCE.isNetworkActionLoggingEnabled() && (schema = RestCallStateKt.getSchema(this.$networkActionProvider, new TrackNetworkMetadata(request.b.l, request.f2968c, Long.valueOf((long) response.a.l), null, null, 24), response.b)) != null) {
|
if (GrowthTeamFeatures.INSTANCE.isNetworkActionLoggingEnabled() && (schema = RestCallStateKt.getSchema(this.$networkActionProvider, new TrackNetworkMetadata(request.b.l, request.f2969c, Long.valueOf((long) response.a.l), null, null, 24), response.b)) != null) {
|
||||||
this.$tracker.track(schema);
|
this.$tracker.track(schema);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ public final class RestCallStateKt$logNetworkAction$3<T> implements Action1<Thro
|
||||||
Response<?> response = httpException.i;
|
Response<?> response = httpException.i;
|
||||||
if (!(response == null || (request = RestCallStateKt.getRequest(response)) == null)) {
|
if (!(response == null || (request = RestCallStateKt.getRequest(response)) == null)) {
|
||||||
String str = request.b.l;
|
String str = request.b.l;
|
||||||
String str2 = request.f2968c;
|
String str2 = request.f2969c;
|
||||||
Response<?> response2 = httpException.i;
|
Response<?> response2 = httpException.i;
|
||||||
Long valueOf = response2 != null ? Long.valueOf((long) response2.a.l) : null;
|
Long valueOf = response2 != null ? Long.valueOf((long) response2.a.l) : null;
|
||||||
Response<?> response3 = httpException.i;
|
Response<?> response3 = httpException.i;
|
||||||
|
|
|
@ -80,7 +80,7 @@ public final class GoogleSmartLockManager$saveCredentials$1 extends o implements
|
||||||
UserUtils userUtils = UserUtils.INSTANCE;
|
UserUtils userUtils = UserUtils.INSTANCE;
|
||||||
m.checkNotNullExpressionValue(meUser, "it");
|
m.checkNotNullExpressionValue(meUser, "it");
|
||||||
aVar.b = UserUtils.getUserNameWithDiscriminator$default(userUtils, meUser, null, null, 3, null).toString();
|
aVar.b = UserUtils.getUserNameWithDiscriminator$default(userUtils, meUser, null, null, 3, null).toString();
|
||||||
aVar.f2379c = Uri.parse(forUser$default);
|
aVar.f2380c = Uri.parse(forUser$default);
|
||||||
Credential a = aVar.a();
|
Credential a = aVar.a();
|
||||||
CredentialsClient access$getCredentialsClient$p = GoogleSmartLockManager.access$getCredentialsClient$p(this.this$0);
|
CredentialsClient access$getCredentialsClient$p = GoogleSmartLockManager.access$getCredentialsClient$p(this.this$0);
|
||||||
Objects.requireNonNull(access$getCredentialsClient$p);
|
Objects.requireNonNull(access$getCredentialsClient$p);
|
||||||
|
|
|
@ -145,7 +145,7 @@ public final class CaptchaHelper$tryShowCaptcha$1<T> implements Action1<Emitter<
|
||||||
builder.a = siteKey;
|
builder.a = siteKey;
|
||||||
builder.l = StoreStream.Companion.getUserSettingsSystem().getLocale();
|
builder.l = StoreStream.Companion.getUserSettingsSystem().getLocale();
|
||||||
builder.k = true;
|
builder.k = true;
|
||||||
Boolean bool = builder.f2474c;
|
Boolean bool = builder.f2475c;
|
||||||
if (!builder.b) {
|
if (!builder.b) {
|
||||||
bool = HCaptchaConfig.access$000();
|
bool = HCaptchaConfig.access$000();
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ public final class CaptchaHelper$tryShowCaptcha$1<T> implements Action1<Emitter<
|
||||||
} else if (captchaRequest instanceof CaptchaHelper.CaptchaRequest.ReCaptcha) {
|
} else if (captchaRequest instanceof CaptchaHelper.CaptchaRequest.ReCaptcha) {
|
||||||
Activity activity2 = ((CaptchaHelper.CaptchaRequest.ReCaptcha) captchaRequest).getActivity();
|
Activity activity2 = ((CaptchaHelper.CaptchaRequest.ReCaptcha) captchaRequest).getActivity();
|
||||||
CaptchaHelper captchaHelper = CaptchaHelper.INSTANCE;
|
CaptchaHelper captchaHelper = CaptchaHelper.INSTANCE;
|
||||||
Object obj = GoogleApiAvailability.f2385c;
|
Object obj = GoogleApiAvailability.f2386c;
|
||||||
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.d;
|
||||||
m.checkNotNullExpressionValue(googleApiAvailability, "GoogleApiAvailability\n .getInstance()");
|
m.checkNotNullExpressionValue(googleApiAvailability, "GoogleApiAvailability\n .getInstance()");
|
||||||
CaptchaHelper.access$ensurePlayServicesAvailable(captchaHelper, googleApiAvailability, activity2, new AnonymousClass3(activity2, emitter, captchaHelper$tryShowCaptcha$1$errorHandler$1), captchaHelper$tryShowCaptcha$1$errorHandler$1);
|
CaptchaHelper.access$ensurePlayServicesAvailable(captchaHelper, googleApiAvailability, activity2, new AnonymousClass3(activity2, emitter, captchaHelper$tryShowCaptcha$1$errorHandler$1), captchaHelper$tryShowCaptcha$1$errorHandler$1);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public final class ColorPickerUtils {
|
||||||
int[] iArr = ColorPickerDialog.i;
|
int[] iArr = ColorPickerDialog.i;
|
||||||
ColorPickerDialog.k kVar = new ColorPickerDialog.k();
|
ColorPickerDialog.k kVar = new ColorPickerDialog.k();
|
||||||
kVar.h = i2;
|
kVar.h = i2;
|
||||||
kVar.f2481s = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundPrimary);
|
kVar.f2482s = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundPrimary);
|
||||||
kVar.i = false;
|
kVar.i = false;
|
||||||
Resources resources = context.getResources();
|
Resources resources = context.getResources();
|
||||||
m.checkNotNullExpressionValue(resources, "context.resources");
|
m.checkNotNullExpressionValue(resources, "context.resources");
|
||||||
|
@ -49,9 +49,9 @@ public final class ColorPickerUtils {
|
||||||
kVar.a = i;
|
kVar.a = i;
|
||||||
kVar.r = ColorCompat.getThemedColor(context, (int) R.attr.colorHeaderPrimary);
|
kVar.r = ColorCompat.getThemedColor(context, (int) R.attr.colorHeaderPrimary);
|
||||||
FontUtils fontUtils = FontUtils.INSTANCE;
|
FontUtils fontUtils = FontUtils.INSTANCE;
|
||||||
kVar.f2482x = fontUtils.getThemedFontResId(context, R.attr.font_display_bold);
|
kVar.f2483x = fontUtils.getThemedFontResId(context, R.attr.font_display_bold);
|
||||||
kVar.o = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundAccent);
|
kVar.o = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundAccent);
|
||||||
kVar.f2480c = R.string.color_picker_custom;
|
kVar.f2481c = R.string.color_picker_custom;
|
||||||
kVar.v = ColorCompat.getColor(context, (int) R.color.white);
|
kVar.v = ColorCompat.getColor(context, (int) R.color.white);
|
||||||
kVar.b = R.string.color_picker_presets;
|
kVar.b = R.string.color_picker_presets;
|
||||||
kVar.p = ColorCompat.getThemedColor(context, (int) R.attr.color_brand);
|
kVar.p = ColorCompat.getThemedColor(context, (int) R.attr.color_brand);
|
||||||
|
@ -59,11 +59,11 @@ public final class ColorPickerUtils {
|
||||||
kVar.l = true;
|
kVar.l = true;
|
||||||
kVar.e = R.string.reset;
|
kVar.e = R.string.reset;
|
||||||
kVar.w = ColorCompat.getColor(context, (int) R.color.white);
|
kVar.w = ColorCompat.getColor(context, (int) R.color.white);
|
||||||
kVar.f2483y = fontUtils.getThemedFontResId(context, R.attr.font_primary_semibold);
|
kVar.f2484y = fontUtils.getThemedFontResId(context, R.attr.font_primary_semibold);
|
||||||
kVar.q = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundModifierAccent);
|
kVar.q = ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundModifierAccent);
|
||||||
kVar.t = ColorCompat.getThemedColor(context, (int) R.attr.colorTextMuted);
|
kVar.t = ColorCompat.getThemedColor(context, (int) R.attr.colorTextMuted);
|
||||||
kVar.u = R.drawable.drawable_cpv_edit_text_background;
|
kVar.u = R.drawable.drawable_cpv_edit_text_background;
|
||||||
kVar.f2484z = fontUtils.getThemedFontResId(context, R.attr.font_primary_normal);
|
kVar.f2485z = fontUtils.getThemedFontResId(context, R.attr.font_primary_normal);
|
||||||
ColorPickerDialog a = kVar.a();
|
ColorPickerDialog a = kVar.a();
|
||||||
m.checkNotNullExpressionValue(a, "ColorPickerDialog.newBui…mal))\n .create()");
|
m.checkNotNullExpressionValue(a, "ColorPickerDialog.newBui…mal))\n .create()");
|
||||||
return a;
|
return a;
|
||||||
|
|
|
@ -564,7 +564,7 @@ public class Error {
|
||||||
retrofit2.Response<?> response2 = httpException.i;
|
retrofit2.Response<?> response2 = httpException.i;
|
||||||
if (response2 != null) {
|
if (response2 != null) {
|
||||||
headers = response2.a.n;
|
headers = response2.a.n;
|
||||||
ResponseBody responseBody = response2.f2979c;
|
ResponseBody responseBody = response2.f2980c;
|
||||||
if (responseBody != null) {
|
if (responseBody != null) {
|
||||||
MediaType b = responseBody.b();
|
MediaType b = responseBody.b();
|
||||||
str2 = b != null ? b.d : str5;
|
str2 = b != null ? b.d : str5;
|
||||||
|
|
|
@ -197,7 +197,7 @@ public final class NotificationRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private final NotificationCompat.MessagingStyle getMessageStyle(Context context, NotificationData notificationData, List<NotificationData> list, Map<String, Bitmap> map) {
|
private final NotificationCompat.MessagingStyle getMessageStyle(Context context, NotificationData notificationData, List<NotificationData> list, Map<String, Bitmap> map) {
|
||||||
Person build = new Person.Builder().setName(context.getString(R.string.f2997me)).setKey("me").build();
|
Person build = new Person.Builder().setName(context.getString(R.string.f2998me)).setKey("me").build();
|
||||||
m.checkNotNullExpressionValue(build, "Person.Builder()\n …ey(\"me\")\n .build()");
|
m.checkNotNullExpressionValue(build, "Person.Builder()\n …ey(\"me\")\n .build()");
|
||||||
NotificationCompat.MessagingStyle groupConversation = new NotificationCompat.MessagingStyle(build).setConversationTitle(notificationData.getConversationTitle(context)).setGroupConversation(notificationData.isGroupConversation());
|
NotificationCompat.MessagingStyle groupConversation = new NotificationCompat.MessagingStyle(build).setConversationTitle(notificationData.getConversationTitle(context)).setGroupConversation(notificationData.isGroupConversation());
|
||||||
m.checkNotNullExpressionValue(groupConversation, "NotificationCompat.Messa…tion.isGroupConversation)");
|
m.checkNotNullExpressionValue(groupConversation, "NotificationCompat.Messa…tion.isGroupConversation)");
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.discord.utilities.gifting;
|
||||||
|
|
||||||
|
import d0.z.d.o;
|
||||||
|
import kotlin.jvm.functions.Function0;
|
||||||
|
/* compiled from: GiftStyle.kt */
|
||||||
|
public final class GiftStyle$Companion$values$2 extends o implements Function0<GiftStyle[]> {
|
||||||
|
public static final GiftStyle$Companion$values$2 INSTANCE = new GiftStyle$Companion$values$2();
|
||||||
|
|
||||||
|
public GiftStyle$Companion$values$2() {
|
||||||
|
super(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override // kotlin.jvm.functions.Function0
|
||||||
|
/* renamed from: invoke */
|
||||||
|
public final GiftStyle[] mo1invoke() {
|
||||||
|
return GiftStyle.values();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,75 @@
|
||||||
|
package com.discord.utilities.gifting;
|
||||||
|
|
||||||
|
import androidx.annotation.DrawableRes;
|
||||||
|
import androidx.annotation.RawRes;
|
||||||
|
import com.discord.R;
|
||||||
|
import com.discord.models.domain.ModelGift;
|
||||||
|
import d0.g;
|
||||||
|
import d0.z.d.m;
|
||||||
|
import kotlin.Lazy;
|
||||||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||||
|
/* compiled from: GiftStyle.kt */
|
||||||
|
public enum GiftStyle {
|
||||||
|
WumpusGlobe(1, R.drawable.gift_wumpus_snowglobe, R.raw.anim_gift_wumpus_globe),
|
||||||
|
WumpusBox(2, R.drawable.gift_wumpus_box, R.raw.anim_gift_wumpus_box),
|
||||||
|
WumpusLatte(3, R.drawable.gift_wumpus_latte, R.raw.anim_gift_wumpus_latte);
|
||||||
|
|
||||||
|
public static final Companion Companion = new Companion(null);
|
||||||
|
private static final Lazy values$delegate = g.lazy(GiftStyle$Companion$values$2.INSTANCE);
|
||||||
|
private final int animRes;
|
||||||
|
|
||||||
|
/* renamed from: id reason: collision with root package name */
|
||||||
|
private final int f2228id;
|
||||||
|
private final int staticRes;
|
||||||
|
|
||||||
|
/* compiled from: GiftStyle.kt */
|
||||||
|
public static final class Companion {
|
||||||
|
private Companion() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||||
|
this();
|
||||||
|
}
|
||||||
|
|
||||||
|
private final GiftStyle[] getValues() {
|
||||||
|
Lazy access$getValues$cp = GiftStyle.access$getValues$cp();
|
||||||
|
Companion companion = GiftStyle.Companion;
|
||||||
|
return (GiftStyle[]) access$getValues$cp.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public final GiftStyle from(ModelGift modelGift) {
|
||||||
|
m.checkNotNullParameter(modelGift, "gift");
|
||||||
|
GiftStyle[] values = getValues();
|
||||||
|
for (GiftStyle giftStyle : values) {
|
||||||
|
int id2 = giftStyle.getId();
|
||||||
|
Integer giftStyle2 = modelGift.getGiftStyle();
|
||||||
|
if (giftStyle2 != null && id2 == giftStyle2.intValue()) {
|
||||||
|
return giftStyle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private GiftStyle(int i, @DrawableRes int i2, @RawRes int i3) {
|
||||||
|
this.f2228id = i;
|
||||||
|
this.staticRes = i2;
|
||||||
|
this.animRes = i3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final /* synthetic */ Lazy access$getValues$cp() {
|
||||||
|
return values$delegate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final int getAnimRes() {
|
||||||
|
return this.animRes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final int getId() {
|
||||||
|
return this.f2228id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final int getStaticRes() {
|
||||||
|
return this.staticRes;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.discord.utilities.gifting;
|
||||||
|
|
||||||
|
import com.discord.models.domain.ModelGift;
|
||||||
|
import d0.z.d.m;
|
||||||
|
/* compiled from: GiftStyle.kt */
|
||||||
|
public final class GiftStyleKt {
|
||||||
|
public static final GiftStyle getCustomStyle(ModelGift modelGift) {
|
||||||
|
m.checkNotNullParameter(modelGift, "$this$getCustomStyle");
|
||||||
|
return GiftStyle.Companion.from(modelGift);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final boolean hasCustomStyle(ModelGift modelGift) {
|
||||||
|
m.checkNotNullParameter(modelGift, "$this$hasCustomStyle");
|
||||||
|
return getCustomStyle(modelGift) != null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -44,14 +44,14 @@ public final class GiftingUtils {
|
||||||
|
|
||||||
|
|
||||||
/* renamed from: id reason: collision with root package name */
|
/* renamed from: id reason: collision with root package name */
|
||||||
private final int f2228id;
|
private final int f2229id;
|
||||||
|
|
||||||
private SkuTypes(int i) {
|
private SkuTypes(int i) {
|
||||||
this.f2228id = i;
|
this.f2229id = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int getId() {
|
public final int getId() {
|
||||||
return this.f2228id;
|
return this.f2229id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ public final class MGImages {
|
||||||
z3 = true;
|
z3 = true;
|
||||||
}
|
}
|
||||||
if (z3) {
|
if (z3) {
|
||||||
b.f2300c = new e(i, i2);
|
b.f2301c = new e(i, i2);
|
||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,6 @@ public final class MGImagesConfig$getAppBitmapMemoryCacheParamsSupplier$1 extend
|
||||||
public MemoryCacheParams get() {
|
public MemoryCacheParams get() {
|
||||||
MemoryCacheParams memoryCacheParams = super.get();
|
MemoryCacheParams memoryCacheParams = super.get();
|
||||||
int i = memoryCacheParams.a;
|
int i = memoryCacheParams.a;
|
||||||
return new MemoryCacheParams(i, memoryCacheParams.b, memoryCacheParams.f2291c, memoryCacheParams.d, i / 3, TimeUnit.MINUTES.toMillis(5));
|
return new MemoryCacheParams(i, memoryCacheParams.b, memoryCacheParams.f2292c, memoryCacheParams.d, i / 3, TimeUnit.MINUTES.toMillis(5));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ public final class MGImagesConfig {
|
||||||
DiskCacheConfig.b bVar = new DiskCacheConfig.b(context, null);
|
DiskCacheConfig.b bVar = new DiskCacheConfig.b(context, null);
|
||||||
bVar.b = new k(context.getCacheDir());
|
bVar.b = new k(context.getCacheDir());
|
||||||
bVar.a = str;
|
bVar.a = str;
|
||||||
bVar.f2280c = MAX_DISK_CACHE_SIZE;
|
bVar.f2281c = MAX_DISK_CACHE_SIZE;
|
||||||
DiskCacheConfig diskCacheConfig = new DiskCacheConfig(bVar);
|
DiskCacheConfig diskCacheConfig = new DiskCacheConfig(bVar);
|
||||||
m.checkNotNullExpressionValue(diskCacheConfig, "DiskCacheConfig\n …HE_SIZE)\n .build()");
|
m.checkNotNullExpressionValue(diskCacheConfig, "DiskCacheConfig\n …HE_SIZE)\n .build()");
|
||||||
return diskCacheConfig;
|
return diskCacheConfig;
|
||||||
|
|
|
@ -335,14 +335,14 @@ public abstract class MemberListRow {
|
||||||
|
|
||||||
|
|
||||||
/* renamed from: id reason: collision with root package name */
|
/* renamed from: id reason: collision with root package name */
|
||||||
private final long f2229id;
|
private final long f2230id;
|
||||||
|
|
||||||
private Type(long j) {
|
private Type(long j) {
|
||||||
this.f2229id = j;
|
this.f2230id = j;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final long getId() {
|
public final long getId() {
|
||||||
return this.f2229id;
|
return this.f2230id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.discord.utilities.premium;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import androidx.annotation.DrawableRes;
|
||||||
import androidx.core.app.NotificationCompat;
|
import androidx.core.app.NotificationCompat;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import c.a.k.b;
|
import c.a.k.b;
|
||||||
|
@ -24,7 +25,10 @@ import com.discord.stores.StoreStream;
|
||||||
import com.discord.utilities.analytics.Traits;
|
import com.discord.utilities.analytics.Traits;
|
||||||
import com.discord.utilities.billing.GooglePlayBillingManager;
|
import com.discord.utilities.billing.GooglePlayBillingManager;
|
||||||
import com.discord.utilities.color.ColorCompat;
|
import com.discord.utilities.color.ColorCompat;
|
||||||
|
import com.discord.utilities.drawable.DrawableCompat;
|
||||||
import com.discord.utilities.font.FontUtils;
|
import com.discord.utilities.font.FontUtils;
|
||||||
|
import com.discord.utilities.gifting.GiftStyle;
|
||||||
|
import com.discord.utilities.gifting.GiftStyleKt;
|
||||||
import com.discord.utilities.logging.Logger;
|
import com.discord.utilities.logging.Logger;
|
||||||
import com.discord.utilities.uri.UriHandler;
|
import com.discord.utilities.uri.UriHandler;
|
||||||
import d0.t.m0;
|
import d0.t.m0;
|
||||||
|
@ -304,12 +308,25 @@ public final class PremiumUtils {
|
||||||
return tier3PremiumGuildFeatures.contains(guildFeature) ? 3 : null;
|
return tier3PremiumGuildFeatures.contains(guildFeature) ? 3 : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DrawableRes
|
||||||
|
public final int getNitroGiftBackground(ModelGift modelGift, Context context) {
|
||||||
|
m.checkNotNullParameter(modelGift, "gift");
|
||||||
|
m.checkNotNullParameter(context, "context");
|
||||||
|
return GiftStyleKt.hasCustomStyle(modelGift) ? ColorCompat.getThemedColor(context, (int) R.attr.colorBackgroundSecondaryAlt) : DrawableCompat.getThemedDrawableRes(context, (int) R.attr.gift_nitro_splash, (int) R.drawable.img_nitro_splash_dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DrawableRes
|
||||||
public final int getNitroGiftIcon(ModelGift modelGift) {
|
public final int getNitroGiftIcon(ModelGift modelGift) {
|
||||||
m.checkNotNullParameter(modelGift, "gift");
|
m.checkNotNullParameter(modelGift, "gift");
|
||||||
|
GiftStyle customStyle = GiftStyleKt.getCustomStyle(modelGift);
|
||||||
|
if (customStyle != null) {
|
||||||
|
return customStyle.getStaticRes();
|
||||||
|
}
|
||||||
ModelStoreListing storeListing = modelGift.getStoreListing();
|
ModelStoreListing storeListing = modelGift.getStoreListing();
|
||||||
return getNitroGiftIcon(storeListing != null ? storeListing.getSku() : null);
|
return getNitroGiftIcon(storeListing != null ? storeListing.getSku() : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DrawableRes
|
||||||
public final int getNitroGiftIcon(ModelSku modelSku) {
|
public final int getNitroGiftIcon(ModelSku modelSku) {
|
||||||
ModelSku.SkuCategory skuCategory = modelSku != null ? modelSku.getSkuCategory() : null;
|
ModelSku.SkuCategory skuCategory = modelSku != null ? modelSku.getSkuCategory() : null;
|
||||||
if (skuCategory != null) {
|
if (skuCategory != null) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ public final class AttachmentRequestBody extends RequestBody {
|
||||||
|
|
||||||
@Override // okhttp3.RequestBody
|
@Override // okhttp3.RequestBody
|
||||||
public MediaType contentType() {
|
public MediaType contentType() {
|
||||||
MediaType.a aVar = MediaType.f2965c;
|
MediaType.a aVar = MediaType.f2966c;
|
||||||
return MediaType.a.b(AttachmentUtilsKt.getMimeType(this.attachment, this.contentResolver));
|
return MediaType.a.b(AttachmentUtilsKt.getMimeType(this.attachment, this.contentResolver));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final class RestAPI$Companion$buildAnalyticsInterceptor$$inlined$invoke$1
|
||||||
m.checkParameterIsNotNull(c2, "request");
|
m.checkParameterIsNotNull(c2, "request");
|
||||||
new LinkedHashMap();
|
new LinkedHashMap();
|
||||||
w wVar = c2.b;
|
w wVar = c2.b;
|
||||||
String str = c2.f2968c;
|
String str = c2.f2969c;
|
||||||
RequestBody requestBody = c2.e;
|
RequestBody requestBody = c2.e;
|
||||||
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
Map linkedHashMap = c2.f.isEmpty() ? new LinkedHashMap() : h0.toMutableMap(c2.f);
|
||||||
Headers.a e = c2.d.e();
|
Headers.a e = c2.d.e();
|
||||||
|
|
|
@ -225,7 +225,7 @@ public final class RestAPI implements RestAPIInterface {
|
||||||
a aVar = new a(new RestAPI$Companion$buildLoggingInterceptor$1());
|
a aVar = new a(new RestAPI$Companion$buildLoggingInterceptor$1());
|
||||||
a.EnumC0314a aVar2 = a.EnumC0314a.BASIC;
|
a.EnumC0314a aVar2 = a.EnumC0314a.BASIC;
|
||||||
m.checkParameterIsNotNull(aVar2, "<set-?>");
|
m.checkParameterIsNotNull(aVar2, "<set-?>");
|
||||||
aVar.f2862c = aVar2;
|
aVar.f2863c = aVar2;
|
||||||
return aVar;
|
return aVar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue