86.8 - Stable (86008)
This commit is contained in:
parent
ea5b0ba468
commit
9810645689
|
@ -10,8 +10,8 @@ android {
|
|||
applicationId 'com.discord'
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 85013
|
||||
versionName "85.13 - Stable"
|
||||
versionCode 86008
|
||||
versionName "86.8 - Stable"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="85013" android:versionName="85.13 - Stable" 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="86008" android:versionName="86.8 - Stable" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
|
||||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
|
||||
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
||||
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
|
||||
|
|
|
@ -30,7 +30,7 @@ public class ResultReceiver implements Parcelable {
|
|||
}
|
||||
}
|
||||
|
||||
public class b extends a.AbstractBinderC0356a {
|
||||
public class b extends a.AbstractBinderC0357a {
|
||||
public b() {
|
||||
}
|
||||
|
||||
|
@ -44,12 +44,12 @@ public class ResultReceiver implements Parcelable {
|
|||
public ResultReceiver(Parcel parcel) {
|
||||
x.a.b.c.a aVar;
|
||||
IBinder readStrongBinder = parcel.readStrongBinder();
|
||||
int i = a.AbstractBinderC0356a.a;
|
||||
int i = a.AbstractBinderC0357a.a;
|
||||
if (readStrongBinder == null) {
|
||||
aVar = null;
|
||||
} else {
|
||||
IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("android.support.v4.os.IResultReceiver");
|
||||
aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0356a.C0357a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
|
||||
aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0357a.C0358a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
|
||||
}
|
||||
this.i = aVar;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public class CustomTabsClient {
|
|||
}
|
||||
|
||||
/* renamed from: androidx.browser.customtabs.CustomTabsClient$2 reason: invalid class name */
|
||||
public class AnonymousClass2 extends a.AbstractBinderC0345a {
|
||||
public class AnonymousClass2 extends a.AbstractBinderC0346a {
|
||||
private Handler mHandler = new Handler(Looper.getMainLooper());
|
||||
public final /* synthetic */ CustomTabsCallback val$callback;
|
||||
|
||||
|
@ -219,7 +219,7 @@ public class CustomTabsClient {
|
|||
}
|
||||
}
|
||||
|
||||
private a.AbstractBinderC0345a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) {
|
||||
private a.AbstractBinderC0346a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) {
|
||||
return new AnonymousClass2(customTabsCallback);
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ public class CustomTabsClient {
|
|||
@Nullable
|
||||
private CustomTabsSession newSessionInternal(@Nullable CustomTabsCallback customTabsCallback, @Nullable PendingIntent pendingIntent) {
|
||||
boolean z2;
|
||||
a.AbstractBinderC0345a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
|
||||
a.AbstractBinderC0346a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
|
||||
if (pendingIntent != null) {
|
||||
try {
|
||||
Bundle bundle = new Bundle();
|
||||
|
|
|
@ -83,8 +83,8 @@ public class CustomTabsSessionToken {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MockCallback extends a.AbstractBinderC0345a {
|
||||
@Override // x.a.a.a.AbstractBinderC0345a, android.os.IInterface
|
||||
public static class MockCallback extends a.AbstractBinderC0346a {
|
||||
@Override // x.a.a.a.AbstractBinderC0346a, android.os.IInterface
|
||||
public IBinder asBinder() {
|
||||
return this;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class CustomTabsSessionToken {
|
|||
return null;
|
||||
}
|
||||
if (binder != null) {
|
||||
aVar = a.AbstractBinderC0345a.asInterface(binder);
|
||||
aVar = a.AbstractBinderC0346a.asInterface(binder);
|
||||
}
|
||||
return new CustomTabsSessionToken(aVar, pendingIntent);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public abstract class PostMessageServiceConnection implements PostMessageBackend
|
|||
public PostMessageServiceConnection(@NonNull CustomTabsSessionToken customTabsSessionToken) {
|
||||
IBinder callbackBinder = customTabsSessionToken.getCallbackBinder();
|
||||
if (callbackBinder != null) {
|
||||
this.mSessionBinder = a.AbstractBinderC0345a.asInterface(callbackBinder);
|
||||
this.mSessionBinder = a.AbstractBinderC0346a.asInterface(callbackBinder);
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException("Provided session must have binder.");
|
||||
|
|
|
@ -15,7 +15,7 @@ public class TrustedWebActivityCallbackRemote {
|
|||
|
||||
@Nullable
|
||||
public static TrustedWebActivityCallbackRemote fromBinder(@Nullable IBinder iBinder) {
|
||||
a asInterface = iBinder == null ? null : a.AbstractBinderC0349a.asInterface(iBinder);
|
||||
a asInterface = iBinder == null ? null : a.AbstractBinderC0350a.asInterface(iBinder);
|
||||
if (asInterface == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public final class TrustedWebActivityServiceConnection {
|
|||
private final b mService;
|
||||
|
||||
/* renamed from: androidx.browser.trusted.TrustedWebActivityServiceConnection$1 reason: invalid class name */
|
||||
public class AnonymousClass1 extends a.AbstractBinderC0349a {
|
||||
public class AnonymousClass1 extends a.AbstractBinderC0350a {
|
||||
public final /* synthetic */ TrustedWebActivityCallback val$callback;
|
||||
|
||||
public AnonymousClass1(TrustedWebActivityCallback trustedWebActivityCallback) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package androidx.constraintlayout.solver;
|
||||
|
||||
import androidx.exifinterface.media.ExifInterface;
|
||||
import c.a.q.m0.c.e;
|
||||
import c.a.r.n0.c.e;
|
||||
import c.d.b.a.a;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
|
|
|
@ -9,7 +9,7 @@ import android.os.RemoteException;
|
|||
import x.a.b.a.a;
|
||||
public abstract class NotificationCompatSideChannelService extends Service {
|
||||
|
||||
public class NotificationSideChannelStub extends a.AbstractBinderC0352a {
|
||||
public class NotificationSideChannelStub extends a.AbstractBinderC0353a {
|
||||
public NotificationSideChannelStub() {
|
||||
}
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ public final class NotificationManagerCompat {
|
|||
private void handleServiceConnected(ComponentName componentName, IBinder iBinder) {
|
||||
ListenerRecord listenerRecord = this.mRecordMap.get(componentName);
|
||||
if (listenerRecord != null) {
|
||||
listenerRecord.service = a.AbstractBinderC0352a.asInterface(iBinder);
|
||||
listenerRecord.service = a.AbstractBinderC0353a.asInterface(iBinder);
|
||||
listenerRecord.retryCount = 0;
|
||||
processListenerQueue(listenerRecord);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
|
|||
@Override // d0.d0.a
|
||||
public boolean contains(T t) {
|
||||
m.checkParameterIsNotNull(t, "value");
|
||||
return a.C0192a.contains(this, t);
|
||||
return a.C0193a.contains(this, t);
|
||||
}
|
||||
|
||||
/* JADX WARNING: Unknown variable types count: 1 */
|
||||
|
@ -30,6 +30,6 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
|
|||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return a.C0192a.isEmpty(this);
|
||||
return a.C0193a.isEmpty(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import android.widget.RelativeLayout;
|
|||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.u;
|
||||
import c.a.j.u;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.dialogs.ImageUploadDialog;
|
||||
|
@ -70,7 +70,7 @@ public final class a extends AppDialog {
|
|||
((a) this.j).dismiss();
|
||||
} else if (i == 4) {
|
||||
KProperty[] kPropertyArr = a.i;
|
||||
((a) this.j).g().f165c.toggle();
|
||||
((a) this.j).g().f167c.toggle();
|
||||
} else {
|
||||
throw null;
|
||||
}
|
||||
|
@ -221,10 +221,10 @@ public final class a extends AppDialog {
|
|||
}
|
||||
relativeLayout2.setVisibility(i3);
|
||||
g().d.setOnClickListener(new View$OnClickListenerC0001a(4, this));
|
||||
SwitchMaterial switchMaterial = g().f165c;
|
||||
SwitchMaterial switchMaterial = g().f167c;
|
||||
m.checkNotNullExpressionValue(switchMaterial, "binding.imageUploadFaile…mpressionSettingsCheckbox");
|
||||
switchMaterial.setChecked(StoreStream.Companion.getUserSettings().getIsAutoImageCompressionEnabled());
|
||||
g().f165c.setOnCheckedChangeListener(d.a);
|
||||
g().f167c.setOnCheckedChangeListener(d.a);
|
||||
TextView textView = g().j;
|
||||
m.checkNotNullExpressionValue(textView, "binding.imageUploadFailedText");
|
||||
CharSequence charSequence = null;
|
||||
|
@ -233,16 +233,16 @@ public final class a extends AppDialog {
|
|||
if (context != null) {
|
||||
Object[] objArr = new Object[1];
|
||||
Context context2 = getContext();
|
||||
objArr[0] = context2 != null ? c.a.k.b.g(context2, i4, new Object[0], null, 4) : null;
|
||||
charSequence = c.a.k.b.g(context, R.string.upload_area_too_large_help, objArr, null, 4);
|
||||
objArr[0] = context2 != null ? c.a.l.b.h(context2, i4, new Object[0], null, 4) : null;
|
||||
charSequence = c.a.l.b.h(context, R.string.upload_area_too_large_help, objArr, null, 4);
|
||||
}
|
||||
} else {
|
||||
Context context3 = getContext();
|
||||
if (context3 != null) {
|
||||
Object[] objArr2 = new Object[1];
|
||||
Context context4 = getContext();
|
||||
objArr2[0] = context4 != null ? c.a.k.b.g(context4, i4, new Object[0], null, 4) : null;
|
||||
charSequence = c.a.k.b.g(context3, R.string.upload_area_too_large_help_mobile, objArr2, null, 4);
|
||||
objArr2[0] = context4 != null ? c.a.l.b.h(context4, i4, new Object[0], null, 4) : null;
|
||||
charSequence = c.a.l.b.h(context3, R.string.upload_area_too_large_help_mobile, objArr2, null, 4);
|
||||
}
|
||||
}
|
||||
textView.setText(charSequence);
|
||||
|
|
|
@ -7,10 +7,10 @@ import android.widget.TextView;
|
|||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.b.f;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import c.a.d.o;
|
||||
import c.a.i.n1;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import c.a.e.o;
|
||||
import c.a.j.o1;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewModel;
|
||||
|
@ -80,17 +80,17 @@ public final class a extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: UserActionsDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, n1> {
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, o1> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, n1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/UserActionsDialogBinding;", 0);
|
||||
super(1, o1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/UserActionsDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public n1 invoke(View view) {
|
||||
public o1 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.user_actions_dialog_avatar;
|
||||
|
@ -108,7 +108,7 @@ public final class a extends AppDialog {
|
|||
i2 = R.id.user_actions_dialog_user_name;
|
||||
TextView textView4 = (TextView) view2.findViewById(R.id.user_actions_dialog_user_name);
|
||||
if (textView4 != null) {
|
||||
return new n1((LinearLayout) view2, simpleDraweeView, textView, textView2, textView3, textView4);
|
||||
return new o1((LinearLayout) view2, simpleDraweeView, textView, textView2, textView3, textView4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ public final class a extends AppDialog {
|
|||
Context requireContext = aVar3.requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext, "requireContext()");
|
||||
textView.setText(UserNameFormatterKt.getSpannableForUserNameWithDiscrim(user, str, requireContext, R.attr.colorHeaderPrimary, R.attr.font_primary_semibold, R.integer.uikit_textsize_large_sp, R.attr.colorTextMuted, R.attr.font_primary_normal, R.integer.uikit_textsize_large_sp));
|
||||
TextView textView2 = aVar3.g().f131c;
|
||||
TextView textView2 = aVar3.g().f136c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.userActionsDialogBlockItem");
|
||||
int i = 8;
|
||||
textView2.setVisibility(aVar2.f33c ? 0 : 8);
|
||||
|
@ -235,8 +235,8 @@ public final class a extends AppDialog {
|
|||
this.m = new MGImages.DistinctChangeDetector();
|
||||
}
|
||||
|
||||
public final n1 g() {
|
||||
return (n1) this.k.getValue((Fragment) this, i[0]);
|
||||
public final o1 g() {
|
||||
return (o1) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
public final f h() {
|
||||
|
@ -247,7 +247,7 @@ public final class a extends AppDialog {
|
|||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
g().f131c.setOnClickListener(new View$OnClickListenerC0002a(0, this));
|
||||
g().f136c.setOnClickListener(new View$OnClickListenerC0002a(0, this));
|
||||
g().e.setOnClickListener(new View$OnClickListenerC0002a(1, this));
|
||||
g().d.setOnClickListener(new View$OnClickListenerC0002a(2, this));
|
||||
}
|
||||
|
|
|
@ -9,9 +9,9 @@ import android.widget.TextView;
|
|||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.c.f;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import c.a.i.w0;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import c.a.j.w0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewFlipper;
|
||||
|
@ -182,7 +182,7 @@ public final class a extends AppDialog {
|
|||
m.checkNotNullExpressionValue(materialButton2, "binding.premiumGuildSubscriptionCancelNevermind");
|
||||
ViewExtensions.setEnabledAndAlpha$default(materialButton2, cVar2.f34c, 0.0f, 2, null);
|
||||
aVar.setCancelable(cVar2.e);
|
||||
aVar.g().f178c.setIsLoading(cVar2.d);
|
||||
aVar.g().f180c.setIsLoading(cVar2.d);
|
||||
AppViewFlipper appViewFlipper = aVar.g().e;
|
||||
m.checkNotNullExpressionValue(appViewFlipper, "binding.premiumGuildSubscriptionCancelFlipper");
|
||||
appViewFlipper.setDisplayedChild(!(cVar2 instanceof f.c.C0009f) ? 1 : 0);
|
||||
|
@ -196,13 +196,13 @@ public final class a extends AppDialog {
|
|||
if (eVar.g) {
|
||||
TextView textView2 = aVar.g().b;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.premiumGuildSubscriptionCancelBody");
|
||||
c.a.k.b.m(textView2, R.string.premium_guild_subscription_cancel_body_inventory, new Object[]{renderUtcDate$default}, null, 4);
|
||||
c.a.l.b.n(textView2, R.string.premium_guild_subscription_cancel_body_inventory, new Object[]{renderUtcDate$default}, null, 4);
|
||||
} else {
|
||||
TextView textView3 = aVar.g().b;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.premiumGuildSubscriptionCancelBody");
|
||||
c.a.k.b.m(textView3, R.string.premium_guild_subscription_cancel_body_guild, new Object[]{renderUtcDate$default}, null, 4);
|
||||
c.a.l.b.n(textView3, R.string.premium_guild_subscription_cancel_body_guild, new Object[]{renderUtcDate$default}, null, 4);
|
||||
}
|
||||
aVar.g().f178c.setBackgroundColor(ColorCompat.getColor(aVar, (int) R.color.status_red_500));
|
||||
aVar.g().f180c.setBackgroundColor(ColorCompat.getColor(aVar, (int) R.color.status_red_500));
|
||||
} else if (cVar2 instanceof f.c.b) {
|
||||
TextView textView4 = aVar.g().f;
|
||||
m.checkNotNullExpressionValue(textView4, "binding.premiumGuildSubscriptionCancelHeader");
|
||||
|
@ -213,13 +213,13 @@ public final class a extends AppDialog {
|
|||
String currentPeriodEnd2 = ((f.c.b) cVar2).f.getCurrentPeriodEnd();
|
||||
Context requireContext2 = aVar.requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
|
||||
c.a.k.b.m(textView5, R.string.premium_guild_subscription_confirm_body, new Object[]{TimeUtils.renderUtcDate$default(timeUtils2, currentPeriodEnd2, requireContext2, (String) null, (DateFormat) null, 0, 28, (Object) null)}, null, 4);
|
||||
aVar.g().f178c.setText(aVar.getString(R.string.okay));
|
||||
aVar.g().f178c.setBackgroundColor(ColorCompat.getThemedColor(aVar, (int) R.attr.color_brand_500));
|
||||
c.a.l.b.n(textView5, R.string.premium_guild_subscription_confirm_body, new Object[]{TimeUtils.renderUtcDate$default(timeUtils2, currentPeriodEnd2, requireContext2, (String) null, (DateFormat) null, 0, 28, (Object) null)}, null, 4);
|
||||
aVar.g().f180c.setText(aVar.getString(R.string.okay));
|
||||
aVar.g().f180c.setBackgroundColor(ColorCompat.getThemedColor(aVar, (int) R.attr.color_brand_500));
|
||||
} else if (cVar2 instanceof f.c.C0008c) {
|
||||
Integer num = ((f.c.C0008c) cVar2).f;
|
||||
if (num != null) {
|
||||
c.a.d.o.g(aVar.requireContext(), num.intValue(), 0, null, 12);
|
||||
c.a.e.o.g(aVar.requireContext(), num.intValue(), 0, null, 12);
|
||||
}
|
||||
aVar.dismiss();
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ public final class a extends AppDialog {
|
|||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
g().g.setOnClickListener(new View$OnClickListenerC0005a(0, this));
|
||||
g().f178c.setOnClickListener(new View$OnClickListenerC0005a(1, this));
|
||||
g().f180c.setOnClickListener(new View$OnClickListenerC0005a(1, this));
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
|
|
|
@ -9,9 +9,9 @@ import android.widget.TextView;
|
|||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.c.k;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import c.a.i.x0;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import c.a.j.x0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewFlipper;
|
||||
|
@ -186,7 +186,7 @@ public final class b extends AppDialog {
|
|||
MaterialButton materialButton2 = bVar.g().h;
|
||||
m.checkNotNullExpressionValue(materialButton2, "binding.premiumGuildSubscriptionUncancelNevermind");
|
||||
ViewExtensions.setEnabledAndAlpha$default(materialButton2, z3 && !((k.c.b) cVar2).b, 0.0f, 2, null);
|
||||
bVar.g().f183c.setIsLoading(z3 && ((k.c.b) cVar2).b);
|
||||
bVar.g().f184c.setIsLoading(z3 && ((k.c.b) cVar2).b);
|
||||
k.c.C0010c cVar3 = k.c.C0010c.a;
|
||||
if (!(!m.areEqual(cVar2, cVar3)) || !z3 || ((k.c.b) cVar2).b) {
|
||||
z2 = false;
|
||||
|
@ -210,11 +210,11 @@ public final class b extends AppDialog {
|
|||
TextView textView5 = bVar.g().b;
|
||||
m.checkNotNullExpressionValue(textView5, "binding.premiumGuildSubscriptionUncancelBody");
|
||||
textView5.setText(bVar.getString(R.string.premium_guild_subscription_inventory_uncancel_confirm_description));
|
||||
bVar.g().f183c.setText(bVar.getString(R.string.okay));
|
||||
bVar.g().f184c.setText(bVar.getString(R.string.okay));
|
||||
} else if (cVar2 instanceof k.c.a) {
|
||||
Integer num = ((k.c.a) cVar2).a;
|
||||
if (num != null) {
|
||||
c.a.d.o.i(bVar, num.intValue(), 0, 4);
|
||||
c.a.e.o.i(bVar, num.intValue(), 0, 4);
|
||||
}
|
||||
bVar.dismiss();
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ public final class b extends AppDialog {
|
|||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
g().h.setOnClickListener(new a(0, this));
|
||||
g().f183c.setOnClickListener(new a(1, this));
|
||||
g().f184c.setOnClickListener(new a(1, this));
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
|
|
|
@ -8,7 +8,7 @@ import android.widget.LinearLayout;
|
|||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.v0;
|
||||
import c.a.j.v0;
|
||||
import com.airbnb.lottie.LottieAnimationView;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
|
@ -43,13 +43,13 @@ public final class c extends AppDialog {
|
|||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
m.checkNotNullParameter(context, "context");
|
||||
m.checkNotNullParameter(function0, "dismissListener");
|
||||
CharSequence g = z2 ? c.a.k.b.g(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile1, new Object[0], null, 4) : c.a.k.b.g(context, R.string.guild_subscription_purchase_modal_activated_description_mobile1, new Object[0], null, 4);
|
||||
CharSequence g2 = str == null ? c.a.k.b.g(context, R.string.guild_subscription_purchase_modal_activated_description_no_application, new Object[]{StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_no_application_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : z2 ? c.a.k.b.g(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_transferred_description_mobile2_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : c.a.k.b.g(context, R.string.guild_subscription_purchase_modal_activated_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4);
|
||||
CharSequence h = z2 ? c.a.l.b.h(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile1, new Object[0], null, 4) : c.a.l.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_mobile1, new Object[0], null, 4);
|
||||
CharSequence h2 = str == null ? c.a.l.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_no_application, new Object[]{StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_no_application_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : z2 ? c.a.l.b.h(context, R.string.guild_subscription_purchase_modal_transferred_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_transferred_description_mobile2_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4) : c.a.l.b.h(context, R.string.guild_subscription_purchase_modal_activated_description_mobile2, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, R.plurals.guild_subscription_purchase_modal_activated_description_guildSubscriptionQuantity, i, Integer.valueOf(i))}, null, 4);
|
||||
c cVar = new c();
|
||||
cVar.m = function0;
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putCharSequence("extra_body1_text", g);
|
||||
bundle.putCharSequence("extra_body2_text", g2);
|
||||
bundle.putCharSequence("extra_body1_text", h);
|
||||
bundle.putCharSequence("extra_body2_text", h2);
|
||||
cVar.setArguments(bundle);
|
||||
cVar.show(fragmentManager, c.class.getName());
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ public final class c extends AppDialog {
|
|||
Bundle arguments = getArguments();
|
||||
CharSequence charSequence = null;
|
||||
textView.setText(arguments != null ? arguments.getCharSequence("extra_body1_text") : null);
|
||||
TextView textView2 = g().f173c;
|
||||
TextView textView2 = g().f174c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.premiumGuildSubscriptionActivatedBody2");
|
||||
Bundle arguments2 = getArguments();
|
||||
if (arguments2 != null) {
|
||||
|
|
|
@ -0,0 +1,168 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.j.i1;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.dialogs.SimpleConfirmationDialogArgs;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.g;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: SimpleConfirmationDialog.kt */
|
||||
public final class d extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0)};
|
||||
public static final c j = new c(null);
|
||||
public final Lazy k = g.lazy(new b(this, "intent_args_key"));
|
||||
public View.OnClickListener l;
|
||||
public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, C0011d.i, null, 2, null);
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
public static final class a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
|
||||
public a(int i, Object obj) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = this.i;
|
||||
if (i == 0) {
|
||||
View.OnClickListener onClickListener = ((d) this.j).l;
|
||||
if (onClickListener != null) {
|
||||
onClickListener.onClick(view);
|
||||
}
|
||||
((d) this.j).dismiss();
|
||||
} else if (i == 1) {
|
||||
((d) this.j).dismiss();
|
||||
} else {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: ArgUtils.kt */
|
||||
public static final class b extends o implements Function0<SimpleConfirmationDialogArgs> {
|
||||
public final /* synthetic */ String $argsKey;
|
||||
public final /* synthetic */ AppDialog $this_args;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public b(AppDialog appDialog, String str) {
|
||||
super(0);
|
||||
this.$this_args = appDialog;
|
||||
this.$argsKey = str;
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public SimpleConfirmationDialogArgs mo1invoke() {
|
||||
Bundle arguments = this.$this_args.getArguments();
|
||||
SimpleConfirmationDialogArgs simpleConfirmationDialogArgs = null;
|
||||
Object obj = arguments != null ? arguments.get(this.$argsKey) : null;
|
||||
if (obj instanceof SimpleConfirmationDialogArgs) {
|
||||
simpleConfirmationDialogArgs = obj;
|
||||
}
|
||||
SimpleConfirmationDialogArgs simpleConfirmationDialogArgs2 = simpleConfirmationDialogArgs;
|
||||
if (simpleConfirmationDialogArgs2 != null) {
|
||||
return simpleConfirmationDialogArgs2;
|
||||
}
|
||||
StringBuilder K = c.d.b.a.a.K("Missing args for class type ");
|
||||
K.append(a0.getOrCreateKotlinClass(SimpleConfirmationDialogArgs.class).getSimpleName());
|
||||
K.append(" + key ");
|
||||
throw new IllegalStateException(c.d.b.a.a.B(K, this.$argsKey, '!'));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SimpleConfirmationDialog.kt */
|
||||
public static final class c {
|
||||
public c(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SimpleConfirmationDialog.kt */
|
||||
/* renamed from: c.a.a.d$d reason: collision with other inner class name */
|
||||
public static final /* synthetic */ class C0011d extends k implements Function1<View, i1> {
|
||||
public static final C0011d i = new C0011d();
|
||||
|
||||
public C0011d() {
|
||||
super(1, i1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public i1 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.notice_header_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
||||
if (linearLayout != null) {
|
||||
i2 = R.id.simple_confirmation_dialog_description;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.simple_confirmation_dialog_description);
|
||||
if (textView != null) {
|
||||
i2 = R.id.simple_confirmation_dialog_negative;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.simple_confirmation_dialog_negative);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.simple_confirmation_dialog_positive;
|
||||
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.simple_confirmation_dialog_positive);
|
||||
if (materialButton2 != null) {
|
||||
i2 = R.id.simple_confirmation_dialog_title;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.simple_confirmation_dialog_title);
|
||||
if (textView2 != null) {
|
||||
return new i1((LinearLayout) view2, linearLayout, textView, materialButton, materialButton2, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
public d() {
|
||||
super(R.layout.simple_confirmation_dialog);
|
||||
}
|
||||
|
||||
public final SimpleConfirmationDialogArgs g() {
|
||||
return (SimpleConfirmationDialogArgs) this.k.getValue();
|
||||
}
|
||||
|
||||
public final i1 h() {
|
||||
return (i1) this.m.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBoundOrOnResume() {
|
||||
super.onViewBoundOrOnResume();
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
h().d.setOnClickListener(new a(0, this));
|
||||
h().d.setText(g().k);
|
||||
h().f106c.setOnClickListener(new a(1, this));
|
||||
MaterialButton materialButton = h().f106c;
|
||||
m.checkNotNullExpressionValue(materialButton, "binding.simpleConfirmationDialogNegative");
|
||||
materialButton.setText(g().l);
|
||||
TextView textView = h().e;
|
||||
m.checkNotNullExpressionValue(textView, "binding.simpleConfirmationDialogTitle");
|
||||
c.a.l.b.a(textView, g().i);
|
||||
TextView textView2 = h().b;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.simpleConfirmationDialogDescription");
|
||||
c.a.l.b.a(textView2, g().j);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -8,7 +8,7 @@ import android.widget.RelativeLayout;
|
|||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.y0;
|
||||
import c.a.j.y0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.analytics.AnalyticsTracker;
|
||||
|
@ -29,12 +29,12 @@ public final class a extends AppDialog {
|
|||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
/* renamed from: c.a.a.d.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0011a implements View.OnClickListener {
|
||||
/* renamed from: c.a.a.e.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0012a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
|
||||
public View$OnClickListenerC0011a(int i, Object obj) {
|
||||
public View$OnClickListenerC0012a(int i, Object obj) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ public final class a extends AppDialog {
|
|||
String string = arguments2 != null ? arguments2.getString("extra_object_type") : null;
|
||||
Bundle arguments3 = getArguments();
|
||||
g().d.setOnClickListener(new d(this, j2, valueOf, arguments3 != null ? arguments3.getString("extra_page") : null, string));
|
||||
g().b.setOnClickListener(new View$OnClickListenerC0011a(0, this));
|
||||
g().f187c.setOnClickListener(new View$OnClickListenerC0011a(1, this));
|
||||
g().b.setOnClickListener(new View$OnClickListenerC0012a(0, this));
|
||||
g().f189c.setOnClickListener(new View$OnClickListenerC0012a(1, this));
|
||||
}
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
package c.a.a.e.a;
|
||||
|
||||
import c.a.a.e.a.f;
|
||||
import com.discord.stores.StoreAudioDevices;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class c extends o implements Function1<f.b, Unit> {
|
||||
public final /* synthetic */ f this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(f fVar) {
|
||||
super(1);
|
||||
this.this$0 = fVar;
|
||||
}
|
||||
|
||||
/* 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(f.b bVar) {
|
||||
f.b bVar2 = bVar;
|
||||
m.checkNotNullParameter(bVar2, "storeState");
|
||||
f fVar = this.this$0;
|
||||
Objects.requireNonNull(fVar);
|
||||
StoreAudioDevices.AudioDevicesState audioDevicesState = bVar2.a;
|
||||
Set<StoreAudioDevices.OutputDevice> availableOutputDevices = audioDevicesState.getAvailableOutputDevices();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : availableOutputDevices) {
|
||||
if (obj instanceof StoreAudioDevices.OutputDevice.BluetoothAudio) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
boolean z2 = !arrayList.isEmpty();
|
||||
fVar.updateViewState(new f.c.a(audioDevicesState.getSelectedOutputDevice(), z2, z2 ? (StoreAudioDevices.OutputDevice.BluetoothAudio) arrayList.get(0) : null, availableOutputDevices.contains(StoreAudioDevices.OutputDevice.Speaker.INSTANCE), availableOutputDevices.contains(StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE), availableOutputDevices.contains(StoreAudioDevices.OutputDevice.Earpiece.INSTANCE)));
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package c.a.a.e.a;
|
||||
|
||||
import c.a.a.e.a.f;
|
||||
import com.discord.stores.StoreAudioDevices;
|
||||
import d0.z.d.m;
|
||||
import j0.k.b;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class d<T, R> implements b<StoreAudioDevices.AudioDevicesState, f.b> {
|
||||
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] */
|
||||
@Override // j0.k.b
|
||||
public f.b call(StoreAudioDevices.AudioDevicesState audioDevicesState) {
|
||||
StoreAudioDevices.AudioDevicesState audioDevicesState2 = audioDevicesState;
|
||||
m.checkNotNullExpressionValue(audioDevicesState2, "audioDevicesState");
|
||||
return new f.b(audioDevicesState2);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package c.a.a.e.a;
|
||||
|
||||
import c.a.a.e.a.f;
|
||||
import com.discord.stores.StoreAudioManagerV2;
|
||||
import j0.k.b;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class e<T, R> implements b<StoreAudioManagerV2.State, f.b> {
|
||||
public static final e i = new e();
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // j0.k.b
|
||||
public f.b call(StoreAudioManagerV2.State state) {
|
||||
return new f.b(state.asAudioDevicesState());
|
||||
}
|
||||
}
|
|
@ -1,194 +0,0 @@
|
|||
package c.a.a.e.a;
|
||||
|
||||
import android.content.Context;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.stores.StoreAudioDevices;
|
||||
import com.discord.stores.StoreAudioManagerV2;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import rx.Observable;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class f extends AppViewModel<c> {
|
||||
public static final a i = new a(null);
|
||||
public final StoreAudioDevices j;
|
||||
public final StoreAudioManagerV2 k;
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static final class b {
|
||||
public final StoreAudioDevices.AudioDevicesState a;
|
||||
|
||||
public b(StoreAudioDevices.AudioDevicesState audioDevicesState) {
|
||||
m.checkNotNullParameter(audioDevicesState, "audioDevicesState");
|
||||
this.a = audioDevicesState;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this != obj) {
|
||||
return (obj instanceof b) && m.areEqual(this.a, ((b) obj).a);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
StoreAudioDevices.AudioDevicesState audioDevicesState = this.a;
|
||||
if (audioDevicesState != null) {
|
||||
return audioDevicesState.hashCode();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("StoreState(audioDevicesState=");
|
||||
K.append(this.a);
|
||||
K.append(")");
|
||||
return K.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static abstract class c {
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static final class a extends c {
|
||||
public final StoreAudioDevices.OutputDevice a;
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final StoreAudioDevices.OutputDevice.BluetoothAudio f37c;
|
||||
public final boolean d;
|
||||
public final boolean e;
|
||||
public final boolean f;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public a(StoreAudioDevices.OutputDevice outputDevice, boolean z2, StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio, boolean z3, boolean z4, boolean z5) {
|
||||
super(null);
|
||||
m.checkNotNullParameter(outputDevice, "selectedAudioOutput");
|
||||
this.a = outputDevice;
|
||||
this.b = z2;
|
||||
this.f37c = bluetoothAudio;
|
||||
this.d = z3;
|
||||
this.e = z4;
|
||||
this.f = z5;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof a)) {
|
||||
return false;
|
||||
}
|
||||
a aVar = (a) obj;
|
||||
return m.areEqual(this.a, aVar.a) && this.b == aVar.b && m.areEqual(this.f37c, aVar.f37c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
StoreAudioDevices.OutputDevice outputDevice = this.a;
|
||||
int i = 0;
|
||||
int hashCode = (outputDevice != null ? outputDevice.hashCode() : 0) * 31;
|
||||
boolean z2 = this.b;
|
||||
int i2 = 1;
|
||||
if (z2) {
|
||||
z2 = true;
|
||||
}
|
||||
int i3 = z2 ? 1 : 0;
|
||||
int i4 = z2 ? 1 : 0;
|
||||
int i5 = z2 ? 1 : 0;
|
||||
int i6 = (hashCode + i3) * 31;
|
||||
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio = this.f37c;
|
||||
if (bluetoothAudio != null) {
|
||||
i = bluetoothAudio.hashCode();
|
||||
}
|
||||
int i7 = (i6 + i) * 31;
|
||||
boolean z3 = this.d;
|
||||
if (z3) {
|
||||
z3 = true;
|
||||
}
|
||||
int i8 = z3 ? 1 : 0;
|
||||
int i9 = z3 ? 1 : 0;
|
||||
int i10 = z3 ? 1 : 0;
|
||||
int i11 = (i7 + i8) * 31;
|
||||
boolean z4 = this.e;
|
||||
if (z4) {
|
||||
z4 = true;
|
||||
}
|
||||
int i12 = z4 ? 1 : 0;
|
||||
int i13 = z4 ? 1 : 0;
|
||||
int i14 = z4 ? 1 : 0;
|
||||
int i15 = (i11 + i12) * 31;
|
||||
boolean z5 = this.f;
|
||||
if (!z5) {
|
||||
i2 = z5 ? 1 : 0;
|
||||
}
|
||||
return i15 + i2;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("Loaded(selectedAudioOutput=");
|
||||
K.append(this.a);
|
||||
K.append(", showBluetoothItem=");
|
||||
K.append(this.b);
|
||||
K.append(", bluetoothDevice=");
|
||||
K.append(this.f37c);
|
||||
K.append(", showSpeakerItem=");
|
||||
K.append(this.d);
|
||||
K.append(", showWiredItem=");
|
||||
K.append(this.e);
|
||||
K.append(", showEarpieceItem=");
|
||||
return c.d.b.a.a.F(K, this.f, ")");
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static final class b extends c {
|
||||
public static final b a = new b();
|
||||
|
||||
public b() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public c() {
|
||||
}
|
||||
|
||||
public c(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
public f() {
|
||||
this(null, null, null, 7);
|
||||
}
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public f(StoreAudioDevices storeAudioDevices, StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i2) {
|
||||
super(c.b.a);
|
||||
Observable observable2;
|
||||
StoreAudioDevices audioDevices = (i2 & 1) != 0 ? StoreStream.Companion.getAudioDevices() : null;
|
||||
StoreAudioManagerV2 audioManagerV2 = (i2 & 2) != 0 ? StoreStream.Companion.getAudioManagerV2() : null;
|
||||
if ((i2 & 4) == 0) {
|
||||
observable2 = null;
|
||||
} else if (audioDevices.getEnabled()) {
|
||||
observable2 = audioDevices.observeAudioDevicesState().F(d.i);
|
||||
m.checkNotNullExpressionValue(observable2, "storeAudioDevices.observ…tate(audioDevicesState) }");
|
||||
} else {
|
||||
observable2 = audioManagerV2.observeAudioManagerState().F(e.i);
|
||||
m.checkNotNullExpressionValue(observable2, "storeAudioManager.observ….asAudioDevicesState()) }");
|
||||
}
|
||||
m.checkNotNullParameter(audioDevices, "storeAudioDevices");
|
||||
m.checkNotNullParameter(audioManagerV2, "storeAudioManager");
|
||||
m.checkNotNullParameter(observable2, "storeStateObservable");
|
||||
this.j = audioDevices;
|
||||
this.k = audioManagerV2;
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -12,8 +12,8 @@ import androidx.fragment.app.Fragment;
|
|||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.viewpager2.adapter.FragmentStateAdapter;
|
||||
import androidx.viewpager2.widget.ViewPager2;
|
||||
import c.a.i.k5;
|
||||
import c.a.i.n0;
|
||||
import c.a.j.k5;
|
||||
import c.a.j.n0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppFragment;
|
||||
|
@ -37,7 +37,7 @@ import kotlin.reflect.KProperty;
|
|||
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
||||
public final class b extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(b.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
|
||||
public static final C0012b j = new C0012b(null);
|
||||
public static final C0013b j = new C0013b(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, f.i, null, 2, null);
|
||||
public e l;
|
||||
|
||||
|
@ -67,12 +67,12 @@ public final class b extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
||||
/* renamed from: c.a.a.d.b$b reason: collision with other inner class name */
|
||||
public static final class C0012b {
|
||||
public C0012b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
/* renamed from: c.a.a.e.b$b reason: collision with other inner class name */
|
||||
public static final class C0013b {
|
||||
public C0013b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public static void a(C0012b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) {
|
||||
public static void a(C0013b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) {
|
||||
if ((i2 & 4) != 0) {
|
||||
str = null;
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ public final class b extends AppDialog {
|
|||
public static final class d extends AppFragment {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, C0013b.i, null, 2, null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, C0014b.i, null, 2, null);
|
||||
|
||||
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
||||
public static final class a {
|
||||
|
@ -183,11 +183,11 @@ public final class b extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
|
||||
/* renamed from: c.a.a.d.b$d$b reason: collision with other inner class name */
|
||||
public static final /* synthetic */ class C0013b extends k implements Function1<View, k5> {
|
||||
public static final C0013b i = new C0013b();
|
||||
/* renamed from: c.a.a.e.b$d$b reason: collision with other inner class name */
|
||||
public static final /* synthetic */ class C0014b extends k implements Function1<View, k5> {
|
||||
public static final C0014b i = new C0014b();
|
||||
|
||||
public C0013b() {
|
||||
public C0014b() {
|
||||
super(1, k5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0);
|
||||
}
|
||||
|
||||
|
@ -229,14 +229,14 @@ public final class b extends AppDialog {
|
|||
ImageView imageView = g().d;
|
||||
Bundle arguments = getArguments();
|
||||
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
|
||||
TextView textView = g().f118c;
|
||||
TextView textView = g().f119c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
|
||||
Bundle arguments2 = getArguments();
|
||||
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
|
||||
TextView textView2 = g().b;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
|
||||
Bundle arguments3 = getArguments();
|
||||
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : c.a.k.b.k(string, new Object[0], null, 2));
|
||||
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : c.a.l.b.l(string, new Object[0], null, 2));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -376,8 +376,8 @@ public final class b extends AppDialog {
|
|||
m.checkNotNullExpressionValue(string6, "getString(R.string.premi…ed_emojis_passive_mobile)");
|
||||
String string7 = getString(R.string.premium_upsell_animated_emojis_description_mobile);
|
||||
m.checkNotNullExpressionValue(string7, "getString(R.string.premi…mojis_description_mobile)");
|
||||
CharSequence j2 = c.a.k.b.j(this, R.string.premium_upsell_upload_passive_mobile, new Object[0], null, 4);
|
||||
Object[] objArr = {c.a.k.b.j(this, R.string.file_upload_limit_standard, new Object[0], null, 4), c.a.k.b.j(this, R.string.file_upload_limit_premium_tier_2, new Object[0], null, 4)};
|
||||
CharSequence k = c.a.l.b.k(this, R.string.premium_upsell_upload_passive_mobile, new Object[0], null, 4);
|
||||
Object[] objArr = {c.a.l.b.k(this, R.string.file_upload_limit_standard, new Object[0], null, 4), c.a.l.b.k(this, R.string.file_upload_limit_premium_tier_2, new Object[0], null, 4)};
|
||||
String string8 = getString(R.string.premium_upsell_animated_avatar_passive_mobile);
|
||||
m.checkNotNullExpressionValue(string8, "getString(R.string.premi…ed_avatar_passive_mobile)");
|
||||
String string9 = getString(R.string.premium_upsell_animated_avatar_description_mobile);
|
||||
|
@ -386,7 +386,7 @@ public final class b extends AppDialog {
|
|||
m.checkNotNullExpressionValue(string10, "getString(R.string.premi…ell_badge_passive_mobile)");
|
||||
String string11 = getString(R.string.premium_upsell_badge_description_mobile);
|
||||
m.checkNotNullExpressionValue(string11, "getString(R.string.premi…badge_description_mobile)");
|
||||
List listOf = n.listOf((Object[]) new c[]{new c(R.drawable.img_tag_upsell, string2, string3), new c(R.drawable.img_global_emoji_upsell, string4, string5), new c(R.drawable.img_animated_emoji_upsell, string6, string7), new c(R.drawable.img_upload_upsell, j2, c.a.k.b.j(this, R.string.premium_upsell_upload_description_mobile, objArr, null, 4)), new c(R.drawable.img_avatar_upsell, string8, string9), new c(R.drawable.img_badge_upsell, string10, string11)});
|
||||
List listOf = n.listOf((Object[]) new c[]{new c(R.drawable.img_tag_upsell, string2, string3), new c(R.drawable.img_global_emoji_upsell, string4, string5), new c(R.drawable.img_animated_emoji_upsell, string6, string7), new c(R.drawable.img_upload_upsell, k, c.a.l.b.k(this, R.string.premium_upsell_upload_description_mobile, objArr, null, 4)), new c(R.drawable.img_avatar_upsell, string8, string9), new c(R.drawable.img_badge_upsell, string10, string11)});
|
||||
Bundle arguments = getArguments();
|
||||
int i2 = arguments != null ? arguments.getInt("extra_page_number") : 0;
|
||||
Bundle arguments2 = getArguments();
|
||||
|
@ -431,11 +431,11 @@ public final class b extends AppDialog {
|
|||
m.throwUninitializedPropertyAccessException("pagerAdapter");
|
||||
}
|
||||
viewPager2.setAdapter(eVar);
|
||||
TabLayout tabLayout = h().f130c;
|
||||
TabLayout tabLayout = h().f131c;
|
||||
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
|
||||
int i2 = 8;
|
||||
tabLayout.setVisibility(j() ? 0 : 8);
|
||||
TabLayout tabLayout2 = h().f130c;
|
||||
TabLayout tabLayout2 = h().f131c;
|
||||
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
|
||||
ViewPager2 viewPager22 = h().f;
|
||||
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
|
@ -8,7 +8,7 @@ import android.widget.ImageView;
|
|||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.z0;
|
||||
import c.a.j.z0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.resources.StringResourceUtilsKt;
|
||||
|
@ -30,7 +30,7 @@ public final class c extends AppDialog {
|
|||
public Function0<Unit> l;
|
||||
public String m;
|
||||
public boolean n;
|
||||
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, C0014c.i, null, 2, null);
|
||||
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, C0015c.i, null, 2, null);
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
public static final class a implements View.OnClickListener {
|
||||
|
@ -72,11 +72,11 @@ public final class c extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: UpgradePremiumGuildDialog.kt */
|
||||
/* renamed from: c.a.a.d.c$c reason: collision with other inner class name */
|
||||
public static final /* synthetic */ class C0014c extends k implements Function1<View, z0> {
|
||||
public static final C0014c i = new C0014c();
|
||||
/* renamed from: c.a.a.e.c$c reason: collision with other inner class name */
|
||||
public static final /* synthetic */ class C0015c extends k implements Function1<View, z0> {
|
||||
public static final C0015c i = new C0015c();
|
||||
|
||||
public C0014c() {
|
||||
public C0015c() {
|
||||
super(1, z0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumGuildUpgradeDialogBinding;", 0);
|
||||
}
|
||||
|
||||
|
@ -139,17 +139,17 @@ public final class c extends AppDialog {
|
|||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
TextView textView = g().d;
|
||||
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellDescription");
|
||||
c.a.k.b.m(textView, R.string.premium_upsell_feature_pretext, new Object[]{this.m}, null, 4);
|
||||
c.a.l.b.n(textView, R.string.premium_upsell_feature_pretext, new Object[]{this.m}, null, 4);
|
||||
TextView textView2 = g().e;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellServerPerk");
|
||||
Context requireContext = requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext, "requireContext()");
|
||||
c.a.k.b.m(textView2, R.string.premium_upsell_feature_free_guild_subscription, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext, R.plurals.premium_upsell_feature_free_guild_subscription_numFreeGuildSubscriptions, 2, 2)}, null, 4);
|
||||
c.a.l.b.n(textView2, R.string.premium_upsell_feature_free_guild_subscription, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext, R.plurals.premium_upsell_feature_free_guild_subscription_numFreeGuildSubscriptions, 2, 2)}, null, 4);
|
||||
TextView textView3 = g().b;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.continueButton");
|
||||
textView3.setVisibility(this.n ^ true ? 0 : 8);
|
||||
g().b.setOnClickListener(new a(0, this));
|
||||
g().f.setOnClickListener(new a(1, this));
|
||||
g().f193c.setOnClickListener(new a(2, this));
|
||||
g().f194c.setOnClickListener(new a(2, this));
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -8,7 +8,7 @@ import android.widget.LinearLayout;
|
|||
import android.widget.TextView;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.i1;
|
||||
import c.a.j.j1;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
|
@ -65,17 +65,17 @@ public final class d extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, i1> {
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, j1> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, i1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0);
|
||||
super(1, j1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public i1 invoke(View view) {
|
||||
public j1 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.button_container;
|
||||
|
@ -102,7 +102,7 @@ public final class d extends AppDialog {
|
|||
i2 = R.id.value_prop_image;
|
||||
ImageView imageView = (ImageView) view2.findViewById(R.id.value_prop_image);
|
||||
if (imageView != null) {
|
||||
return new i1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
|
||||
return new j1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -119,8 +119,8 @@ public final class d extends AppDialog {
|
|||
super(R.layout.single_value_prop_premium_upsell_dialog);
|
||||
}
|
||||
|
||||
public final i1 g() {
|
||||
return (i1) this.k.getValue((Fragment) this, i[0]);
|
||||
public final j1 g() {
|
||||
return (j1) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
|
@ -150,6 +150,6 @@ public final class d extends AppDialog {
|
|||
textView2.setText(str);
|
||||
}
|
||||
g().b.setOnClickListener(new a(0, this));
|
||||
g().f104c.setOnClickListener(new a(1, this));
|
||||
g().f111c.setOnClickListener(new a(1, this));
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.view.View;
|
||||
|
@ -7,7 +7,7 @@ import android.widget.ImageView;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.a1;
|
||||
import c.a.j.a1;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
|
@ -134,16 +134,16 @@ public final class e extends AppDialog {
|
|||
}
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
|
||||
CharSequence j2 = c.a.k.b.j(this, z2 ? R.string.premium_tier_1 : R.string.premium_tier_2, new Object[0], null, 4);
|
||||
CharSequence k = c.a.l.b.k(this, z2 ? R.string.premium_tier_1 : R.string.premium_tier_2, new Object[0], null, 4);
|
||||
TextView textView = g().d;
|
||||
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellYearlyTitle");
|
||||
c.a.k.b.m(textView, R.string.premium_upsell_yearly_title, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), j2}, null, 4);
|
||||
TextView textView2 = g().f60c;
|
||||
c.a.l.b.n(textView, R.string.premium_upsell_yearly_title, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), k}, null, 4);
|
||||
TextView textView2 = g().f61c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription");
|
||||
c.a.k.b.m(textView2, R.string.premium_upsell_yearly_description, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f))}, null, 4);
|
||||
c.a.l.b.n(textView2, R.string.premium_upsell_yearly_description, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f))}, null, 4);
|
||||
MaterialButton materialButton = g().f;
|
||||
m.checkNotNullExpressionValue(materialButton, "binding.purchasePremiumYearly");
|
||||
c.a.k.b.m(materialButton, R.string.premium_upsell_yearly_cta, new Object[]{this.m}, null, 4);
|
||||
c.a.l.b.n(materialButton, R.string.premium_upsell_yearly_cta, new Object[]{this.m}, null, 4);
|
||||
g().b.setImageResource(z2 ? R.drawable.img_premium_guild_subscription_purchase_header_tier_1 : R.drawable.img_premium_guild_subscription_purchase_header_tier_2);
|
||||
TextView textView3 = g().e;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.purchasePremiumMonthly");
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -9,7 +9,7 @@ import android.widget.TextView;
|
|||
import androidx.core.content.ContextCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.t0;
|
||||
import c.a.j.t0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.drawable.DrawableCompat;
|
||||
|
@ -144,7 +144,7 @@ public final class f extends AppDialog {
|
|||
m.checkNotNullExpressionValue(imageView, "binding.premiumActivatedWumpus");
|
||||
imageView.setScaleX(z2 ? 1.0f : -1.0f);
|
||||
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), i2));
|
||||
TextView textView = g().f160c;
|
||||
TextView textView = g().f162c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.premiumActivatedDescription");
|
||||
textView.setText(getString(i6));
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
|
@ -1,11 +1,11 @@
|
|||
package c.a.a.d;
|
||||
package c.a.a.e;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.u0;
|
||||
import c.a.j.u0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
|
@ -94,9 +94,9 @@ public final class g extends AppDialog {
|
|||
m.checkNotNullExpressionValue(str, "arguments?.getString(EXTRA_PLAN_NAME) ?: \"\"");
|
||||
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l;
|
||||
KProperty<?>[] kPropertyArr = i;
|
||||
TextView textView = ((u0) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f166c;
|
||||
TextView textView = ((u0) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f168c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.premiumAndPremiumGuildActivatedText");
|
||||
c.a.k.b.m(textView, R.string.billing_premium_and_premium_guild_plan_activated, new Object[]{str}, null, 4);
|
||||
c.a.l.b.n(textView, R.string.billing_premium_and_premium_guild_plan_activated, new Object[]{str}, null, 4);
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
((u0) this.l.getValue((Fragment) this, kPropertyArr[0])).b.setOnClickListener(new c(this));
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.e.a;
|
||||
package c.a.a.f.a;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
|
@ -7,14 +7,13 @@ import android.widget.RadioGroup;
|
|||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.e.a.f;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import c.a.a.f.a.d;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.rtcconnection.audio.DiscordAudioManager;
|
||||
import com.discord.stores.StoreAudioDevices;
|
||||
import com.discord.utilities.color.ColorCompat;
|
||||
import com.discord.utilities.color.ColorCompatKt;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
|
@ -28,7 +27,6 @@ import d0.z.d.o;
|
|||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
|
@ -43,59 +41,30 @@ public final class a extends AppDialog {
|
|||
public final Lazy l;
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
/* renamed from: c.a.a.e.a.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0015a implements View.OnClickListener {
|
||||
/* renamed from: c.a.a.f.a.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0016a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
|
||||
public View$OnClickListenerC0015a(int i, Object obj) {
|
||||
public View$OnClickListenerC0016a(int i, Object obj) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio;
|
||||
int i = this.i;
|
||||
f.c.a aVar = null;
|
||||
if (i == 0) {
|
||||
f h = a.h((a) this.j);
|
||||
if (h.j.getEnabled()) {
|
||||
f.c viewState = h.getViewState();
|
||||
if (viewState instanceof f.c.a) {
|
||||
aVar = viewState;
|
||||
}
|
||||
f.c.a aVar2 = aVar;
|
||||
if (!(aVar2 == null || (bluetoothAudio = aVar2.f37c) == null)) {
|
||||
h.j.selectAudioOutput(bluetoothAudio);
|
||||
}
|
||||
} else {
|
||||
h.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET);
|
||||
}
|
||||
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET);
|
||||
a.g((a) this.j);
|
||||
} else if (i == 1) {
|
||||
f h2 = a.h((a) this.j);
|
||||
if (h2.j.getEnabled()) {
|
||||
h2.j.selectAudioOutput(StoreAudioDevices.OutputDevice.Speaker.INSTANCE);
|
||||
} else {
|
||||
h2.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
|
||||
}
|
||||
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
|
||||
a.g((a) this.j);
|
||||
} else if (i == 2) {
|
||||
f h3 = a.h((a) this.j);
|
||||
if (h3.j.getEnabled()) {
|
||||
h3.j.selectAudioOutput(StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE);
|
||||
} else {
|
||||
h3.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.WIRED_HEADSET);
|
||||
}
|
||||
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.WIRED_HEADSET);
|
||||
a.g((a) this.j);
|
||||
} else if (i == 3) {
|
||||
f h4 = a.h((a) this.j);
|
||||
if (h4.j.getEnabled()) {
|
||||
h4.j.selectAudioOutput(StoreAudioDevices.OutputDevice.Earpiece.INSTANCE);
|
||||
} else {
|
||||
h4.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.EARPIECE);
|
||||
}
|
||||
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.EARPIECE);
|
||||
a.g((a) this.j);
|
||||
} else {
|
||||
throw null;
|
||||
|
@ -110,17 +79,17 @@ public final class a extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.b> {
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, c.a.j.b> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, c.a.i.b.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0);
|
||||
super(1, c.a.j.b.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public c.a.i.b invoke(View view) {
|
||||
public c.a.j.b invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.audio_output_selection_bluetooth_radio;
|
||||
|
@ -141,7 +110,7 @@ public final class a extends AppDialog {
|
|||
i2 = R.id.audio_output_selection_wired_radio;
|
||||
MaterialRadioButton materialRadioButton4 = (MaterialRadioButton) view2.findViewById(R.id.audio_output_selection_wired_radio);
|
||||
if (materialRadioButton4 != null) {
|
||||
return new c.a.i.b((LinearLayout) view2, materialRadioButton, textView, radioGroup, materialRadioButton2, materialRadioButton3, materialRadioButton4);
|
||||
return new c.a.j.b((LinearLayout) view2, materialRadioButton, textView, radioGroup, materialRadioButton2, materialRadioButton3, materialRadioButton4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -153,7 +122,7 @@ public final class a extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialog.kt */
|
||||
public static final class d extends o implements Function1<f.c, Unit> {
|
||||
public static final class d extends o implements Function1<d.a, Unit> {
|
||||
public final /* synthetic */ a this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
|
@ -165,57 +134,54 @@ public final class a extends AppDialog {
|
|||
/* 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(f.c cVar) {
|
||||
public Unit invoke(d.a aVar) {
|
||||
int i;
|
||||
String str;
|
||||
f.c cVar2 = cVar;
|
||||
m.checkNotNullParameter(cVar2, "viewState");
|
||||
a aVar = this.this$0;
|
||||
Objects.requireNonNull(aVar);
|
||||
m.checkNotNullParameter(cVar2, "viewState");
|
||||
if (!(cVar2 instanceof f.c.b) && (cVar2 instanceof f.c.a)) {
|
||||
f.c.a aVar2 = (f.c.a) cVar2;
|
||||
StoreAudioDevices.OutputDevice outputDevice = aVar2.a;
|
||||
if (outputDevice instanceof StoreAudioDevices.OutputDevice.BluetoothAudio) {
|
||||
MaterialRadioButton materialRadioButton = aVar.i().b;
|
||||
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionBluetoothRadio");
|
||||
d.a aVar2 = aVar;
|
||||
m.checkNotNullParameter(aVar2, "viewState");
|
||||
a aVar3 = this.this$0;
|
||||
Objects.requireNonNull(aVar3);
|
||||
m.checkNotNullParameter(aVar2, "viewState");
|
||||
if (!(aVar2 instanceof d.a.b) && (aVar2 instanceof d.a.C0017a)) {
|
||||
d.a.C0017a aVar4 = (d.a.C0017a) aVar2;
|
||||
int ordinal = aVar4.a.ordinal();
|
||||
if (ordinal == 2) {
|
||||
MaterialRadioButton materialRadioButton = aVar3.i().e;
|
||||
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionSpeakerRadio");
|
||||
i = materialRadioButton.getId();
|
||||
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.Speaker) {
|
||||
MaterialRadioButton materialRadioButton2 = aVar.i().e;
|
||||
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionSpeakerRadio");
|
||||
} else if (ordinal == 3) {
|
||||
MaterialRadioButton materialRadioButton2 = aVar3.i().f;
|
||||
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionWiredRadio");
|
||||
i = materialRadioButton2.getId();
|
||||
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.WiredAudio) {
|
||||
MaterialRadioButton materialRadioButton3 = aVar.i().f;
|
||||
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionWiredRadio");
|
||||
} else if (ordinal == 4) {
|
||||
MaterialRadioButton materialRadioButton3 = aVar3.i().d;
|
||||
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionEarpieceRadio");
|
||||
i = materialRadioButton3.getId();
|
||||
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.Earpiece) {
|
||||
MaterialRadioButton materialRadioButton4 = aVar.i().d;
|
||||
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
|
||||
} else if (ordinal == 5) {
|
||||
MaterialRadioButton materialRadioButton4 = aVar3.i().b;
|
||||
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionBluetoothRadio");
|
||||
i = materialRadioButton4.getId();
|
||||
} else {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
aVar.i().f65c.check(i);
|
||||
MaterialRadioButton materialRadioButton5 = aVar.i().b;
|
||||
aVar3.i().f66c.check(i);
|
||||
MaterialRadioButton materialRadioButton5 = aVar3.i().b;
|
||||
m.checkNotNullExpressionValue(materialRadioButton5, "binding.audioOutputSelectionBluetoothRadio");
|
||||
int i2 = 0;
|
||||
materialRadioButton5.setVisibility(aVar2.b ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton6 = aVar.i().b;
|
||||
materialRadioButton5.setVisibility(aVar4.b ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton6 = aVar3.i().b;
|
||||
m.checkNotNullExpressionValue(materialRadioButton6, "binding.audioOutputSelectionBluetoothRadio");
|
||||
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio = aVar2.f37c;
|
||||
if (bluetoothAudio == null || (str = bluetoothAudio.getName()) == null) {
|
||||
str = aVar.getString(R.string.audio_devices_bluetooth);
|
||||
String str = aVar4.f37c;
|
||||
if (str == null) {
|
||||
str = aVar3.getString(R.string.audio_devices_bluetooth);
|
||||
}
|
||||
materialRadioButton6.setText(str);
|
||||
MaterialRadioButton materialRadioButton7 = aVar.i().e;
|
||||
MaterialRadioButton materialRadioButton7 = aVar3.i().e;
|
||||
m.checkNotNullExpressionValue(materialRadioButton7, "binding.audioOutputSelectionSpeakerRadio");
|
||||
materialRadioButton7.setVisibility(aVar2.d ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton8 = aVar.i().f;
|
||||
materialRadioButton7.setVisibility(aVar4.d ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton8 = aVar3.i().f;
|
||||
m.checkNotNullExpressionValue(materialRadioButton8, "binding.audioOutputSelectionWiredRadio");
|
||||
materialRadioButton8.setVisibility(aVar2.e ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton9 = aVar.i().d;
|
||||
materialRadioButton8.setVisibility(aVar4.e ? 0 : 8);
|
||||
MaterialRadioButton materialRadioButton9 = aVar3.i().d;
|
||||
m.checkNotNullExpressionValue(materialRadioButton9, "binding.audioOutputSelectionEarpieceRadio");
|
||||
if (!aVar2.f) {
|
||||
if (!aVar4.f) {
|
||||
i2 = 8;
|
||||
}
|
||||
materialRadioButton9.setVisibility(i2);
|
||||
|
@ -225,7 +191,7 @@ public final class a extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialog.kt */
|
||||
public static final class e extends o implements Function0<AppViewModel<f.c>> {
|
||||
public static final class e extends o implements Function0<AppViewModel<d.a>> {
|
||||
public static final e i = new e();
|
||||
|
||||
public e() {
|
||||
|
@ -235,8 +201,8 @@ public final class a extends AppDialog {
|
|||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public AppViewModel<f.c> mo1invoke() {
|
||||
return new f(null, null, null, 7);
|
||||
public AppViewModel<d.a> mo1invoke() {
|
||||
return new d(null, null, 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -244,7 +210,7 @@ public final class a extends AppDialog {
|
|||
super(R.layout.audio_output_selection_dialog);
|
||||
e eVar = e.i;
|
||||
h0 h0Var = new h0(this);
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new m(5, h0Var), new j0(eVar));
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(d.class), new m(5, h0Var), new j0(eVar));
|
||||
}
|
||||
|
||||
public static final void g(a aVar) {
|
||||
|
@ -254,12 +220,12 @@ public final class a extends AppDialog {
|
|||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(d02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null);
|
||||
}
|
||||
|
||||
public static final f h(a aVar) {
|
||||
return (f) aVar.l.getValue();
|
||||
public static final d h(a aVar) {
|
||||
return (d) aVar.l.getValue();
|
||||
}
|
||||
|
||||
public final c.a.i.b i() {
|
||||
return (c.a.i.b) this.k.getValue((Fragment) this, i[0]);
|
||||
public final c.a.j.b i() {
|
||||
return (c.a.j.b) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
|
@ -279,15 +245,15 @@ public final class a extends AppDialog {
|
|||
MaterialRadioButton materialRadioButton4 = i().d;
|
||||
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
|
||||
ColorCompatKt.setDrawableColor(materialRadioButton4, themedColor);
|
||||
i().b.setOnClickListener(new View$OnClickListenerC0015a(0, this));
|
||||
i().e.setOnClickListener(new View$OnClickListenerC0015a(1, this));
|
||||
i().f.setOnClickListener(new View$OnClickListenerC0015a(2, this));
|
||||
i().d.setOnClickListener(new View$OnClickListenerC0015a(3, this));
|
||||
i().b.setOnClickListener(new View$OnClickListenerC0016a(0, this));
|
||||
i().e.setOnClickListener(new View$OnClickListenerC0016a(1, this));
|
||||
i().f.setOnClickListener(new View$OnClickListenerC0016a(2, this));
|
||||
i().d.setOnClickListener(new View$OnClickListenerC0016a(3, this));
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBoundOrOnResume() {
|
||||
super.onViewBoundOrOnResume();
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(((f) this.l.getValue()).observeViewState(), this), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(((d) this.l.getValue()).observeViewState(), this), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.e.a;
|
||||
package c.a.a.f.a;
|
||||
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
|
@ -0,0 +1,36 @@
|
|||
package c.a.a.f.a;
|
||||
|
||||
import c.a.a.f.a.d;
|
||||
import com.discord.rtcconnection.audio.DiscordAudioManager;
|
||||
import com.discord.stores.StoreAudioManagerV2;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class c extends o implements Function1<StoreAudioManagerV2.State, Unit> {
|
||||
public final /* synthetic */ d this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(d dVar) {
|
||||
super(1);
|
||||
this.this$0 = dVar;
|
||||
}
|
||||
|
||||
/* 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(StoreAudioManagerV2.State state) {
|
||||
StoreAudioManagerV2.State state2 = state;
|
||||
m.checkNotNullParameter(state2, "storeState");
|
||||
d dVar = this.this$0;
|
||||
Objects.requireNonNull(dVar);
|
||||
List<DiscordAudioManager.AudioDevice> audioDevices = state2.getAudioDevices();
|
||||
DiscordAudioManager.DeviceTypes activeAudioDevice = state2.getActiveAudioDevice();
|
||||
DiscordAudioManager.DeviceTypes deviceTypes = DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET;
|
||||
dVar.updateViewState(new d.a.C0017a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).b));
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,143 @@
|
|||
package c.a.a.f.a;
|
||||
|
||||
import android.content.Context;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.rtcconnection.audio.DiscordAudioManager;
|
||||
import com.discord.stores.StoreAudioManagerV2;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import rx.Observable;
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public final class d extends AppViewModel<a> {
|
||||
public final StoreAudioManagerV2 i;
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static abstract class a {
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
/* renamed from: c.a.a.f.a.d$a$a reason: collision with other inner class name */
|
||||
public static final class C0017a extends a {
|
||||
public final DiscordAudioManager.DeviceTypes a;
|
||||
public final boolean b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final String f37c;
|
||||
public final boolean d;
|
||||
public final boolean e;
|
||||
public final boolean f;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public C0017a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) {
|
||||
super(null);
|
||||
m.checkNotNullParameter(deviceTypes, "selectedAudioOutput");
|
||||
this.a = deviceTypes;
|
||||
this.b = z2;
|
||||
this.f37c = str;
|
||||
this.d = z3;
|
||||
this.e = z4;
|
||||
this.f = z5;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof C0017a)) {
|
||||
return false;
|
||||
}
|
||||
C0017a aVar = (C0017a) obj;
|
||||
return m.areEqual(this.a, aVar.a) && this.b == aVar.b && m.areEqual(this.f37c, aVar.f37c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
DiscordAudioManager.DeviceTypes deviceTypes = this.a;
|
||||
int i = 0;
|
||||
int hashCode = (deviceTypes != null ? deviceTypes.hashCode() : 0) * 31;
|
||||
boolean z2 = this.b;
|
||||
int i2 = 1;
|
||||
if (z2) {
|
||||
z2 = true;
|
||||
}
|
||||
int i3 = z2 ? 1 : 0;
|
||||
int i4 = z2 ? 1 : 0;
|
||||
int i5 = z2 ? 1 : 0;
|
||||
int i6 = (hashCode + i3) * 31;
|
||||
String str = this.f37c;
|
||||
if (str != null) {
|
||||
i = str.hashCode();
|
||||
}
|
||||
int i7 = (i6 + i) * 31;
|
||||
boolean z3 = this.d;
|
||||
if (z3) {
|
||||
z3 = true;
|
||||
}
|
||||
int i8 = z3 ? 1 : 0;
|
||||
int i9 = z3 ? 1 : 0;
|
||||
int i10 = z3 ? 1 : 0;
|
||||
int i11 = (i7 + i8) * 31;
|
||||
boolean z4 = this.e;
|
||||
if (z4) {
|
||||
z4 = true;
|
||||
}
|
||||
int i12 = z4 ? 1 : 0;
|
||||
int i13 = z4 ? 1 : 0;
|
||||
int i14 = z4 ? 1 : 0;
|
||||
int i15 = (i11 + i12) * 31;
|
||||
boolean z5 = this.f;
|
||||
if (!z5) {
|
||||
i2 = z5 ? 1 : 0;
|
||||
}
|
||||
return i15 + i2;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("Loaded(selectedAudioOutput=");
|
||||
K.append(this.a);
|
||||
K.append(", showBluetoothItem=");
|
||||
K.append(this.b);
|
||||
K.append(", bluetoothDeviceName=");
|
||||
K.append(this.f37c);
|
||||
K.append(", showSpeakerItem=");
|
||||
K.append(this.d);
|
||||
K.append(", showWiredItem=");
|
||||
K.append(this.e);
|
||||
K.append(", showEarpieceItem=");
|
||||
return c.d.b.a.a.F(K, this.f, ")");
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
|
||||
public static final class b extends a {
|
||||
public static final b a = new b();
|
||||
|
||||
public b() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public a() {
|
||||
}
|
||||
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
public d() {
|
||||
this(null, null, 3);
|
||||
}
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public d(StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i) {
|
||||
super(a.b.a);
|
||||
StoreAudioManagerV2 audioManagerV2 = (i & 1) != 0 ? StoreStream.Companion.getAudioManagerV2() : null;
|
||||
Observable<StoreAudioManagerV2.State> observeAudioManagerState = (i & 2) != 0 ? audioManagerV2.observeAudioManagerState() : null;
|
||||
m.checkNotNullParameter(audioManagerV2, "storeAudioManager");
|
||||
m.checkNotNullParameter(observeAudioManagerState, "storeStateObservable");
|
||||
this.i = audioManagerV2;
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observeAudioManagerState), this, null, 2, null), d.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
|
||||
}
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.o;
|
||||
import c.a.d.f;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public final class g extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(g.class, "binding", "getBinding()Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0)};
|
||||
public static final b j = new b(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
public final Lazy l;
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
public static final class a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
|
||||
public a(int i, Object obj) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = this.i;
|
||||
if (i == 0) {
|
||||
g.g((g) this.j, false);
|
||||
} else if (i == 1) {
|
||||
g.g((g) this.j, true);
|
||||
} else {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final class b {
|
||||
public b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.a> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, c.a.i.a.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public c.a.i.a invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.accessibility_detection_body_text;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.accessibility_detection_body_text);
|
||||
if (textView != null) {
|
||||
i2 = R.id.accessibility_detection_disable;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.accessibility_detection_disable);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.accessibility_detection_enable;
|
||||
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.accessibility_detection_enable);
|
||||
if (materialButton2 != null) {
|
||||
i2 = R.id.view_dialog_confirmation_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header);
|
||||
if (textView2 != null) {
|
||||
return new c.a.i.a((LinearLayout) view2, textView, materialButton, materialButton2, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final class d extends o implements Function0<AppViewModel<o.a>> {
|
||||
public static final d i = new d();
|
||||
|
||||
public d() {
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public AppViewModel<o.a> mo1invoke() {
|
||||
return new o(null, null, 3);
|
||||
}
|
||||
}
|
||||
|
||||
public g() {
|
||||
super(R.layout.allow_accessibility_detection_dialog);
|
||||
d dVar = d.i;
|
||||
h0 h0Var = new h0(this);
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(o.class), new m(0, h0Var), new j0(dVar));
|
||||
}
|
||||
|
||||
public static final void g(g gVar, boolean z2) {
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(((o) gVar.l.getValue()).i.setIsAccessibilityDetectionAllowed(z2), false, 1, null), o.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, p.i, 62, (Object) null);
|
||||
gVar.dismiss();
|
||||
}
|
||||
|
||||
public final c.a.i.a h() {
|
||||
return (c.a.i.a) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
h().f58c.setOnClickListener(new a(0, this));
|
||||
h().d.setOnClickListener(new a(1, this));
|
||||
TextView textView = h().b;
|
||||
m.checkNotNullExpressionValue(textView, "binding.accessibilityDetectionBodyText");
|
||||
c.a.k.b.m(textView, R.string.accessibility_detection_modal_body, new Object[]{f.a.a(360035966492L, null)}, null, 4);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.f;
|
||||
package c.a.a.g;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -6,7 +6,7 @@ import android.view.View;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.g5;
|
||||
import c.a.j.g5;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.stores.StoreNotices;
|
||||
|
@ -30,13 +30,13 @@ public final class a extends AppDialog {
|
|||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
/* renamed from: c.a.a.f.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0016a implements View.OnClickListener {
|
||||
/* renamed from: c.a.a.g.a$a reason: collision with other inner class name */
|
||||
public static final class View$OnClickListenerC0018a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
public final /* synthetic */ Object k;
|
||||
|
||||
public View$OnClickListenerC0016a(int i, Object obj, Object obj2) {
|
||||
public View$OnClickListenerC0018a(int i, Object obj, Object obj2) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
this.k = obj2;
|
||||
|
@ -166,9 +166,9 @@ public final class a extends AppDialog {
|
|||
}
|
||||
TextView textView = g().b;
|
||||
m.checkNotNullExpressionValue(textView, "binding.maskedLinksBodyText");
|
||||
c.a.k.b.m(textView, R.string.masked_link_body, new Object[]{obj}, null, 4);
|
||||
g().f99c.setOnClickListener(new d(this));
|
||||
g().d.setOnClickListener(new View$OnClickListenerC0016a(0, this, str));
|
||||
g().e.setOnClickListener(new View$OnClickListenerC0016a(1, this, str));
|
||||
c.a.l.b.n(textView, R.string.masked_link_body, new Object[]{obj}, null, 4);
|
||||
g().f100c.setOnClickListener(new d(this));
|
||||
g().d.setOnClickListener(new View$OnClickListenerC0018a(0, this, str));
|
||||
g().e.setOnClickListener(new View$OnClickListenerC0018a(1, this, str));
|
||||
}
|
||||
}
|
|
@ -5,88 +5,91 @@ import android.view.View;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.d.o;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.p;
|
||||
import c.a.e.f;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.uri.UriHandler;
|
||||
import com.discord.utilities.view.extensions.ViewExtensions;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public final class h extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(h.class, "binding", "getBinding()Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0)};
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(h.class, "binding", "getBinding()Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0)};
|
||||
public static final b j = new b(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
public final Lazy l;
|
||||
|
||||
/* compiled from: java-style lambda group */
|
||||
public static final class a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
public final /* synthetic */ Object k;
|
||||
|
||||
public a(int i, Object obj, Object obj2) {
|
||||
public a(int i, Object obj) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
this.k = obj2;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = this.i;
|
||||
if (i == 0) {
|
||||
UriHandler uriHandler = UriHandler.INSTANCE;
|
||||
Context requireContext = ((h) this.j).requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext, "requireContext()");
|
||||
UriHandler.handle$default(uriHandler, requireContext, (String) this.k, null, 4, null);
|
||||
((h) this.j).dismiss();
|
||||
h.g((h) this.j, false);
|
||||
} else if (i == 1) {
|
||||
Context requireContext2 = ((h) this.j).requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
|
||||
String str = (String) this.k;
|
||||
m.checkNotNullExpressionValue(str, "username");
|
||||
o.a(requireContext2, str, R.string.copied_text);
|
||||
((h) this.j).dismiss();
|
||||
h.g((h) this.j, true);
|
||||
} else {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final class b {
|
||||
public b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.h> {
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, c.a.j.a> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, c.a.i.h.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0);
|
||||
super(1, c.a.j.a.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public c.a.i.h invoke(View view) {
|
||||
public c.a.j.a invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.connected_account_actions_dialog_copy_username;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_copy_username);
|
||||
int i2 = R.id.accessibility_detection_body_text;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.accessibility_detection_body_text);
|
||||
if (textView != null) {
|
||||
i2 = R.id.connected_account_actions_dialog_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_header);
|
||||
if (textView2 != null) {
|
||||
i2 = R.id.connected_account_actions_dialog_open_in_browser;
|
||||
TextView textView3 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_open_in_browser);
|
||||
if (textView3 != null) {
|
||||
return new c.a.i.h((LinearLayout) view2, textView, textView2, textView3);
|
||||
i2 = R.id.accessibility_detection_disable;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.accessibility_detection_disable);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.accessibility_detection_enable;
|
||||
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.accessibility_detection_enable);
|
||||
if (materialButton2 != null) {
|
||||
i2 = R.id.view_dialog_confirmation_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header);
|
||||
if (textView2 != null) {
|
||||
return new c.a.j.a((LinearLayout) view2, textView, materialButton, materialButton2, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -94,33 +97,46 @@ public final class h extends AppDialog {
|
|||
}
|
||||
}
|
||||
|
||||
public h() {
|
||||
super(R.layout.connected_account_actions_dialog);
|
||||
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
|
||||
public static final class d extends o implements Function0<AppViewModel<p.a>> {
|
||||
public static final d i = new d();
|
||||
|
||||
public d() {
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public AppViewModel<p.a> mo1invoke() {
|
||||
return new p(null, null, 3);
|
||||
}
|
||||
}
|
||||
|
||||
public final c.a.i.h g() {
|
||||
return (c.a.i.h) this.k.getValue((Fragment) this, i[0]);
|
||||
public h() {
|
||||
super(R.layout.allow_accessibility_detection_dialog);
|
||||
d dVar = d.i;
|
||||
h0 h0Var = new h0(this);
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(p.class), new m(0, h0Var), new j0(dVar));
|
||||
}
|
||||
|
||||
public static final void g(h hVar, boolean z2) {
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(((p) hVar.l.getValue()).i.setIsAccessibilityDetectionAllowed(z2), false, 1, null), p.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, q.i, 62, (Object) null);
|
||||
hVar.dismiss();
|
||||
}
|
||||
|
||||
public final c.a.j.a h() {
|
||||
return (c.a.j.a) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
String string = getArgumentsOrDefault().getString("ARG_PROFILE_URL", "");
|
||||
String string2 = getArgumentsOrDefault().getString("ARG_USERNAME", "");
|
||||
int i2 = getArgumentsOrDefault().getInt("ARG_PLATFORM_IMAGE_RES", 0);
|
||||
if (i2 != 0) {
|
||||
TextView textView = g().f100c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.connectedAccountActionsDialogHeader");
|
||||
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView, i2, 0, 0, 0, 14, null);
|
||||
}
|
||||
TextView textView2 = g().f100c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.connectedAccountActionsDialogHeader");
|
||||
textView2.setText(string2);
|
||||
TextView textView3 = g().d;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.connectedAccountActionsDialogOpenInBrowser");
|
||||
textView3.setVisibility((string == null || string.length() == 0) ^ true ? 0 : 8);
|
||||
g().d.setOnClickListener(new a(0, this, string));
|
||||
g().b.setOnClickListener(new a(1, this, string2));
|
||||
h().f59c.setOnClickListener(new a(0, this));
|
||||
h().d.setOnClickListener(new a(1, this));
|
||||
TextView textView = h().b;
|
||||
m.checkNotNullExpressionValue(textView, "binding.accessibilityDetectionBodyText");
|
||||
c.a.l.b.n(textView, R.string.accessibility_detection_modal_body, new Object[]{f.a.a(360035966492L, null)}, null, 4);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,67 +1,93 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.e;
|
||||
import c.a.e.o;
|
||||
import c.a.j.h;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.uri.UriHandler;
|
||||
import com.discord.utilities.view.extensions.ViewExtensions;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
public final class i extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(i.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(i.class, "binding", "getBinding()Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0)};
|
||||
public static final b j = new b(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
/* compiled from: java-style lambda group */
|
||||
public static final class a implements View.OnClickListener {
|
||||
public final /* synthetic */ int i;
|
||||
public final /* synthetic */ Object j;
|
||||
public final /* synthetic */ Object k;
|
||||
|
||||
public a(int i, Object obj, Object obj2) {
|
||||
this.i = i;
|
||||
this.j = obj;
|
||||
this.k = obj2;
|
||||
}
|
||||
|
||||
public final void a(FragmentManager fragmentManager, int i) {
|
||||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
|
||||
i iVar = new i();
|
||||
iVar.setArguments(bundle);
|
||||
iVar.show(fragmentManager, i.class.getSimpleName());
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = this.i;
|
||||
if (i == 0) {
|
||||
UriHandler uriHandler = UriHandler.INSTANCE;
|
||||
Context requireContext = ((i) this.j).requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext, "requireContext()");
|
||||
UriHandler.handle$default(uriHandler, requireContext, (String) this.k, null, 4, null);
|
||||
((i) this.j).dismiss();
|
||||
} else if (i == 1) {
|
||||
Context requireContext2 = ((i) this.j).requireContext();
|
||||
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
|
||||
String str = (String) this.k;
|
||||
m.checkNotNullExpressionValue(str, "username");
|
||||
o.a(requireContext2, str, R.string.copied_text);
|
||||
((i) this.j).dismiss();
|
||||
} else {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, e> {
|
||||
public static final b i = new b();
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
public static final class b {
|
||||
public b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
public b() {
|
||||
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0);
|
||||
/* compiled from: ConnectedAccountActionsDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, h> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, h.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public e invoke(View view) {
|
||||
public h invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.camera_capacity_body;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.camera_capacity_body);
|
||||
int i2 = R.id.connected_account_actions_dialog_copy_username;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_copy_username);
|
||||
if (textView != null) {
|
||||
i2 = R.id.camera_capacity_confirm;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.camera_capacity_confirm);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.notice_header_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
||||
if (linearLayout != null) {
|
||||
return new e((LinearLayout) view2, textView, materialButton, linearLayout);
|
||||
i2 = R.id.connected_account_actions_dialog_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_header);
|
||||
if (textView2 != null) {
|
||||
i2 = R.id.connected_account_actions_dialog_open_in_browser;
|
||||
TextView textView3 = (TextView) view2.findViewById(R.id.connected_account_actions_dialog_open_in_browser);
|
||||
if (textView3 != null) {
|
||||
return new h((LinearLayout) view2, textView, textView2, textView3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,35 +95,33 @@ public final class i extends AppDialog {
|
|||
}
|
||||
}
|
||||
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final class c implements View.OnClickListener {
|
||||
public final /* synthetic */ i i;
|
||||
|
||||
public c(i iVar) {
|
||||
this.i = iVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
this.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
public i() {
|
||||
super(R.layout.camera_capacity_dialog);
|
||||
super(R.layout.connected_account_actions_dialog);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.k;
|
||||
KProperty<?>[] kPropertyArr = i;
|
||||
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f83c.setOnClickListener(new c(this));
|
||||
Bundle arguments = getArguments();
|
||||
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
|
||||
TextView textView = ((e) this.k.getValue((Fragment) this, kPropertyArr[0])).b;
|
||||
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
|
||||
textView.setText(c.a.k.b.j(this, R.string.video_capacity_modal_body, new Object[]{String.valueOf(valueOf)}, null, 4));
|
||||
public final h g() {
|
||||
return (h) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
String string = getArgumentsOrDefault().getString("ARG_PROFILE_URL", "");
|
||||
String string2 = getArgumentsOrDefault().getString("ARG_USERNAME", "");
|
||||
int i2 = getArgumentsOrDefault().getInt("ARG_PLATFORM_IMAGE_RES", 0);
|
||||
if (i2 != 0) {
|
||||
TextView textView = g().f101c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.connectedAccountActionsDialogHeader");
|
||||
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView, i2, 0, 0, 0, 14, null);
|
||||
}
|
||||
TextView textView2 = g().f101c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.connectedAccountActionsDialogHeader");
|
||||
textView2.setText(string2);
|
||||
TextView textView3 = g().d;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.connectedAccountActionsDialogOpenInBrowser");
|
||||
textView3.setVisibility((string == null || string.length() == 0) ^ true ? 0 : 8);
|
||||
g().d.setOnClickListener(new a(0, this, string));
|
||||
g().b.setOnClickListener(new a(1, this, string2));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,77 +2,66 @@ package c.a.a;
|
|||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.DatePicker;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.j.e;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.birthday.BirthdayHelper;
|
||||
import com.discord.utilities.font.FontUtils;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import java.util.Calendar;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public final class j extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(j.class, "binding", "getBinding()Lcom/discord/databinding/DialogDatePickerBinding;", 0)};
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(j.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public Function1<? super Long, Unit> k;
|
||||
public long l;
|
||||
public boolean m;
|
||||
public final FragmentViewBindingDelegate n = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public final j a(FragmentManager fragmentManager, CharSequence charSequence, long j, long j2) {
|
||||
public final void a(FragmentManager fragmentManager, int i) {
|
||||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
m.checkNotNullParameter(charSequence, "label");
|
||||
j jVar = new j();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putCharSequence("label", charSequence);
|
||||
bundle.putLong("initial_date", j);
|
||||
bundle.putLong("max_date", j2);
|
||||
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
|
||||
j jVar = new j();
|
||||
jVar.setArguments(bundle);
|
||||
jVar.show(fragmentManager, j.class.getName());
|
||||
return jVar;
|
||||
jVar.show(fragmentManager, j.class.getSimpleName());
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, c.a.i.k> {
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, e> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, c.a.i.k.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogDatePickerBinding;", 0);
|
||||
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public c.a.i.k invoke(View view) {
|
||||
public e invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.dialog_date_picker_done;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_date_picker_done);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.dialog_date_picker_input;
|
||||
DatePicker datePicker = (DatePicker) view2.findViewById(R.id.dialog_date_picker_input);
|
||||
if (datePicker != null) {
|
||||
i2 = R.id.dialog_date_picker_title;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.dialog_date_picker_title);
|
||||
if (textView != null) {
|
||||
return new c.a.i.k((LinearLayout) view2, materialButton, datePicker, textView);
|
||||
int i2 = R.id.camera_capacity_body;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.camera_capacity_body);
|
||||
if (textView != null) {
|
||||
i2 = R.id.camera_capacity_confirm;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.camera_capacity_confirm);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.notice_header_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
||||
if (linearLayout != null) {
|
||||
return new e((LinearLayout) view2, textView, materialButton, linearLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,94 +69,35 @@ public final class j extends AppDialog {
|
|||
}
|
||||
}
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final class c implements DatePicker.OnDateChangedListener {
|
||||
/* compiled from: CameraCapacityDialog.kt */
|
||||
public static final class c implements View.OnClickListener {
|
||||
public final /* synthetic */ j i;
|
||||
|
||||
public c(j jVar) {
|
||||
this.i = jVar;
|
||||
}
|
||||
|
||||
@Override // android.widget.DatePicker.OnDateChangedListener
|
||||
public final void onDateChanged(DatePicker datePicker, int i, int i2, int i3) {
|
||||
Calendar instance = Calendar.getInstance();
|
||||
instance.set(i, i2, i3);
|
||||
j jVar = this.i;
|
||||
m.checkNotNullExpressionValue(instance, "cal");
|
||||
jVar.l = instance.getTimeInMillis();
|
||||
j jVar2 = this.i;
|
||||
jVar2.m = true;
|
||||
Function1<? super Long, Unit> function1 = jVar2.k;
|
||||
if (function1 != null) {
|
||||
function1.invoke(Long.valueOf(jVar2.l));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
public final /* synthetic */ j i;
|
||||
|
||||
public d(j jVar) {
|
||||
this.i = jVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
Function1<? super Long, Unit> function1;
|
||||
j jVar = this.i;
|
||||
if (jVar.m && (function1 = jVar.k) != null) {
|
||||
function1.invoke(Long.valueOf(jVar.l));
|
||||
}
|
||||
this.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
public j() {
|
||||
super(R.layout.dialog_date_picker);
|
||||
}
|
||||
|
||||
public final c.a.i.k g() {
|
||||
return (c.a.i.k) this.n.getValue((Fragment) this, i[0]);
|
||||
super(R.layout.camera_capacity_dialog);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
g().f113c.clearFocus();
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBoundOrOnResume() {
|
||||
CharSequence charSequence;
|
||||
super.onViewBoundOrOnResume();
|
||||
TextView textView = g().d;
|
||||
m.checkNotNullExpressionValue(textView, "binding.dialogDatePickerTitle");
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.k;
|
||||
KProperty<?>[] kPropertyArr = i;
|
||||
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f85c.setOnClickListener(new c(this));
|
||||
Bundle arguments = getArguments();
|
||||
if (arguments == null || (charSequence = arguments.getCharSequence("label")) == null) {
|
||||
charSequence = "";
|
||||
}
|
||||
textView.setText(charSequence);
|
||||
DatePicker datePicker = g().f113c;
|
||||
m.checkNotNullExpressionValue(datePicker, "binding.dialogDatePickerInput");
|
||||
Bundle arguments2 = getArguments();
|
||||
long j2 = 0;
|
||||
datePicker.setMaxDate(arguments2 != null ? arguments2.getLong("max_date") : 0);
|
||||
DatePicker datePicker2 = g().f113c;
|
||||
m.checkNotNullExpressionValue(datePicker2, "binding.dialogDatePickerInput");
|
||||
datePicker2.setMinDate(BirthdayHelper.INSTANCE.subtractYearsFromToday(FontUtils.MAX_FONT_SCALING));
|
||||
Bundle arguments3 = getArguments();
|
||||
if (arguments3 != null) {
|
||||
j2 = arguments3.getLong("initial_date");
|
||||
}
|
||||
this.l = j2;
|
||||
if (this.k == null) {
|
||||
dismiss();
|
||||
}
|
||||
Calendar instance = Calendar.getInstance();
|
||||
m.checkNotNullExpressionValue(instance, "calendar");
|
||||
instance.setTimeInMillis(this.l);
|
||||
g().f113c.init(instance.get(1), instance.get(2), instance.get(5), new c(this));
|
||||
g().b.setOnClickListener(new d(this));
|
||||
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
|
||||
TextView textView = ((e) this.k.getValue((Fragment) this, kPropertyArr[0])).b;
|
||||
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
|
||||
textView.setText(c.a.l.b.k(this, R.string.video_capacity_modal_body, new Object[]{String.valueOf(valueOf)}, null, 4));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,27 +1,172 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.DatePicker;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.birthday.BirthdayHelper;
|
||||
import com.discord.utilities.font.FontUtils;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.Calendar;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: FriendRequestDialogs.kt */
|
||||
public final class k extends o implements Function1<View, Unit> {
|
||||
public final /* synthetic */ Function1 $onConfirm;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public final class k extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(k.class, "binding", "getBinding()Lcom/discord/databinding/DialogDatePickerBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public Function1<? super Long, Unit> k;
|
||||
public long l;
|
||||
public boolean m;
|
||||
public final FragmentViewBindingDelegate n = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public k(Function1 function1) {
|
||||
super(1);
|
||||
this.$onConfirm = function1;
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public final k a(FragmentManager fragmentManager, CharSequence charSequence, long j, long j2) {
|
||||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
m.checkNotNullParameter(charSequence, "label");
|
||||
k kVar = new k();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putCharSequence("label", charSequence);
|
||||
bundle.putLong("initial_date", j);
|
||||
bundle.putLong("max_date", j2);
|
||||
kVar.setArguments(bundle);
|
||||
kVar.show(fragmentManager, k.class.getName());
|
||||
return kVar;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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(View view) {
|
||||
m.checkNotNullParameter(view, "<anonymous parameter 0>");
|
||||
this.$onConfirm.invoke(Integer.valueOf((int) R.string.friend_request_cancelled));
|
||||
return Unit.a;
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final /* synthetic */ class b extends d0.z.d.k implements Function1<View, c.a.j.k> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, c.a.j.k.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogDatePickerBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public c.a.j.k invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.dialog_date_picker_done;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_date_picker_done);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.dialog_date_picker_input;
|
||||
DatePicker datePicker = (DatePicker) view2.findViewById(R.id.dialog_date_picker_input);
|
||||
if (datePicker != null) {
|
||||
i2 = R.id.dialog_date_picker_title;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.dialog_date_picker_title);
|
||||
if (textView != null) {
|
||||
return new c.a.j.k((LinearLayout) view2, materialButton, datePicker, textView);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final class c implements DatePicker.OnDateChangedListener {
|
||||
public final /* synthetic */ k i;
|
||||
|
||||
public c(k kVar) {
|
||||
this.i = kVar;
|
||||
}
|
||||
|
||||
@Override // android.widget.DatePicker.OnDateChangedListener
|
||||
public final void onDateChanged(DatePicker datePicker, int i, int i2, int i3) {
|
||||
Calendar instance = Calendar.getInstance();
|
||||
instance.set(i, i2, i3);
|
||||
k kVar = this.i;
|
||||
m.checkNotNullExpressionValue(instance, "cal");
|
||||
kVar.l = instance.getTimeInMillis();
|
||||
k kVar2 = this.i;
|
||||
kVar2.m = true;
|
||||
Function1<? super Long, Unit> function1 = kVar2.k;
|
||||
if (function1 != null) {
|
||||
function1.invoke(Long.valueOf(kVar2.l));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: DatePickerDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
public final /* synthetic */ k i;
|
||||
|
||||
public d(k kVar) {
|
||||
this.i = kVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
Function1<? super Long, Unit> function1;
|
||||
k kVar = this.i;
|
||||
if (kVar.m && (function1 = kVar.k) != null) {
|
||||
function1.invoke(Long.valueOf(kVar.l));
|
||||
}
|
||||
this.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
public k() {
|
||||
super(R.layout.dialog_date_picker);
|
||||
}
|
||||
|
||||
public final c.a.j.k g() {
|
||||
return (c.a.j.k) this.n.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
g().f115c.clearFocus();
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBoundOrOnResume() {
|
||||
CharSequence charSequence;
|
||||
super.onViewBoundOrOnResume();
|
||||
TextView textView = g().d;
|
||||
m.checkNotNullExpressionValue(textView, "binding.dialogDatePickerTitle");
|
||||
Bundle arguments = getArguments();
|
||||
if (arguments == null || (charSequence = arguments.getCharSequence("label")) == null) {
|
||||
charSequence = "";
|
||||
}
|
||||
textView.setText(charSequence);
|
||||
DatePicker datePicker = g().f115c;
|
||||
m.checkNotNullExpressionValue(datePicker, "binding.dialogDatePickerInput");
|
||||
Bundle arguments2 = getArguments();
|
||||
long j2 = 0;
|
||||
datePicker.setMaxDate(arguments2 != null ? arguments2.getLong("max_date") : 0);
|
||||
DatePicker datePicker2 = g().f115c;
|
||||
m.checkNotNullExpressionValue(datePicker2, "binding.dialogDatePickerInput");
|
||||
datePicker2.setMinDate(BirthdayHelper.INSTANCE.subtractYearsFromToday(FontUtils.MAX_FONT_SCALING));
|
||||
Bundle arguments3 = getArguments();
|
||||
if (arguments3 != null) {
|
||||
j2 = arguments3.getLong("initial_date");
|
||||
}
|
||||
this.l = j2;
|
||||
if (this.k == null) {
|
||||
dismiss();
|
||||
}
|
||||
Calendar instance = Calendar.getInstance();
|
||||
m.checkNotNullExpressionValue(instance, "calendar");
|
||||
instance.setTimeInMillis(this.l);
|
||||
g().f115c.init(instance.get(1), instance.get(2), instance.get(5), new c(this));
|
||||
g().b.setOnClickListener(new d(this));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,86 +1,27 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.i.s;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public final class l extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(l.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
/* compiled from: FriendRequestDialogs.kt */
|
||||
public final class l extends o implements Function1<View, Unit> {
|
||||
public final /* synthetic */ Function1 $onConfirm;
|
||||
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public final void a(FragmentManager fragmentManager) {
|
||||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
new l().show(fragmentManager, l.class.getSimpleName());
|
||||
}
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public l(Function1 function1) {
|
||||
super(1);
|
||||
this.$onConfirm = function1;
|
||||
}
|
||||
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, s> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public s invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.guild_video_at_capacity_confirm;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_video_at_capacity_confirm);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.notice_header_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
||||
if (linearLayout != null) {
|
||||
return new s((LinearLayout) view2, materialButton, linearLayout);
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final class c implements View.OnClickListener {
|
||||
public final /* synthetic */ l i;
|
||||
|
||||
public c(l lVar) {
|
||||
this.i = lVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
this.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
public l() {
|
||||
super(R.layout.guild_video_at_capacity);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
((s) this.k.getValue((Fragment) this, i[0])).b.setOnClickListener(new c(this));
|
||||
/* 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(View view) {
|
||||
m.checkNotNullParameter(view, "<anonymous parameter 0>");
|
||||
this.$onConfirm.invoke(Integer.valueOf((int) R.string.friend_request_cancelled));
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,123 +1,68 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import c.a.i.l;
|
||||
import c.a.j.s;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.discord.utilities.views.SimpleRecyclerAdapter;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.t.j;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public final class m extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(m.class, "binding", "getBinding()Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0)};
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(m.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public Function1<? super Integer, Unit> k;
|
||||
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public final m a(FragmentManager fragmentManager, CharSequence charSequence, CharSequence[] charSequenceArr, Function1<? super Integer, Unit> function1) {
|
||||
public final void a(FragmentManager fragmentManager) {
|
||||
d0.z.d.m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
d0.z.d.m.checkNotNullParameter(charSequence, "title");
|
||||
d0.z.d.m.checkNotNullParameter(charSequenceArr, "options");
|
||||
d0.z.d.m.checkNotNullParameter(function1, "onSelectedListener");
|
||||
m mVar = new m();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putCharSequence("INTENT_DIALOG_TITLE", charSequence);
|
||||
bundle.putCharSequenceArray("INTENT_DIALOG_OPTIONS", charSequenceArr);
|
||||
mVar.setArguments(bundle);
|
||||
mVar.k = function1;
|
||||
mVar.show(fragmentManager, a0.getOrCreateKotlinClass(m.class).toString());
|
||||
return mVar;
|
||||
new m().show(fragmentManager, m.class.getSimpleName());
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public final class b extends SimpleRecyclerAdapter.ViewHolder<CharSequence> {
|
||||
public final c.a.i.m a;
|
||||
public final /* synthetic */ m b;
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, s> {
|
||||
public static final b i = new b();
|
||||
|
||||
/* JADX WARNING: Illegal instructions before constructor call */
|
||||
public b(m mVar, c.a.i.m mVar2) {
|
||||
super(r2);
|
||||
d0.z.d.m.checkNotNullParameter(mVar2, "binding");
|
||||
this.b = mVar;
|
||||
TextView textView = mVar2.a;
|
||||
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.root");
|
||||
this.a = mVar2;
|
||||
}
|
||||
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
|
||||
public void bind(CharSequence charSequence) {
|
||||
CharSequence charSequence2 = charSequence;
|
||||
d0.z.d.m.checkNotNullParameter(charSequence2, "data");
|
||||
TextView textView = this.a.a;
|
||||
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.root");
|
||||
textView.setText(charSequence2);
|
||||
this.a.a.setOnClickListener(new n(this));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, l> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, l.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0);
|
||||
public b() {
|
||||
super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public l invoke(View view) {
|
||||
public s invoke(View view) {
|
||||
View view2 = view;
|
||||
d0.z.d.m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.dialog_cancel;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_cancel);
|
||||
int i2 = R.id.guild_video_at_capacity_confirm;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_video_at_capacity_confirm);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.dialog_selections;
|
||||
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.dialog_selections);
|
||||
if (maxHeightRecyclerView != null) {
|
||||
i2 = R.id.dialog_title;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.dialog_title);
|
||||
if (textView != null) {
|
||||
return new l((LinearLayout) view2, materialButton, maxHeightRecyclerView, textView);
|
||||
}
|
||||
i2 = R.id.notice_header_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.notice_header_container);
|
||||
if (linearLayout != null) {
|
||||
return new s((LinearLayout) view2, materialButton, linearLayout);
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
/* compiled from: GuildVideoAtCapacityDialog.kt */
|
||||
public static final class c implements View.OnClickListener {
|
||||
public final /* synthetic */ m i;
|
||||
|
||||
public d(m mVar) {
|
||||
public c(m mVar) {
|
||||
this.i = mVar;
|
||||
}
|
||||
|
||||
|
@ -127,70 +72,14 @@ public final class m extends AppDialog {
|
|||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final class e extends o implements Function2<LayoutInflater, ViewGroup, b> {
|
||||
public final /* synthetic */ m this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public e(m mVar) {
|
||||
super(2);
|
||||
this.this$0 = mVar;
|
||||
}
|
||||
|
||||
/* 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 // kotlin.jvm.functions.Function2
|
||||
public b invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
|
||||
LayoutInflater layoutInflater2 = layoutInflater;
|
||||
ViewGroup viewGroup2 = viewGroup;
|
||||
d0.z.d.m.checkNotNullParameter(layoutInflater2, "inflater");
|
||||
d0.z.d.m.checkNotNullParameter(viewGroup2, "parent");
|
||||
View inflate = layoutInflater2.inflate(R.layout.dialog_simple_selector_item, viewGroup2, false);
|
||||
Objects.requireNonNull(inflate, "rootView");
|
||||
c.a.i.m mVar = new c.a.i.m((TextView) inflate);
|
||||
d0.z.d.m.checkNotNullExpressionValue(mVar, "DialogSimpleSelectorItem…(inflater, parent, false)");
|
||||
return new b(this.this$0, mVar);
|
||||
}
|
||||
}
|
||||
|
||||
public m() {
|
||||
super(R.layout.dialog_simple_selector);
|
||||
}
|
||||
|
||||
public final l g() {
|
||||
return (l) this.l.getValue((Fragment) this, i[0]);
|
||||
super(R.layout.guild_video_at_capacity);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
d0.z.d.m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
TextView textView = g().d;
|
||||
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.dialogTitle");
|
||||
textView.setText(getArgumentsOrDefault().getCharSequence("INTENT_DIALOG_TITLE", null));
|
||||
g().b.setOnClickListener(new d(this));
|
||||
CharSequence[] charSequenceArray = getArgumentsOrDefault().getCharSequenceArray("INTENT_DIALOG_OPTIONS");
|
||||
if (charSequenceArray != null) {
|
||||
MaxHeightRecyclerView maxHeightRecyclerView = g().f119c;
|
||||
d0.z.d.m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.dialogSelections");
|
||||
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(j.asList(charSequenceArray), new e(this)));
|
||||
MaxHeightRecyclerView maxHeightRecyclerView2 = g().f119c;
|
||||
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
|
||||
if (adapter != null) {
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
maxHeightRecyclerView2.setHasFixedSize(false);
|
||||
maxHeightRecyclerView2.setNestedScrollingEnabled(false);
|
||||
SimpleRecyclerAdapter.Companion companion = SimpleRecyclerAdapter.Companion;
|
||||
MaxHeightRecyclerView maxHeightRecyclerView3 = g().f119c;
|
||||
d0.z.d.m.checkNotNullExpressionValue(maxHeightRecyclerView3, "binding.dialogSelections");
|
||||
companion.addThemedDivider(maxHeightRecyclerView3);
|
||||
}
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
requireDialog().setCanceledOnTouchOutside(true);
|
||||
((s) this.k.getValue((Fragment) this, i[0])).b.setOnClickListener(new c(this));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,24 +1,197 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import c.a.a.m;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import c.a.j.l;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.discord.utilities.views.SimpleRecyclerAdapter;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import d0.t.j;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public final class n implements View.OnClickListener {
|
||||
public final /* synthetic */ m.b i;
|
||||
public final class n extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(n.class, "binding", "getBinding()Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public Function1<? super Integer, Unit> k;
|
||||
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
|
||||
|
||||
public n(m.b bVar) {
|
||||
this.i = bVar;
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
|
||||
public final n a(FragmentManager fragmentManager, CharSequence charSequence, CharSequence[] charSequenceArr, Function1<? super Integer, Unit> function1) {
|
||||
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
||||
m.checkNotNullParameter(charSequence, "title");
|
||||
m.checkNotNullParameter(charSequenceArr, "options");
|
||||
m.checkNotNullParameter(function1, "onSelectedListener");
|
||||
n nVar = new n();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putCharSequence("INTENT_DIALOG_TITLE", charSequence);
|
||||
bundle.putCharSequenceArray("INTENT_DIALOG_OPTIONS", charSequenceArr);
|
||||
nVar.setArguments(bundle);
|
||||
nVar.k = function1;
|
||||
nVar.show(fragmentManager, a0.getOrCreateKotlinClass(n.class).toString());
|
||||
return nVar;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
m.b bVar = this.i;
|
||||
Function1<? super Integer, Unit> function1 = bVar.b.k;
|
||||
if (function1 != null) {
|
||||
function1.invoke(Integer.valueOf(bVar.getAdapterPosition()));
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public final class b extends SimpleRecyclerAdapter.ViewHolder<CharSequence> {
|
||||
public final c.a.j.m a;
|
||||
public final /* synthetic */ n b;
|
||||
|
||||
/* JADX WARNING: Illegal instructions before constructor call */
|
||||
public b(n nVar, c.a.j.m mVar) {
|
||||
super(r2);
|
||||
m.checkNotNullParameter(mVar, "binding");
|
||||
this.b = nVar;
|
||||
TextView textView = mVar.a;
|
||||
m.checkNotNullExpressionValue(textView, "binding.root");
|
||||
this.a = mVar;
|
||||
}
|
||||
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
|
||||
public void bind(CharSequence charSequence) {
|
||||
CharSequence charSequence2 = charSequence;
|
||||
m.checkNotNullParameter(charSequence2, "data");
|
||||
TextView textView = this.a.a;
|
||||
m.checkNotNullExpressionValue(textView, "binding.root");
|
||||
textView.setText(charSequence2);
|
||||
this.a.a.setOnClickListener(new o(this));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final /* synthetic */ class c extends k implements Function1<View, l> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1, l.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public l invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.dialog_cancel;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.dialog_cancel);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.dialog_selections;
|
||||
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.dialog_selections);
|
||||
if (maxHeightRecyclerView != null) {
|
||||
i2 = R.id.dialog_title;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.dialog_title);
|
||||
if (textView != null) {
|
||||
return new l((LinearLayout) view2, materialButton, maxHeightRecyclerView, textView);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
public final /* synthetic */ n i;
|
||||
|
||||
public d(n nVar) {
|
||||
this.i = nVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
this.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public static final class e extends o implements Function2<LayoutInflater, ViewGroup, b> {
|
||||
public final /* synthetic */ n this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public e(n nVar) {
|
||||
super(2);
|
||||
this.this$0 = nVar;
|
||||
}
|
||||
|
||||
/* 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 // kotlin.jvm.functions.Function2
|
||||
public b invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
|
||||
LayoutInflater layoutInflater2 = layoutInflater;
|
||||
ViewGroup viewGroup2 = viewGroup;
|
||||
m.checkNotNullParameter(layoutInflater2, "inflater");
|
||||
m.checkNotNullParameter(viewGroup2, "parent");
|
||||
View inflate = layoutInflater2.inflate(R.layout.dialog_simple_selector_item, viewGroup2, false);
|
||||
Objects.requireNonNull(inflate, "rootView");
|
||||
c.a.j.m mVar = new c.a.j.m((TextView) inflate);
|
||||
m.checkNotNullExpressionValue(mVar, "DialogSimpleSelectorItem…(inflater, parent, false)");
|
||||
return new b(this.this$0, mVar);
|
||||
}
|
||||
}
|
||||
|
||||
public n() {
|
||||
super(R.layout.dialog_simple_selector);
|
||||
}
|
||||
|
||||
public final l g() {
|
||||
return (l) this.l.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
dismiss();
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
TextView textView = g().d;
|
||||
m.checkNotNullExpressionValue(textView, "binding.dialogTitle");
|
||||
textView.setText(getArgumentsOrDefault().getCharSequence("INTENT_DIALOG_TITLE", null));
|
||||
g().b.setOnClickListener(new d(this));
|
||||
CharSequence[] charSequenceArray = getArgumentsOrDefault().getCharSequenceArray("INTENT_DIALOG_OPTIONS");
|
||||
if (charSequenceArray != null) {
|
||||
MaxHeightRecyclerView maxHeightRecyclerView = g().f120c;
|
||||
m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.dialogSelections");
|
||||
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(j.asList(charSequenceArray), new e(this)));
|
||||
MaxHeightRecyclerView maxHeightRecyclerView2 = g().f120c;
|
||||
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
|
||||
if (adapter != null) {
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
maxHeightRecyclerView2.setHasFixedSize(false);
|
||||
maxHeightRecyclerView2.setNestedScrollingEnabled(false);
|
||||
SimpleRecyclerAdapter.Companion companion = SimpleRecyclerAdapter.Companion;
|
||||
MaxHeightRecyclerView maxHeightRecyclerView3 = g().f120c;
|
||||
m.checkNotNullExpressionValue(maxHeightRecyclerView3, "binding.dialogSelections");
|
||||
companion.addThemedDivider(maxHeightRecyclerView3);
|
||||
}
|
||||
this.i.b.dismiss();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,54 +1,24 @@
|
|||
package c.a.a;
|
||||
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.stores.StoreNotices;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.stores.StoreUserSettings;
|
||||
import d0.z.d.m;
|
||||
import java.util.Objects;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
public final class o extends AppViewModel<a> {
|
||||
public final StoreUserSettings i;
|
||||
public final StoreNotices j;
|
||||
import android.view.View;
|
||||
import c.a.a.n;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: SelectorDialog.kt */
|
||||
public final class o implements View.OnClickListener {
|
||||
public final /* synthetic */ n.b i;
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
public static abstract class a {
|
||||
public o(n.b bVar) {
|
||||
this.i = bVar;
|
||||
}
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
/* renamed from: c.a.a.o$a$a reason: collision with other inner class name */
|
||||
public static final class C0017a extends a {
|
||||
public static final C0017a a = new C0017a();
|
||||
|
||||
public C0017a() {
|
||||
super(null);
|
||||
}
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
n.b bVar = this.i;
|
||||
Function1<? super Integer, Unit> function1 = bVar.b.k;
|
||||
if (function1 != null) {
|
||||
function1.invoke(Integer.valueOf(bVar.getAdapterPosition()));
|
||||
}
|
||||
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
public o() {
|
||||
this(null, null, 3);
|
||||
}
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public o(StoreUserSettings storeUserSettings, StoreNotices storeNotices, int i) {
|
||||
super(a.C0017a.a);
|
||||
StoreNotices storeNotices2 = null;
|
||||
StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null;
|
||||
storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2;
|
||||
m.checkNotNullParameter(userSettings, "storeUserSettings");
|
||||
m.checkNotNullParameter(storeNotices2, "storeNotices");
|
||||
this.i = userSettings;
|
||||
this.j = storeNotices2;
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppViewModel, androidx.lifecycle.ViewModel
|
||||
public void onCleared() {
|
||||
StoreNotices storeNotices = this.j;
|
||||
Objects.requireNonNull(g.j);
|
||||
StoreNotices.markSeen$default(storeNotices, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG", 0, 2, null);
|
||||
this.i.b.dismiss();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +1,54 @@
|
|||
package c.a.a;
|
||||
|
||||
import com.discord.models.domain.ModelUserSettings;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.stores.StoreNotices;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.stores.StoreUserSettings;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import java.util.Objects;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
public final class p extends o implements Function1<ModelUserSettings, Unit> {
|
||||
public static final p i = new p();
|
||||
public final class p extends AppViewModel<a> {
|
||||
public final StoreUserSettings i;
|
||||
public final StoreNotices j;
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
public static abstract class a {
|
||||
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
/* renamed from: c.a.a.p$a$a reason: collision with other inner class name */
|
||||
public static final class C0019a extends a {
|
||||
public static final C0019a a = new C0019a();
|
||||
|
||||
public C0019a() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
public p() {
|
||||
super(1);
|
||||
this(null, null, 3);
|
||||
}
|
||||
|
||||
/* 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(ModelUserSettings modelUserSettings) {
|
||||
m.checkNotNullParameter(modelUserSettings, "it");
|
||||
return Unit.a;
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public p(StoreUserSettings storeUserSettings, StoreNotices storeNotices, int i) {
|
||||
super(a.C0019a.a);
|
||||
StoreNotices storeNotices2 = null;
|
||||
StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null;
|
||||
storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2;
|
||||
m.checkNotNullParameter(userSettings, "storeUserSettings");
|
||||
m.checkNotNullParameter(storeNotices2, "storeNotices");
|
||||
this.i = userSettings;
|
||||
this.j = storeNotices2;
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppViewModel, androidx.lifecycle.ViewModel
|
||||
public void onCleared() {
|
||||
StoreNotices storeNotices = this.j;
|
||||
Objects.requireNonNull(h.j);
|
||||
StoreNotices.markSeen$default(storeNotices, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG", 0, 2, null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,217 +1,23 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import c.a.i.z4;
|
||||
import com.discord.R;
|
||||
import com.discord.api.auth.mfa.EnableMfaResponse;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.restapi.RestAPIParams;
|
||||
import com.discord.utilities.error.Error;
|
||||
import com.discord.utilities.rest.RestAPI;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.view.extensions.ViewExtensions;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.discord.views.LoadingButton;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.textfield.TextInputLayout;
|
||||
import d0.z.d.k;
|
||||
import com.discord.models.domain.ModelUserSettings;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
import rx.Observable;
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public final class q extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(q.class, "binding", "getBinding()Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
public Function1<? super String, Unit> l = c.i;
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, z4> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, z4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public z4 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.enable_two_factor_password_body_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_body_container);
|
||||
if (linearLayout != null) {
|
||||
i2 = R.id.enable_two_factor_password_body_text;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.enable_two_factor_password_body_text);
|
||||
if (textView != null) {
|
||||
i2 = R.id.enable_two_factor_password_cancel;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.enable_two_factor_password_cancel);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.enable_two_factor_password_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.enable_two_factor_password_header);
|
||||
if (textView2 != null) {
|
||||
i2 = R.id.enable_two_factor_password_header_container;
|
||||
LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_header_container);
|
||||
if (linearLayout2 != null) {
|
||||
i2 = R.id.enable_two_factor_password_ok;
|
||||
LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.enable_two_factor_password_ok);
|
||||
if (loadingButton != null) {
|
||||
i2 = R.id.enable_two_factor_password_view_input;
|
||||
TextInputLayout textInputLayout = (TextInputLayout) view2.findViewById(R.id.enable_two_factor_password_view_input);
|
||||
if (textInputLayout != null) {
|
||||
return new z4((LinearLayout) view2, linearLayout, textView, materialButton, textView2, linearLayout2, loadingButton, textInputLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class c extends o implements Function1<String, Unit> {
|
||||
public static final c i = new c();
|
||||
|
||||
public c() {
|
||||
super(1);
|
||||
}
|
||||
|
||||
/* 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(String str) {
|
||||
m.checkNotNullParameter(str, "it");
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
public final /* synthetic */ q i;
|
||||
public final /* synthetic */ View j;
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class a extends o implements Function1<EnableMfaResponse, Unit> {
|
||||
public static final a i = new a();
|
||||
|
||||
public a() {
|
||||
super(1);
|
||||
}
|
||||
|
||||
/* 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(EnableMfaResponse enableMfaResponse) {
|
||||
m.checkNotNullParameter(enableMfaResponse, "it");
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class b extends o implements Function1<Error, Unit> {
|
||||
public final /* synthetic */ d this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public b(d dVar) {
|
||||
super(1);
|
||||
this.this$0 = dVar;
|
||||
}
|
||||
|
||||
/* 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(Error error) {
|
||||
Error error2 = error;
|
||||
m.checkNotNullParameter(error2, "error");
|
||||
q qVar = this.this$0.i;
|
||||
KProperty[] kPropertyArr = q.i;
|
||||
qVar.g().f197c.setIsLoading(false);
|
||||
Error.Response response = error2.getResponse();
|
||||
m.checkNotNullExpressionValue(response, "error.response");
|
||||
if (response.getCode() == 60005) {
|
||||
error2.setShowErrorToasts(false);
|
||||
this.this$0.i.dismiss();
|
||||
q qVar2 = this.this$0.i;
|
||||
Function1<? super String, Unit> function1 = qVar2.l;
|
||||
TextInputLayout textInputLayout = qVar2.g().d;
|
||||
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
|
||||
function1.invoke(ViewExtensions.getTextOrEmpty(textInputLayout));
|
||||
}
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
public d(q qVar, View view) {
|
||||
this.i = qVar;
|
||||
this.j = view;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
q qVar = this.i;
|
||||
KProperty[] kPropertyArr = q.i;
|
||||
TextInputLayout textInputLayout = qVar.g().d;
|
||||
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
|
||||
String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout);
|
||||
this.i.g().f197c.setIsLoading(true);
|
||||
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().enableMFA(new RestAPIParams.EnableMFA("random code", "random secret", textOrEmpty)), false, 1, null), this.i, null, 2, null);
|
||||
a aVar = a.i;
|
||||
ObservableExtensionsKt.appSubscribe$default(ui$default, this.i.getClass(), this.j.getContext(), (Function1) null, new b(this), (Function0) null, (Function0) null, aVar, 52, (Object) null);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class e implements View.OnClickListener {
|
||||
public final /* synthetic */ q i;
|
||||
|
||||
public e(q qVar) {
|
||||
this.i = qVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
FragmentActivity activity = this.i.getActivity();
|
||||
if (activity != null) {
|
||||
activity.onBackPressed();
|
||||
}
|
||||
}
|
||||
}
|
||||
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
|
||||
public final class q extends o implements Function1<ModelUserSettings, Unit> {
|
||||
public static final q i = new q();
|
||||
|
||||
public q() {
|
||||
super(R.layout.widget_enable_two_factor_password_dialog);
|
||||
super(1);
|
||||
}
|
||||
|
||||
public final z4 g() {
|
||||
return (z4) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
setCancelable(false);
|
||||
g().f197c.setIsLoading(false);
|
||||
g().f197c.setOnClickListener(new d(this, view));
|
||||
g().b.setOnClickListener(new e(this));
|
||||
/* 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(ModelUserSettings modelUserSettings) {
|
||||
m.checkNotNullParameter(modelUserSettings, "it");
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,74 +1,86 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.v;
|
||||
import c.a.d.h0;
|
||||
import c.a.d.j0;
|
||||
import c.a.i.t5;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import c.a.j.z4;
|
||||
import com.discord.R;
|
||||
import com.discord.api.auth.mfa.EnableMfaResponse;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.restapi.RestAPIParams;
|
||||
import com.discord.utilities.error.Error;
|
||||
import com.discord.utilities.rest.RestAPI;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.view.extensions.ViewExtensions;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.discord.views.LoadingButton;
|
||||
import d0.z.d.a0;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import com.google.android.material.textfield.TextInputLayout;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
import rx.subjects.PublishSubject;
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
import rx.Observable;
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public final class r extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0)};
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
public final Lazy l;
|
||||
public Function1<? super String, Unit> l = c.i;
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, t5> {
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, z4> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, t5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0);
|
||||
super(1, z4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public t5 invoke(View view) {
|
||||
public z4 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.view_dialog_confirmation_confirm;
|
||||
LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.view_dialog_confirmation_confirm);
|
||||
if (loadingButton != null) {
|
||||
i2 = R.id.view_dialog_confirmation_header;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header);
|
||||
int i2 = R.id.enable_two_factor_password_body_container;
|
||||
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_body_container);
|
||||
if (linearLayout != null) {
|
||||
i2 = R.id.enable_two_factor_password_body_text;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.enable_two_factor_password_body_text);
|
||||
if (textView != null) {
|
||||
i2 = R.id.view_dialog_confirmation_text;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_text);
|
||||
if (textView2 != null) {
|
||||
return new t5((LinearLayout) view2, loadingButton, textView, textView2);
|
||||
i2 = R.id.enable_two_factor_password_cancel;
|
||||
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.enable_two_factor_password_cancel);
|
||||
if (materialButton != null) {
|
||||
i2 = R.id.enable_two_factor_password_header;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.enable_two_factor_password_header);
|
||||
if (textView2 != null) {
|
||||
i2 = R.id.enable_two_factor_password_header_container;
|
||||
LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(R.id.enable_two_factor_password_header_container);
|
||||
if (linearLayout2 != null) {
|
||||
i2 = R.id.enable_two_factor_password_ok;
|
||||
LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.enable_two_factor_password_ok);
|
||||
if (loadingButton != null) {
|
||||
i2 = R.id.enable_two_factor_password_view_input;
|
||||
TextInputLayout textInputLayout = (TextInputLayout) view2.findViewById(R.id.enable_two_factor_password_view_input);
|
||||
if (textInputLayout != null) {
|
||||
return new z4((LinearLayout) view2, linearLayout, textView, materialButton, textView2, linearLayout2, loadingButton, textInputLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,102 +88,121 @@ public final class r extends AppDialog {
|
|||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class c extends o implements Function1<v.d, Unit> {
|
||||
public final /* synthetic */ r this$0;
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class c extends o implements Function1<String, Unit> {
|
||||
public static final c i = new c();
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(r rVar) {
|
||||
public c() {
|
||||
super(1);
|
||||
this.this$0 = rVar;
|
||||
}
|
||||
|
||||
/* 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(v.d dVar) {
|
||||
v.d dVar2 = dVar;
|
||||
m.checkNotNullParameter(dVar2, "viewState");
|
||||
r rVar = this.this$0;
|
||||
KProperty[] kPropertyArr = r.i;
|
||||
TextView textView = rVar.g().f164c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader");
|
||||
textView.setText(rVar.getString(R.string.system_dm_urgent_message_modal_header));
|
||||
TextView textView2 = rVar.g().d;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText");
|
||||
textView2.setText(rVar.getString(R.string.system_dm_urgent_message_modal_body));
|
||||
rVar.g().b.setText(rVar.getString(R.string.okay));
|
||||
rVar.g().b.setIsLoading(dVar2.b);
|
||||
rVar.g().b.setOnClickListener(new s(rVar));
|
||||
public Unit invoke(String str) {
|
||||
m.checkNotNullParameter(str, "it");
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class d extends o implements Function1<v.b, Unit> {
|
||||
public final /* synthetic */ r this$0;
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class d implements View.OnClickListener {
|
||||
public final /* synthetic */ r i;
|
||||
public final /* synthetic */ View j;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public d(r rVar) {
|
||||
super(1);
|
||||
this.this$0 = rVar;
|
||||
}
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class a extends o implements Function1<EnableMfaResponse, Unit> {
|
||||
public static final a i = new a();
|
||||
|
||||
/* 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(v.b bVar) {
|
||||
v.b bVar2 = bVar;
|
||||
m.checkNotNullParameter(bVar2, NotificationCompat.CATEGORY_EVENT);
|
||||
r rVar = this.this$0;
|
||||
KProperty[] kPropertyArr = r.i;
|
||||
Objects.requireNonNull(rVar);
|
||||
if (m.areEqual(bVar2, v.b.a.a)) {
|
||||
rVar.dismiss();
|
||||
} else if (m.areEqual(bVar2, v.b.C0018b.a)) {
|
||||
c.a.d.o.g(rVar.getContext(), R.string.internal_server_error, 0, null, 12);
|
||||
} else {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
public a() {
|
||||
super(1);
|
||||
}
|
||||
return Unit.a;
|
||||
|
||||
/* 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(EnableMfaResponse enableMfaResponse) {
|
||||
m.checkNotNullParameter(enableMfaResponse, "it");
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class b extends o implements Function1<Error, Unit> {
|
||||
public final /* synthetic */ d this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public b(d dVar) {
|
||||
super(1);
|
||||
this.this$0 = dVar;
|
||||
}
|
||||
|
||||
/* 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(Error error) {
|
||||
Error error2 = error;
|
||||
m.checkNotNullParameter(error2, "error");
|
||||
r rVar = this.this$0.i;
|
||||
KProperty[] kPropertyArr = r.i;
|
||||
rVar.g().f198c.setIsLoading(false);
|
||||
Error.Response response = error2.getResponse();
|
||||
m.checkNotNullExpressionValue(response, "error.response");
|
||||
if (response.getCode() == 60005) {
|
||||
error2.setShowErrorToasts(false);
|
||||
this.this$0.i.dismiss();
|
||||
r rVar2 = this.this$0.i;
|
||||
Function1<? super String, Unit> function1 = rVar2.l;
|
||||
TextInputLayout textInputLayout = rVar2.g().d;
|
||||
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
|
||||
function1.invoke(ViewExtensions.getTextOrEmpty(textInputLayout));
|
||||
}
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
public d(r rVar, View view) {
|
||||
this.i = rVar;
|
||||
this.j = view;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
r rVar = this.i;
|
||||
KProperty[] kPropertyArr = r.i;
|
||||
TextInputLayout textInputLayout = rVar.g().d;
|
||||
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
|
||||
String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout);
|
||||
this.i.g().f198c.setIsLoading(true);
|
||||
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().enableMFA(new RestAPIParams.EnableMFA("random code", "random secret", textOrEmpty)), false, 1, null), this.i, null, 2, null);
|
||||
a aVar = a.i;
|
||||
ObservableExtensionsKt.appSubscribe$default(ui$default, this.i.getClass(), this.j.getContext(), (Function1) null, new b(this), (Function0) null, (Function0) null, aVar, 52, (Object) null);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class e extends o implements Function0<AppViewModel<v.d>> {
|
||||
public static final e i = new e();
|
||||
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
|
||||
public static final class e implements View.OnClickListener {
|
||||
public final /* synthetic */ r i;
|
||||
|
||||
public e() {
|
||||
super(0);
|
||||
public e(r rVar) {
|
||||
this.i = rVar;
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public AppViewModel<v.d> mo1invoke() {
|
||||
return new v(null, null, null, 7);
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
FragmentActivity activity = this.i.getActivity();
|
||||
if (activity != null) {
|
||||
activity.onBackPressed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public r() {
|
||||
super(R.layout.widget_urgent_message_dialog);
|
||||
e eVar = e.i;
|
||||
h0 h0Var = new h0(this);
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(v.class), new m(1, h0Var), new j0(eVar));
|
||||
super(R.layout.widget_enable_two_factor_password_dialog);
|
||||
}
|
||||
|
||||
public final t5 g() {
|
||||
return (t5) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
public final v h() {
|
||||
return (v) this.l.getValue();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.Fragment
|
||||
public void onDestroy() {
|
||||
StoreStream.Companion.getNotices().markDialogSeen("URGENT_MESSAGE_DIALOG");
|
||||
super.onDestroy();
|
||||
public final z4 g() {
|
||||
return (z4) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
|
@ -179,9 +210,8 @@ public final class r extends AppDialog {
|
|||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
setCancelable(false);
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(h().observeViewState(), this), r.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
|
||||
PublishSubject<v.b> publishSubject = h().j;
|
||||
m.checkNotNullExpressionValue(publishSubject, "eventSubject");
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(publishSubject, this), r.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
|
||||
g().f198c.setIsLoading(false);
|
||||
g().f198c.setOnClickListener(new d(this, view));
|
||||
g().b.setOnClickListener(new e(this));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,41 +2,186 @@ package c.a.a;
|
|||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import c.a.a.v;
|
||||
import com.discord.restapi.RestAPIParams;
|
||||
import com.discord.utilities.channel.ChannelSelector;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentViewModelLazyKt;
|
||||
import c.a.a.w;
|
||||
import c.a.e.h0;
|
||||
import c.a.e.j0;
|
||||
import c.a.j.t5;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppDialog;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.user.UserUtils;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
||||
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
||||
import com.discord.views.LoadingButton;
|
||||
import d0.z.d.a0;
|
||||
import d0.z.d.k;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.reflect.KProperty;
|
||||
import rx.subjects.PublishSubject;
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public final class s implements View.OnClickListener {
|
||||
public final /* synthetic */ r i;
|
||||
public final class s extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(s.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0)};
|
||||
public static final a j = new a(null);
|
||||
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
public final Lazy l;
|
||||
|
||||
public s(r rVar) {
|
||||
this.i = rVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
Integer num;
|
||||
r rVar = this.i;
|
||||
KProperty[] kPropertyArr = r.i;
|
||||
v h = rVar.h();
|
||||
m.checkNotNullExpressionValue(view, "button");
|
||||
Context context = view.getContext();
|
||||
m.checkNotNullExpressionValue(context, "button.context");
|
||||
Objects.requireNonNull(h);
|
||||
m.checkNotNullParameter(context, "context");
|
||||
ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, UserUtils.SYSTEM_USER_ID);
|
||||
v.d viewState = h.getViewState();
|
||||
if (viewState != null && (num = viewState.a) != null) {
|
||||
RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null);
|
||||
h.updateViewState(new v.d(viewState.a, true));
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.k.patchUser(userInfo), false, 1, null), h, null, 2, null), v.class, (Context) null, (Function1) null, new x(h), (Function0) null, (Function0) null, new w(h), 54, (Object) null);
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, t5> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, t5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public t5 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.view_dialog_confirmation_confirm;
|
||||
LoadingButton loadingButton = (LoadingButton) view2.findViewById(R.id.view_dialog_confirmation_confirm);
|
||||
if (loadingButton != null) {
|
||||
i2 = R.id.view_dialog_confirmation_header;
|
||||
TextView textView = (TextView) view2.findViewById(R.id.view_dialog_confirmation_header);
|
||||
if (textView != null) {
|
||||
i2 = R.id.view_dialog_confirmation_text;
|
||||
TextView textView2 = (TextView) view2.findViewById(R.id.view_dialog_confirmation_text);
|
||||
if (textView2 != null) {
|
||||
return new t5((LinearLayout) view2, loadingButton, textView, textView2);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class c extends o implements Function1<w.d, Unit> {
|
||||
public final /* synthetic */ s this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(s sVar) {
|
||||
super(1);
|
||||
this.this$0 = sVar;
|
||||
}
|
||||
|
||||
/* 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(w.d dVar) {
|
||||
w.d dVar2 = dVar;
|
||||
m.checkNotNullParameter(dVar2, "viewState");
|
||||
s sVar = this.this$0;
|
||||
KProperty[] kPropertyArr = s.i;
|
||||
TextView textView = sVar.g().f166c;
|
||||
m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader");
|
||||
textView.setText(sVar.getString(R.string.system_dm_urgent_message_modal_header));
|
||||
TextView textView2 = sVar.g().d;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText");
|
||||
textView2.setText(sVar.getString(R.string.system_dm_urgent_message_modal_body));
|
||||
sVar.g().b.setText(sVar.getString(R.string.okay));
|
||||
sVar.g().b.setIsLoading(dVar2.b);
|
||||
sVar.g().b.setOnClickListener(new t(sVar));
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class d extends o implements Function1<w.b, Unit> {
|
||||
public final /* synthetic */ s this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public d(s sVar) {
|
||||
super(1);
|
||||
this.this$0 = sVar;
|
||||
}
|
||||
|
||||
/* 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(w.b bVar) {
|
||||
w.b bVar2 = bVar;
|
||||
m.checkNotNullParameter(bVar2, NotificationCompat.CATEGORY_EVENT);
|
||||
s sVar = this.this$0;
|
||||
KProperty[] kPropertyArr = s.i;
|
||||
Objects.requireNonNull(sVar);
|
||||
if (m.areEqual(bVar2, w.b.a.a)) {
|
||||
sVar.dismiss();
|
||||
} else if (m.areEqual(bVar2, w.b.C0020b.a)) {
|
||||
c.a.e.o.g(sVar.getContext(), R.string.internal_server_error, 0, null, 12);
|
||||
} else {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public static final class e extends o implements Function0<AppViewModel<w.d>> {
|
||||
public static final e i = new e();
|
||||
|
||||
public e() {
|
||||
super(0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public AppViewModel<w.d> mo1invoke() {
|
||||
return new w(null, null, null, 7);
|
||||
}
|
||||
}
|
||||
|
||||
public s() {
|
||||
super(R.layout.widget_urgent_message_dialog);
|
||||
e eVar = e.i;
|
||||
h0 h0Var = new h0(this);
|
||||
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(w.class), new m(1, h0Var), new j0(eVar));
|
||||
}
|
||||
|
||||
public final t5 g() {
|
||||
return (t5) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
public final w h() {
|
||||
return (w) this.l.getValue();
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.Fragment
|
||||
public void onDestroy() {
|
||||
StoreStream.Companion.getNotices().markDialogSeen("URGENT_MESSAGE_DIALOG");
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override // com.discord.app.AppDialog
|
||||
public void onViewBound(View view) {
|
||||
m.checkNotNullParameter(view, "view");
|
||||
super.onViewBound(view);
|
||||
setCancelable(false);
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(h().observeViewState(), this), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
|
||||
PublishSubject<w.b> publishSubject = h().j;
|
||||
m.checkNotNullExpressionValue(publishSubject, "eventSubject");
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(publishSubject, this), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,33 +1,42 @@
|
|||
package c.a.a;
|
||||
|
||||
import c.a.a.v;
|
||||
import com.discord.models.user.User;
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
import c.a.a.w;
|
||||
import com.discord.restapi.RestAPIParams;
|
||||
import com.discord.utilities.channel.ChannelSelector;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import com.discord.utilities.user.UserUtils;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class t extends o implements Function1<v.c, Unit> {
|
||||
public final /* synthetic */ v this$0;
|
||||
import kotlin.reflect.KProperty;
|
||||
/* compiled from: WidgetUrgentMessageDialog.kt */
|
||||
public final class t implements View.OnClickListener {
|
||||
public final /* synthetic */ s i;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public t(v vVar) {
|
||||
super(1);
|
||||
this.this$0 = vVar;
|
||||
public t(s sVar) {
|
||||
this.i = sVar;
|
||||
}
|
||||
|
||||
/* 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(v.c cVar) {
|
||||
v.c cVar2 = cVar;
|
||||
m.checkNotNullParameter(cVar2, "storeState");
|
||||
v vVar = this.this$0;
|
||||
Objects.requireNonNull(vVar);
|
||||
User user = cVar2.a;
|
||||
v.d viewState = vVar.getViewState();
|
||||
vVar.updateViewState(new v.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.b));
|
||||
return Unit.a;
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
Integer num;
|
||||
s sVar = this.i;
|
||||
KProperty[] kPropertyArr = s.i;
|
||||
w h = sVar.h();
|
||||
m.checkNotNullExpressionValue(view, "button");
|
||||
Context context = view.getContext();
|
||||
m.checkNotNullExpressionValue(context, "button.context");
|
||||
Objects.requireNonNull(h);
|
||||
m.checkNotNullParameter(context, "context");
|
||||
ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, UserUtils.SYSTEM_USER_ID);
|
||||
w.d viewState = h.getViewState();
|
||||
if (viewState != null && (num = viewState.a) != null) {
|
||||
RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null);
|
||||
h.updateViewState(new w.d(viewState.a, true));
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.k.patchUser(userInfo), false, 1, null), h, null, 2, null), w.class, (Context) null, (Function1) null, new y(h), (Function0) null, (Function0) null, new x(h), 54, (Object) null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,19 +1,33 @@
|
|||
package c.a.a;
|
||||
|
||||
import c.a.a.v;
|
||||
import com.discord.models.user.MeUser;
|
||||
import c.a.a.w;
|
||||
import com.discord.models.user.User;
|
||||
import d0.z.d.m;
|
||||
import j0.k.b;
|
||||
import d0.z.d.o;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class u<T, R> implements b<MeUser, v.c> {
|
||||
public static final u i = new u();
|
||||
public final class u extends o implements Function1<w.c, Unit> {
|
||||
public final /* synthetic */ w this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public u(w wVar) {
|
||||
super(1);
|
||||
this.this$0 = wVar;
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // j0.k.b
|
||||
public v.c call(MeUser meUser) {
|
||||
MeUser meUser2 = meUser;
|
||||
m.checkNotNullExpressionValue(meUser2, "meUser");
|
||||
return new v.c(meUser2);
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public Unit invoke(w.c cVar) {
|
||||
w.c cVar2 = cVar;
|
||||
m.checkNotNullParameter(cVar2, "storeState");
|
||||
w wVar = this.this$0;
|
||||
Objects.requireNonNull(wVar);
|
||||
User user = cVar2.a;
|
||||
w.d viewState = wVar.getViewState();
|
||||
wVar.updateViewState(new w.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.b));
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,154 +1,19 @@
|
|||
package c.a.a;
|
||||
|
||||
import android.content.Context;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.models.user.User;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.stores.StoreUser;
|
||||
import com.discord.utilities.rest.RestAPI;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import c.a.a.w;
|
||||
import com.discord.models.user.MeUser;
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import rx.Observable;
|
||||
import rx.subjects.PublishSubject;
|
||||
import j0.k.b;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class v extends AppViewModel<d> {
|
||||
public static final a i = new a(null);
|
||||
public final PublishSubject<b> j;
|
||||
public final RestAPI k;
|
||||
public final class v<T, R> implements b<MeUser, w.c> {
|
||||
public static final v i = new v();
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static abstract class b {
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class a extends b {
|
||||
public static final a a = new a();
|
||||
|
||||
public a() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
/* renamed from: c.a.a.v$b$b reason: collision with other inner class name */
|
||||
public static final class C0018b extends b {
|
||||
public static final C0018b a = new C0018b();
|
||||
|
||||
public C0018b() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public b() {
|
||||
}
|
||||
|
||||
public b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class c {
|
||||
public final User a;
|
||||
|
||||
public c(User user) {
|
||||
m.checkNotNullParameter(user, "user");
|
||||
this.a = user;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this != obj) {
|
||||
return (obj instanceof c) && m.areEqual(this.a, ((c) obj).a);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
User user = this.a;
|
||||
if (user != null) {
|
||||
return user.hashCode();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("StoreState(user=");
|
||||
K.append(this.a);
|
||||
K.append(")");
|
||||
return K.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class d {
|
||||
public final Integer a;
|
||||
public final boolean b;
|
||||
|
||||
public d(Integer num, boolean z2) {
|
||||
this.a = num;
|
||||
this.b = z2;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof d)) {
|
||||
return false;
|
||||
}
|
||||
d dVar = (d) obj;
|
||||
return m.areEqual(this.a, dVar.a) && this.b == dVar.b;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
Integer num = this.a;
|
||||
int hashCode = (num != null ? num.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 K = c.d.b.a.a.K("ViewState(userFlags=");
|
||||
K.append(this.a);
|
||||
K.append(", isBusy=");
|
||||
return c.d.b.a.a.F(K, this.b, ")");
|
||||
}
|
||||
}
|
||||
|
||||
public v() {
|
||||
this(null, null, null, 7);
|
||||
}
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public v(RestAPI restAPI, StoreUser storeUser, Observable observable, int i2) {
|
||||
super(null, 1, null);
|
||||
Observable observable2;
|
||||
RestAPI api = (i2 & 1) != 0 ? RestAPI.Companion.getApi() : null;
|
||||
StoreUser users = (i2 & 2) != 0 ? StoreStream.Companion.getUsers() : null;
|
||||
if ((i2 & 4) != 0) {
|
||||
observable2 = StoreUser.observeMe$default(users, false, 1, null).F(u.i);
|
||||
m.checkNotNullExpressionValue(observable2, "storeUser.observeMe().ma…oreState(user = meUser) }");
|
||||
} else {
|
||||
observable2 = null;
|
||||
}
|
||||
m.checkNotNullParameter(api, "restAPI");
|
||||
m.checkNotNullParameter(users, "storeUser");
|
||||
m.checkNotNullParameter(observable2, "storeObservable");
|
||||
this.k = api;
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), v.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new t(this), 62, (Object) null);
|
||||
this.j = PublishSubject.k0();
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // j0.k.b
|
||||
public w.c call(MeUser meUser) {
|
||||
MeUser meUser2 = meUser;
|
||||
m.checkNotNullExpressionValue(meUser2, "meUser");
|
||||
return new w.c(meUser2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,29 +1,154 @@
|
|||
package c.a.a;
|
||||
|
||||
import c.a.a.v;
|
||||
import com.discord.api.user.User;
|
||||
import android.content.Context;
|
||||
import com.discord.app.AppViewModel;
|
||||
import com.discord.models.user.User;
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.stores.StoreUser;
|
||||
import com.discord.utilities.rest.RestAPI;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import rx.Observable;
|
||||
import rx.subjects.PublishSubject;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class w extends o implements Function1<User, Unit> {
|
||||
public final /* synthetic */ v this$0;
|
||||
public final class w extends AppViewModel<d> {
|
||||
public static final a i = new a(null);
|
||||
public final PublishSubject<b> j;
|
||||
public final RestAPI k;
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class a {
|
||||
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static abstract class b {
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class a extends b {
|
||||
public static final a a = new a();
|
||||
|
||||
public a() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
/* renamed from: c.a.a.w$b$b reason: collision with other inner class name */
|
||||
public static final class C0020b extends b {
|
||||
public static final C0020b a = new C0020b();
|
||||
|
||||
public C0020b() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
|
||||
public b() {
|
||||
}
|
||||
|
||||
public b(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class c {
|
||||
public final User a;
|
||||
|
||||
public c(User user) {
|
||||
m.checkNotNullParameter(user, "user");
|
||||
this.a = user;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this != obj) {
|
||||
return (obj instanceof c) && m.areEqual(this.a, ((c) obj).a);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
User user = this.a;
|
||||
if (user != null) {
|
||||
return user.hashCode();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("StoreState(user=");
|
||||
K.append(this.a);
|
||||
K.append(")");
|
||||
return K.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public static final class d {
|
||||
public final Integer a;
|
||||
public final boolean b;
|
||||
|
||||
public d(Integer num, boolean z2) {
|
||||
this.a = num;
|
||||
this.b = z2;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof d)) {
|
||||
return false;
|
||||
}
|
||||
d dVar = (d) obj;
|
||||
return m.areEqual(this.a, dVar.a) && this.b == dVar.b;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
Integer num = this.a;
|
||||
int hashCode = (num != null ? num.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 K = c.d.b.a.a.K("ViewState(userFlags=");
|
||||
K.append(this.a);
|
||||
K.append(", isBusy=");
|
||||
return c.d.b.a.a.F(K, this.b, ")");
|
||||
}
|
||||
}
|
||||
|
||||
public w() {
|
||||
this(null, null, null, 7);
|
||||
}
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public w(v vVar) {
|
||||
super(1);
|
||||
this.this$0 = vVar;
|
||||
}
|
||||
|
||||
/* 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(User user) {
|
||||
m.checkNotNullParameter(user, "it");
|
||||
PublishSubject<v.b> publishSubject = this.this$0.j;
|
||||
publishSubject.j.onNext(v.b.a.a);
|
||||
return Unit.a;
|
||||
public w(RestAPI restAPI, StoreUser storeUser, Observable observable, int i2) {
|
||||
super(null, 1, null);
|
||||
Observable observable2;
|
||||
RestAPI api = (i2 & 1) != 0 ? RestAPI.Companion.getApi() : null;
|
||||
StoreUser users = (i2 & 2) != 0 ? StoreStream.Companion.getUsers() : null;
|
||||
if ((i2 & 4) != 0) {
|
||||
observable2 = StoreUser.observeMe$default(users, false, 1, null).F(v.i);
|
||||
m.checkNotNullExpressionValue(observable2, "storeUser.observeMe().ma…oreState(user = meUser) }");
|
||||
} else {
|
||||
observable2 = null;
|
||||
}
|
||||
m.checkNotNullParameter(api, "restAPI");
|
||||
m.checkNotNullParameter(users, "storeUser");
|
||||
m.checkNotNullParameter(observable2, "storeObservable");
|
||||
this.k = api;
|
||||
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), w.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new u(this), 62, (Object) null);
|
||||
this.j = PublishSubject.k0();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
package c.a.a;
|
||||
|
||||
import c.a.a.v;
|
||||
import com.discord.utilities.error.Error;
|
||||
import c.a.a.w;
|
||||
import com.discord.api.user.User;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.subjects.PublishSubject;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class x extends o implements Function1<Error, Unit> {
|
||||
public final /* synthetic */ v this$0;
|
||||
public final class x extends o implements Function1<User, Unit> {
|
||||
public final /* synthetic */ w this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public x(v vVar) {
|
||||
public x(w wVar) {
|
||||
super(1);
|
||||
this.this$0 = vVar;
|
||||
this.this$0 = wVar;
|
||||
}
|
||||
|
||||
/* 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(Error error) {
|
||||
m.checkNotNullParameter(error, "it");
|
||||
PublishSubject<v.b> publishSubject = this.this$0.j;
|
||||
publishSubject.j.onNext(v.b.C0018b.a);
|
||||
public Unit invoke(User user) {
|
||||
m.checkNotNullParameter(user, "it");
|
||||
PublishSubject<w.b> publishSubject = this.this$0.j;
|
||||
publishSubject.j.onNext(w.b.a.a);
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
package c.a.a;
|
||||
|
||||
import c.a.a.w;
|
||||
import com.discord.utilities.error.Error;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.subjects.PublishSubject;
|
||||
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
||||
public final class y extends o implements Function1<Error, Unit> {
|
||||
public final /* synthetic */ w this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public y(w wVar) {
|
||||
super(1);
|
||||
this.this$0 = wVar;
|
||||
}
|
||||
|
||||
/* 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(Error error) {
|
||||
m.checkNotNullParameter(error, "it");
|
||||
PublishSubject<w.b> publishSubject = this.this$0.j;
|
||||
publishSubject.j.onNext(w.b.C0020b.a);
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
|
@ -9,7 +9,7 @@ import android.widget.LinearLayout;
|
|||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import c.a.i.p;
|
||||
import c.a.j.p;
|
||||
import com.discord.R;
|
||||
import com.discord.api.premium.PremiumTier;
|
||||
import com.discord.api.premium.SubscriptionInterval;
|
||||
|
@ -37,14 +37,14 @@ import kotlin.reflect.KProperty;
|
|||
/* compiled from: GiftPurchasedDialog.kt */
|
||||
public final class a extends AppDialog {
|
||||
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/GiftPurchasedDialogBinding;", 0)};
|
||||
public static final C0019a j = new C0019a(null);
|
||||
public static final C0021a j = new C0021a(null);
|
||||
public Function0<Unit> k;
|
||||
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
|
||||
|
||||
/* compiled from: GiftPurchasedDialog.kt */
|
||||
/* renamed from: c.a.a.y.a$a reason: collision with other inner class name */
|
||||
public static final class C0019a {
|
||||
public C0019a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
/* renamed from: c.a.a.z.a$a reason: collision with other inner class name */
|
||||
public static final class C0021a {
|
||||
public C0021a(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,7 +162,7 @@ public final class a extends AppDialog {
|
|||
MaterialButton materialButton = aVar.g().d;
|
||||
m.checkNotNullExpressionValue(materialButton, "binding.giftEntitlementCopy");
|
||||
materialButton.setText(context.getString(R.string.copied));
|
||||
this.i.g().f138c.setBackgroundResource(DrawableCompat.getThemedDrawableRes$default(context, (int) R.attr.gift_code_copied_outline, 0, 2, (Object) null));
|
||||
this.i.g().f139c.setBackgroundResource(DrawableCompat.getThemedDrawableRes$default(context, (int) R.attr.gift_code_copied_outline, 0, 2, (Object) null));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ public final class a extends AppDialog {
|
|||
}
|
||||
LinkifiedTextView linkifiedTextView = g().e;
|
||||
m.checkNotNullExpressionValue(linkifiedTextView, "binding.giftLinkSubtext");
|
||||
c.a.k.b.l(linkifiedTextView, R.string.application_store_gift_purchase_confirmation_subtext, new Object[0], new d(this));
|
||||
c.a.l.b.m(linkifiedTextView, R.string.application_store_gift_purchase_confirmation_subtext, new Object[0], new d(this));
|
||||
GiftingUtils giftingUtils = GiftingUtils.INSTANCE;
|
||||
Integer iconForSku = giftingUtils.getIconForSku(inAppSku);
|
||||
if (iconForSku != null) {
|
||||
|
@ -214,7 +214,7 @@ public final class a extends AppDialog {
|
|||
Context context = getContext();
|
||||
objArr[0] = context != null ? StringResourceUtilsKt.getI18nPluralString(context, intValue2, 1, 1) : null;
|
||||
objArr[1] = string2;
|
||||
textView.setText(c.a.k.b.j(this, intValue, objArr, null, 4));
|
||||
textView.setText(c.a.l.b.k(this, intValue, objArr, null, 4));
|
||||
String string3 = getArgumentsOrDefault().getString("ARG_GIFT_CODE", "");
|
||||
m.checkNotNullExpressionValue(string3, "giftCode");
|
||||
String generateGiftUrl = giftingUtils.generateGiftUrl(string3);
|
|
@ -1,7 +1,7 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.view.View;
|
||||
import c.a.a.y.a;
|
||||
import c.a.a.z.a;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
@ -9,8 +9,8 @@ import android.widget.TextView;
|
|||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import c.a.d.f;
|
||||
import c.a.i.d4;
|
||||
import c.a.e.f;
|
||||
import c.a.j.e4;
|
||||
import com.discord.R;
|
||||
import com.discord.api.application.Application;
|
||||
import com.discord.api.premium.SubscriptionPlan;
|
||||
|
@ -58,14 +58,14 @@ public final class c extends AppDialog {
|
|||
public static final class a {
|
||||
|
||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||
/* renamed from: c.a.a.y.c$a$a reason: collision with other inner class name */
|
||||
public static final class C0020a extends o implements Function1<FragmentActivity, Boolean> {
|
||||
/* renamed from: c.a.a.z.c$a$a reason: collision with other inner class name */
|
||||
public static final class C0022a extends o implements Function1<FragmentActivity, Boolean> {
|
||||
public final /* synthetic */ long $channelId;
|
||||
public final /* synthetic */ String $giftCode;
|
||||
public final /* synthetic */ String $source;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public C0020a(String str, String str2, long j) {
|
||||
public C0022a(String str, String str2, long j) {
|
||||
super(1);
|
||||
this.$giftCode = str;
|
||||
this.$source = str2;
|
||||
|
@ -97,22 +97,22 @@ public final class c extends AppDialog {
|
|||
m.checkNotNullParameter(str, "giftCode");
|
||||
m.checkNotNullParameter(str2, "source");
|
||||
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 C0020a(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 C0022a(str, str2, j), FontUtils.MAX_FONT_SCALING, null));
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, d4> {
|
||||
public static final /* synthetic */ class b extends k implements Function1<View, e4> {
|
||||
public static final b i = new b();
|
||||
|
||||
public b() {
|
||||
super(1, d4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0);
|
||||
super(1, e4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetAcceptGiftDialogBinding;", 0);
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public d4 invoke(View view) {
|
||||
public e4 invoke(View view) {
|
||||
View view2 = view;
|
||||
m.checkNotNullParameter(view2, "p1");
|
||||
int i2 = R.id.accept_gift_body_container;
|
||||
|
@ -142,7 +142,7 @@ public final class c extends AppDialog {
|
|||
i2 = R.id.accept_gift_progress;
|
||||
ProgressBar progressBar = (ProgressBar) view2.findViewById(R.id.accept_gift_progress);
|
||||
if (progressBar != null) {
|
||||
return new d4((LinearLayout) view2, linearLayout, simpleDraweeView, textView, materialButton, linearLayout2, linkifiedTextView, appViewFlipper, textView2, progressBar);
|
||||
return new e4((LinearLayout) view2, linearLayout, simpleDraweeView, textView, materialButton, linearLayout2, linkifiedTextView, appViewFlipper, textView2, progressBar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,12 +157,12 @@ public final class c extends AppDialog {
|
|||
}
|
||||
|
||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
||||
/* renamed from: c.a.a.y.c$c reason: collision with other inner class name */
|
||||
public static final class C0021c extends o implements Function1<Error, Unit> {
|
||||
/* renamed from: c.a.a.z.c$c reason: collision with other inner class name */
|
||||
public static final class C0023c 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 C0021c(c cVar) {
|
||||
public C0023c(c cVar) {
|
||||
super(1);
|
||||
this.this$0 = cVar;
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ public final class c extends AppDialog {
|
|||
str = "";
|
||||
}
|
||||
CharSequence i2 = cVar2.i(gift);
|
||||
LinearLayout linearLayout = c.d.b.a.a.e0(c.d.b.a.a.e0(cVar2.h().h, "binding.acceptGiftHeader", gift.isAnyNitroGift() ? c.a.k.b.j(cVar2, R.string.gift_confirmation_header_success_nitro, new Object[]{str}, null, 4) : c.a.k.b.j(cVar2, R.string.gift_confirmation_header_success, new Object[0], null, 4), cVar2).f81c, "binding.acceptGiftBodyText", gift.isNitroClassicGift() ? c.a.k.b.j(cVar2, R.string.gift_confirmation_body_success_nitro_classic_mobile, new Object[]{i2}, null, 4) : gift.isNitroGift() ? c.a.k.b.j(cVar2, R.string.gift_confirmation_body_success_nitro_mobile, new Object[]{i2}, null, 4) : c.a.k.b.j(cVar2, R.string.gift_confirmation_body_success_mobile, new Object[]{str}, null, 4), cVar2).e;
|
||||
LinearLayout linearLayout = c.d.b.a.a.e0(c.d.b.a.a.e0(cVar2.h().h, "binding.acceptGiftHeader", gift.isAnyNitroGift() ? c.a.l.b.k(cVar2, R.string.gift_confirmation_header_success_nitro, new Object[]{str}, null, 4) : c.a.l.b.k(cVar2, R.string.gift_confirmation_header_success, new Object[0], null, 4), cVar2).f89c, "binding.acceptGiftBodyText", gift.isNitroClassicGift() ? c.a.l.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_classic_mobile, new Object[]{i2}, null, 4) : gift.isNitroGift() ? c.a.l.b.k(cVar2, R.string.gift_confirmation_body_success_nitro_mobile, new Object[]{i2}, null, 4) : c.a.l.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;
|
||||
|
@ -236,16 +236,16 @@ public final class c extends AppDialog {
|
|||
cVar3.g(gift2);
|
||||
TextView textView = cVar3.h().h;
|
||||
m.checkNotNullExpressionValue(textView, "binding.acceptGiftHeader");
|
||||
c.a.k.b.m(textView, R.string.gift_confirmation_header_fail, new Object[0], null, 4);
|
||||
TextView textView2 = cVar3.h().f81c;
|
||||
c.a.l.b.n(textView, R.string.gift_confirmation_header_fail, new Object[0], null, 4);
|
||||
TextView textView2 = cVar3.h().f89c;
|
||||
m.checkNotNullExpressionValue(textView2, "binding.acceptGiftBodyText");
|
||||
c.a.k.b.m(textView2, R.string.gift_confirmation_body_claimed, new Object[0], null, 4);
|
||||
c.a.l.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.m(materialButton2, R.string.gift_confirmation_button_fail, new Object[0], null, 4);
|
||||
c.a.l.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;
|
||||
|
@ -254,7 +254,7 @@ public final class c extends AppDialog {
|
|||
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.e0(c.d.b.a.a.e0(cVar4.h().h, "binding.acceptGiftHeader", gift3.isAnyNitroGift() ? c.a.k.b.j(cVar4, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name}, null, 4) : c.a.k.b.j(cVar4, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar4).f81c, "binding.acceptGiftBodyText", gift3.isAnyNitroGift() ? c.a.k.b.j(cVar4, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name, cVar4.i(gift3)}, null, 4) : c.a.k.b.j(cVar4, R.string.gift_confirmation_body_confirm, new Object[]{name}, null, 4), cVar4).e;
|
||||
LinearLayout linearLayout3 = c.d.b.a.a.e0(c.d.b.a.a.e0(cVar4.h().h, "binding.acceptGiftHeader", gift3.isAnyNitroGift() ? c.a.l.b.k(cVar4, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name}, null, 4) : c.a.l.b.k(cVar4, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar4).f89c, "binding.acceptGiftBodyText", gift3.isAnyNitroGift() ? c.a.l.b.k(cVar4, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name, cVar4.i(gift3)}, null, 4) : c.a.l.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;
|
||||
|
@ -282,7 +282,7 @@ public final class c extends AppDialog {
|
|||
ProgressBar progressBar = cVar5.h().i;
|
||||
m.checkNotNullExpressionValue(progressBar, "binding.acceptGiftProgress");
|
||||
progressBar.setVisibility(0);
|
||||
LinearLayout linearLayout4 = c.d.b.a.a.e0(c.d.b.a.a.e0(cVar5.h().h, "binding.acceptGiftHeader", gift4.isAnyNitroGift() ? c.a.k.b.j(cVar5, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name2}, null, 4) : c.a.k.b.j(cVar5, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar5).f81c, "binding.acceptGiftBodyText", gift4.isAnyNitroGift() ? c.a.k.b.j(cVar5, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name2, cVar5.i(gift4)}, null, 4) : c.a.k.b.j(cVar5, R.string.gift_confirmation_body_confirm, new Object[]{name2}, null, 4), cVar5).e;
|
||||
LinearLayout linearLayout4 = c.d.b.a.a.e0(c.d.b.a.a.e0(cVar5.h().h, "binding.acceptGiftHeader", gift4.isAnyNitroGift() ? c.a.l.b.k(cVar5, R.string.gift_confirmation_header_confirm_nitro, new Object[]{name2}, null, 4) : c.a.l.b.k(cVar5, R.string.gift_confirmation_header_confirm, new Object[0], null, 4), cVar5).f89c, "binding.acceptGiftBodyText", gift4.isAnyNitroGift() ? c.a.l.b.k(cVar5, R.string.gift_confirmation_body_confirm_nitro, new Object[]{name2, cVar5.i(gift4)}, null, 4) : c.a.l.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;
|
||||
|
@ -296,14 +296,14 @@ public final class c extends AppDialog {
|
|||
cVar6.g(redeemedFailed.getGift());
|
||||
TextView textView3 = cVar6.h().h;
|
||||
m.checkNotNullExpressionValue(textView3, "binding.acceptGiftHeader");
|
||||
textView3.setText(c.a.k.b.j(cVar6, R.string.gift_confirmation_header_fail, new Object[0], null, 4));
|
||||
TextView textView4 = cVar6.h().f81c;
|
||||
textView3.setText(c.a.l.b.k(cVar6, R.string.gift_confirmation_header_fail, new Object[0], null, 4));
|
||||
TextView textView4 = cVar6.h().f89c;
|
||||
m.checkNotNullExpressionValue(textView4, "binding.acceptGiftBodyText");
|
||||
c.a.k.b.m(textView4, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
||||
c.a.l.b.n(textView4, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
||||
if (redeemedFailed.getCanRetry()) {
|
||||
TextView textView5 = cVar6.h().f81c;
|
||||
TextView textView5 = cVar6.h().f89c;
|
||||
m.checkNotNullExpressionValue(textView5, "binding.acceptGiftBodyText");
|
||||
c.a.k.b.m(textView5, R.string.gift_confirmation_body_unknown_error, new Object[0], null, 4);
|
||||
c.a.l.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();
|
||||
|
@ -315,13 +315,13 @@ public final class c extends AppDialog {
|
|||
} else {
|
||||
Integer errorCode = redeemedFailed.getErrorCode();
|
||||
if (errorCode != null && errorCode.intValue() == 50054) {
|
||||
cVar6.h().f81c.setText(R.string.gift_confirmation_body_self_gift_no_payment);
|
||||
cVar6.h().f89c.setText(R.string.gift_confirmation_body_self_gift_no_payment);
|
||||
} else if (errorCode != null && errorCode.intValue() == 100024) {
|
||||
cVar6.h().f81c.setText(R.string.gift_confirmation_body_error_nitro_upgrade_downgrade);
|
||||
cVar6.h().f89c.setText(R.string.gift_confirmation_body_error_nitro_upgrade_downgrade);
|
||||
} else if (errorCode != null && errorCode.intValue() == 100022) {
|
||||
cVar6.h().f81c.setText(R.string.gift_confirmation_body_error_subscription_managed);
|
||||
cVar6.h().f89c.setText(R.string.gift_confirmation_body_error_subscription_managed);
|
||||
} else if (errorCode != null && errorCode.intValue() == 100025) {
|
||||
cVar6.h().f81c.setText(R.string.gift_confirmation_body_error_invoice_open);
|
||||
cVar6.h().f89c.setText(R.string.gift_confirmation_body_error_invoice_open);
|
||||
}
|
||||
MaterialButton materialButton6 = cVar6.h().d;
|
||||
m.checkNotNullExpressionValue(materialButton6, "binding.acceptGiftConfirm");
|
||||
|
@ -376,8 +376,8 @@ public final class c extends AppDialog {
|
|||
progressBar.setVisibility(8);
|
||||
}
|
||||
|
||||
public final d4 h() {
|
||||
return (d4) this.k.getValue((Fragment) this, i[0]);
|
||||
public final e4 h() {
|
||||
return (e4) this.k.getValue((Fragment) this, i[0]);
|
||||
}
|
||||
|
||||
public final CharSequence i(ModelGift modelGift) {
|
||||
|
@ -399,10 +399,10 @@ public final class c extends AppDialog {
|
|||
CharSequence i18nPluralString = StringResourceUtilsKt.getI18nPluralString(requireContext, i2, subscriptionPlan.c(), Integer.valueOf(subscriptionPlan.c()));
|
||||
int ordinal2 = subscriptionPlan.b().ordinal();
|
||||
if (ordinal2 == 0) {
|
||||
return c.a.k.b.j(this, R.string.gift_confirmation_nitro_time_frame_months, new Object[]{i18nPluralString}, null, 4);
|
||||
return c.a.l.b.k(this, R.string.gift_confirmation_nitro_time_frame_months, new Object[]{i18nPluralString}, null, 4);
|
||||
}
|
||||
if (ordinal2 == 1) {
|
||||
return c.a.k.b.j(this, R.string.gift_confirmation_nitro_time_frame_years, new Object[]{i18nPluralString}, null, 4);
|
||||
return c.a.l.b.k(this, R.string.gift_confirmation_nitro_time_frame_years, new Object[]{i18nPluralString}, null, 4);
|
||||
}
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public final class c extends AppDialog {
|
|||
}
|
||||
LinkifiedTextView linkifiedTextView = h().f;
|
||||
m.checkNotNullExpressionValue(linkifiedTextView, "binding.acceptGiftDisclaimerText");
|
||||
c.a.k.b.m(linkifiedTextView, R.string.gift_confirmation_body_confirm_nitro_disclaimer, new Object[]{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 C0021c(this), (Function0) null, (Function0) null, new d(this), 54, (Object) null);
|
||||
c.a.l.b.n(linkifiedTextView, R.string.gift_confirmation_body_confirm_nitro_disclaimer, new Object[]{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 C0023c(this), (Function0) null, (Function0) null, new d(this), 54, (Object) null);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.view.View;
|
||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.view.View;
|
||||
/* compiled from: WidgetGiftAcceptDialog.kt */
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.a.y;
|
||||
package c.a.a.z;
|
||||
|
||||
import android.view.View;
|
||||
import com.discord.models.domain.ModelGift;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember;
|
||||
import rx.functions.Action1;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.stores.StoreStream;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.models.user.User;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsEditPermissions;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.stores.StoreStream;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import c.d.b.a.a;
|
||||
import com.discord.models.member.GuildMember;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.stores.StoreStream;
|
||||
import j0.k.b;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.models.guild.Guild;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.models.user.User;
|
||||
import j0.k.b;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.permission.PermissionOverwrite;
|
||||
import com.discord.models.user.User;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import j0.k.b;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import c.d.b.a.a;
|
||||
import com.discord.models.user.User;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import android.text.Editable;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddMember;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsAddRole;
|
||||
import rx.functions.Action1;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.stores.StoreStream;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.models.guild.Guild;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import j0.k.b;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.channel.Channel;
|
||||
import com.discord.api.role.GuildRole;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.role.GuildRole;
|
||||
import com.discord.widgets.channels.permissions.WidgetChannelSettingsEditPermissions;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.api.role.GuildRole;
|
||||
import com.discord.widgets.channels.SimpleRolesAdapter;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.z.a.a;
|
||||
package c.a.a0.a.a;
|
||||
|
||||
import com.discord.models.user.User;
|
||||
import com.discord.widgets.channels.SimpleMembersAdapter;
|
|
@ -46,6 +46,8 @@ import com.discord.api.report.ReportNodeChild;
|
|||
import com.discord.api.report.ReportNodeChildTypeAdapter;
|
||||
import com.discord.api.report.ReportNodeElementData;
|
||||
import com.discord.api.report.ReportNodeElementDataTypeAdapter;
|
||||
import com.discord.api.science.AnalyticsSchemaTypeAdapter;
|
||||
import com.discord.api.science.Science;
|
||||
import com.discord.api.stageinstance.StageInstancePrivacyLevel;
|
||||
import com.discord.api.stageinstance.StageInstancePrivacyLevelTypeAdapter;
|
||||
import com.discord.api.sticker.StickerFormatType;
|
||||
|
@ -59,7 +61,6 @@ import com.discord.api.user.PhoneTypeAdapter;
|
|||
import com.discord.api.utcdatetime.UtcDateTime;
|
||||
import com.discord.api.utcdatetime.UtcDateTimeTypeAdapter;
|
||||
import com.discord.nullserializable.NullSerializableTypeAdapterFactory;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import d0.o;
|
||||
import d0.t.h0;
|
||||
import d0.t.n;
|
||||
|
@ -69,60 +70,60 @@ import java.util.Map;
|
|||
import kotlin.jvm.functions.Function0;
|
||||
/* compiled from: TypeAdapterRegistrar.kt */
|
||||
public final class a {
|
||||
public static final Map<Class<? extends Object>, Function0<TypeAdapter<? extends Object>>> a = h0.mapOf(o.to(ActivityPlatform.class, b.i), o.to(ApplicationStatus.class, C0022a.B), o.to(UtcDateTime.class, C0022a.C), o.to(NsfwAllowance.class, C0022a.D), o.to(PremiumTier.class, C0022a.E), o.to(ActivityType.class, C0022a.F), o.to(Phone.class, C0022a.G), o.to(ApplicationCommandType.class, C0022a.H), o.to(OAuthScope.class, C0022a.I), o.to(GuildVerificationLevel.class, C0022a.i), o.to(GuildExplicitContentFilter.class, C0022a.j), o.to(GuildMaxVideoChannelUsers.class, C0022a.k), o.to(ComponentType.class, C0022a.l), o.to(ButtonStyle.class, C0022a.m), o.to(ReportNodeChild.class, C0022a.n), o.to(ReportNodeElementData.class, C0022a.o), o.to(ReportNodeBottomButton.class, C0022a.p), o.to(ApplicationCommandPermissionType.class, C0022a.q), o.to(StageInstancePrivacyLevel.class, C0022a.r), o.to(FriendSuggestionReasonType.class, C0022a.f38s), o.to(AllowedInSuggestionsType.class, C0022a.t), o.to(StickerFormatType.class, C0022a.u), o.to(LocalizedString.class, C0022a.v), o.to(MessageActivityType.class, C0022a.w), o.to(EmbedType.class, C0022a.f39x), o.to(StickerType.class, C0022a.f40y), o.to(GuildScheduledEventStatus.class, C0022a.f41z), o.to(GuildScheduledEventEntityType.class, C0022a.A));
|
||||
public static final Map<Class<? extends Object>, Function0<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.i), o.to(ApplicationStatus.class, C0024a.C), o.to(UtcDateTime.class, C0024a.D), o.to(NsfwAllowance.class, C0024a.E), o.to(PremiumTier.class, C0024a.F), o.to(ActivityType.class, C0024a.G), o.to(Phone.class, C0024a.H), o.to(ApplicationCommandType.class, C0024a.I), o.to(OAuthScope.class, C0024a.J), o.to(GuildVerificationLevel.class, C0024a.i), o.to(GuildExplicitContentFilter.class, C0024a.j), o.to(GuildMaxVideoChannelUsers.class, C0024a.k), o.to(ComponentType.class, C0024a.l), o.to(ButtonStyle.class, C0024a.m), o.to(ReportNodeChild.class, C0024a.n), o.to(ReportNodeElementData.class, C0024a.o), o.to(ReportNodeBottomButton.class, C0024a.p), o.to(ApplicationCommandPermissionType.class, C0024a.q), o.to(StageInstancePrivacyLevel.class, C0024a.r), o.to(FriendSuggestionReasonType.class, C0024a.f38s), o.to(AllowedInSuggestionsType.class, C0024a.t), o.to(StickerFormatType.class, C0024a.u), o.to(LocalizedString.class, C0024a.v), o.to(MessageActivityType.class, C0024a.w), o.to(EmbedType.class, C0024a.f39x), o.to(StickerType.class, C0024a.f40y), o.to(GuildScheduledEventStatus.class, C0024a.f41z), o.to(GuildScheduledEventEntityType.class, C0024a.A), o.to(Science.Event.SchemaObject.class, C0024a.B));
|
||||
public static final List<c.i.d.o> b = n.listOf((Object[]) new c.i.d.o[]{ComponentRuntimeTypeAdapter.INSTANCE.a(), new NullSerializableTypeAdapterFactory()});
|
||||
|
||||
/* compiled from: kotlin-style lambda group */
|
||||
/* renamed from: c.a.b.a$a reason: collision with other inner class name */
|
||||
public static final class C0022a extends d0.z.d.o implements Function0<TypeAdapter<? extends Object>> {
|
||||
public static final C0022a A = new C0022a(18);
|
||||
public static final C0022a B = new C0022a(19);
|
||||
public static final C0022a C = new C0022a(20);
|
||||
public static final C0022a D = new C0022a(21);
|
||||
public static final C0022a E = new C0022a(22);
|
||||
public static final C0022a F = new C0022a(23);
|
||||
public static final C0022a G = new C0022a(24);
|
||||
public static final C0022a H = new C0022a(25);
|
||||
public static final C0022a I = new C0022a(26);
|
||||
public static final C0022a i = new C0022a(0);
|
||||
public static final C0022a j = new C0022a(1);
|
||||
public static final C0022a k = new C0022a(2);
|
||||
public static final C0022a l = new C0022a(3);
|
||||
public static final C0022a m = new C0022a(4);
|
||||
public static final C0022a n = new C0022a(5);
|
||||
public static final C0022a o = new C0022a(6);
|
||||
public static final C0022a p = new C0022a(7);
|
||||
public static final C0022a q = new C0022a(8);
|
||||
public static final C0022a r = new C0022a(9);
|
||||
public static final class C0024a extends d0.z.d.o implements Function0<Object> {
|
||||
public static final C0024a A = new C0024a(18);
|
||||
public static final C0024a B = new C0024a(19);
|
||||
public static final C0024a C = new C0024a(20);
|
||||
public static final C0024a D = new C0024a(21);
|
||||
public static final C0024a E = new C0024a(22);
|
||||
public static final C0024a F = new C0024a(23);
|
||||
public static final C0024a G = new C0024a(24);
|
||||
public static final C0024a H = new C0024a(25);
|
||||
public static final C0024a I = new C0024a(26);
|
||||
public static final C0024a J = new C0024a(27);
|
||||
public static final C0024a i = new C0024a(0);
|
||||
public static final C0024a j = new C0024a(1);
|
||||
public static final C0024a k = new C0024a(2);
|
||||
public static final C0024a l = new C0024a(3);
|
||||
public static final C0024a m = new C0024a(4);
|
||||
public static final C0024a n = new C0024a(5);
|
||||
public static final C0024a o = new C0024a(6);
|
||||
public static final C0024a p = new C0024a(7);
|
||||
public static final C0024a q = new C0024a(8);
|
||||
public static final C0024a r = new C0024a(9);
|
||||
|
||||
/* renamed from: s reason: collision with root package name */
|
||||
public static final C0022a f38s = new C0022a(10);
|
||||
public static final C0022a t = new C0022a(11);
|
||||
public static final C0022a u = new C0022a(12);
|
||||
public static final C0022a v = new C0022a(13);
|
||||
public static final C0022a w = new C0022a(14);
|
||||
public static final C0024a f38s = new C0024a(10);
|
||||
public static final C0024a t = new C0024a(11);
|
||||
public static final C0024a u = new C0024a(12);
|
||||
public static final C0024a v = new C0024a(13);
|
||||
public static final C0024a w = new C0024a(14);
|
||||
|
||||
/* renamed from: x reason: collision with root package name */
|
||||
public static final C0022a f39x = new C0022a(15);
|
||||
public static final C0024a f39x = new C0024a(15);
|
||||
|
||||
/* renamed from: y reason: collision with root package name */
|
||||
public static final C0022a f40y = new C0022a(16);
|
||||
public static final C0024a f40y = new C0024a(16);
|
||||
|
||||
/* renamed from: z reason: collision with root package name */
|
||||
public static final C0022a f41z = new C0022a(17);
|
||||
public final /* synthetic */ int J;
|
||||
public static final C0024a f41z = new C0024a(17);
|
||||
public final /* synthetic */ int K;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public C0022a(int i2) {
|
||||
public C0024a(int i2) {
|
||||
super(0);
|
||||
this.J = i2;
|
||||
this.K = i2;
|
||||
}
|
||||
|
||||
/* Return type fixed from 'java.lang.Object' to match base method */
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
/* renamed from: invoke */
|
||||
public final TypeAdapter<? extends Object> mo1invoke() {
|
||||
switch (this.J) {
|
||||
public final Object mo1invoke() {
|
||||
switch (this.K) {
|
||||
case 0:
|
||||
return new GuildVerificationLevelTypeAdapter();
|
||||
case 1:
|
||||
|
@ -162,20 +163,22 @@ public final class a {
|
|||
case 18:
|
||||
return new GuildScheduledEventEntityTypeTypeAdapter();
|
||||
case 19:
|
||||
return new ApplicationStatusTypeAdapter();
|
||||
return new AnalyticsSchemaTypeAdapter();
|
||||
case 20:
|
||||
return new UtcDateTimeTypeAdapter();
|
||||
return new ApplicationStatusTypeAdapter();
|
||||
case 21:
|
||||
return new NsfwAllowanceTypeAdapter();
|
||||
return new UtcDateTimeTypeAdapter();
|
||||
case 22:
|
||||
return new PremiumTierTypeAdapter();
|
||||
return new NsfwAllowanceTypeAdapter();
|
||||
case 23:
|
||||
return new ActivityTypeTypeAdapter();
|
||||
return new PremiumTierTypeAdapter();
|
||||
case 24:
|
||||
return new PhoneTypeAdapter();
|
||||
return new ActivityTypeTypeAdapter();
|
||||
case 25:
|
||||
return new CommandTypeAdapter();
|
||||
return new PhoneTypeAdapter();
|
||||
case 26:
|
||||
return new CommandTypeAdapter();
|
||||
case 27:
|
||||
return new OAuthScopeTypeAdapter();
|
||||
default:
|
||||
throw null;
|
||||
|
@ -201,7 +204,7 @@ public final class a {
|
|||
|
||||
public static final e a(e eVar) {
|
||||
m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapters");
|
||||
for (Map.Entry<Class<? extends Object>, Function0<TypeAdapter<? extends Object>>> entry : a.entrySet()) {
|
||||
for (Map.Entry<Class<? extends Object>, Function0<Object>> entry : a.entrySet()) {
|
||||
eVar.b(entry.getKey(), entry.getValue().mo1invoke());
|
||||
}
|
||||
m.checkNotNullParameter(eVar, "$this$registerDiscordApiTypeAdapterFactories");
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
package c.a.d;
|
||||
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import rx.functions.Action3;
|
||||
/* compiled from: App.kt */
|
||||
public final class a implements Action3 {
|
||||
public final /* synthetic */ Function3 i;
|
||||
|
||||
public a(Function3 function3) {
|
||||
this.i = function3;
|
||||
}
|
||||
|
||||
@Override // rx.functions.Action3
|
||||
public final /* synthetic */ void call(Object obj, Object obj2, Object obj3) {
|
||||
m.checkNotNullExpressionValue(this.i.invoke(obj, obj2, obj3), "invoke(...)");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package c.a.d.a.a.a;
|
||||
|
||||
import com.discord.api.science.AnalyticsSchema;
|
||||
import d0.z.d.m;
|
||||
/* compiled from: TrackImpressionInviteAccept.kt */
|
||||
public final class a implements AnalyticsSchema {
|
||||
public final transient String a;
|
||||
public final CharSequence b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final CharSequence f42c;
|
||||
|
||||
public a() {
|
||||
this(null, null, 3);
|
||||
}
|
||||
|
||||
public a(CharSequence charSequence, CharSequence charSequence2, int i) {
|
||||
int i2 = i & 2;
|
||||
this.b = (i & 1) != 0 ? null : charSequence;
|
||||
this.f42c = null;
|
||||
this.a = "impression_invite_accept";
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof a)) {
|
||||
return false;
|
||||
}
|
||||
a aVar = (a) obj;
|
||||
return m.areEqual(this.b, aVar.b) && m.areEqual(this.f42c, aVar.f42c);
|
||||
}
|
||||
|
||||
@Override // com.discord.api.science.AnalyticsSchema
|
||||
public String getType() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
CharSequence charSequence = this.b;
|
||||
int i = 0;
|
||||
int hashCode = (charSequence != null ? charSequence.hashCode() : 0) * 31;
|
||||
CharSequence charSequence2 = this.f42c;
|
||||
if (charSequence2 != null) {
|
||||
i = charSequence2.hashCode();
|
||||
}
|
||||
return hashCode + i;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder K = c.d.b.a.a.K("TrackImpressionInviteAccept(inviteCode=");
|
||||
K.append(this.b);
|
||||
K.append(", deeplinkAttemptId=");
|
||||
K.append(this.f42c);
|
||||
K.append(")");
|
||||
return K.toString();
|
||||
}
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
package c.a.d;
|
||||
|
||||
import android.view.MenuItem;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import rx.functions.Action1;
|
||||
import rx.functions.Action2;
|
||||
/* compiled from: AppActivity.kt */
|
||||
public final class b implements Toolbar.OnMenuItemClickListener {
|
||||
public final /* synthetic */ Toolbar a;
|
||||
public final /* synthetic */ Action2 b;
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final /* synthetic */ Action1 f42c;
|
||||
|
||||
public b(Toolbar toolbar, int i, Action2 action2, Action1 action1) {
|
||||
this.a = toolbar;
|
||||
this.b = action2;
|
||||
this.f42c = action1;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar.OnMenuItemClickListener
|
||||
public final boolean onMenuItemClick(MenuItem menuItem) {
|
||||
Action2 action2 = this.b;
|
||||
if (action2 == null) {
|
||||
return true;
|
||||
}
|
||||
action2.call(menuItem, this.a.getContext());
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
package c.a.d;
|
||||
|
||||
import android.util.TypedValue;
|
||||
import com.discord.app.AppActivity;
|
||||
import d0.z.d.o;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
/* compiled from: AppActivity.kt */
|
||||
public final class c extends o implements Function2<Integer, Boolean, TypedValue> {
|
||||
public final /* synthetic */ AppActivity this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(AppActivity appActivity) {
|
||||
super(2);
|
||||
this.this$0 = appActivity;
|
||||
}
|
||||
|
||||
/* 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 // kotlin.jvm.functions.Function2
|
||||
public TypedValue invoke(Integer num, Boolean bool) {
|
||||
int intValue = num.intValue();
|
||||
boolean booleanValue = bool.booleanValue();
|
||||
TypedValue typedValue = new TypedValue();
|
||||
this.this$0.getTheme().resolveAttribute(intValue, typedValue, booleanValue);
|
||||
return typedValue;
|
||||
}
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
package c.a.d;
|
||||
|
||||
import com.discord.app.AppTransitionActivity;
|
||||
import d0.z.d.m;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.TreeMap;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
/* compiled from: AppEventHandlerActivity.kt */
|
||||
public abstract class d extends AppTransitionActivity {
|
||||
public final TreeMap<Integer, HashMap<String, Function0<Boolean>>> k = new TreeMap<>();
|
||||
|
||||
@Override // com.discord.app.AppTransitionActivity, androidx.activity.ComponentActivity, android.app.Activity
|
||||
public void onBackPressed() {
|
||||
boolean z2;
|
||||
Collection<HashMap<String, Function0<Boolean>>> values = this.k.values();
|
||||
m.checkNotNullExpressionValue(values, "backPressHandlers\n .values");
|
||||
Iterator<T> it = values.iterator();
|
||||
loop0:
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
z2 = false;
|
||||
break;
|
||||
}
|
||||
Collection values2 = ((HashMap) it.next()).values();
|
||||
m.checkNotNullExpressionValue(values2, "handlers\n .values");
|
||||
Iterator it2 = values2.iterator();
|
||||
while (true) {
|
||||
if (it2.hasNext()) {
|
||||
if (((Boolean) ((Function0) it2.next()).mo1invoke()).booleanValue()) {
|
||||
z2 = true;
|
||||
break loop0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!z2 && !isFinishing()) {
|
||||
try {
|
||||
super.onBackPressed();
|
||||
} catch (Exception e) {
|
||||
if (!(e instanceof IllegalArgumentException) && !(e instanceof IllegalStateException)) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package c.a.d;
|
||||
|
||||
import com.discord.app.AudioManagerFeatureFlag;
|
||||
import com.discord.models.experiments.domain.Experiment;
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
/* compiled from: AudioManagerFeatureFlag.kt */
|
||||
public final class k0 extends o implements Function1<Experiment, Unit> {
|
||||
public final /* synthetic */ AudioManagerFeatureFlag this$0;
|
||||
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public k0(AudioManagerFeatureFlag audioManagerFeatureFlag) {
|
||||
super(1);
|
||||
this.this$0 = audioManagerFeatureFlag;
|
||||
}
|
||||
|
||||
/* 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(Experiment experiment) {
|
||||
Experiment experiment2 = experiment;
|
||||
m.checkNotNullParameter(experiment2, "it");
|
||||
this.this$0.d.edit().putInt("CACHE_KEY_AUDIO_MANAGER_V2_EXPERIMENT_BUCKET", experiment2.getBucket()).apply();
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
|
@ -1,29 +1,18 @@
|
|||
package c.a.e;
|
||||
|
||||
import d0.z.d.k;
|
||||
import java.util.Objects;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.Subscription;
|
||||
/* compiled from: Backgrounded.kt */
|
||||
public final /* synthetic */ class a extends k implements Function1<Boolean, Unit> {
|
||||
public a(d dVar) {
|
||||
super(1, dVar, d.class, "emit", "emit(Z)V", 0);
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function3;
|
||||
import rx.functions.Action3;
|
||||
/* compiled from: App.kt */
|
||||
public final class a implements Action3 {
|
||||
public final /* synthetic */ Function3 i;
|
||||
|
||||
public a(Function3 function3) {
|
||||
this.i = function3;
|
||||
}
|
||||
|
||||
/* 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(Boolean bool) {
|
||||
boolean booleanValue = bool.booleanValue();
|
||||
boolean z2 = d.a;
|
||||
Objects.requireNonNull((d) this.receiver);
|
||||
d.a = booleanValue;
|
||||
Subscription subscription = d.f51c;
|
||||
if (subscription != null) {
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
d.b.onNext(Boolean.valueOf(booleanValue));
|
||||
return Unit.a;
|
||||
@Override // rx.functions.Action3
|
||||
public final /* synthetic */ void call(Object obj, Object obj2, Object obj3) {
|
||||
m.checkNotNullExpressionValue(this.i.invoke(obj, obj2, obj3), "invoke(...)");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import android.content.Context;
|
||||
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
@ -1,75 +1,30 @@
|
|||
package c.a.e;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.os.Bundle;
|
||||
import androidx.appcompat.widget.ActivityChooserModel;
|
||||
import d0.z.d.m;
|
||||
import j0.l.e.j;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.Observable;
|
||||
import rx.Subscription;
|
||||
import android.view.MenuItem;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import rx.functions.Action1;
|
||||
/* compiled from: Backgrounded.kt */
|
||||
public final class b implements Application.ActivityLifecycleCallbacks {
|
||||
public final /* synthetic */ Function1 i;
|
||||
import rx.functions.Action2;
|
||||
/* compiled from: AppActivity.kt */
|
||||
public final class b implements Toolbar.OnMenuItemClickListener {
|
||||
public final /* synthetic */ Toolbar a;
|
||||
public final /* synthetic */ Action2 b;
|
||||
|
||||
public b(Function1 function1) {
|
||||
this.i = function1;
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public final /* synthetic */ Action1 f43c;
|
||||
|
||||
public b(Toolbar toolbar, int i, Action2 action2, Action1 action1) {
|
||||
this.a = toolbar;
|
||||
this.b = action2;
|
||||
this.f43c = action1;
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityCreated(Activity activity, Bundle bundle) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityDestroyed(Activity activity) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX DEBUG: Type inference failed for r1v1. Raw type applied. Possible types: rx.Observable<T>, rx.Observable */
|
||||
/* JADX WARNING: Unknown variable types count: 1 */
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityPaused(Activity activity) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
d dVar = d.d;
|
||||
Function1 function1 = this.i;
|
||||
Observable q = new j(Boolean.TRUE).q(2000, TimeUnit.MILLISECONDS);
|
||||
c cVar = new c(new a(dVar));
|
||||
if (function1 != null) {
|
||||
function1 = new c(function1);
|
||||
@Override // androidx.appcompat.widget.Toolbar.OnMenuItemClickListener
|
||||
public final boolean onMenuItemClick(MenuItem menuItem) {
|
||||
Action2 action2 = this.b;
|
||||
if (action2 == null) {
|
||||
return true;
|
||||
}
|
||||
d.f51c = q.W(cVar, (Action1) function1);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityResumed(Activity activity) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
d dVar = d.d;
|
||||
d.a = false;
|
||||
Subscription subscription = d.f51c;
|
||||
if (subscription != null) {
|
||||
subscription.unsubscribe();
|
||||
}
|
||||
d.b.onNext(Boolean.FALSE);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
m.checkNotNullParameter(bundle, "bundle");
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityStarted(Activity activity) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public void onActivityStopped(Activity activity) {
|
||||
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
||||
action2.call(menuItem, this.a.getContext());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import j0.k.b;
|
||||
import rx.Observable;
|
|
@ -1,18 +1,27 @@
|
|||
package c.a.e;
|
||||
|
||||
import d0.z.d.m;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.functions.Action1;
|
||||
/* compiled from: Backgrounded.kt */
|
||||
public final class c implements Action1 {
|
||||
public final /* synthetic */ Function1 i;
|
||||
import android.util.TypedValue;
|
||||
import com.discord.app.AppActivity;
|
||||
import d0.z.d.o;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
/* compiled from: AppActivity.kt */
|
||||
public final class c extends o implements Function2<Integer, Boolean, TypedValue> {
|
||||
public final /* synthetic */ AppActivity this$0;
|
||||
|
||||
public c(Function1 function1) {
|
||||
this.i = function1;
|
||||
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||||
public c(AppActivity appActivity) {
|
||||
super(2);
|
||||
this.this$0 = appActivity;
|
||||
}
|
||||
|
||||
@Override // rx.functions.Action1
|
||||
public final /* synthetic */ void call(Object obj) {
|
||||
m.checkNotNullExpressionValue(this.i.invoke(obj), "invoke(...)");
|
||||
/* 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 // kotlin.jvm.functions.Function2
|
||||
public TypedValue invoke(Integer num, Boolean bool) {
|
||||
int intValue = num.intValue();
|
||||
boolean booleanValue = bool.booleanValue();
|
||||
TypedValue typedValue = new TypedValue();
|
||||
this.this$0.getTheme().resolveAttribute(intValue, typedValue, booleanValue);
|
||||
return typedValue;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import rx.Observable;
|
|
@ -1,28 +1,48 @@
|
|||
package c.a.e;
|
||||
|
||||
import com.discord.app.AppTransitionActivity;
|
||||
import d0.z.d.m;
|
||||
import rx.Observable;
|
||||
import rx.Subscription;
|
||||
import rx.subjects.BehaviorSubject;
|
||||
import rx.subjects.Subject;
|
||||
/* compiled from: Backgrounded.kt */
|
||||
public final class d {
|
||||
public static boolean a = true;
|
||||
public static final Subject<Boolean, Boolean> b;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.TreeMap;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
/* compiled from: AppEventHandlerActivity.kt */
|
||||
public abstract class d extends AppTransitionActivity {
|
||||
public final TreeMap<Integer, HashMap<String, Function0<Boolean>>> k = new TreeMap<>();
|
||||
|
||||
/* renamed from: c reason: collision with root package name */
|
||||
public static Subscription f51c;
|
||||
public static final d d = new d();
|
||||
|
||||
static {
|
||||
BehaviorSubject l0 = BehaviorSubject.l0(true);
|
||||
m.checkNotNullExpressionValue(l0, "BehaviorSubject.create(isBackgrounded)");
|
||||
b = l0;
|
||||
}
|
||||
|
||||
public final Observable<Boolean> a() {
|
||||
Observable<Boolean> r = b.r();
|
||||
m.checkNotNullExpressionValue(r, "emitter.distinctUntilChanged()");
|
||||
return r;
|
||||
@Override // com.discord.app.AppTransitionActivity, androidx.activity.ComponentActivity, android.app.Activity
|
||||
public void onBackPressed() {
|
||||
boolean z2;
|
||||
Collection<HashMap<String, Function0<Boolean>>> values = this.k.values();
|
||||
m.checkNotNullExpressionValue(values, "backPressHandlers\n .values");
|
||||
Iterator<T> it = values.iterator();
|
||||
loop0:
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
z2 = false;
|
||||
break;
|
||||
}
|
||||
Collection values2 = ((HashMap) it.next()).values();
|
||||
m.checkNotNullExpressionValue(values2, "handlers\n .values");
|
||||
Iterator it2 = values2.iterator();
|
||||
while (true) {
|
||||
if (it2.hasNext()) {
|
||||
if (((Boolean) ((Function0) it2.next()).mo1invoke()).booleanValue()) {
|
||||
z2 = true;
|
||||
break loop0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!z2 && !isFinishing()) {
|
||||
try {
|
||||
super.onBackPressed();
|
||||
} catch (Exception e) {
|
||||
if (!(e instanceof IllegalArgumentException) && !(e instanceof IllegalStateException)) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import d0.z.d.m;
|
||||
import d0.z.d.o;
|
|
@ -1,6 +1,6 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import c.a.k.b;
|
||||
import c.a.l.b;
|
||||
import com.discord.R;
|
||||
import com.discord.app.AppFragment;
|
||||
import d0.z.d.m;
|
||||
|
@ -22,9 +22,9 @@ public final class e extends o implements Function1<Exception, Unit> {
|
|||
@Override // kotlin.jvm.functions.Function1
|
||||
public Unit invoke(Exception exc) {
|
||||
Exception exc2 = exc;
|
||||
m.checkNotNullParameter(exc2, c.a.q.m0.c.e.a);
|
||||
m.checkNotNullParameter(exc2, c.a.r.n0.c.e.a);
|
||||
AppFragment appFragment = this.this$0.this$0;
|
||||
o.j(appFragment, b.j(appFragment, R.string.unable_to_open_media_chooser, new Object[]{exc2.getMessage()}, null, 4), 0, 4);
|
||||
o.j(appFragment, b.k(appFragment, R.string.unable_to_open_media_chooser, new Object[]{exc2.getMessage()}, null, 4), 0, 4);
|
||||
return Unit.a;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import d0.z.d.o;
|
||||
import kotlin.Unit;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import c.d.b.a.a;
|
|
@ -1,4 +1,4 @@
|
|||
package c.a.d;
|
||||
package c.a.e;
|
||||
|
||||
import androidx.lifecycle.ViewModel;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue