114.1 - Alpha (114201)

This commit is contained in:
Juby210 2022-02-01 08:01:17 +00:00
parent 20a2b3b920
commit a3a4abf015
2327 changed files with 25462 additions and 27490 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 30
versionCode 114200
versionName "114.0 - Alpha"
versionCode 114201
versionName "114.1 - Alpha"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="114200" android:versionName="114.0 - Alpha" 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="114201" android:versionName="114.1 - Alpha" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

View file

@ -30,7 +30,7 @@ public class ResultReceiver implements Parcelable {
}
}
public class b extends a.AbstractBinderC0358a {
public class b extends a.AbstractBinderC0359a {
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.AbstractBinderC0358a.a;
int i = a.AbstractBinderC0359a.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.AbstractBinderC0358a.C0359a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0359a.C0360a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
}
this.j = aVar;
}

View file

@ -48,7 +48,7 @@ public class CustomTabsClient {
}
/* renamed from: androidx.browser.customtabs.CustomTabsClient$2 reason: invalid class name */
public class AnonymousClass2 extends a.AbstractBinderC0347a {
public class AnonymousClass2 extends a.AbstractBinderC0348a {
private Handler mHandler = new Handler(Looper.getMainLooper());
public final /* synthetic */ CustomTabsCallback val$callback;
@ -219,7 +219,7 @@ public class CustomTabsClient {
}
}
private a.AbstractBinderC0347a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) {
private a.AbstractBinderC0348a 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.AbstractBinderC0347a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
a.AbstractBinderC0348a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
if (pendingIntent != null) {
try {
Bundle bundle = new Bundle();

View file

@ -83,8 +83,8 @@ public class CustomTabsSessionToken {
}
}
public static class MockCallback extends a.AbstractBinderC0347a {
@Override // x.a.a.a.AbstractBinderC0347a, android.os.IInterface
public static class MockCallback extends a.AbstractBinderC0348a {
@Override // x.a.a.a.AbstractBinderC0348a, android.os.IInterface
public IBinder asBinder() {
return this;
}
@ -150,7 +150,7 @@ public class CustomTabsSessionToken {
return null;
}
if (binder != null) {
aVar = a.AbstractBinderC0347a.asInterface(binder);
aVar = a.AbstractBinderC0348a.asInterface(binder);
}
return new CustomTabsSessionToken(aVar, pendingIntent);
}

View file

@ -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.AbstractBinderC0347a.asInterface(callbackBinder);
this.mSessionBinder = a.AbstractBinderC0348a.asInterface(callbackBinder);
return;
}
throw new IllegalArgumentException("Provided session must have binder.");

View file

@ -15,7 +15,7 @@ public class TrustedWebActivityCallbackRemote {
@Nullable
public static TrustedWebActivityCallbackRemote fromBinder(@Nullable IBinder iBinder) {
a asInterface = iBinder == null ? null : a.AbstractBinderC0351a.asInterface(iBinder);
a asInterface = iBinder == null ? null : a.AbstractBinderC0352a.asInterface(iBinder);
if (asInterface == null) {
return null;
}

View file

@ -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.AbstractBinderC0351a {
public class AnonymousClass1 extends a.AbstractBinderC0352a {
public final /* synthetic */ TrustedWebActivityCallback val$callback;
public AnonymousClass1(TrustedWebActivityCallback trustedWebActivityCallback) {

View file

@ -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.AbstractBinderC0354a {
public class NotificationSideChannelStub extends a.AbstractBinderC0355a {
public NotificationSideChannelStub() {
}

View file

@ -226,7 +226,7 @@ public final class NotificationManagerCompat {
private void handleServiceConnected(ComponentName componentName, IBinder iBinder) {
ListenerRecord listenerRecord = this.mRecordMap.get(componentName);
if (listenerRecord != null) {
listenerRecord.service = a.AbstractBinderC0354a.asInterface(iBinder);
listenerRecord.service = a.AbstractBinderC0355a.asInterface(iBinder);
listenerRecord.retryCount = 0;
processListenerQueue(listenerRecord);
}

View file

@ -12,7 +12,7 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
@Override // d0.d0.a
public boolean contains(T t) {
return a.C0193a.contains(this, t);
return a.C0194a.contains(this, t);
}
/* JADX WARNING: Unknown variable types count: 1 */
@ -28,6 +28,6 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
}
public boolean isEmpty() {
return a.C0193a.isEmpty(this);
return a.C0194a.isEmpty(this);
}
}

View file

@ -65,7 +65,7 @@ public final class BlockRunner<T> {
if (this.cancellationJob == null) {
CoroutineScope coroutineScope = this.scope;
CoroutineDispatcher coroutineDispatcher = k0.a;
this.cancellationJob = f.H0(coroutineScope, n.f3805b.H(), null, new BlockRunner$cancel$1(this, null), 2, null);
this.cancellationJob = f.H0(coroutineScope, n.f3801b.H(), null, new BlockRunner$cancel$1(this, null), 2, null);
return;
}
throw new IllegalStateException("Cancel call cannot happen without a maybeRun".toString());

View file

@ -45,7 +45,7 @@ public final class CoroutineLiveData<T> extends MediatorLiveData<T> {
m.checkNotNullParameter(function2, "block");
t1 t1Var = new t1((Job) coroutineContext.get(Job.h));
CoroutineDispatcher coroutineDispatcher = k0.a;
this.blockRunner = new BlockRunner<>(this, function2, j, f.c(n.f3805b.H().plus(coroutineContext).plus(t1Var)), new AnonymousClass1(this));
this.blockRunner = new BlockRunner<>(this, function2, j, f.c(n.f3801b.H().plus(coroutineContext).plus(t1Var)), new AnonymousClass1(this));
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */

View file

@ -17,7 +17,7 @@ public final class CoroutineLiveDataKt {
public static final <T> Object addDisposableSource(MediatorLiveData<T> mediatorLiveData, LiveData<T> liveData, Continuation<? super EmittedSource> continuation) {
CoroutineDispatcher coroutineDispatcher = k0.a;
return f.C1(n.f3805b.H(), new CoroutineLiveDataKt$addDisposableSource$2(mediatorLiveData, liveData, null), continuation);
return f.C1(n.f3801b.H(), new CoroutineLiveDataKt$addDisposableSource$2(mediatorLiveData, liveData, null), continuation);
}
public static final <T> LiveData<T> liveData(CoroutineContext coroutineContext, long j, Function2<? super LiveDataScope<T>, ? super Continuation<? super Unit>, ? extends Object> function2) {

View file

@ -42,7 +42,7 @@ public final class DispatchQueue {
m.checkNotNullParameter(coroutineContext, "context");
m.checkNotNullParameter(runnable, "runnable");
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
if (H.isDispatchNeeded(coroutineContext) || canRun()) {
H.dispatch(coroutineContext, new DispatchQueue$dispatchAndEnqueue$$inlined$with$lambda$1(this, coroutineContext, runnable));
} else {

View file

@ -39,12 +39,12 @@ public final class EmittedSource implements m0 {
@Override // s.a.m0
public void dispose() {
CoroutineDispatcher coroutineDispatcher = k0.a;
f.H0(f.c(n.f3805b.H()), null, null, new EmittedSource$dispose$1(this, null), 3, null);
f.H0(f.c(n.f3801b.H()), null, null, new EmittedSource$dispose$1(this, null), 3, null);
}
public final Object disposeNow(Continuation<? super Unit> continuation) {
CoroutineDispatcher coroutineDispatcher = k0.a;
Object C1 = f.C1(n.f3805b.H(), new EmittedSource$disposeNow$2(this, null), continuation);
Object C1 = f.C1(n.f3801b.H(), new EmittedSource$disposeNow$2(this, null), continuation);
return C1 == c.getCOROUTINE_SUSPENDED() ? C1 : Unit.a;
}
}

View file

@ -146,7 +146,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
f b2 = b.i.a.f.e.o.f.b(-1, null, null, 6);
observer3 = new FlowLiveDataConversions$asFlow$1$observer$1(b2);
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
AnonymousClass1 r8 = new AnonymousClass1(this, observer3, null);
this.L$0 = eVar2;
this.L$1 = b2;
@ -171,7 +171,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
}
x0 x0Var = x0.j;
CoroutineDispatcher coroutineDispatcher2 = k0.a;
b.i.a.f.e.o.f.H0(x0Var, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null);
return Unit.a;
} else if (i == 3) {
g gVar3 = (g) this.L$2;
@ -214,14 +214,14 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
}
x0 x0Var = x0.j;
CoroutineDispatcher coroutineDispatcher2 = k0.a;
b.i.a.f.e.o.f.H0(x0Var, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer2, null), 2, null);
return Unit.a;
} catch (Throwable th2) {
th = th2;
observer = observer2;
x0 x0Var2 = x0.j;
CoroutineDispatcher coroutineDispatcher3 = k0.a;
b.i.a.f.e.o.f.H0(x0Var2, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var2, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
throw th;
}
}
@ -231,7 +231,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
flowLiveDataConversions$asFlow$1 = this;
x0 x0Var2 = x0.j;
CoroutineDispatcher coroutineDispatcher3 = k0.a;
b.i.a.f.e.o.f.H0(x0Var2, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var2, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
throw th;
}
} else {
@ -247,7 +247,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
flowLiveDataConversions$asFlow$1 = this;
x0 x0Var2 = x0.j;
CoroutineDispatcher coroutineDispatcher3 = k0.a;
b.i.a.f.e.o.f.H0(x0Var2, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var2, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
throw th;
}
try {
@ -263,7 +263,7 @@ public final class FlowLiveDataConversions$asFlow$1 extends k implements Functio
th = th5;
x0 x0Var2 = x0.j;
CoroutineDispatcher coroutineDispatcher3 = k0.a;
b.i.a.f.e.o.f.H0(x0Var2, n.f3805b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
b.i.a.f.e.o.f.H0(x0Var2, n.f3801b.H(), null, new AnonymousClass2(flowLiveDataConversions$asFlow$1, observer, null), 2, null);
throw th;
}
}

View file

@ -44,6 +44,6 @@ public final class LifecycleCoroutineScopeImpl extends LifecycleCoroutineScope i
public final void register() {
CoroutineDispatcher coroutineDispatcher = k0.a;
f.H0(this, n.f3805b.H(), null, new LifecycleCoroutineScopeImpl$register$1(this, null), 2, null);
f.H0(this, n.f3801b.H(), null, new LifecycleCoroutineScopeImpl$register$1(this, null), 2, null);
}
}

View file

@ -20,7 +20,7 @@ public final class LifecycleKt {
}
u d = f.d(null, 1);
CoroutineDispatcher coroutineDispatcher = k0.a;
lifecycleCoroutineScopeImpl = new LifecycleCoroutineScopeImpl(lifecycle, CoroutineContext.Element.a.plus((h1) d, n.f3805b.H()));
lifecycleCoroutineScopeImpl = new LifecycleCoroutineScopeImpl(lifecycle, CoroutineContext.Element.a.plus((h1) d, n.f3801b.H()));
} while (!lifecycle.mInternalScopeRef.compareAndSet(null, lifecycleCoroutineScopeImpl));
lifecycleCoroutineScopeImpl.register();
return lifecycleCoroutineScopeImpl;

View file

@ -20,7 +20,7 @@ public final class LiveDataScopeImpl<T> implements LiveDataScope<T> {
m.checkNotNullParameter(coroutineContext, "context");
this.target = coroutineLiveData;
CoroutineDispatcher coroutineDispatcher = k0.a;
this.coroutineContext = coroutineContext.plus(n.f3805b.H());
this.coroutineContext = coroutineContext.plus(n.f3801b.H());
}
@Override // androidx.lifecycle.LiveDataScope

View file

@ -20,7 +20,7 @@ public final class PausingDispatcher extends CoroutineDispatcher {
public boolean isDispatchNeeded(CoroutineContext coroutineContext) {
m.checkNotNullParameter(coroutineContext, "context");
CoroutineDispatcher coroutineDispatcher = k0.a;
if (n.f3805b.H().isDispatchNeeded(coroutineContext)) {
if (n.f3801b.H().isDispatchNeeded(coroutineContext)) {
return true;
}
return !this.dispatchQueue.canRun();

View file

@ -43,6 +43,6 @@ public final class PausingDispatcherKt {
public static final <T> Object whenStateAtLeast(Lifecycle lifecycle, Lifecycle.State state, Function2<? super CoroutineScope, ? super Continuation<? super T>, ? extends Object> function2, Continuation<? super T> continuation) {
CoroutineDispatcher coroutineDispatcher = k0.a;
return f.C1(n.f3805b.H(), new PausingDispatcherKt$whenStateAtLeast$2(lifecycle, state, function2, null), continuation);
return f.C1(n.f3801b.H(), new PausingDispatcherKt$whenStateAtLeast$2(lifecycle, state, function2, null), continuation);
}
}

View file

@ -21,7 +21,7 @@ public final class ViewModelKt {
}
u d = f.d(null, 1);
CoroutineDispatcher coroutineDispatcher = k0.a;
Object tagIfAbsent = viewModel.setTagIfAbsent(JOB_KEY, new CloseableCoroutineScope(CoroutineContext.Element.a.plus((h1) d, n.f3805b.H())));
Object tagIfAbsent = viewModel.setTagIfAbsent(JOB_KEY, new CloseableCoroutineScope(CoroutineContext.Element.a.plus((h1) d, n.f3801b.H())));
m.checkNotNullExpressionValue(tagIfAbsent, "setTagIfAbsent(\n …Main.immediate)\n )");
return (CoroutineScope) tagIfAbsent;
}

View file

@ -35,7 +35,7 @@ public final class WithLifecycleStateKt {
public static final <R> Object withCreated(Lifecycle lifecycle, Function0<? extends R> function0, Continuation<? super R> continuation) {
Lifecycle.State state = Lifecycle.State.CREATED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -52,7 +52,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycle, "lifecycle");
Lifecycle.State state = Lifecycle.State.CREATED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -67,7 +67,7 @@ public final class WithLifecycleStateKt {
private static final Object withCreated$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) {
Lifecycle.State state = Lifecycle.State.CREATED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -76,7 +76,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle");
Lifecycle.State state = Lifecycle.State.CREATED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -84,7 +84,7 @@ public final class WithLifecycleStateKt {
public static final <R> Object withResumed(Lifecycle lifecycle, Function0<? extends R> function0, Continuation<? super R> continuation) {
Lifecycle.State state = Lifecycle.State.RESUMED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -101,7 +101,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycle, "lifecycle");
Lifecycle.State state = Lifecycle.State.RESUMED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -116,7 +116,7 @@ public final class WithLifecycleStateKt {
private static final Object withResumed$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) {
Lifecycle.State state = Lifecycle.State.RESUMED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -125,7 +125,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle");
Lifecycle.State state = Lifecycle.State.RESUMED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -133,7 +133,7 @@ public final class WithLifecycleStateKt {
public static final <R> Object withStarted(Lifecycle lifecycle, Function0<? extends R> function0, Continuation<? super R> continuation) {
Lifecycle.State state = Lifecycle.State.STARTED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -150,7 +150,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycle, "lifecycle");
Lifecycle.State state = Lifecycle.State.STARTED;
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -165,7 +165,7 @@ public final class WithLifecycleStateKt {
private static final Object withStarted$$forInline(Lifecycle lifecycle, Function0 function0, Continuation continuation) {
Lifecycle.State state = Lifecycle.State.STARTED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -174,7 +174,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycleOwner.getLifecycle(), "lifecycle");
Lifecycle.State state = Lifecycle.State.STARTED;
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -182,7 +182,7 @@ public final class WithLifecycleStateKt {
public static final <R> Object withStateAtLeast(Lifecycle lifecycle, Lifecycle.State state, Function0<? extends R> function0, Continuation<? super R> continuation) {
if (state.compareTo(Lifecycle.State.CREATED) >= 0) {
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -201,7 +201,7 @@ public final class WithLifecycleStateKt {
m.checkNotNullExpressionValue(lifecycle, "lifecycle");
if (state.compareTo(Lifecycle.State.CREATED) >= 0) {
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -220,7 +220,7 @@ public final class WithLifecycleStateKt {
throw new IllegalArgumentException(("target state must be CREATED or greater, found " + state).toString());
}
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
@ -231,14 +231,14 @@ public final class WithLifecycleStateKt {
throw new IllegalArgumentException(("target state must be CREATED or greater, found " + state).toString());
}
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}
public static final <R> Object withStateAtLeastUnchecked(Lifecycle lifecycle, Lifecycle.State state, Function0<? extends R> function0, Continuation<? super R> continuation) {
CoroutineDispatcher coroutineDispatcher = k0.a;
l1 H = n.f3805b.H();
l1 H = n.f3801b.H();
boolean isDispatchNeeded = H.isDispatchNeeded(continuation.getContext());
if (!isDispatchNeeded) {
if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
@ -252,7 +252,7 @@ public final class WithLifecycleStateKt {
private static final Object withStateAtLeastUnchecked$$forInline(Lifecycle lifecycle, Lifecycle.State state, Function0 function0, Continuation continuation) {
CoroutineDispatcher coroutineDispatcher = k0.a;
n.f3805b.H();
n.f3801b.H();
d0.z.d.l.mark(3);
throw null;
}

View file

@ -4,29 +4,42 @@ import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.DrawableRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import b.a.i.u;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;
import b.a.i.p5;
import b.a.i.u0;
import com.discord.R;
import com.discord.app.AppDialog;
import com.discord.app.AppFragment;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.servers.guildboost.WidgetGuildBoost;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.tabs.TabLayout;
import d0.t.n;
import d0.t.u;
import d0.z.d.k;
import d0.z.d.m;
import java.util.List;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: GuildBoostUpsellDialog.kt */
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public final class b extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(b.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(b.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
public static final C0007b k = new C0007b(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, f.j, null, 2, null);
public e m;
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
@ -44,108 +57,264 @@ public final class b extends AppDialog {
if (i == 0) {
((b) this.k).dismiss();
} else if (i == 1) {
((b) this.k).dismiss();
b.g((b) this.k);
} else if (i == 2) {
b.g((b) this.k);
} else {
throw null;
}
}
}
/* compiled from: GuildBoostUpsellDialog.kt */
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: b.a.a.b.b$b reason: collision with other inner class name */
public static final class C0007b {
public C0007b(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX WARNING: Removed duplicated region for block: B:17:0x0041 */
/* JADX WARNING: Removed duplicated region for block: B:19:0x004c */
/* JADX WARNING: Removed duplicated region for block: B:26:0x0076 */
/* JADX WARNING: Removed duplicated region for block: B:27:0x007c */
/* JADX WARNING: Removed duplicated region for block: B:29:0x007f */
/* JADX WARNING: Removed duplicated region for block: B:30:0x0085 */
/* JADX WARNING: Removed duplicated region for block: B:32:0x0088 */
public final void a(FragmentManager fragmentManager, long j, Long l, Integer num, Traits.Location location) {
String str;
Bundle I;
String page;
String str2;
m.checkNotNullParameter(fragmentManager, "fragmentManager");
b bVar = new b();
String str3 = null;
if (num != null && num.intValue() == 1) {
str2 = Traits.Location.ObjType.TIER_1;
} else if (num != null && num.intValue() == 2) {
str2 = Traits.Location.ObjType.TIER_2;
} else if (num != null && num.intValue() == 3) {
str2 = Traits.Location.ObjType.TIER_3;
} else {
public static void a(C0007b 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;
I = b.d.b.a.a.I("extra_guild_id", j);
if (l != null) {
I.putLong("extra_channel_id", l.longValue());
}
if (str != null) {
I.putString("extra_object_type", str);
}
if (!(location == null || (page = location.getPage()) == null)) {
I.putString("extra_page", page);
}
bVar.setArguments(I);
bVar.show(fragmentManager, b.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str);
String page2 = location == null ? location.getPage() : null;
String str4 = location == null ? location.get_object() : null;
if (location != null) {
str3 = location.getSection();
}
analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
str = str2;
I = b.d.b.a.a.I("extra_guild_id", j);
if (l != null) {
if ((i2 & 8) != 0) {
str2 = null;
}
if ((i2 & 16) != 0) {
str3 = null;
}
if ((i2 & 32) != 0) {
str4 = null;
}
if ((i2 & 64) != 0) {
str5 = null;
}
if ((i2 & 128) != 0) {
str6 = null;
}
if ((i2 & 256) != 0) {
z2 = true;
}
if ((i2 & 512) != 0) {
z3 = true;
}
Objects.requireNonNull(bVar);
m.checkNotNullParameter(fragmentManager, "fragmentManager");
b bVar2 = new b();
Bundle bundle = new Bundle();
bundle.putInt("extra_page_number", i);
if (str != null) {
bundle.putString("extra_header_string", str);
}
I.putString("extra_page", page);
bVar.setArguments(I);
bVar.show(fragmentManager, b.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str);
if (location == null) {
if (str2 != null) {
bundle.putString("extra_body_text", str2);
}
if (location == null) {
}
if (location != null) {
}
analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null));
bundle.putString("extra_page_name", str3);
bundle.putString("extra_section_name", str4);
bundle.putString("extra_object_name", str5);
bundle.putString("extra_object_type", str6);
bundle.putBoolean("extra_show_other_pages", z2);
bundle.putBoolean("extra_show_learn_more", z3);
bVar2.setArguments(bundle);
bVar2.show(fragmentManager, b.class.getName());
}
}
/* compiled from: GuildBoostUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, u> {
public static final c j = new c();
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class c {
public final int a;
public c() {
super(1, u.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 0);
/* renamed from: b reason: collision with root package name */
public CharSequence f44b;
public CharSequence c;
public c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) {
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
this.a = i;
this.f44b = charSequence;
this.c = charSequence2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof c)) {
return false;
}
c cVar = (c) obj;
return this.a == cVar.a && m.areEqual(this.f44b, cVar.f44b) && m.areEqual(this.c, cVar.c);
}
public int hashCode() {
int i = this.a * 31;
CharSequence charSequence = this.f44b;
int i2 = 0;
int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.c;
if (charSequence2 != null) {
i2 = charSequence2.hashCode();
}
return hashCode + i2;
}
public String toString() {
StringBuilder R = b.d.b.a.a.R("UpsellData(imageResId=");
R.append(this.a);
R.append(", headerText=");
R.append(this.f44b);
R.append(", bodyText=");
return b.d.b.a.a.D(R, this.c, ")");
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class d extends AppFragment {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
public static final a k = new a(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, C0008b.j, null, 2, null);
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: b.a.a.b.b$d$b reason: collision with other inner class name */
public static final /* synthetic */ class C0008b extends k implements Function1<View, p5> {
public static final C0008b j = new C0008b();
public C0008b() {
super(1, p5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 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 p5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.premium_upsell_body;
TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_body);
if (textView != null) {
i = R.id.premium_upsell_header;
TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_header);
if (textView2 != null) {
i = R.id.premium_upsell_img;
ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_img);
if (imageView != null) {
return new p5((LinearLayout) view2, textView, textView2, imageView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
}
}
public d() {
super(R.layout.widget_premium_upsell);
}
public final p5 g() {
return (p5) this.l.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppFragment
public void onViewBoundOrOnResume() {
String string;
super.onViewBoundOrOnResume();
ImageView imageView = g().d;
Bundle arguments = getArguments();
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
TextView textView = g().c;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
Bundle arguments2 = getArguments();
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
TextView textView2 = g().f178b;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
Bundle arguments3 = getArguments();
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : b.a.k.b.l(string, new Object[0], null, 2));
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class e extends FragmentStateAdapter {
public final List<c> a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(Fragment fragment, List<c> list) {
super(fragment);
m.checkNotNullParameter(fragment, "fragment");
m.checkNotNullParameter(list, "pages");
this.a = list;
}
@Override // androidx.viewpager2.adapter.FragmentStateAdapter
public Fragment createFragment(int i) {
c cVar = this.a.get(i);
d.a aVar = d.k;
int i2 = cVar.a;
CharSequence charSequence = cVar.f44b;
CharSequence charSequence2 = cVar.c;
Objects.requireNonNull(aVar);
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
Bundle bundle = new Bundle();
bundle.putInt("extra_image_id", i2);
bundle.putString("extra_header_string", charSequence.toString());
bundle.putString("extra_body_text", charSequence2.toString());
d dVar = new d();
dVar.setArguments(bundle);
return dVar;
}
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
public int getItemCount() {
return this.a.size();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class f extends k implements Function1<View, u0> {
public static final f j = new f();
public f() {
super(1, u0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 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 u invoke(View view) {
public u0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.guild_boost_upsell_close;
ImageView imageView = (ImageView) view2.findViewById(R.id.guild_boost_upsell_close);
if (imageView != null) {
i = R.id.guild_boost_upsell_close_button;
TextView textView = (TextView) view2.findViewById(R.id.guild_boost_upsell_close_button);
if (textView != null) {
i = R.id.guild_boost_upsell_subscribe_button;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_upsell_subscribe_button);
if (materialButton != null) {
return new u((RelativeLayout) view2, imageView, textView, materialButton);
int i = R.id.premium_upsell_button_container;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.premium_upsell_button_container);
if (linearLayout != null) {
i = R.id.premium_upsell_close;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.premium_upsell_close);
if (materialButton != null) {
i = R.id.premium_upsell_divider;
View findViewById = view2.findViewById(R.id.premium_upsell_divider);
if (findViewById != null) {
i = R.id.premium_upsell_dots;
TabLayout tabLayout = (TabLayout) view2.findViewById(R.id.premium_upsell_dots);
if (tabLayout != null) {
i = R.id.premium_upsell_get_premium;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.premium_upsell_get_premium);
if (materialButton2 != null) {
i = R.id.premium_upsell_learn_more;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(R.id.premium_upsell_learn_more);
if (materialButton3 != null) {
i = R.id.premium_upsell_viewpager;
ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(R.id.premium_upsell_viewpager);
if (viewPager2 != null) {
return new u0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2);
}
}
}
}
}
}
}
@ -153,53 +322,133 @@ public final class b extends AppDialog {
}
}
/* compiled from: GuildBoostUpsellDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ b j;
public final /* synthetic */ long k;
public final /* synthetic */ Long l;
public final /* synthetic */ String m;
public final /* synthetic */ String n;
public d(b bVar, long j, Long l, String str, String str2) {
this.j = bVar;
this.k = j;
this.l = l;
this.m = str;
this.n = str2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AnalyticsTracker.INSTANCE.guildBoostPromotionOpened(this.k, new Traits.Location(this.m, Traits.Location.Section.PREMIUM_GUILD_UPSELL_MODAL, Traits.Location.Obj.BUTTON_CTA, this.n, null, 16, null), this.l);
WidgetGuildBoost.Companion companion = WidgetGuildBoost.Companion;
Context requireContext = this.j.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
companion.create(requireContext, this.k);
this.j.dismiss();
}
}
public b() {
super(R.layout.guild_boost_upsell_dialog);
super(R.layout.multi_value_prop_premium_upsell_dialog);
}
public final u g() {
return (u) this.l.getValue((Fragment) this, j[0]);
public static final void g(b bVar) {
Bundle arguments = bVar.getArguments();
String string = arguments != null ? arguments.getString("extra_page_name") : null;
Bundle arguments2 = bVar.getArguments();
String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null;
Bundle arguments3 = bVar.getArguments();
String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null;
Bundle arguments4 = bVar.getArguments();
AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null));
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = bVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
bVar.dismiss();
}
public final u0 h() {
return (u0) this.l.getValue((Fragment) this, j[0]);
}
public final boolean i() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_learn_more");
}
public final boolean j() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_other_pages");
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
String string;
String str;
super.onCreate(bundle);
AppDialog.hideKeyboard$default(this, null, 1, null);
String string2 = getString(R.string.premium_upsell_tag_passive_mobile);
m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)");
String string3 = getString(R.string.premium_upsell_tag_description_mobile);
m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)");
String string4 = getString(R.string.premium_upsell_emoji_passive_mobile);
m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)");
String string5 = getString(R.string.premium_upsell_emoji_description_mobile);
m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)");
String string6 = getString(R.string.premium_upsell_animated_emojis_passive_mobile);
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 k2 = b.a.k.b.k(this, R.string.premium_upsell_upload_passive_mobile, new Object[0], null, 4);
Object[] objArr = {b.a.k.b.k(this, R.string.file_upload_limit_standard, new Object[0], null, 4), b.a.k.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);
m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)");
String string10 = getString(R.string.premium_upsell_badge_passive_mobile);
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, k2, b.a.k.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 i = arguments != null ? arguments.getInt("extra_page_number") : 0;
Bundle arguments2 = getArguments();
String str2 = "";
if (arguments2 != null && arguments2.containsKey("extra_header_string")) {
c cVar = (c) listOf.get(i);
Bundle arguments3 = getArguments();
if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) {
str = str2;
}
Objects.requireNonNull(cVar);
m.checkNotNullParameter(str, "<set-?>");
cVar.f44b = str;
}
Bundle arguments4 = getArguments();
if (arguments4 != null && arguments4.containsKey("extra_body_text")) {
c cVar2 = (c) listOf.get(i);
Bundle arguments5 = getArguments();
if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) {
str2 = string;
}
Objects.requireNonNull(cVar2);
m.checkNotNullParameter(str2, "<set-?>");
cVar2.c = str2;
}
c cVar3 = (c) listOf.get(i);
List mutableListOf = n.mutableListOf(cVar3);
if (j()) {
mutableListOf.addAll(u.minus(listOf, cVar3));
}
this.m = new e(this, mutableListOf);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
long j2 = getArgumentsOrDefault().getLong("extra_guild_id", -1);
Bundle arguments = getArguments();
Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_channel_id")) : null;
Bundle arguments2 = getArguments();
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().f204b.setOnClickListener(new a(0, this));
g().c.setOnClickListener(new a(1, this));
ViewPager2 viewPager2 = h().f;
m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager");
e eVar = this.m;
if (eVar == null) {
m.throwUninitializedPropertyAccessException("pagerAdapter");
}
viewPager2.setAdapter(eVar);
TabLayout tabLayout = h().c;
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
int i = 8;
tabLayout.setVisibility(j() ? 0 : 8);
TabLayout tabLayout2 = h().c;
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
ViewPager2 viewPager22 = h().f;
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null);
h().f205b.setOnClickListener(new a(0, this));
MaterialButton materialButton = h().e;
m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore");
materialButton.setVisibility(i() ? 0 : 8);
h().e.setOnClickListener(new a(1, this));
MaterialButton materialButton2 = h().d;
m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium");
if (!i()) {
i = 0;
}
materialButton2.setVisibility(i);
h().d.setOnClickListener(new a(2, this));
}
}

View file

@ -5,41 +5,32 @@ import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.DrawableRes;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;
import b.a.i.p5;
import b.a.i.u0;
import b.a.i.n1;
import com.discord.R;
import com.discord.app.AppDialog;
import com.discord.app.AppFragment;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.premium.ShinyButton;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.tabs.TabLayout;
import d0.t.n;
import d0.t.u;
import d0.z.d.k;
import d0.z.d.m;
import java.util.List;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public final class c extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0)};
public static final b k = new b(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, f.j, null, 2, null);
public e m;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, C0009c.j, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
@ -57,259 +48,80 @@ public final class c extends AppDialog {
if (i == 0) {
((c) this.k).dismiss();
} else if (i == 1) {
c.g((c) this.k);
} else if (i == 2) {
c.g((c) this.k);
c cVar = (c) this.k;
KProperty[] kPropertyArr = c.j;
Objects.requireNonNull(cVar);
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = cVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
cVar.dismiss();
} else {
throw null;
}
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
public static void a(b 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;
}
if ((i2 & 8) != 0) {
str2 = null;
}
if ((i2 & 16) != 0) {
str3 = null;
}
if ((i2 & 32) != 0) {
str4 = null;
}
if ((i2 & 64) != 0) {
str5 = null;
}
if ((i2 & 128) != 0) {
str6 = null;
}
if ((i2 & 256) != 0) {
z2 = true;
}
if ((i2 & 512) != 0) {
z3 = true;
}
Objects.requireNonNull(bVar);
public final void a(FragmentManager fragmentManager, AnalyticsTracker.PremiumUpsellType premiumUpsellType, @DrawableRes int i, String str, String str2, String str3, String str4, String str5) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(premiumUpsellType, "premiumUpsellType");
c cVar = new c();
Bundle bundle = new Bundle();
bundle.putInt("extra_page_number", i);
if (str != null) {
bundle.putString("extra_header_string", str);
}
if (str2 != null) {
bundle.putString("extra_body_text", str2);
}
bundle.putString("extra_page_name", str3);
bundle.putString("extra_section_name", str4);
bundle.putString("extra_object_name", str5);
bundle.putString("extra_object_type", str6);
bundle.putBoolean("extra_show_other_pages", z2);
bundle.putBoolean("extra_show_learn_more", z3);
bundle.putInt("extra_image_drawable_res", i);
bundle.putString("extra_header_text", str);
bundle.putString("extra_body_text", str2);
cVar.setArguments(bundle);
cVar.show(fragmentManager, c.class.getName());
AnalyticsTracker.premiumUpsellViewed$default(AnalyticsTracker.INSTANCE, premiumUpsellType, null, null, new Traits.Source(str3, str4, str5, null, null, 24, null), 6, null);
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
/* renamed from: b.a.a.b.c$c reason: collision with other inner class name */
public static final class C0008c {
public final int a;
public static final /* synthetic */ class C0009c extends k implements Function1<View, n1> {
public static final C0009c j = new C0009c();
/* renamed from: b reason: collision with root package name */
public CharSequence f44b;
public CharSequence c;
public C0008c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) {
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
this.a = i;
this.f44b = charSequence;
this.c = charSequence2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof C0008c)) {
return false;
}
C0008c cVar = (C0008c) obj;
return this.a == cVar.a && m.areEqual(this.f44b, cVar.f44b) && m.areEqual(this.c, cVar.c);
}
public int hashCode() {
int i = this.a * 31;
CharSequence charSequence = this.f44b;
int i2 = 0;
int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.c;
if (charSequence2 != null) {
i2 = charSequence2.hashCode();
}
return hashCode + i2;
}
public String toString() {
StringBuilder R = b.d.b.a.a.R("UpsellData(imageResId=");
R.append(this.a);
R.append(", headerText=");
R.append(this.f44b);
R.append(", bodyText=");
return b.d.b.a.a.D(R, this.c, ")");
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class d extends AppFragment {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
public static final a k = new a(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, p5> {
public static final b j = new b();
public b() {
super(1, p5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 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 p5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.premium_upsell_body;
TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_body);
if (textView != null) {
i = R.id.premium_upsell_header;
TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_header);
if (textView2 != null) {
i = R.id.premium_upsell_img;
ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_img);
if (imageView != null) {
return new p5((LinearLayout) view2, textView, textView2, imageView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
}
}
public d() {
super(R.layout.widget_premium_upsell);
}
public final p5 g() {
return (p5) this.l.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppFragment
public void onViewBoundOrOnResume() {
String string;
super.onViewBoundOrOnResume();
ImageView imageView = g().d;
Bundle arguments = getArguments();
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
TextView textView = g().c;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
Bundle arguments2 = getArguments();
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
TextView textView2 = g().f178b;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
Bundle arguments3 = getArguments();
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : b.a.k.b.l(string, new Object[0], null, 2));
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class e extends FragmentStateAdapter {
public final List<C0008c> a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(Fragment fragment, List<C0008c> list) {
super(fragment);
m.checkNotNullParameter(fragment, "fragment");
m.checkNotNullParameter(list, "pages");
this.a = list;
}
@Override // androidx.viewpager2.adapter.FragmentStateAdapter
public Fragment createFragment(int i) {
C0008c cVar = this.a.get(i);
d.a aVar = d.k;
int i2 = cVar.a;
CharSequence charSequence = cVar.f44b;
CharSequence charSequence2 = cVar.c;
Objects.requireNonNull(aVar);
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
Bundle bundle = new Bundle();
bundle.putInt("extra_image_id", i2);
bundle.putString("extra_header_string", charSequence.toString());
bundle.putString("extra_body_text", charSequence2.toString());
d dVar = new d();
dVar.setArguments(bundle);
return dVar;
}
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
public int getItemCount() {
return this.a.size();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class f extends k implements Function1<View, u0> {
public static final f j = new f();
public f() {
super(1, u0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0);
public C0009c() {
super(1, n1.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 u0 invoke(View view) {
public n1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.premium_upsell_button_container;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.premium_upsell_button_container);
int i = R.id.button_container;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.button_container);
if (linearLayout != null) {
i = R.id.premium_upsell_close;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.premium_upsell_close);
i = R.id.close_button;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.close_button);
if (materialButton != null) {
i = R.id.premium_upsell_divider;
View findViewById = view2.findViewById(R.id.premium_upsell_divider);
i = R.id.content_background;
View findViewById = view2.findViewById(R.id.content_background);
if (findViewById != null) {
i = R.id.premium_upsell_dots;
TabLayout tabLayout = (TabLayout) view2.findViewById(R.id.premium_upsell_dots);
if (tabLayout != null) {
i = R.id.premium_upsell_get_premium;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(R.id.premium_upsell_get_premium);
if (materialButton2 != null) {
i = R.id.premium_upsell_learn_more;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(R.id.premium_upsell_learn_more);
if (materialButton3 != null) {
i = R.id.premium_upsell_viewpager;
ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(R.id.premium_upsell_viewpager);
if (viewPager2 != null) {
return new u0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2);
i = R.id.get_premium_button;
ShinyButton shinyButton = (ShinyButton) view2.findViewById(R.id.get_premium_button);
if (shinyButton != null) {
i = R.id.transparent_space;
View findViewById2 = view2.findViewById(R.id.transparent_space);
if (findViewById2 != null) {
i = R.id.upsell_body_text;
TextView textView = (TextView) view2.findViewById(R.id.upsell_body_text);
if (textView != null) {
i = R.id.upsell_header_text;
TextView textView2 = (TextView) view2.findViewById(R.id.upsell_header_text);
if (textView2 != null) {
i = R.id.value_prop_image;
ImageView imageView = (ImageView) view2.findViewById(R.id.value_prop_image);
if (imageView != null) {
return new n1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
}
}
}
}
@ -322,132 +134,40 @@ public final class c extends AppDialog {
}
public c() {
super(R.layout.multi_value_prop_premium_upsell_dialog);
super(R.layout.single_value_prop_premium_upsell_dialog);
}
public static final void g(c cVar) {
Bundle arguments = cVar.getArguments();
String string = arguments != null ? arguments.getString("extra_page_name") : null;
Bundle arguments2 = cVar.getArguments();
String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null;
Bundle arguments3 = cVar.getArguments();
String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null;
Bundle arguments4 = cVar.getArguments();
AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null));
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = cVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
cVar.dismiss();
}
public final u0 h() {
return (u0) this.l.getValue((Fragment) this, j[0]);
}
public final boolean i() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_learn_more");
}
public final boolean j() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_other_pages");
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
String string;
String str;
super.onCreate(bundle);
AppDialog.hideKeyboard$default(this, null, 1, null);
String string2 = getString(R.string.premium_upsell_tag_passive_mobile);
m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)");
String string3 = getString(R.string.premium_upsell_tag_description_mobile);
m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)");
String string4 = getString(R.string.premium_upsell_emoji_passive_mobile);
m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)");
String string5 = getString(R.string.premium_upsell_emoji_description_mobile);
m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)");
String string6 = getString(R.string.premium_upsell_animated_emojis_passive_mobile);
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 k2 = b.a.k.b.k(this, R.string.premium_upsell_upload_passive_mobile, new Object[0], null, 4);
Object[] objArr = {b.a.k.b.k(this, R.string.file_upload_limit_standard, new Object[0], null, 4), b.a.k.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);
m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)");
String string10 = getString(R.string.premium_upsell_badge_passive_mobile);
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 C0008c[]{new C0008c(R.drawable.img_tag_upsell, string2, string3), new C0008c(R.drawable.img_global_emoji_upsell, string4, string5), new C0008c(R.drawable.img_animated_emoji_upsell, string6, string7), new C0008c(R.drawable.img_upload_upsell, k2, b.a.k.b.k(this, R.string.premium_upsell_upload_description_mobile, objArr, null, 4)), new C0008c(R.drawable.img_avatar_upsell, string8, string9), new C0008c(R.drawable.img_badge_upsell, string10, string11)});
Bundle arguments = getArguments();
int i = arguments != null ? arguments.getInt("extra_page_number") : 0;
Bundle arguments2 = getArguments();
String str2 = "";
if (arguments2 != null && arguments2.containsKey("extra_header_string")) {
C0008c cVar = (C0008c) listOf.get(i);
Bundle arguments3 = getArguments();
if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) {
str = str2;
}
Objects.requireNonNull(cVar);
m.checkNotNullParameter(str, "<set-?>");
cVar.f44b = str;
}
Bundle arguments4 = getArguments();
if (arguments4 != null && arguments4.containsKey("extra_body_text")) {
C0008c cVar2 = (C0008c) listOf.get(i);
Bundle arguments5 = getArguments();
if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) {
str2 = string;
}
Objects.requireNonNull(cVar2);
m.checkNotNullParameter(str2, "<set-?>");
cVar2.c = str2;
}
C0008c cVar3 = (C0008c) listOf.get(i);
List mutableListOf = n.mutableListOf(cVar3);
if (j()) {
mutableListOf.addAll(u.minus(listOf, cVar3));
}
this.m = new e(this, mutableListOf);
public final n1 g() {
return (n1) this.l.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
ViewPager2 viewPager2 = h().f;
m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager");
e eVar = this.m;
if (eVar == null) {
m.throwUninitializedPropertyAccessException("pagerAdapter");
Bundle arguments = getArguments();
String str = null;
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("extra_image_drawable_res")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_header_text") : null;
Bundle arguments3 = getArguments();
if (arguments3 != null) {
str = arguments3.getString("extra_body_text");
}
viewPager2.setAdapter(eVar);
TabLayout tabLayout = h().c;
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
int i = 8;
tabLayout.setVisibility(j() ? 0 : 8);
TabLayout tabLayout2 = h().c;
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
ViewPager2 viewPager22 = h().f;
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null);
h().f205b.setOnClickListener(new a(0, this));
MaterialButton materialButton = h().e;
m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore");
materialButton.setVisibility(i() ? 0 : 8);
h().e.setOnClickListener(new a(1, this));
MaterialButton materialButton2 = h().d;
m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium");
if (!i()) {
i = 0;
if (valueOf != null) {
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), valueOf.intValue()));
}
materialButton2.setVisibility(i);
h().d.setOnClickListener(new a(2, this));
if (string != null) {
TextView textView = g().e;
m.checkNotNullExpressionValue(textView, "binding.upsellHeaderText");
textView.setText(string);
}
if (str != null) {
TextView textView2 = g().d;
m.checkNotNullExpressionValue(textView2, "binding.upsellBodyText");
textView2.setText(str);
}
g().f162b.setOnClickListener(new a(0, this));
g().c.setOnClickListener(new a(1, this));
}
}

View file

@ -1,36 +1,35 @@
package b.a.a.b;
import android.content.Context;
import android.os.Bundle;
import android.app.Dialog;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.DrawableRes;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import b.a.i.n1;
import b.a.i.d1;
import com.discord.R;
import com.discord.app.AppDialog;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.premium.ShinyButton;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Objects;
import java.text.NumberFormat;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
/* compiled from: UpgradePremiumYearlyDialog.kt */
public final class d extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(d.class, "binding", "getBinding()Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0)};
public static final b k = new b(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null);
public Function0<Unit> l;
public Function0<Unit> m;
public String n;
public boolean o;
public final FragmentViewBindingDelegate p = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
@ -46,83 +45,59 @@ public final class d extends AppDialog {
public final void onClick(View view) {
int i = this.j;
if (i == 0) {
Function0<Unit> function0 = ((d) this.k).l;
if (function0 != null) {
function0.mo1invoke();
}
((d) this.k).dismiss();
} else if (i == 1) {
d dVar = (d) this.k;
KProperty[] kPropertyArr = d.j;
Objects.requireNonNull(dVar);
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = dVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
dVar.dismiss();
Function0<Unit> function02 = ((d) this.k).m;
if (function02 != null) {
function02.mo1invoke();
}
((d) this.k).dismiss();
} else {
throw null;
}
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
public final void a(FragmentManager fragmentManager, AnalyticsTracker.PremiumUpsellType premiumUpsellType, @DrawableRes int i, String str, String str2, String str3, String str4, String str5) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(premiumUpsellType, "premiumUpsellType");
d dVar = new d();
Bundle bundle = new Bundle();
bundle.putInt("extra_image_drawable_res", i);
bundle.putString("extra_header_text", str);
bundle.putString("extra_body_text", str2);
dVar.setArguments(bundle);
dVar.show(fragmentManager, d.class.getName());
AnalyticsTracker.premiumUpsellViewed$default(AnalyticsTracker.INSTANCE, premiumUpsellType, null, null, new Traits.Source(str3, str4, str5, null, null, 24, null), 6, null);
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, n1> {
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, d1> {
public static final c j = new c();
public c() {
super(1, n1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0);
super(1, d1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 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 d1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.button_container;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(R.id.button_container);
if (linearLayout != null) {
i = R.id.close_button;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.close_button);
if (materialButton != null) {
i = R.id.content_background;
View findViewById = view2.findViewById(R.id.content_background);
if (findViewById != null) {
i = R.id.get_premium_button;
ShinyButton shinyButton = (ShinyButton) view2.findViewById(R.id.get_premium_button);
if (shinyButton != null) {
i = R.id.transparent_space;
View findViewById2 = view2.findViewById(R.id.transparent_space);
if (findViewById2 != null) {
i = R.id.upsell_body_text;
TextView textView = (TextView) view2.findViewById(R.id.upsell_body_text);
if (textView != null) {
i = R.id.upsell_header_text;
TextView textView2 = (TextView) view2.findViewById(R.id.upsell_header_text);
if (textView2 != null) {
i = R.id.value_prop_image;
ImageView imageView = (ImageView) view2.findViewById(R.id.value_prop_image);
if (imageView != null) {
return new n1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
}
}
}
int i = R.id.premium_upsell_header;
ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_header);
if (imageView != null) {
i = R.id.premium_upsell_yearly_description;
TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_yearly_description);
if (textView != null) {
i = R.id.premium_upsell_yearly_title;
TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_yearly_title);
if (textView2 != null) {
i = R.id.purchase_premium_monthly;
TextView textView3 = (TextView) view2.findViewById(R.id.purchase_premium_monthly);
if (textView3 != null) {
i = R.id.purchase_premium_yearly;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.purchase_premium_yearly);
if (materialButton != null) {
return new d1((LinearLayout) view2, imageView, textView, textView2, textView3, materialButton);
}
}
}
@ -133,40 +108,47 @@ public final class d extends AppDialog {
}
public d() {
super(R.layout.single_value_prop_premium_upsell_dialog);
super(R.layout.premium_upgrade_yearly_dialog);
}
public final n1 g() {
return (n1) this.l.getValue((Fragment) this, j[0]);
public final d1 g() {
return (d1) this.p.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
Bundle arguments = getArguments();
String str = null;
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("extra_image_drawable_res")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_header_text") : null;
Bundle arguments3 = getArguments();
if (arguments3 != null) {
str = arguments3.getString("extra_body_text");
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.l == null || this.m == null) {
dismiss();
}
if (valueOf != null) {
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), valueOf.intValue()));
}
if (string != null) {
TextView textView = g().e;
m.checkNotNullExpressionValue(textView, "binding.upsellHeaderText");
textView.setText(string);
}
if (str != null) {
TextView textView2 = g().d;
m.checkNotNullExpressionValue(textView2, "binding.upsellBodyText");
textView2.setText(str);
}
g().f162b.setOnClickListener(new a(0, this));
g().c.setOnClickListener(new a(1, this));
requireDialog().setCanceledOnTouchOutside(true);
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
CharSequence k2 = b.a.k.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");
b.a.k.b.n(textView, R.string.premium_upsell_yearly_title, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), k2}, null, 4);
TextView textView2 = g().c;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription");
b.a.k.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");
b.a.k.b.n(materialButton, R.string.premium_upsell_yearly_cta, new Object[]{this.n}, null, 4);
g().f96b.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");
textView3.setVisibility(this.o ^ true ? 0 : 8);
g().e.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
}
}

View file

@ -1,105 +1,167 @@
package b.a.a.b;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import b.a.i.d1;
import androidx.fragment.app.FragmentManager;
import b.a.i.u;
import com.discord.R;
import com.discord.app.AppDialog;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.servers.guildboost.WidgetGuildBoost;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.text.NumberFormat;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UpgradePremiumYearlyDialog.kt */
/* compiled from: GuildBoostUpsellDialog.kt */
public final class e extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(e.class, "binding", "getBinding()Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(e.class, "binding", "getBinding()Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 0)};
public static final b k = new b(null);
public Function0<Unit> l;
public Function0<Unit> m;
public String n;
public boolean o;
public final FragmentViewBindingDelegate p = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.j, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int j;
public final /* synthetic */ Object k;
public final /* synthetic */ long k;
public final /* synthetic */ Object l;
public final /* synthetic */ Object m;
public final /* synthetic */ Object n;
public final /* synthetic */ Object o;
public a(int i, Object obj) {
public a(int i, long j, Object obj, Object obj2, Object obj3, Object obj4) {
this.j = i;
this.k = obj;
this.k = j;
this.l = obj;
this.m = obj2;
this.n = obj3;
this.o = obj4;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.j;
if (i == 0) {
Function0<Unit> function0 = ((e) this.k).l;
if (function0 != null) {
function0.mo1invoke();
}
((e) this.k).dismiss();
AnalyticsTracker.INSTANCE.guildBoostPromotionOpened(this.k, new Traits.Location((String) this.n, Traits.Location.Section.PREMIUM_GUILD_UPSELL_MODAL, Traits.Location.Obj.BUTTON_CTA, (String) this.o, null, 16, null), (Long) this.m);
WidgetGuildBoost.Companion companion = WidgetGuildBoost.Companion;
Context requireContext = ((e) this.l).requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
companion.create(requireContext, this.k);
((e) this.l).dismiss();
} else if (i == 1) {
Function0<Unit> function02 = ((e) this.k).m;
if (function02 != null) {
function02.mo1invoke();
}
((e) this.k).dismiss();
AnalyticsTracker.INSTANCE.guildBoostPromotionClosed(this.k, new Traits.Location((String) this.n, Traits.Location.Section.PREMIUM_GUILD_UPSELL_MODAL, Traits.Location.Obj.BUTTON_CTA, (String) this.o, null, 16, null), (Long) this.m);
((e) this.l).dismiss();
} else if (i == 2) {
AnalyticsTracker.INSTANCE.guildBoostPromotionClosed(this.k, new Traits.Location((String) this.n, Traits.Location.Section.PREMIUM_GUILD_UPSELL_MODAL, Traits.Location.Obj.BUTTON_CTA, (String) this.o, null, 16, null), (Long) this.m);
((e) this.l).dismiss();
} else {
throw null;
}
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
/* compiled from: GuildBoostUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX WARNING: Removed duplicated region for block: B:17:0x0041 */
/* JADX WARNING: Removed duplicated region for block: B:19:0x004c */
/* JADX WARNING: Removed duplicated region for block: B:26:0x0076 */
/* JADX WARNING: Removed duplicated region for block: B:27:0x007c */
/* JADX WARNING: Removed duplicated region for block: B:29:0x007f */
/* JADX WARNING: Removed duplicated region for block: B:30:0x0085 */
/* JADX WARNING: Removed duplicated region for block: B:32:0x0088 */
public final void a(FragmentManager fragmentManager, long j, Long l, Integer num, Traits.Location location) {
String str;
Bundle I;
String page;
String str2;
m.checkNotNullParameter(fragmentManager, "fragmentManager");
e eVar = new e();
String str3 = null;
if (num != null && num.intValue() == 1) {
str2 = Traits.Location.ObjType.TIER_1;
} else if (num != null && num.intValue() == 2) {
str2 = Traits.Location.ObjType.TIER_2;
} else if (num != null && num.intValue() == 3) {
str2 = Traits.Location.ObjType.TIER_3;
} else {
str = null;
I = b.d.b.a.a.I("extra_guild_id", j);
if (l != null) {
I.putLong("extra_channel_id", l.longValue());
}
if (str != null) {
I.putString("extra_object_type", str);
}
if (!(location == null || (page = location.getPage()) == null)) {
I.putString("extra_page", page);
}
eVar.setArguments(I);
eVar.show(fragmentManager, e.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str);
String page2 = location == null ? location.getPage() : null;
String str4 = location == null ? location.get_object() : null;
if (location != null) {
str3 = location.getSection();
}
analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
str = str2;
I = b.d.b.a.a.I("extra_guild_id", j);
if (l != null) {
}
if (str != null) {
}
I.putString("extra_page", page);
eVar.setArguments(I);
eVar.show(fragmentManager, e.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String v = b.d.b.a.a.v("Premium Guild Upsell Modal - Tier ", str);
if (location == null) {
}
if (location == null) {
}
if (location != null) {
}
analyticsTracker.openModal(v, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, d1> {
/* compiled from: GuildBoostUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, u> {
public static final c j = new c();
public c() {
super(1, d1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0);
super(1, u.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildBoostUpsellDialogBinding;", 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 d1 invoke(View view) {
public u invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.premium_upsell_header;
ImageView imageView = (ImageView) view2.findViewById(R.id.premium_upsell_header);
int i = R.id.guild_boost_upsell_close;
ImageView imageView = (ImageView) view2.findViewById(R.id.guild_boost_upsell_close);
if (imageView != null) {
i = R.id.premium_upsell_yearly_description;
TextView textView = (TextView) view2.findViewById(R.id.premium_upsell_yearly_description);
i = R.id.guild_boost_upsell_close_button;
TextView textView = (TextView) view2.findViewById(R.id.guild_boost_upsell_close_button);
if (textView != null) {
i = R.id.premium_upsell_yearly_title;
TextView textView2 = (TextView) view2.findViewById(R.id.premium_upsell_yearly_title);
if (textView2 != null) {
i = R.id.purchase_premium_monthly;
TextView textView3 = (TextView) view2.findViewById(R.id.purchase_premium_monthly);
if (textView3 != null) {
i = R.id.purchase_premium_yearly;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.purchase_premium_yearly);
if (materialButton != null) {
return new d1((LinearLayout) view2, imageView, textView, textView2, textView3, materialButton);
}
}
i = R.id.guild_boost_upsell_subscribe_button;
MaterialButton materialButton = (MaterialButton) view2.findViewById(R.id.guild_boost_upsell_subscribe_button);
if (materialButton != null) {
return new u((RelativeLayout) view2, imageView, textView, materialButton);
}
}
}
@ -108,47 +170,29 @@ public final class e extends AppDialog {
}
public e() {
super(R.layout.premium_upgrade_yearly_dialog);
super(R.layout.guild_boost_upsell_dialog);
}
public final d1 g() {
return (d1) this.p.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
public final u g() {
return (u) this.l.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.l == null || this.m == null) {
dismiss();
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
long j2 = getArgumentsOrDefault().getLong("extra_guild_id", -1);
Bundle arguments = getArguments();
String str = null;
Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_channel_id")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_object_type") : null;
Bundle arguments3 = getArguments();
if (arguments3 != null) {
str = arguments3.getString("extra_page");
}
requireDialog().setCanceledOnTouchOutside(true);
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
CharSequence k2 = b.a.k.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");
b.a.k.b.n(textView, R.string.premium_upsell_yearly_title, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), k2}, null, 4);
TextView textView2 = g().c;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription");
b.a.k.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");
b.a.k.b.n(materialButton, R.string.premium_upsell_yearly_cta, new Object[]{this.n}, null, 4);
g().f96b.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");
textView3.setVisibility(this.o ^ true ? 0 : 8);
g().e.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
g().d.setOnClickListener(new a(0, j2, this, valueOf, str, string));
g().f204b.setOnClickListener(new a(1, j2, this, valueOf, str, string));
g().c.setOnClickListener(new a(2, j2, this, valueOf, str, string));
}
}

View file

@ -33,7 +33,7 @@ import kotlin.reflect.KProperty;
public final class c extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(c.class, "binding", "getBinding()Lcom/discord/databinding/ImageUploadFailedDialogBinding;", 0)};
public static final b k = new b(null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, C0009c.j, null, 2, null);
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, C0010c.j, null, 2, null);
public Function0<Unit> m;
/* compiled from: java-style lambda group */
@ -98,10 +98,10 @@ public final class c extends AppDialog {
/* compiled from: ImageUploadFailedDialog.kt */
/* renamed from: b.a.a.c$c reason: collision with other inner class name */
public static final /* synthetic */ class C0009c extends k implements Function1<View, a0> {
public static final C0009c j = new C0009c();
public static final /* synthetic */ class C0010c extends k implements Function1<View, a0> {
public static final C0010c j = new C0010c();
public C0009c() {
public C0010c() {
super(1, a0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ImageUploadFailedDialogBinding;", 0);
}

View file

@ -45,11 +45,11 @@ public final class a extends AppDialog {
/* compiled from: java-style lambda group */
/* renamed from: b.a.a.d.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0010a implements View.OnClickListener {
public static final class View$OnClickListenerC0011a implements View.OnClickListener {
public final /* synthetic */ int j;
public final /* synthetic */ Object k;
public View$OnClickListenerC0010a(int i, Object obj) {
public View$OnClickListenerC0011a(int i, Object obj) {
this.j = i;
this.k = obj;
}
@ -196,8 +196,8 @@ public final class a extends AppDialog {
a aVar = (a) this.receiver;
KProperty[] kPropertyArr = a.j;
Objects.requireNonNull(aVar);
if (bVar2 instanceof f.b.C0011b) {
b.a.d.m.i(aVar, ((f.b.C0011b) bVar2).a, 0, 4);
if (bVar2 instanceof f.b.C0012b) {
b.a.d.m.i(aVar, ((f.b.C0012b) bVar2).a, 0, 4);
aVar.dismiss();
} else if (bVar2 instanceof f.b.a) {
b.a.d.m.i(aVar, ((f.b.a) bVar2).a, 0, 4);
@ -247,9 +247,9 @@ public final class a extends AppDialog {
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
g().c.setOnClickListener(new View$OnClickListenerC0010a(0, this));
g().e.setOnClickListener(new View$OnClickListenerC0010a(1, this));
g().d.setOnClickListener(new View$OnClickListenerC0010a(2, this));
g().c.setOnClickListener(new View$OnClickListenerC0011a(0, this));
g().e.setOnClickListener(new View$OnClickListenerC0011a(1, this));
g().d.setOnClickListener(new View$OnClickListenerC0011a(2, this));
}
@Override // com.discord.app.AppDialog

View file

@ -65,17 +65,17 @@ public final class f extends AppViewModel<d> {
/* compiled from: UserActionsDialogViewModel.kt */
/* renamed from: b.a.a.d.f$b$b reason: collision with other inner class name */
public static final class C0011b extends b {
public static final class C0012b extends b {
public final int a;
public C0011b(int i) {
public C0012b(int i) {
super(null);
this.a = i;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof C0011b) && this.a == ((C0011b) obj).a;
return (obj instanceof C0012b) && this.a == ((C0012b) obj).a;
}
return true;
}
@ -225,18 +225,18 @@ public final class f extends AppViewModel<d> {
f fVar = this.this$0;
int i = this.$successMessageStringRes;
PublishSubject<b> publishSubject = fVar.k;
publishSubject.k.onNext(new b.C0011b(i));
publishSubject.k.onNext(new b.C0012b(i));
return Unit.a;
}
}
/* compiled from: UserActionsDialogViewModel.kt */
/* renamed from: b.a.a.d.f$f reason: collision with other inner class name */
public static final class C0012f extends o implements Function1<Error, Unit> {
public static final class C0013f extends o implements Function1<Error, Unit> {
public final /* synthetic */ f this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0012f(f fVar) {
public C0013f(f fVar) {
super(1);
this.this$0 = fVar;
}
@ -281,6 +281,6 @@ public final class f extends AppViewModel<d> {
}
public final void removeRelationship(@StringRes int i) {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.m.removeRelationship("User Profile", this.l), false, 1, null), this, null, 2, null), f.class, (Context) null, (Function1) null, new C0012f(this), (Function0) null, (Function0) null, new e(this, i), 54, (Object) null);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(this.m.removeRelationship("User Profile", this.l), false, 1, null), this, null, 2, null), f.class, (Context) null, (Function1) null, new C0013f(this), (Function0) null, (Function0) null, new e(this, i), 54, (Object) null);
}
}

View file

@ -21,7 +21,7 @@ public final class g extends o implements Function1<Void, Unit> {
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Void r3) {
PublishSubject<f.b> publishSubject = this.this$0.k;
publishSubject.k.onNext(new f.b.C0011b(R.string.user_has_been_blocked));
publishSubject.k.onNext(new f.b.C0012b(R.string.user_has_been_blocked));
return Unit.a;
}
}

View file

@ -42,11 +42,11 @@ public final class a extends AppDialog {
/* compiled from: java-style lambda group */
/* renamed from: b.a.a.f.a.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0013a implements View.OnClickListener {
public static final class View$OnClickListenerC0014a implements View.OnClickListener {
public final /* synthetic */ int j;
public final /* synthetic */ Object k;
public View$OnClickListenerC0013a(int i, Object obj) {
public View$OnClickListenerC0014a(int i, Object obj) {
this.j = i;
this.k = obj;
}
@ -141,8 +141,8 @@ public final class a extends AppDialog {
a aVar3 = this.this$0;
Objects.requireNonNull(aVar3);
m.checkNotNullParameter(aVar2, "viewState");
if (!(aVar2 instanceof d.a.b) && (aVar2 instanceof d.a.C0014a)) {
d.a.C0014a aVar4 = (d.a.C0014a) aVar2;
if (!(aVar2 instanceof d.a.b) && (aVar2 instanceof d.a.C0015a)) {
d.a.C0015a aVar4 = (d.a.C0015a) aVar2;
int ordinal = aVar4.a.ordinal();
if (ordinal == 2) {
MaterialRadioButton materialRadioButton = aVar3.i().e;
@ -245,10 +245,10 @@ public final class a extends AppDialog {
MaterialRadioButton materialRadioButton4 = i().d;
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
ColorCompatKt.setDrawableColor(materialRadioButton4, themedColor);
i().f80b.setOnClickListener(new View$OnClickListenerC0013a(0, this));
i().e.setOnClickListener(new View$OnClickListenerC0013a(1, this));
i().f.setOnClickListener(new View$OnClickListenerC0013a(2, this));
i().d.setOnClickListener(new View$OnClickListenerC0013a(3, this));
i().f80b.setOnClickListener(new View$OnClickListenerC0014a(0, this));
i().e.setOnClickListener(new View$OnClickListenerC0014a(1, this));
i().f.setOnClickListener(new View$OnClickListenerC0014a(2, this));
i().d.setOnClickListener(new View$OnClickListenerC0014a(3, this));
}
@Override // com.discord.app.AppDialog

View file

@ -30,7 +30,7 @@ public final class c extends o implements Function1<StoreAudioManagerV2.State, U
List<DiscordAudioManager.AudioDevice> audioDevices = state2.getAudioDevices();
DiscordAudioManager.DeviceTypes activeAudioDevice = state2.getActiveAudioDevice();
DiscordAudioManager.DeviceTypes deviceTypes = DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET;
dVar.updateViewState(new d.a.C0014a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).f2766b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).f2766b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).f2766b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).f2766b));
dVar.updateViewState(new d.a.C0015a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).f2762b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).f2762b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).f2762b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).f2762b));
return Unit.a;
}
}

View file

@ -20,7 +20,7 @@ public final class d extends AppViewModel<a> {
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
/* renamed from: b.a.a.f.a.d$a$a reason: collision with other inner class name */
public static final class C0014a extends a {
public static final class C0015a extends a {
public final DiscordAudioManager.DeviceTypes a;
/* renamed from: b reason: collision with root package name */
@ -31,7 +31,7 @@ public final class d extends AppViewModel<a> {
public final boolean f;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0014a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) {
public C0015a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) {
super(null);
m.checkNotNullParameter(deviceTypes, "selectedAudioOutput");
this.a = deviceTypes;
@ -46,10 +46,10 @@ public final class d extends AppViewModel<a> {
if (this == obj) {
return true;
}
if (!(obj instanceof C0014a)) {
if (!(obj instanceof C0015a)) {
return false;
}
C0014a aVar = (C0014a) obj;
C0015a aVar = (C0015a) obj;
return m.areEqual(this.a, aVar.a) && this.f47b == aVar.f47b && m.areEqual(this.c, aVar.c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
}

View file

@ -31,12 +31,12 @@ public final class a extends AppDialog {
/* compiled from: java-style lambda group */
/* renamed from: b.a.a.g.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0015a implements View.OnClickListener {
public static final class View$OnClickListenerC0016a implements View.OnClickListener {
public final /* synthetic */ int j;
public final /* synthetic */ Object k;
public final /* synthetic */ Object l;
public View$OnClickListenerC0015a(int i, Object obj, Object obj2) {
public View$OnClickListenerC0016a(int i, Object obj, Object obj2) {
this.j = i;
this.k = obj;
this.l = obj2;
@ -168,7 +168,7 @@ public final class a extends AppDialog {
m.checkNotNullExpressionValue(textView, "binding.maskedLinksBodyText");
b.a.k.b.n(textView, R.string.masked_link_body, new Object[]{obj}, null, 4);
g().c.setOnClickListener(new d(this));
g().d.setOnClickListener(new View$OnClickListenerC0015a(0, this, str));
g().e.setOnClickListener(new View$OnClickListenerC0015a(1, this, str));
g().d.setOnClickListener(new View$OnClickListenerC0016a(0, this, str));
g().e.setOnClickListener(new View$OnClickListenerC0016a(1, this, str));
}
}

View file

@ -17,10 +17,10 @@ public final class p extends AppViewModel<a> {
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
/* renamed from: b.a.a.p$a$a reason: collision with other inner class name */
public static final class C0016a extends a {
public static final C0016a a = new C0016a();
public static final class C0017a extends a {
public static final C0017a a = new C0017a();
public C0016a() {
public C0017a() {
super(null);
}
}
@ -35,7 +35,7 @@ public final class p extends AppViewModel<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.C0016a.a);
super(a.C0017a.a);
StoreNotices storeNotices2 = null;
StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null;
storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2;

View file

@ -127,7 +127,7 @@ public final class s extends AppDialog {
Objects.requireNonNull(sVar);
if (m.areEqual(bVar2, w.b.a.a)) {
sVar.dismiss();
} else if (m.areEqual(bVar2, w.b.C0017b.a)) {
} else if (m.areEqual(bVar2, w.b.C0018b.a)) {
b.a.d.m.g(sVar.getContext(), R.string.internal_server_error, 0, null, 12);
} else {
throw new NoWhenBranchMatchedException();

View file

@ -39,10 +39,10 @@ public final class w extends AppViewModel<d> {
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
/* renamed from: b.a.a.w$b$b reason: collision with other inner class name */
public static final class C0017b extends b {
public static final C0017b a = new C0017b();
public static final class C0018b extends b {
public static final C0018b a = new C0018b();
public C0017b() {
public C0018b() {
super(null);
}
}

View file

@ -23,7 +23,7 @@ public final class y extends o implements Function1<Error, Unit> {
public Unit invoke(Error error) {
m.checkNotNullParameter(error, "it");
PublishSubject<w.b> publishSubject = this.this$0.k;
publishSubject.k.onNext(w.b.C0017b.a);
publishSubject.k.onNext(w.b.C0018b.a);
return Unit.a;
}
}

View file

@ -37,14 +37,14 @@ import kotlin.reflect.KProperty;
/* compiled from: GiftPurchasedDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] j = {b.d.b.a.a.b0(a.class, "binding", "getBinding()Lcom/discord/databinding/GiftPurchasedDialogBinding;", 0)};
public static final C0018a k = new C0018a(null);
public static final C0019a k = new C0019a(null);
public Function0<Unit> l;
public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
/* compiled from: GiftPurchasedDialog.kt */
/* renamed from: b.a.a.z.a$a reason: collision with other inner class name */
public static final class C0018a {
public C0018a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0019a {
public C0019a(DefaultConstructorMarker defaultConstructorMarker) {
}
}

View file

@ -69,13 +69,13 @@ public final class c extends AppDialog {
/* compiled from: WidgetGiftAcceptDialog.kt */
/* renamed from: b.a.a.z.c$a$a reason: collision with other inner class name */
public static final class C0019a {
public static final class C0020a {
public final StoreGifting.GiftState a;
/* renamed from: b reason: collision with root package name */
public final boolean f50b;
public C0019a(StoreGifting.GiftState giftState, boolean z2) {
public C0020a(StoreGifting.GiftState giftState, boolean z2) {
m.checkNotNullParameter(giftState, "giftState");
this.a = giftState;
this.f50b = z2;
@ -85,10 +85,10 @@ public final class c extends AppDialog {
if (this == obj) {
return true;
}
if (!(obj instanceof C0019a)) {
if (!(obj instanceof C0020a)) {
return false;
}
C0019a aVar = (C0019a) obj;
C0020a aVar = (C0020a) obj;
return m.areEqual(this.a, aVar.a) && this.f50b == aVar.f50b;
}
@ -218,12 +218,12 @@ public final class c extends AppDialog {
/* compiled from: WidgetGiftAcceptDialog.kt */
@d0.w.i.a.e(c = "com.discord.dialogs.gifting.WidgetGiftAcceptDialog$configureUI$1$1", f = "WidgetGiftAcceptDialog.kt", l = {117}, m = "invokeSuspend")
/* renamed from: b.a.a.z.c$c reason: collision with other inner class name */
public static final class C0020c extends d0.w.i.a.k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public static final class C0021c extends d0.w.i.a.k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public final /* synthetic */ RLottieImageView $this_apply;
public int label;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0020c(RLottieImageView rLottieImageView, Continuation continuation) {
public C0021c(RLottieImageView rLottieImageView, Continuation continuation) {
super(2, continuation);
this.$this_apply = rLottieImageView;
}
@ -231,7 +231,7 @@ public final class c extends AppDialog {
@Override // d0.w.i.a.a
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
m.checkNotNullParameter(continuation, "completion");
return new C0020c(this.$this_apply, continuation);
return new C0021c(this.$this_apply, continuation);
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@ -239,7 +239,7 @@ public final class c extends AppDialog {
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
Continuation<? super Unit> continuation2 = continuation;
m.checkNotNullParameter(continuation2, "completion");
return new C0020c(this.$this_apply, continuation2).invokeSuspend(Unit.a);
return new C0021c(this.$this_apply, continuation2).invokeSuspend(Unit.a);
}
@Override // d0.w.i.a.a
@ -263,23 +263,23 @@ public final class c extends AppDialog {
}
/* compiled from: WidgetGiftAcceptDialog.kt */
public static final class d<T1, T2, R> implements Func2<StoreGifting.GiftState, Boolean, a.C0019a> {
public static final class d<T1, T2, R> implements Func2<StoreGifting.GiftState, Boolean, a.C0020a> {
public static final d j = new d();
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // rx.functions.Func2
public a.C0019a call(StoreGifting.GiftState giftState, Boolean bool) {
public a.C0020a call(StoreGifting.GiftState giftState, Boolean bool) {
StoreGifting.GiftState giftState2 = giftState;
Boolean bool2 = bool;
m.checkNotNullExpressionValue(giftState2, "giftState");
m.checkNotNullExpressionValue(bool2, "reduceMotion");
return new a.C0019a(giftState2, bool2.booleanValue());
return new a.C0020a(giftState2, bool2.booleanValue());
}
}
/* compiled from: WidgetGiftAcceptDialog.kt */
public static final class e extends o implements Function1<a.C0019a, Unit> {
public static final class e extends o implements Function1<a.C0020a, Unit> {
public final /* synthetic */ c this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
@ -291,12 +291,12 @@ public final class c 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(a.C0019a aVar) {
public Unit invoke(a.C0020a aVar) {
ModelSku sku;
ModelSku sku2;
String str;
ModelSku sku3;
a.C0019a aVar2 = aVar;
a.C0020a aVar2 = aVar;
StoreGifting.GiftState giftState = aVar2.a;
int i = 0;
if (giftState instanceof StoreGifting.GiftState.Loading) {
@ -470,7 +470,7 @@ public final class c extends AppDialog {
super(R.layout.widget_accept_gift_dialog);
}
public final void g(ModelGift modelGift, a.C0019a aVar) {
public final void g(ModelGift modelGift, a.C0020a aVar) {
ModelSku sku;
Application application;
String f2;
@ -501,7 +501,7 @@ public final class c extends AppDialog {
rLottieImageView2.c(animRes, dpToPixels, DimenUtils.dpToPixels(rLottieImageView4.getLayoutParams().height));
CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(rLottieImageView2);
if (coroutineScope != null) {
b.i.a.f.e.o.f.H0(coroutineScope, null, null, new C0020c(rLottieImageView2, null), 3, null);
b.i.a.f.e.o.f.H0(coroutineScope, null, null, new C0021c(rLottieImageView2, null), 3, null);
}
}
m.checkNotNullExpressionValue(rLottieImageView2, "binding.acceptGiftBodyLo… }\n }\n }");

View file

@ -86,63 +86,63 @@ 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<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.j), o.to(ActivityType.class, C0021a.D), o.to(ApplicationStatus.class, C0021a.N), o.to(UtcDateTime.class, C0021a.O), o.to(NsfwAllowance.class, C0021a.P), o.to(PremiumTier.class, C0021a.Q), o.to(ActivityType.class, C0021a.R), o.to(Phone.class, C0021a.S), o.to(ApplicationCommandType.class, C0021a.T), o.to(OAuthScope.class, C0021a.j), o.to(GuildHubType.class, C0021a.k), o.to(GuildVerificationLevel.class, C0021a.l), o.to(GuildExplicitContentFilter.class, C0021a.m), o.to(GuildMaxVideoChannelUsers.class, C0021a.n), o.to(ComponentType.class, C0021a.o), o.to(ButtonStyle.class, C0021a.p), o.to(TextStyle.class, C0021a.q), o.to(ReportNodeChild.class, C0021a.r), o.to(ReportNodeElementData.class, C0021a.f52s), o.to(ReportNodeBottomButton.class, C0021a.t), o.to(ApplicationCommandPermissionType.class, C0021a.u), o.to(StageInstancePrivacyLevel.class, C0021a.v), o.to(FriendSuggestionReasonType.class, C0021a.w), o.to(AllowedInSuggestionsType.class, C0021a.f53x), o.to(StickerFormatType.class, C0021a.f54y), o.to(LocalizedString.class, C0021a.f55z), o.to(MessageActivityType.class, C0021a.A), o.to(EmbedType.class, C0021a.B), o.to(StickerType.class, C0021a.C), o.to(GuildScheduledEventStatus.class, C0021a.E), o.to(GuildScheduledEventEntityType.class, C0021a.F), o.to(Science.Event.SchemaObject.class, C0021a.G), o.to(GuildRoleSubscriptionBenefitType.class, C0021a.H), o.to(PriceTierType.class, C0021a.I), o.to(ApplicationType.class, C0021a.J), o.to(PayoutStatus.class, C0021a.K), o.to(PayoutGroupType.class, C0021a.L), o.to(PayoutGroupStatus.class, C0021a.M));
public static final Map<Class<? extends Object>, Function0<Object>> a = h0.mapOf(o.to(ActivityPlatform.class, b.j), o.to(ActivityType.class, C0022a.D), o.to(ApplicationStatus.class, C0022a.N), o.to(UtcDateTime.class, C0022a.O), o.to(NsfwAllowance.class, C0022a.P), o.to(PremiumTier.class, C0022a.Q), o.to(ActivityType.class, C0022a.R), o.to(Phone.class, C0022a.S), o.to(ApplicationCommandType.class, C0022a.T), o.to(OAuthScope.class, C0022a.j), o.to(GuildHubType.class, C0022a.k), o.to(GuildVerificationLevel.class, C0022a.l), o.to(GuildExplicitContentFilter.class, C0022a.m), o.to(GuildMaxVideoChannelUsers.class, C0022a.n), o.to(ComponentType.class, C0022a.o), o.to(ButtonStyle.class, C0022a.p), o.to(TextStyle.class, C0022a.q), o.to(ReportNodeChild.class, C0022a.r), o.to(ReportNodeElementData.class, C0022a.f52s), o.to(ReportNodeBottomButton.class, C0022a.t), o.to(ApplicationCommandPermissionType.class, C0022a.u), o.to(StageInstancePrivacyLevel.class, C0022a.v), o.to(FriendSuggestionReasonType.class, C0022a.w), o.to(AllowedInSuggestionsType.class, C0022a.f53x), o.to(StickerFormatType.class, C0022a.f54y), o.to(LocalizedString.class, C0022a.f55z), o.to(MessageActivityType.class, C0022a.A), o.to(EmbedType.class, C0022a.B), o.to(StickerType.class, C0022a.C), o.to(GuildScheduledEventStatus.class, C0022a.E), o.to(GuildScheduledEventEntityType.class, C0022a.F), o.to(Science.Event.SchemaObject.class, C0022a.G), o.to(GuildRoleSubscriptionBenefitType.class, C0022a.H), o.to(PriceTierType.class, C0022a.I), o.to(ApplicationType.class, C0022a.J), o.to(PayoutStatus.class, C0022a.K), o.to(PayoutGroupType.class, C0022a.L), o.to(PayoutGroupStatus.class, C0022a.M));
/* renamed from: b reason: collision with root package name */
public static final List<b.i.d.o> f51b = n.listOf((Object[]) new b.i.d.o[]{ComponentRuntimeTypeAdapter.INSTANCE.a(), new NullSerializableTypeAdapterFactory()});
/* compiled from: kotlin-style lambda group */
/* renamed from: b.a.b.a$a reason: collision with other inner class name */
public static final class C0021a extends d0.z.d.o implements Function0<Object> {
public static final C0021a A = new C0021a(17);
public static final C0021a B = new C0021a(18);
public static final C0021a C = new C0021a(19);
public static final C0021a D = new C0021a(20);
public static final C0021a E = new C0021a(21);
public static final C0021a F = new C0021a(22);
public static final C0021a G = new C0021a(23);
public static final C0021a H = new C0021a(24);
public static final C0021a I = new C0021a(25);
public static final C0021a J = new C0021a(26);
public static final C0021a K = new C0021a(27);
public static final C0021a L = new C0021a(28);
public static final C0021a M = new C0021a(29);
public static final C0021a N = new C0021a(30);
public static final C0021a O = new C0021a(31);
public static final C0021a P = new C0021a(32);
public static final C0021a Q = new C0021a(33);
public static final C0021a R = new C0021a(34);
public static final C0021a S = new C0021a(35);
public static final C0021a T = new C0021a(36);
public static final C0021a j = new C0021a(0);
public static final C0021a k = new C0021a(1);
public static final C0021a l = new C0021a(2);
public static final C0021a m = new C0021a(3);
public static final C0021a n = new C0021a(4);
public static final C0021a o = new C0021a(5);
public static final C0021a p = new C0021a(6);
public static final C0021a q = new C0021a(7);
public static final C0021a r = new C0021a(8);
public static final class C0022a extends d0.z.d.o implements Function0<Object> {
public static final C0022a A = new C0022a(17);
public static final C0022a B = new C0022a(18);
public static final C0022a C = new C0022a(19);
public static final C0022a D = new C0022a(20);
public static final C0022a E = new C0022a(21);
public static final C0022a F = new C0022a(22);
public static final C0022a G = new C0022a(23);
public static final C0022a H = new C0022a(24);
public static final C0022a I = new C0022a(25);
public static final C0022a J = new C0022a(26);
public static final C0022a K = new C0022a(27);
public static final C0022a L = new C0022a(28);
public static final C0022a M = new C0022a(29);
public static final C0022a N = new C0022a(30);
public static final C0022a O = new C0022a(31);
public static final C0022a P = new C0022a(32);
public static final C0022a Q = new C0022a(33);
public static final C0022a R = new C0022a(34);
public static final C0022a S = new C0022a(35);
public static final C0022a T = new C0022a(36);
public static final C0022a j = new C0022a(0);
public static final C0022a k = new C0022a(1);
public static final C0022a l = new C0022a(2);
public static final C0022a m = new C0022a(3);
public static final C0022a n = new C0022a(4);
public static final C0022a o = new C0022a(5);
public static final C0022a p = new C0022a(6);
public static final C0022a q = new C0022a(7);
public static final C0022a r = new C0022a(8);
/* renamed from: s reason: collision with root package name */
public static final C0021a f52s = new C0021a(9);
public static final C0021a t = new C0021a(10);
public static final C0021a u = new C0021a(11);
public static final C0021a v = new C0021a(12);
public static final C0021a w = new C0021a(13);
public static final C0022a f52s = new C0022a(9);
public static final C0022a t = new C0022a(10);
public static final C0022a u = new C0022a(11);
public static final C0022a v = new C0022a(12);
public static final C0022a w = new C0022a(13);
/* renamed from: x reason: collision with root package name */
public static final C0021a f53x = new C0021a(14);
public static final C0022a f53x = new C0022a(14);
/* renamed from: y reason: collision with root package name */
public static final C0021a f54y = new C0021a(15);
public static final C0022a f54y = new C0022a(15);
/* renamed from: z reason: collision with root package name */
public static final C0021a f55z = new C0021a(16);
public static final C0022a f55z = new C0022a(16);
public final /* synthetic */ int U;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0021a(int i) {
public C0022a(int i) {
super(0);
this.U = i;
}

View file

@ -181,12 +181,12 @@ public final class h implements AppPermissionsRequests {
/* compiled from: AppPermissions.kt */
/* renamed from: b.a.d.h$h reason: collision with other inner class name */
public static final class C0022h extends o implements Function1<Map<String, ? extends Boolean>, Unit> {
public static final class C0023h extends o implements Function1<Map<String, ? extends Boolean>, Unit> {
public final /* synthetic */ Function0 $onFailure;
public final /* synthetic */ h this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0022h(h hVar, Function0 function0) {
public C0023h(h hVar, Function0 function0) {
super(1);
this.this$0 = hVar;
this.$onFailure = function0;
@ -365,7 +365,7 @@ public final class h implements AppPermissionsRequests {
@MainThread
public void requestMicrophone(Function0<Unit> function0, Function0<Unit> function02) {
m.checkNotNullParameter(function02, "onSuccess");
c(211, new g(b(211), function02), new C0022h(this, function0));
c(211, new g(b(211), function02), new C0023h(this, function0));
}
@Override // com.discord.app.AppPermissionsRequests

View file

@ -13,12 +13,12 @@ public final class a<K, T extends ChipsView.a> implements View.OnClickListener {
public String m;
public final K n;
public final T o;
public final C0023a p;
public final C0024a p;
public final ChipsView<K, T> q;
/* compiled from: Chip.kt */
/* renamed from: b.a.f.a$a reason: collision with other inner class name */
public static final class C0023a {
public static final class C0024a {
public final int a;
/* renamed from: b reason: collision with root package name */
@ -28,7 +28,7 @@ public final class a<K, T extends ChipsView.a> implements View.OnClickListener {
public final int e;
public final int f;
public C0023a(int i, float f, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) {
public C0024a(int i, float f, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) {
this.a = i;
this.f66b = i2;
this.c = i3;
@ -38,7 +38,7 @@ public final class a<K, T extends ChipsView.a> implements View.OnClickListener {
}
}
public a(String str, String str2, K k, T t, C0023a aVar, ChipsView<K, T> chipsView) {
public a(String str, String str2, K k, T t, C0024a aVar, ChipsView<K, T> chipsView) {
m.checkNotNullParameter(aVar, "params");
m.checkNotNullParameter(chipsView, "container");
this.l = str;

View file

@ -23,8 +23,8 @@ public final class a {
/* compiled from: ColorCutQuantizer.kt */
/* renamed from: b.a.g.a$a reason: collision with other inner class name */
public static final class C0024a<T> implements Comparator<c> {
public static final C0024a j = new C0024a();
public static final class C0025a<T> implements Comparator<c> {
public static final C0025a j = new C0025a();
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // java.util.Comparator
@ -168,7 +168,7 @@ public final class a {
}
return;
}
PriorityQueue priorityQueue = new PriorityQueue(i, C0024a.j);
PriorityQueue priorityQueue = new PriorityQueue(i, C0025a.j);
priorityQueue.offer(new c(0, i8 - 1));
while (priorityQueue.size() < i && (cVar = (c) priorityQueue.poll()) != null) {
int i11 = cVar.h;

View file

@ -19,19 +19,19 @@ public final class a {
public Function1<? super Integer, Unit> a;
/* renamed from: b reason: collision with root package name */
public final Map<Integer, C0025a> f240b = new LinkedHashMap();
public final Map<Integer, C0026a> f240b = new LinkedHashMap();
public final Logger c;
/* compiled from: FloatingViewManager.kt */
/* renamed from: b.a.j.a$a reason: collision with other inner class name */
public static final class C0025a {
public static final class C0026a {
public final View a;
/* renamed from: b reason: collision with root package name */
public final ViewGroup f241b;
public final ViewTreeObserver.OnPreDrawListener c;
public C0025a(View view, ViewGroup viewGroup, ViewTreeObserver.OnPreDrawListener onPreDrawListener) {
public C0026a(View view, ViewGroup viewGroup, ViewTreeObserver.OnPreDrawListener onPreDrawListener) {
m.checkNotNullParameter(view, "floatingView");
m.checkNotNullParameter(viewGroup, "ancestorViewGroup");
m.checkNotNullParameter(onPreDrawListener, "ancestorPreDrawListener");
@ -75,7 +75,7 @@ public final class a {
@MainThread
public final void b(int i) {
C0025a aVar = this.f240b.get(Integer.valueOf(i));
C0026a aVar = this.f240b.get(Integer.valueOf(i));
if (aVar != null) {
ViewGroup viewGroup = aVar.f241b;
View view = aVar.a;

View file

@ -12,16 +12,16 @@ public final class a {
public static b.a.k.g.b a;
/* renamed from: b reason: collision with root package name */
public static Function0<Integer> f242b = C0026a.j;
public static Function0<Integer> f242b = C0027a.j;
public static Function2<? super String, ? super View, Unit> c = b.j;
public static final a d = null;
/* compiled from: Format.kt */
/* renamed from: b.a.k.a$a reason: collision with other inner class name */
public static final class C0026a extends o implements Function0<Integer> {
public static final C0026a j = new C0026a();
public static final class C0027a extends o implements Function0<Integer> {
public static final C0027a j = new C0027a();
public C0026a() {
public C0027a() {
super(0);
}

View file

@ -45,10 +45,10 @@ public final class b {
/* compiled from: FormatUtils.kt */
/* renamed from: b.a.k.b$b reason: collision with other inner class name */
public static final class C0027b extends o implements Function1<RenderContext, Unit> {
public static final C0027b j = new C0027b();
public static final class C0028b extends o implements Function1<RenderContext, Unit> {
public static final C0028b j = new C0028b();
public C0027b() {
public C0028b() {
super(1);
}
@ -263,7 +263,7 @@ public final class b {
}
public static /* synthetic */ CharSequence h(Context context, int i, Object[] objArr, Function1 function1, int i2) {
return b(context, i, objArr, (i2 & 4) != 0 ? C0027b.j : null);
return b(context, i, objArr, (i2 & 4) != 0 ? C0028b.j : null);
}
public static /* synthetic */ CharSequence i(Resources resources, int i, Object[] objArr, Function1 function1, int i2) {

View file

@ -24,7 +24,7 @@ public final class b extends o implements Function1<View, Unit> {
public Unit invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "view");
this.$clickHandler.f2686b.invoke(this.this$0.a, view2);
this.$clickHandler.f2682b.invoke(this.this$0.a, view2);
return Unit.a;
}
}

View file

@ -25,11 +25,11 @@ public final class c extends Node.a<RenderContext> {
RenderContext renderContext = (RenderContext) obj;
m.checkNotNullParameter(spannableStringBuilder, "builder");
m.checkNotNullParameter(renderContext, "renderContext");
Hook hook = renderContext.f2687b.get(this.a);
Hook hook = renderContext.f2683b.get(this.a);
int length = spannableStringBuilder.length();
super.render(spannableStringBuilder, renderContext);
Hook.a aVar = null;
CharSequence charSequence = hook != null ? hook.f2685b : null;
CharSequence charSequence = hook != null ? hook.f2681b : null;
if (charSequence != null) {
spannableStringBuilder.replace(length, spannableStringBuilder.length(), charSequence);
}

View file

@ -23,7 +23,7 @@ public final class b extends o implements Function1<OverlayBubbleWrap, Boolean>
OverlayBubbleWrap overlayBubbleWrap2 = overlayBubbleWrap;
m.checkNotNullParameter(overlayBubbleWrap2, "bubbleWrap");
try {
this.this$0.f2732s.removeViewImmediate(overlayBubbleWrap2);
this.this$0.f2728s.removeViewImmediate(overlayBubbleWrap2);
this.this$0.m.invoke(overlayBubbleWrap2);
z2 = true;
} catch (IllegalArgumentException unused) {

View file

@ -20,11 +20,11 @@ public final class d implements View.OnClickListener {
/* compiled from: View.kt */
/* renamed from: b.a.n.d$a$a reason: collision with other inner class name */
public static final class View$OnLayoutChangeListenerC0028a implements View.OnLayoutChangeListener {
public static final class View$OnLayoutChangeListenerC0029a implements View.OnLayoutChangeListener {
public final /* synthetic */ a j;
public final /* synthetic */ View k;
public View$OnLayoutChangeListenerC0028a(a aVar, View view) {
public View$OnLayoutChangeListenerC0029a(a aVar, View view) {
this.j = aVar;
this.k = view;
}
@ -47,7 +47,7 @@ public final class d implements View.OnClickListener {
public void onViewAttachedToWindow(View view) {
m.checkNotNullParameter(view, "v");
if (!ViewCompat.isLaidOut(view) || view.isLayoutRequested()) {
view.addOnLayoutChangeListener(new View$OnLayoutChangeListenerC0028a(this, view));
view.addOnLayoutChangeListener(new View$OnLayoutChangeListenerC0029a(this, view));
return;
}
View findViewWithTag = view.findViewWithTag(this.j.m);
@ -77,8 +77,8 @@ public final class d implements View.OnClickListener {
overlayBubbleWrap.addOnAttachStateChangeListener(new a(this));
this.j.a(overlayBubbleWrap);
this.l.setBubbleTouchable(false);
this.j.f2732s.removeViewImmediate(this.l);
WindowManager windowManager = this.j.f2732s;
this.j.f2728s.removeViewImmediate(this.l);
WindowManager windowManager = this.j.f2728s;
OverlayBubbleWrap overlayBubbleWrap2 = this.l;
windowManager.addView(overlayBubbleWrap2, overlayBubbleWrap2.getWindowLayoutParams());
}

View file

@ -28,10 +28,10 @@ public final class a extends FrameLayout implements f {
/* compiled from: Animator.kt */
/* renamed from: b.a.n.h.a$a reason: collision with other inner class name */
public static final class C0029a implements Animator.AnimatorListener {
public static final class C0030a implements Animator.AnimatorListener {
public final /* synthetic */ a a;
public C0029a(a aVar) {
public C0030a(a aVar) {
this.a = aVar;
}
@ -118,7 +118,7 @@ public final class a extends FrameLayout implements f {
Animator loadAnimator2 = AnimatorInflater.loadAnimator(getContext(), R.a.slide_in_bottom);
loadAnimator2.setTarget(frameLayout2);
animatorSet.playTogether(loadAnimator, loadAnimator2);
animatorSet.addListener(new C0029a(this));
animatorSet.addListener(new C0030a(this));
this.l = animatorSet;
AnimatorSet animatorSet2 = new AnimatorSet();
Animator loadAnimator3 = AnimatorInflater.loadAnimator(getContext(), R.a.fade_out);

View file

@ -9,17 +9,17 @@ import java.util.Locale;
import kotlin.jvm.functions.Function1;
/* compiled from: LocaleProvider.kt */
public final class a {
public static Function1<? super Context, Locale> a = C0030a.j;
public static Function1<? super Context, Locale> a = C0031a.j;
/* renamed from: b reason: collision with root package name */
public static final a f248b = null;
/* compiled from: LocaleProvider.kt */
/* renamed from: b.a.o.a$a reason: collision with other inner class name */
public static final class C0030a extends o implements Function1<Context, Locale> {
public static final C0030a j = new C0030a();
public static final class C0031a extends o implements Function1<Context, Locale> {
public static final C0031a j = new C0031a();
public C0030a() {
public C0031a() {
super(1);
}

View file

@ -26,7 +26,7 @@ public final class b implements View.OnLayoutChangeListener {
/* compiled from: PanelsChildGestureRegionObserver.kt */
/* renamed from: b.a.o.b$b reason: collision with other inner class name */
public static final class C0031b {
public static final class C0032b {
public static WeakReference<b> a = new WeakReference<>(null);
@UiThread

View file

@ -28,15 +28,15 @@ public final class e<T> implements Action1<k.c> {
PublishSubject<AppMediaPlayer.Event> publishSubject2 = this.j.a;
publishSubject2.k.onNext(AppMediaPlayer.Event.a.a);
AppMediaPlayer appMediaPlayer = this.j;
Subscription subscription = appMediaPlayer.f2735b;
Subscription subscription = appMediaPlayer.f2731b;
if (subscription != null) {
subscription.unsubscribe();
}
appMediaPlayer.f2735b = Observable.E(500, 500, TimeUnit.MILLISECONDS, appMediaPlayer.i).K().I(a.a()).W(new g(appMediaPlayer), new h(appMediaPlayer));
appMediaPlayer.f2731b = Observable.E(500, 500, TimeUnit.MILLISECONDS, appMediaPlayer.i).K().I(a.a()).W(new g(appMediaPlayer), new h(appMediaPlayer));
} else if (i == 4) {
PublishSubject<AppMediaPlayer.Event> publishSubject3 = this.j.a;
publishSubject3.k.onNext(AppMediaPlayer.Event.e.a);
Subscription subscription2 = this.j.f2735b;
Subscription subscription2 = this.j.f2731b;
if (subscription2 != null) {
subscription2.unsubscribe();
}

View file

@ -24,7 +24,7 @@ public final /* synthetic */ class a0 extends k implements Function1<Pair<? exte
Pair<? extends Map<String, ? extends EncodeQuality>, ? extends RtcConnection.State> pair2 = pair;
m.checkNotNullParameter(pair2, "p1");
RtcConnection rtcConnection = (RtcConnection) this.receiver;
if (rtcConnection.f2751b0) {
if (rtcConnection.f2747b0) {
Map map = (Map) pair2.component1();
if (m.areEqual((RtcConnection.State) pair2.component2(), RtcConnection.State.f.a)) {
rtcConnection.V.i(rtcConnection.l, "local MediaSinkWants: " + map, null);

View file

@ -42,7 +42,7 @@ public final class b0 implements MediaEngineConnection.d {
RtcConnection rtcConnection = this.a;
rtcConnection.q.succeed();
rtcConnection.r = transportInfo;
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2755x;
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2751x;
if (mediaEngineConnection2 != null) {
d dVar = new d(1000, rtcConnection.V, mediaEngineConnection2, new VoiceQuality(), rtcConnection.B, new KrispOveruseDetector(mediaEngineConnection2), 0, 64);
dVar.a.clear();
@ -67,7 +67,7 @@ public final class b0 implements MediaEngineConnection.d {
return;
}
String str = transportInfo.a;
int i = transportInfo.f2775b;
int i = transportInfo.f2771b;
m.checkNotNullParameter("udp", "protocol");
m.checkNotNullParameter(str, "address");
m.checkNotNullParameter("xsalsa20_poly1305", "mode");
@ -91,7 +91,7 @@ public final class b0 implements MediaEngineConnection.d {
m.checkNotNullParameter(mediaEngineConnection, "connection");
m.checkNotNullParameter(connectionState, "connectionState");
RtcConnection rtcConnection = this.a;
RtcConnection.StateChange stateChange = rtcConnection.f2754s;
RtcConnection.StateChange stateChange = rtcConnection.f2750s;
rtcConnection.r("Connection state change: " + connectionState);
int ordinal = connectionState.ordinal();
if (ordinal == 0) {
@ -106,10 +106,10 @@ public final class b0 implements MediaEngineConnection.d {
throw new NoWhenBranchMatchedException();
}
rtcConnection.u(state);
if (stateChange.a == RtcConnection.State.g.a && rtcConnection.f2754s.a == RtcConnection.State.h.a) {
if (stateChange.a == RtcConnection.State.g.a && rtcConnection.f2750s.a == RtcConnection.State.h.a) {
rtcConnection.q();
}
if (rtcConnection.f2754s.a == RtcConnection.State.f.a) {
if (rtcConnection.f2750s.a == RtcConnection.State.f.a) {
rtcConnection.D = Long.valueOf(rtcConnection.W.currentTimeMillis());
rtcConnection.J = true;
Map<String, Object> mutableMapOf = h0.mutableMapOf(d0.o.to("connect_count", Integer.valueOf(rtcConnection.E)));
@ -123,7 +123,7 @@ public final class b0 implements MediaEngineConnection.d {
rtcConnection.p(RtcConnection.AnalyticsEvent.VOICE_CONNECTION_SUCCESS, mutableMapOf);
MediaSinkWantsManager mediaSinkWantsManager = rtcConnection.H;
if (mediaSinkWantsManager != null) {
mediaSinkWantsManager.b(new i(mediaSinkWantsManager, rtcConnection.f2755x));
mediaSinkWantsManager.b(new i(mediaSinkWantsManager, rtcConnection.f2751x));
}
}
}

View file

@ -23,7 +23,7 @@ public final class g extends o implements Function0<Unit> {
Objects.requireNonNull(mediaSinkWantsManager);
mediaSinkWantsManager.b(new i(mediaSinkWantsManager, null));
this.this$0.a.clear();
this.this$0.f2748b.clear();
this.this$0.f2744b.clear();
return Unit.a;
}
}

View file

@ -41,7 +41,7 @@ public final class h0 implements a.d {
public void a(String str, String str2) {
m.checkNotNullParameter(str, "audioCodec");
m.checkNotNullParameter(str2, "videoCodec");
MediaEngineConnection mediaEngineConnection = this.a.f2755x;
MediaEngineConnection mediaEngineConnection = this.a.f2751x;
if (mediaEngineConnection != null) {
mediaEngineConnection.r(str, str2);
}
@ -52,11 +52,11 @@ public final class h0 implements a.d {
RtcConnection rtcConnection = this.a;
Objects.requireNonNull(rtcConnection);
rtcConnection.r("Disconnected from RTC server. wasFatal: " + z2 + " -- code: " + num + " -- reason: " + str);
MediaEngineConnection mediaEngineConnection = rtcConnection.f2755x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2751x;
if (mediaEngineConnection != null) {
mediaEngineConnection.destroy();
}
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2755x;
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2751x;
if (mediaEngineConnection2 != null) {
mediaEngineConnection2.o(rtcConnection.N);
}
@ -67,7 +67,7 @@ public final class h0 implements a.d {
if ((num != null && num.intValue() == 1000) || z4) {
z3 = false;
}
if (!(rtcConnection.f2754s.a instanceof RtcConnection.State.d)) {
if (!(rtcConnection.f2750s.a instanceof RtcConnection.State.d)) {
rtcConnection.n(z3, str);
d dVar = rtcConnection.o;
if (dVar != null) {
@ -93,7 +93,7 @@ public final class h0 implements a.d {
public void c(String str, List<Integer> list) {
m.checkNotNullParameter(str, "mode");
m.checkNotNullParameter(list, "secretKey");
MediaEngineConnection mediaEngineConnection = this.a.f2755x;
MediaEngineConnection mediaEngineConnection = this.a.f2751x;
if (mediaEngineConnection != null) {
mediaEngineConnection.t(str, u.toIntArray(list));
}
@ -241,7 +241,7 @@ public final class h0 implements a.d {
n nVar = cVar2.a;
int max = Math.max((int) (((double) j0Var.c.a) * nVar.c), j0Var.d);
int max2 = Math.max((int) (((double) j0Var.c.f252b) * nVar.c), j0Var.d);
MediaEngineConnection mediaEngineConnection = rtcConnection.f2755x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2751x;
if (mediaEngineConnection != null) {
mediaEngineConnection.m(new MediaEngineConnection.b(max, max2, nVar.a, nVar.f271b, nVar.d, nVar.e));
return;
@ -372,7 +372,7 @@ public final class h0 implements a.d {
return;
}
g.l(rtcConnection.N);
rtcConnection.f2755x = g;
rtcConnection.f2751x = g;
}
@Override // b.a.q.n0.a.d
@ -391,7 +391,7 @@ public final class h0 implements a.d {
public void onSpeaking(long j, int i, boolean z2) {
RtcConnection rtcConnection = this.a;
if (j != rtcConnection.T) {
MediaEngineConnection mediaEngineConnection = rtcConnection.f2755x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2751x;
if (mediaEngineConnection != null) {
mediaEngineConnection.s(j, i, null, rtcConnection.g(j), rtcConnection.h(j));
}

View file

@ -36,7 +36,7 @@ public final class i extends o implements Function0<Unit> {
}
if (this.$connection != null) {
MediaSinkWantsManager mediaSinkWantsManager3 = this.this$0;
Set<Long> keySet = mediaSinkWantsManager3.f2748b.keySet();
Set<Long> keySet = mediaSinkWantsManager3.f2744b.keySet();
ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(keySet, 10));
for (Number number : keySet) {
arrayList.add(String.valueOf(number.longValue()));

View file

@ -18,7 +18,7 @@ import org.webrtc.MediaStreamTrack;
import org.webrtc.ThreadUtils;
/* compiled from: AudioManagerBroadcastReceiver.kt */
public final class a extends BroadcastReceiver {
public static final C0032a a = new C0032a(null);
public static final C0033a a = new C0033a(null);
/* renamed from: b reason: collision with root package name */
public final Context f258b;
@ -26,8 +26,8 @@ public final class a extends BroadcastReceiver {
/* compiled from: AudioManagerBroadcastReceiver.kt */
/* renamed from: b.a.q.k0.a$a reason: collision with other inner class name */
public static final class C0032a {
public C0032a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0033a {
public C0033a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
@ -92,7 +92,7 @@ public final class a extends BroadcastReceiver {
if (intent.getIntExtra("microphone", 0) == 1) {
z2 = true;
}
aVar = new a.C0033a(stringExtra, z2);
aVar = new a.C0034a(stringExtra, z2);
}
hVar.e(context, aVar);
return;

View file

@ -20,7 +20,7 @@ public final class f extends ContentObserver {
DiscordAudioManager discordAudioManager = this.a;
int streamVolume = discordAudioManager.e.getStreamVolume(3);
discordAudioManager.w = streamVolume;
SerializedSubject<Integer, Integer> serializedSubject = discordAudioManager.f2764y;
SerializedSubject<Integer, Integer> serializedSubject = discordAudioManager.f2760y;
serializedSubject.k.onNext(Integer.valueOf(streamVolume));
}
}

View file

@ -95,10 +95,10 @@ public final class l extends o implements Function0<Unit> {
arrayList2.add(new MediaSinkWantsManager.b(encodeQuality, intValue2, videoMetadata));
}
if (arrayList2.isEmpty()) {
this.this$0.f2748b.remove(Long.valueOf(this.$userId));
this.this$0.f2744b.remove(Long.valueOf(this.$userId));
this.this$0.c.remove(Long.valueOf(this.$userId));
} else {
this.this$0.f2748b.put(Long.valueOf(this.$userId), arrayList2);
this.this$0.f2744b.put(Long.valueOf(this.$userId), arrayList2);
this.this$0.c.add(Long.valueOf(this.$userId));
}
this.this$0.d(arrayList2.isEmpty() ? n.emptyList() : d0.t.m.listOf(String.valueOf(this.$userId)));

View file

@ -8,14 +8,14 @@ public abstract class a {
/* compiled from: WiredHeadsetState.kt */
/* renamed from: b.a.q.l0.a$a reason: collision with other inner class name */
public static final class C0033a extends a {
public static final class C0034a extends a {
public final String a;
/* renamed from: b reason: collision with root package name */
public final boolean f262b;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0033a(String str, boolean z2) {
public C0034a(String str, boolean z2) {
super(false, null);
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
this.a = str;
@ -26,10 +26,10 @@ public abstract class a {
if (this == obj) {
return true;
}
if (!(obj instanceof C0033a)) {
if (!(obj instanceof C0034a)) {
return false;
}
C0033a aVar = (C0033a) obj;
C0034a aVar = (C0034a) obj;
return m.areEqual(this.a, aVar.a) && this.f262b == aVar.f262b;
}

View file

@ -36,7 +36,7 @@ import rx.functions.Action1;
/* compiled from: ScreenCapturer.kt */
public final class b extends ScreenCapturerAndroid {
public static final a j = new a(null);
public final RunnableC0034b k = new RunnableC0034b();
public final RunnableC0035b k = new RunnableC0035b();
public NativeCapturerObserver l;
public SurfaceTextureHelper m;
public Context n;
@ -66,8 +66,8 @@ public final class b extends ScreenCapturerAndroid {
/* compiled from: ScreenCapturer.kt */
/* renamed from: b.a.q.m0.b$b reason: collision with other inner class name */
public final class RunnableC0034b implements Runnable {
public RunnableC0034b() {
public final class RunnableC0035b implements Runnable {
public RunnableC0035b() {
}
@Override // java.lang.Runnable
@ -219,7 +219,7 @@ public final class b extends ScreenCapturerAndroid {
synchronized (thumbnailEmitter) {
thumbnailEmitter.d.release();
thumbnailEmitter.c.release();
JniCommon.nativeFreeByteBuffer(thumbnailEmitter.f2778b);
JniCommon.nativeFreeByteBuffer(thumbnailEmitter.f2774b);
thumbnailEmitter.a = RecyclerView.FOREVER_NS;
}
}

View file

@ -153,12 +153,12 @@ public final class e implements MediaEngineConnection {
/* compiled from: MediaEngineConnectionLegacy.kt */
/* renamed from: b.a.q.m0.c.e$e reason: collision with other inner class name */
public static final class C0035e extends d0.z.d.o implements Function1<MediaEngineConnection.d, Unit> {
public static final class C0036e extends d0.z.d.o implements Function1<MediaEngineConnection.d, Unit> {
public final /* synthetic */ KrispOveruseDetector.Status $status;
public final /* synthetic */ e this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0035e(e eVar, KrispOveruseDetector.Status status) {
public C0036e(e eVar, KrispOveruseDetector.Status status) {
super(1);
this.this$0 = eVar;
this.$status = status;
@ -287,7 +287,7 @@ public final class e implements MediaEngineConnection {
public Unit invoke(Connection connection) {
Connection connection2 = connection;
d0.z.d.m.checkNotNullParameter(connection2, "$receiver");
connection2.setVADLeadingFramesToBuffer(this.$inputModeOptions.f2777b);
connection2.setVADLeadingFramesToBuffer(this.$inputModeOptions.f2773b);
connection2.setVADTrailingFramesToSend(this.$inputModeOptions.c);
connection2.setVADTriggerThreshold((float) this.$inputModeOptions.a);
connection2.setVADAutoThreshold(this.$inputModeOptions.d ? 3 : -1);
@ -449,7 +449,7 @@ public final class e implements MediaEngineConnection {
public Unit invoke(MediaEngineConnection.d dVar) {
MediaEngineConnection.d dVar2 = dVar;
d0.z.d.m.checkNotNullParameter(dVar2, "it");
dVar2.onTargetBitrate(this.$quality.f2776b);
dVar2.onTargetBitrate(this.$quality.f2772b);
return Unit.a;
}
}
@ -473,7 +473,7 @@ public final class e implements MediaEngineConnection {
Connection connection2 = connection;
d0.z.d.m.checkNotNullParameter(connection2, "$receiver");
MediaEngineConnection.b bVar = this.$quality;
connection2.setEncodingQuality(bVar.a, bVar.f2776b, bVar.c, bVar.d, this.$frameRate);
connection2.setEncodingQuality(bVar.a, bVar.f2772b, bVar.c, bVar.d, this.$frameRate);
return Unit.a;
}
}
@ -609,7 +609,7 @@ public final class e implements MediaEngineConnection {
this.f267b = connectionState;
this.d = h0.mutableMapOf(d0.o.to(Long.valueOf(j2), Integer.valueOf(aVar.a)));
int i2 = aVar.a;
String str = aVar.f2774b;
String str = aVar.f2770b;
int i3 = aVar.c;
Object[] array = aVar.d.toArray(new StreamParameters[0]);
Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
@ -670,7 +670,7 @@ public final class e implements MediaEngineConnection {
@Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection
public void f(KrispOveruseDetector.Status status) {
d0.z.d.m.checkNotNullParameter(status, "status");
y(new C0035e(this, status));
y(new C0036e(this, status));
}
@Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection

View file

@ -143,12 +143,12 @@ public final class k implements MediaEngine {
/* compiled from: MediaEngineLegacy.kt */
/* renamed from: b.a.q.m0.c.k$c$c reason: collision with other inner class name */
public static final class C0036c extends o implements Function0<Unit> {
public static final class C0037c extends o implements Function0<Unit> {
public final /* synthetic */ MediaEngineConnection $connection;
public final /* synthetic */ c this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0036c(c cVar, MediaEngineConnection mediaEngineConnection) {
public C0037c(c cVar, MediaEngineConnection mediaEngineConnection) {
super(0);
this.this$0 = cVar;
this.$connection = mediaEngineConnection;
@ -208,7 +208,7 @@ public final class k implements MediaEngine {
@Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d
public void onDestroy(MediaEngineConnection mediaEngineConnection) {
m.checkNotNullParameter(mediaEngineConnection, "connection");
this.a.o(new C0036c(this, mediaEngineConnection));
this.a.o(new C0037c(this, mediaEngineConnection));
}
@Override // com.discord.rtcconnection.mediaengine.MediaEngineConnection.a, com.discord.rtcconnection.mediaengine.MediaEngineConnection.d
@ -374,12 +374,12 @@ public final class k implements MediaEngine {
/* compiled from: MediaEngineLegacy.kt */
/* renamed from: b.a.q.m0.c.k$k reason: collision with other inner class name */
public static final class C0037k extends o implements Function0<Unit> {
public static final class C0038k extends o implements Function0<Unit> {
public final /* synthetic */ MediaEngine.VoiceConfig $voiceConfig;
public final /* synthetic */ k this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0037k(k kVar, MediaEngine.VoiceConfig voiceConfig) {
public C0038k(k kVar, MediaEngine.VoiceConfig voiceConfig) {
super(0);
this.this$0 = kVar;
this.$voiceConfig = voiceConfig;
@ -401,7 +401,7 @@ public final class k implements MediaEngine {
discord.setSpeakerVolume(Math.min(300.0f, Math.max(0.0f, f)) / 100.0f);
}
k kVar2 = this.this$0;
boolean z3 = voiceConfig.f2773b;
boolean z3 = voiceConfig.f2769b;
kVar2.l.a();
b.a.q.k0.g gVar = kVar2.o;
if (gVar.g && gVar.d) {
@ -523,7 +523,7 @@ public final class k implements MediaEngine {
@AnyThread
public void d(MediaEngine.VoiceConfig voiceConfig) {
m.checkNotNullParameter(voiceConfig, "voiceConfig");
o(new C0037k(this, voiceConfig));
o(new C0038k(this, voiceConfig));
}
@Override // com.discord.rtcconnection.mediaengine.MediaEngine

View file

@ -38,7 +38,7 @@ public final class m implements Discord.AecConfigCallback {
MediaEngine.EchoCancellationInfo echoCancellationInfo = kVar.i;
kVar.i = null;
if (echoCancellationInfo != null) {
MediaEngine.EchoCancellationInfo echoCancellationInfo2 = new MediaEngine.EchoCancellationInfo(echoCancellationInfo.a, echoCancellationInfo.f2771b, echoCancellationInfo.c, echoCancellationInfo.d, this.$requestEnable, this.$enabled, this.$requestMobileMode, this.$previouslyEnabled, this.$previouslyMobileMode);
MediaEngine.EchoCancellationInfo echoCancellationInfo2 = new MediaEngine.EchoCancellationInfo(echoCancellationInfo.a, echoCancellationInfo.f2767b, echoCancellationInfo.c, echoCancellationInfo.d, this.$requestEnable, this.$enabled, this.$requestMobileMode, this.$previouslyEnabled, this.$previouslyMobileMode);
d.d1("MediaEngineLegacy", "onEchoCancellationUpdated: " + echoCancellationInfo2);
this.this$0.a.p.onEchoCancellationUpdated(echoCancellationInfo2);
}

View file

@ -38,7 +38,7 @@ import okhttp3.WebSocketListener;
/* compiled from: RtcControlSocket.kt */
public final class a extends WebSocketListener implements DebugPrintable {
public static int j;
public static final Type k = new C0038a().getType();
public static final Type k = new C0039a().getType();
public static final b l = new b(null);
public Long A;
public c B;
@ -75,7 +75,7 @@ public final class a extends WebSocketListener implements DebugPrintable {
/* compiled from: RtcControlSocket.kt */
/* renamed from: b.a.q.n0.a$a reason: collision with other inner class name */
public static final class C0038a extends TypeToken<Map<String, ? extends Integer>> {
public static final class C0039a extends TypeToken<Map<String, ? extends Integer>> {
}
/* compiled from: RtcControlSocket.kt */
@ -167,11 +167,11 @@ public final class a extends WebSocketListener implements DebugPrintable {
/* compiled from: RtcControlSocket.kt */
/* renamed from: b.a.q.n0.a$g$a reason: collision with other inner class name */
public static final class C0039a extends o implements Function0<Unit> {
public static final class C0040a extends o implements Function0<Unit> {
public final /* synthetic */ g this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0039a(g gVar) {
public C0040a(g gVar) {
super(0);
this.this$0 = gVar;
}
@ -191,7 +191,7 @@ public final class a extends WebSocketListener implements DebugPrintable {
@Override // java.util.TimerTask, java.lang.Runnable
public void run() {
this.j.m(new C0039a(this));
this.j.m(new C0040a(this));
}
}

View file

@ -57,13 +57,13 @@ public final /* synthetic */ class a extends k implements Function1<Stats, Unit>
for (Map.Entry<String, InboundRtpVideo> entry : stats2.getInboundRtpVideo().entrySet()) {
String key = entry.getKey();
InboundRtpVideo value = entry.getValue();
Map<String, e.C0040e> map = eVar.m;
e.C0040e eVar2 = map.get(key);
Map<String, e.C0041e> map = eVar.m;
e.C0041e eVar2 = map.get(key);
if (eVar2 == null) {
eVar2 = new e.C0040e();
eVar2 = new e.C0041e();
map.put(key, eVar2);
}
e.C0040e eVar3 = eVar2;
e.C0041e eVar3 = eVar2;
eVar.a(eVar3, eVar.f(value, currentTimeMillis));
if (eVar3.d == null && value.getFramesDecoded() > 0) {
byte[] bArr = c.a;
@ -90,7 +90,7 @@ public final /* synthetic */ class a extends k implements Function1<Stats, Unit>
if (krispOveruseDetector.d.getType() == MediaEngineConnection.Type.DEFAULT && krispOveruseDetector.d.b()) {
OutboundRtpAudio outboundRtpAudio = stats2.getOutboundRtpAudio();
if (outboundRtpAudio != null && outboundRtpAudio.getNoiseCancellerIsEnabled()) {
OutboundRtpAudio outboundRtpAudio2 = krispOveruseDetector.f2747b;
OutboundRtpAudio outboundRtpAudio2 = krispOveruseDetector.f2743b;
if (outboundRtpAudio2 != null) {
Pair<Boolean, Long> a = krispOveruseDetector.a(outboundRtpAudio2, stats2.getOutboundRtpAudio(), 8.0d);
boolean booleanValue = a.component1().booleanValue();
@ -107,7 +107,7 @@ public final /* synthetic */ class a extends k implements Function1<Stats, Unit>
krispOveruseDetector.c = 0;
}
}
krispOveruseDetector.f2747b = stats2.getOutboundRtpAudio();
krispOveruseDetector.f2743b = stats2.getOutboundRtpAudio();
}
OutboundRtpAudio outboundRtpAudio3 = stats2.getOutboundRtpAudio();
if (outboundRtpAudio3 != null && outboundRtpAudio3.getVoiceActivityDetectorIsEnabled()) {

View file

@ -40,7 +40,7 @@ public final class e {
public final d j;
public final d k;
public final f l = new f();
public final Map<String, C0040e> m = new LinkedHashMap();
public final Map<String, C0041e> m = new LinkedHashMap();
public final Map<Long, Long> n = new LinkedHashMap();
public final DeviceResourceUsageMonitor o;
public final Logger p;
@ -208,7 +208,7 @@ public final class e {
/* compiled from: VideoQuality.kt */
/* renamed from: b.a.q.o0.e$e reason: collision with other inner class name */
public static class C0040e {
public static class C0041e {
public List<g> a = new ArrayList();
/* renamed from: b reason: collision with root package name */
@ -222,7 +222,7 @@ public final class e {
public float i;
public Map<Integer, Float> j = new LinkedHashMap();
public C0040e() {
public C0041e() {
for (Number number : e.a) {
this.g.put(Integer.valueOf(number.intValue()), Float.valueOf(0.0f));
}
@ -236,7 +236,7 @@ public final class e {
}
/* compiled from: VideoQuality.kt */
public static final class f extends C0040e {
public static final class f extends C0041e {
public int k = 2500000;
public int l = 30;
public long m;
@ -311,8 +311,8 @@ public final class e {
e eVar = this.this$0;
List<Integer> list = e.a;
synchronized (eVar) {
for (Map.Entry<String, C0040e> entry : eVar.m.entrySet()) {
C0040e value = entry.getValue();
for (Map.Entry<String, C0041e> entry : eVar.m.entrySet()) {
C0041e value = entry.getValue();
value.f280b.addSample((long) resourceUsage2.getCpuUsagePercent());
value.c.addSample(resourceUsage2.getMemoryRssBytes());
}
@ -341,7 +341,7 @@ public final class e {
deviceResourceUsageMonitor.start();
}
public final void a(C0040e eVar, g gVar) {
public final void a(C0041e eVar, g gVar) {
eVar.a.add(gVar);
if (eVar.a.size() >= 2) {
List<g> list = eVar.a;
@ -453,7 +453,7 @@ public final class e {
@AnyThread
public final synchronized Map<String, Object> c(String str) {
C0040e eVar;
C0041e eVar;
m.checkNotNullParameter(str, "userId");
eVar = this.m.get(str);
return eVar != null ? e(eVar) : null;
@ -481,7 +481,7 @@ public final class e {
(wrap: java.lang.Long : 0x04d8: INVOKE (r1v2 java.lang.Long) = (r4v22 long) type: STATIC call: java.lang.Long.valueOf(long):java.lang.Long)
type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair)
*/
public final Map<String, Object> e(C0040e eVar) {
public final Map<String, Object> e(C0041e eVar) {
Float valueOf;
long currentTimeMillis = this.q.currentTimeMillis();
Long l = this.h;

View file

@ -53,8 +53,8 @@ public final class s extends o implements Function0<Unit> {
rtcConnection.r("connecting via endpoint: " + replace$default + " token: " + str2);
try {
URI uri = new URI(w);
rtcConnection.f2756y = uri.getHost();
rtcConnection.f2757z = Integer.valueOf(uri.getPort());
rtcConnection.f2752y = uri.getHost();
rtcConnection.f2753z = Integer.valueOf(uri.getPort());
} catch (Exception e) {
rtcConnection.V.e(rtcConnection.l, "Failed to parse RTC endpoint", e, g0.mapOf(d0.o.to("endpoint", replace$default)));
}

View file

@ -3,7 +3,7 @@ package b.a.r;
import b.n.a.a.a;
import com.discord.samsung.SamsungConnectActivity;
/* compiled from: SamsungConnectActivity.kt */
public final class d extends a.AbstractBinderC0156a {
public final class d extends a.AbstractBinderC0157a {
public final /* synthetic */ SamsungConnectActivity a;
public d(SamsungConnectActivity samsungConnectActivity) {

View file

@ -39,7 +39,7 @@ public final class b extends ContentObserver {
/* compiled from: ScreenshotContentObserver.kt */
/* renamed from: b.a.s.b$b reason: collision with other inner class name */
public static final class C0041b {
public static final class C0042b {
public final String a;
/* renamed from: b reason: collision with root package name */
@ -49,7 +49,7 @@ public final class b extends ContentObserver {
public final Uri e;
public final long f;
public C0041b(long j, String str, String str2, Uri uri, long j2) {
public C0042b(long j, String str, String str2, Uri uri, long j2) {
m.checkNotNullParameter(str, "fileName");
m.checkNotNullParameter(str2, "relativePath");
m.checkNotNullParameter(uri, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI);
@ -65,10 +65,10 @@ public final class b extends ContentObserver {
if (this == obj) {
return true;
}
if (!(obj instanceof C0041b)) {
if (!(obj instanceof C0042b)) {
return false;
}
C0041b bVar = (C0041b) obj;
C0042b bVar = (C0042b) obj;
return this.f283b == bVar.f283b && m.areEqual(this.c, bVar.c) && m.areEqual(this.d, bVar.d) && m.areEqual(this.e, bVar.e) && this.f == bVar.f;
}
@ -126,7 +126,7 @@ public final class b extends ContentObserver {
/* JADX WARNING: Removed duplicated region for block: B:31:0x00c2 */
/* JADX WARNING: Removed duplicated region for block: B:45:? A[RETURN, SYNTHETIC] */
public final void a(Uri uri) {
C0041b bVar;
C0042b bVar;
String str;
ContentResolver contentResolver = this.d;
int i = Build.VERSION.SDK_INT;
@ -145,7 +145,7 @@ public final class b extends ContentObserver {
String string2 = query.getString(query.getColumnIndex("_display_name"));
m.checkNotNullExpressionValue(string2, "cursor.getString(cursor.…ages.Media.DISPLAY_NAME))");
m.checkNotNullExpressionValue(str, "relativePath");
bVar = new C0041b(j, string2, str, uri, query.getLong(query.getColumnIndex("date_added")));
bVar = new C0042b(j, string2, str, uri, query.getLong(query.getColumnIndex("date_added")));
d0.y.b.closeFinally(query, null);
if (bVar != null) {
String str2 = this.f282b;

View file

@ -52,7 +52,7 @@ public final class a extends Rule<R, Node<R>, S> {
if (list != null) {
List parse = parser.parse(group2, s2, list);
Objects.requireNonNull(parse, "null cannot be cast to non-null type kotlin.collections.List<com.discord.simpleast.core.node.Node<R>>");
aVar = new CodeNode.a.C0176a(group2, parse);
aVar = new CodeNode.a.C0177a(group2, parse);
} else {
aVar = new CodeNode.a.b(group2);
}

View file

@ -13,7 +13,7 @@ public final class h extends Rule<RC, Node<RC>, S> {
public final /* synthetic */ f a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public h(i.a.C0042a aVar, f fVar, Pattern pattern) {
public h(i.a.C0043a aVar, f fVar, Pattern pattern) {
super(pattern);
this.a = fVar;
}

View file

@ -23,12 +23,12 @@ public final class i {
public static final Pattern a = Pattern.compile("^(def)( +\\w+)( *\\( *(?:@\\w+ +: +\\w*)?\\w+(?: +[:=] +.*)? *\\))?(?!.+)");
/* renamed from: b reason: collision with root package name */
public static final C0042a f290b = new C0042a(null);
public static final C0043a f290b = new C0043a(null);
/* compiled from: Crystal.kt */
/* renamed from: b.a.t.a.i$a$a reason: collision with other inner class name */
public static final class C0042a {
public C0042a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0043a {
public C0043a(DefaultConstructorMarker defaultConstructorMarker) {
}
}

View file

@ -13,7 +13,7 @@ public final class j extends Rule<RC, Node<RC>, S> {
public final /* synthetic */ f a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public j(k.a.C0043a aVar, f fVar, Pattern pattern) {
public j(k.a.C0044a aVar, f fVar, Pattern pattern) {
super(pattern);
this.a = fVar;
}

View file

@ -25,12 +25,12 @@ public final class k {
public static final Pattern a = Pattern.compile("^(var|let|const)(\\s+[a-zA-Z_$][a-zA-Z0-9_$]*)");
/* renamed from: b reason: collision with root package name */
public static final C0043a f292b = new C0043a(null);
public static final C0044a f292b = new C0044a(null);
/* compiled from: JavaScript.kt */
/* renamed from: b.a.t.a.k$a$a reason: collision with other inner class name */
public static final class C0043a {
public C0043a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0044a {
public C0044a(DefaultConstructorMarker defaultConstructorMarker) {
}
}

View file

@ -13,7 +13,7 @@ public final class n extends Rule<RC, Node<RC>, S> {
public final /* synthetic */ f a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public n(o.a.C0044a aVar, f fVar, Pattern pattern) {
public n(o.a.C0045a aVar, f fVar, Pattern pattern) {
super(pattern);
this.a = fVar;
}

View file

@ -24,12 +24,12 @@ public final class o {
public static final Pattern a = Pattern.compile("^(val|var)(\\s+\\w+)", 32);
/* renamed from: b reason: collision with root package name */
public static final C0044a f296b = new C0044a(null);
public static final C0045a f296b = new C0045a(null);
/* compiled from: Kotlin.kt */
/* renamed from: b.a.t.a.o$a$a reason: collision with other inner class name */
public static final class C0044a {
public C0044a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0045a {
public C0045a(DefaultConstructorMarker defaultConstructorMarker) {
}
}

View file

@ -13,7 +13,7 @@ public final class q extends Rule<RC, Node<RC>, S> {
public final /* synthetic */ f a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public q(r.a.C0045a aVar, f fVar, Pattern pattern) {
public q(r.a.C0046a aVar, f fVar, Pattern pattern) {
super(pattern);
this.a = fVar;
}

View file

@ -25,12 +25,12 @@ public final class r {
public static final Pattern a = Pattern.compile("^(@)(\\s*[a-zA-Z_$][a-zA-Z0-9_$]*)(<.*>)?", 32);
/* renamed from: b reason: collision with root package name */
public static final C0045a f299b = new C0045a(null);
public static final C0046a f299b = new C0046a(null);
/* compiled from: TypeScript.kt */
/* renamed from: b.a.t.a.r$a$a reason: collision with other inner class name */
public static final class C0045a {
public C0045a(DefaultConstructorMarker defaultConstructorMarker) {
public static final class C0046a {
public C0046a(DefaultConstructorMarker defaultConstructorMarker) {
}
}

View file

@ -29,8 +29,8 @@ public final class v {
/* compiled from: Xml.kt */
/* renamed from: b.a.t.a.v$a$a reason: collision with other inner class name */
public static final /* synthetic */ class C0046a extends k implements Function1<RC, Iterable<?>> {
public C0046a(StyleNode.a aVar) {
public static final /* synthetic */ class C0047a extends k implements Function1<RC, Iterable<?>> {
public C0047a(StyleNode.a aVar) {
super(1, aVar, StyleNode.a.class, "get", "get(Ljava/lang/Object;)Ljava/lang/Iterable;", 0);
}
@ -84,7 +84,7 @@ public final class v {
pair = o.to(this.a, "");
}
String str4 = (String) pair.component2();
C0046a aVar = new C0046a(this.c.g);
C0047a aVar = new C0047a(this.c.g);
int length2 = spannableStringBuilder.length();
spannableStringBuilder.append((CharSequence) ('<' + ((String) pair.component1())));
Iterator<?> it = aVar.invoke(rc).iterator();

View file

@ -32,12 +32,12 @@ public final class a {
/* compiled from: MarkdownRules.kt */
/* renamed from: b.a.t.c.a$a reason: collision with other inner class name */
public static class C0047a<RC, T, S> extends b<RC, S> {
public static class C0048a<RC, T, S> extends b<RC, S> {
private final Function1<String, T> classSpanProvider;
private final List<Rule<RC, Node<RC>, S>> innerRules;
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public C0047a(Function1<? super Integer, ? extends CharacterStyle> function1, Function1<? super String, ? extends T> function12) {
public C0048a(Function1<? super Integer, ? extends CharacterStyle> function1, Function1<? super String, ? extends T> function12) {
this(function1, function12, u.plus((Collection<? extends Rule>) e.b(false, false, 2), e.h.d()));
m.checkNotNullParameter(function1, "styleSpanProvider");
m.checkNotNullParameter(function12, "classSpanProvider");
@ -47,7 +47,7 @@ public final class a {
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: java.util.List<? extends com.discord.simpleast.core.parser.Rule<RC, com.discord.simpleast.core.node.Node<RC>, S>> */
/* JADX WARN: Multi-variable type inference failed */
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0047a(Function1<? super Integer, ? extends CharacterStyle> function1, Function1<? super String, ? extends T> function12, List<? extends Rule<RC, Node<RC>, S>> list) {
public C0048a(Function1<? super Integer, ? extends CharacterStyle> function1, Function1<? super String, ? extends T> function12, List<? extends Rule<RC, Node<RC>, S>> list) {
super(a.d, function1);
m.checkNotNullParameter(function1, "styleSpanProvider");
m.checkNotNullParameter(function12, "classSpanProvider");

View file

@ -10,11 +10,11 @@ public final class a {
/* compiled from: TypeTokens.kt */
/* renamed from: b.a.w.a$a reason: collision with other inner class name */
public static final class C0048a extends TypeToken<List<? extends String>> {
public static final class C0049a extends TypeToken<List<? extends String>> {
}
static {
Type type = new C0048a().getType();
Type type = new C0049a().getType();
m.checkNotNullExpressionValue(type, "object : TypeToken<List<String>>() {}.type");
a = type;
}

View file

@ -44,10 +44,10 @@ public final class c0 extends AppBottomSheet implements i {
/* compiled from: SelectorBottomSheet.kt */
/* renamed from: b.a.y.c0$a$a reason: collision with other inner class name */
public static final class C0049a extends o implements Function1<Integer, Unit> {
public static final C0049a j = new C0049a();
public static final class C0050a extends o implements Function1<Integer, Unit> {
public static final C0050a j = new C0050a();
public C0049a() {
public C0050a() {
super(1);
}
@ -68,7 +68,7 @@ public final class c0 extends AppBottomSheet implements i {
public static /* synthetic */ c0 b(a aVar, FragmentManager fragmentManager, String str, List list, boolean z2, Function1 function1, int i) {
boolean z3 = (i & 8) != 0 ? true : z2;
if ((i & 16) != 0) {
function1 = C0049a.j;
function1 = C0050a.j;
}
return aVar.a(fragmentManager, str, list, z3, function1);
}

View file

@ -18,6 +18,6 @@ public final class i0 extends o implements Function0<Boolean> {
/* renamed from: invoke */
public Boolean mo1invoke() {
VoiceUserView voiceUserView = this.this$0;
return Boolean.valueOf(voiceUserView.m == VoiceUserView.a.RINGING && voiceUserView.f2813s);
return Boolean.valueOf(voiceUserView.m == VoiceUserView.a.RINGING && voiceUserView.f2809s);
}
}

View file

@ -14,8 +14,8 @@ public final class n implements View.OnClickListener {
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
if (this.k.f2817b.getApplicationStream() != null) {
this.j.n.invoke(this.k.f2817b.getApplicationStream().getEncodedStreamKey());
if (this.k.f2813b.getApplicationStream() != null) {
this.j.n.invoke(this.k.f2813b.getApplicationStream().getEncodedStreamKey());
}
}
}

View file

@ -66,11 +66,11 @@ public class a extends AppCompatDialogFragment {
/* compiled from: java-style lambda group */
/* renamed from: b.b.a.a.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0050a implements View.OnClickListener {
public static final class View$OnClickListenerC0051a implements View.OnClickListener {
public final /* synthetic */ int j;
public final /* synthetic */ Object k;
public View$OnClickListenerC0050a(int i, Object obj) {
public View$OnClickListenerC0051a(int i, Object obj) {
this.j = i;
this.k = obj;
}
@ -98,7 +98,7 @@ public class a extends AppCompatDialogFragment {
}
} else if (i == 2) {
FlexInputFragment flexInputFragment = (FlexInputFragment) ((Fragment) this.k);
FlexInputViewModel flexInputViewModel = flexInputFragment.f3142s;
FlexInputViewModel flexInputViewModel = flexInputFragment.f3138s;
if (flexInputViewModel != null) {
flexInputViewModel.onSendButtonClicked(flexInputFragment.o);
}
@ -395,14 +395,14 @@ public class a extends AppCompatDialogFragment {
m.checkNotNullParameter(layoutInflater, "inflater");
View inflate = layoutInflater.inflate(R.g.dialog_add_content_pager_with_fab, viewGroup, false);
if (inflate != null) {
inflate.setOnClickListener(new View$OnClickListenerC0050a(0, this));
inflate.setOnClickListener(new View$OnClickListenerC0051a(0, this));
this.k = (ViewPager) inflate.findViewById(R.f.content_pager);
this.l = (TabLayout) inflate.findViewById(R.f.content_tabs);
this.m = (FloatingActionButton) inflate.findViewById(R.f.action_btn);
ImageView imageView = (ImageView) inflate.findViewById(R.f.launch_btn);
this.n = imageView;
if (imageView != null) {
imageView.setOnClickListener(new View$OnClickListenerC0050a(1, this));
imageView.setOnClickListener(new View$OnClickListenerC0051a(1, this));
}
FloatingActionButton floatingActionButton = this.m;
Objects.requireNonNull(floatingActionButton, "null cannot be cast to non-null type com.google.android.material.floatingactionbutton.FloatingActionButton");
@ -418,11 +418,11 @@ public class a extends AppCompatDialogFragment {
flexInputFragment.k();
eVar.mo1invoke();
} catch (UninitializedPropertyAccessException unused) {
flexInputFragment.f3143x.add(eVar);
flexInputFragment.f3139x.add(eVar);
}
FloatingActionButton floatingActionButton2 = this.m;
if (floatingActionButton2 != null) {
floatingActionButton2.setOnClickListener(new View$OnClickListenerC0050a(2, parentFragment));
floatingActionButton2.setOnClickListener(new View$OnClickListenerC0051a(2, parentFragment));
}
this.o = flexInputFragment.b().addItemSelectionListener(this.r);
FloatingActionButton floatingActionButton3 = this.m;

View file

@ -27,7 +27,7 @@ public final class b implements TabLayout.OnTabSelectedListener {
if (position == 3) {
this.a.h(false);
Fragment parentFragment = this.a.getParentFragment();
if ((parentFragment instanceof FlexInputFragment) && (flexInputViewModel = ((FlexInputFragment) parentFragment).f3142s) != null) {
if ((parentFragment instanceof FlexInputFragment) && (flexInputViewModel = ((FlexInputFragment) parentFragment).f3138s) != null) {
flexInputViewModel.onCreateThreadSelected();
return;
}

View file

@ -21,7 +21,7 @@ public final class f implements ViewPager.OnPageChangeListener {
@Override // androidx.viewpager.widget.ViewPager.OnPageChangeListener
public void onPageSelected(int i) {
FlexInputViewModel flexInputViewModel = this.a.f3142s;
FlexInputViewModel flexInputViewModel = this.a.f3138s;
if (flexInputViewModel != null) {
flexInputViewModel.onContentDialogPageChanged(i);
}

View file

@ -15,7 +15,7 @@ public final class g implements DialogInterface.OnDismissListener {
@Override // android.content.DialogInterface.OnDismissListener
public final void onDismiss(DialogInterface dialogInterface) {
FlexInputViewModel flexInputViewModel;
if (this.j.isAdded() && !this.j.isHidden() && (flexInputViewModel = this.j.f3142s) != null) {
if (this.j.isAdded() && !this.j.isHidden() && (flexInputViewModel = this.j.f3138s) != null) {
f.O0(flexInputViewModel, false, 1, null);
}
}

View file

@ -23,7 +23,7 @@ public final class h extends o implements Function1<View, Unit> {
@Override // kotlin.jvm.functions.Function1
public Unit invoke(View view) {
m.checkNotNullParameter(view, "it");
FlexInputViewModel flexInputViewModel = this.this$0.f3142s;
FlexInputViewModel flexInputViewModel = this.this$0.f3138s;
if (flexInputViewModel != null) {
f.O0(flexInputViewModel, false, 1, null);
}

View file

@ -14,7 +14,7 @@ public final class i implements View.OnLongClickListener {
@Override // android.view.View.OnLongClickListener
public final boolean onLongClick(View view) {
FlexInputViewModel flexInputViewModel = this.j.f3142s;
FlexInputViewModel flexInputViewModel = this.j.f3138s;
if (flexInputViewModel == null) {
return false;
}

View file

@ -17,21 +17,21 @@ public final class m implements SelectionCoordinator.ItemSelectionListener<Attac
public void onItemSelected(Attachment<? extends Object> attachment) {
Attachment<? extends Object> attachment2 = attachment;
d0.z.d.m.checkNotNullParameter(attachment2, "item");
FlexInputViewModel flexInputViewModel = this.a.f3142s;
FlexInputViewModel flexInputViewModel = this.a.f3138s;
if (flexInputViewModel == null || !flexInputViewModel.isSingleSelectMode()) {
FlexInputFragment flexInputFragment = this.a;
FlexInputViewModel flexInputViewModel2 = flexInputFragment.f3142s;
FlexInputViewModel flexInputViewModel2 = flexInputFragment.f3138s;
if (flexInputViewModel2 != null) {
flexInputViewModel2.onAttachmentsUpdated(flexInputFragment.b().getAttachments());
return;
}
return;
}
FlexInputViewModel flexInputViewModel3 = this.a.f3142s;
FlexInputViewModel flexInputViewModel3 = this.a.f3138s;
if (flexInputViewModel3 != null) {
flexInputViewModel3.onSingleAttachmentSelected(attachment2);
}
FlexInputViewModel flexInputViewModel4 = this.a.f3142s;
FlexInputViewModel flexInputViewModel4 = this.a.f3138s;
if (flexInputViewModel4 != null) {
flexInputViewModel4.onContentDialogDismissed(true);
}
@ -42,7 +42,7 @@ public final class m implements SelectionCoordinator.ItemSelectionListener<Attac
public void onItemUnselected(Attachment<? extends Object> attachment) {
d0.z.d.m.checkNotNullParameter(attachment, "item");
FlexInputFragment flexInputFragment = this.a;
FlexInputViewModel flexInputViewModel = flexInputFragment.f3142s;
FlexInputViewModel flexInputViewModel = flexInputFragment.f3138s;
if (flexInputViewModel != null) {
flexInputViewModel.onAttachmentsUpdated(flexInputFragment.b().getAttachments());
}

View file

@ -56,11 +56,11 @@ public final class h extends RecyclerView.Adapter<a> {
/* compiled from: MediaCursorAdapter.kt */
/* renamed from: b.b.a.d.h$a$a reason: collision with other inner class name */
public static final class C0051a extends o implements Function1<AnimatorSet, Unit> {
public static final class C0052a extends o implements Function1<AnimatorSet, Unit> {
public final /* synthetic */ boolean $isAnimationRequested;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0051a(boolean z2) {
public C0052a(boolean z2) {
super(1);
this.$isAnimationRequested = z2;
}
@ -118,7 +118,7 @@ public final class h extends RecyclerView.Adapter<a> {
FrameLayout frameLayout = this.f317s.a;
m.checkNotNullExpressionValue(frameLayout, "binding.root");
frameLayout.setSelected(z2);
C0051a aVar = new C0051a(z3);
C0052a aVar = new C0052a(z3);
if (z2) {
SimpleDraweeView simpleDraweeView = this.f317s.d;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.itemCheckIndicator");
@ -324,7 +324,7 @@ public final class h extends RecyclerView.Adapter<a> {
}
SelectionCoordinator.a aVar4 = aVar2;
if (aVar4 != null) {
aVar3.d(aVar4.f3148b, true);
aVar3.d(aVar4.f3144b, true);
return;
}
}

View file

@ -186,7 +186,7 @@ public abstract class i extends RecyclerView.ViewHolder {
bVar.a();
x0 x0Var = x0.j;
CoroutineDispatcher coroutineDispatcher = k0.a;
bVar.a = f.H0(x0Var, n.f3805b, null, new j(bVar, uri2, dVar, null), 2, null);
bVar.a = f.H0(x0Var, n.f3801b, null, new j(bVar, uri2, dVar, null), 2, null);
return;
}
return;

Some files were not shown because too many files have changed in this diff Show more