105.7 - Alpha (105207)

This commit is contained in:
Juby210 2021-12-03 21:28:00 +01:00
parent 225867ac4a
commit a639fccae6
1647 changed files with 18994 additions and 18378 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 30
versionCode 105206
versionName "105.6 - Alpha"
versionCode 105207
versionName "105.7 - 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="105206" android:versionName="105.6 - 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="105207" android:versionName="105.7 - 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

@ -218,7 +218,7 @@ public final class b {
m.checkNotNullParameter(objArr, "formatArgs");
m.checkNotNullParameter(renderContext, "renderContext");
Map<String, String> map = renderContext.a;
List<? extends Object> list = renderContext.f2162c;
List<? extends Object> list = renderContext.f2163c;
boolean z2 = true;
if (!map.isEmpty()) {
charSequence = a.replace(charSequence, new f(map));

View file

@ -38,7 +38,7 @@ public final class c extends Node.a<RenderContext> {
spannableStringBuilder.setSpan(obj2, length, spannableStringBuilder.length(), 33);
}
}
Hook.a aVar2 = hook != null ? hook.f2161c : null;
Hook.a aVar2 = hook != null ? hook.f2162c : null;
if (aVar2 != null) {
aVar = aVar2;
} else if (URLUtil.isValidUrl(this.a)) {

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.f2206s.removeViewImmediate(overlayBubbleWrap2);
this.this$0.f2207s.removeViewImmediate(overlayBubbleWrap2);
this.this$0.m.invoke(overlayBubbleWrap2);
z2 = true;
} catch (IllegalArgumentException unused) {

View file

@ -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.f2206s.removeViewImmediate(this.l);
WindowManager windowManager = this.j.f2206s;
this.j.f2207s.removeViewImmediate(this.l);
WindowManager windowManager = this.j.f2207s;
OverlayBubbleWrap overlayBubbleWrap2 = this.l;
windowManager.addView(overlayBubbleWrap2, overlayBubbleWrap2.getWindowLayoutParams());
}

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.f2223b0) {
if (rtcConnection.f2224b0) {
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.f2227x;
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2228x;
if (mediaEngineConnection2 != null) {
d dVar = new d(1000, rtcConnection.V, mediaEngineConnection2, new VoiceQuality(), rtcConnection.B, new KrispOveruseDetector(mediaEngineConnection2), 0, 64);
dVar.a.clear();
@ -54,9 +54,9 @@ public final class b0 implements MediaEngineConnection.d {
rtcConnection.o = dVar;
rtcConnection.p = false;
}
if (transportInfo.f2243c.ordinal() != 0) {
if (transportInfo.f2244c.ordinal() != 0) {
StringBuilder R = c.d.b.a.a.R("Unsupported protocol: ");
R.append(transportInfo.f2243c);
R.append(transportInfo.f2244c);
R.append('.');
RtcConnection.j(rtcConnection, true, R.toString(), null, false, 12);
} else {
@ -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.f2226s;
RtcConnection.StateChange stateChange = rtcConnection.f2227s;
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.f2226s.a == RtcConnection.State.h.a) {
if (stateChange.a == RtcConnection.State.g.a && rtcConnection.f2227s.a == RtcConnection.State.h.a) {
rtcConnection.q();
}
if (rtcConnection.f2226s.a == RtcConnection.State.f.a) {
if (rtcConnection.f2227s.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.f2227x));
mediaSinkWantsManager.b(new i(mediaSinkWantsManager, rtcConnection.f2228x));
}
}
}

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.f2227x;
MediaEngineConnection mediaEngineConnection = this.a.f2228x;
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.f2227x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2228x;
if (mediaEngineConnection != null) {
mediaEngineConnection.destroy();
}
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2227x;
MediaEngineConnection mediaEngineConnection2 = rtcConnection.f2228x;
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.f2226s.a instanceof RtcConnection.State.d)) {
if (!(rtcConnection.f2227s.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.f2227x;
MediaEngineConnection mediaEngineConnection = this.a.f2228x;
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.f211c.a) * nVar.f222c), j0Var.d);
int max2 = Math.max((int) (((double) j0Var.f211c.b) * nVar.f222c), j0Var.d);
MediaEngineConnection mediaEngineConnection = rtcConnection.f2227x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2228x;
if (mediaEngineConnection != null) {
mediaEngineConnection.m(new MediaEngineConnection.b(max, max2, nVar.a, nVar.b, nVar.d, nVar.e));
return;
@ -372,7 +372,7 @@ public final class h0 implements a.d {
return;
}
g.l(rtcConnection.N);
rtcConnection.f2227x = g;
rtcConnection.f2228x = g;
}
@Override // c.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.f2227x;
MediaEngineConnection mediaEngineConnection = rtcConnection.f2228x;
if (mediaEngineConnection != null) {
mediaEngineConnection.s(j, i, null, rtcConnection.g(j), rtcConnection.h(j));
}

View file

@ -34,7 +34,7 @@ public final class j extends o implements Function0<Unit> {
Long l2 = this.$userId;
if (l2 == null) {
this.this$0.e = null;
} else if (this.this$0.f2220c.contains(l2)) {
} else if (this.this$0.f2221c.contains(l2)) {
MediaSinkWantsManager mediaSinkWantsManager2 = this.this$0;
Long l3 = this.$userId;
mediaSinkWantsManager2.e = l3;

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.f2235y;
SerializedSubject<Integer, Integer> serializedSubject = discordAudioManager.f2236y;
serializedSubject.k.onNext(Integer.valueOf(streamVolume));
}
}

View file

@ -96,10 +96,10 @@ public final class l extends o implements Function0<Unit> {
}
if (arrayList2.isEmpty()) {
this.this$0.b.remove(Long.valueOf(this.$userId));
this.this$0.f2220c.remove(Long.valueOf(this.$userId));
this.this$0.f2221c.remove(Long.valueOf(this.$userId));
} else {
this.this$0.b.put(Long.valueOf(this.$userId), arrayList2);
this.this$0.f2220c.add(Long.valueOf(this.$userId));
this.this$0.f2221c.add(Long.valueOf(this.$userId));
}
this.this$0.d(arrayList2.isEmpty() ? n.emptyList() : d0.t.m.listOf(String.valueOf(this.$userId)));
return Unit.a;

View file

@ -218,7 +218,7 @@ public final class b extends ScreenCapturerAndroid {
if (thumbnailEmitter != null) {
synchronized (thumbnailEmitter) {
thumbnailEmitter.d.release();
thumbnailEmitter.f2246c.release();
thumbnailEmitter.f2247c.release();
JniCommon.nativeFreeByteBuffer(thumbnailEmitter.b);
thumbnailEmitter.a = RecyclerView.FOREVER_NS;
}

View file

@ -288,7 +288,7 @@ public final class e implements MediaEngineConnection {
Connection connection2 = connection;
d0.z.d.m.checkNotNullParameter(connection2, "$receiver");
connection2.setVADLeadingFramesToBuffer(this.$inputModeOptions.b);
connection2.setVADTrailingFramesToSend(this.$inputModeOptions.f2245c);
connection2.setVADTrailingFramesToSend(this.$inputModeOptions.f2246c);
connection2.setVADTriggerThreshold((float) this.$inputModeOptions.a);
connection2.setVADAutoThreshold(this.$inputModeOptions.d ? 3 : -1);
connection2.setVADUseKrisp(this.$inputModeOptions.e);
@ -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.b, bVar.f2244c, bVar.d, this.$frameRate);
connection2.setEncodingQuality(bVar.a, bVar.b, bVar.f2245c, bVar.d, this.$frameRate);
return Unit.a;
}
}
@ -610,7 +610,7 @@ public final class e implements MediaEngineConnection {
this.d = h0.mutableMapOf(d0.o.to(Long.valueOf(j2), Integer.valueOf(aVar.a)));
int i2 = aVar.a;
String str = aVar.b;
int i3 = aVar.f2242c;
int i3 = aVar.f2243c;
Object[] array = aVar.d.toArray(new StreamParameters[0]);
Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
Connection connectToServer = discord.connectToServer(i2, j2, str, i3, (StreamParameters[]) array, new d(this));

View file

@ -416,7 +416,7 @@ public final class k implements MediaEngine {
discord2.setEchoCancellation(z2, false, new m(kVar2));
}
k kVar3 = this.this$0;
boolean z4 = voiceConfig.f2241c;
boolean z4 = voiceConfig.f2242c;
Discord discord3 = kVar3.f;
if (discord3 != null) {
discord3.setNoiseSuppression(z4);

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.b, echoCancellationInfo.f2240c, echoCancellationInfo.d, this.$requestEnable, this.$enabled, this.$requestMobileMode, this.$previouslyEnabled, this.$previouslyMobileMode);
MediaEngine.EchoCancellationInfo echoCancellationInfo2 = new MediaEngine.EchoCancellationInfo(echoCancellationInfo.a, echoCancellationInfo.b, echoCancellationInfo.f2241c, echoCancellationInfo.d, this.$requestEnable, this.$enabled, this.$requestMobileMode, this.$previouslyEnabled, this.$previouslyMobileMode);
d.c1("MediaEngineLegacy", "onEchoCancellationUpdated: " + echoCancellationInfo2);
this.this$0.a.p.onEchoCancellationUpdated(echoCancellationInfo2);
}

View file

@ -638,7 +638,7 @@ public final class a extends WebSocketListener implements DebugPrintable {
aVar.a(1, TimeUnit.MINUTES);
SSLSocketFactory sSLSocketFactory = this.F;
if (sSLSocketFactory != null) {
h.a aVar2 = f0.e0.k.h.f2905c;
h.a aVar2 = f0.e0.k.h.f2908c;
aVar.b(sSLSocketFactory, f0.e0.k.h.a.n());
}
String H = c.d.b.a.a.H(new StringBuilder(), this.D, "?v=5");

View file

@ -98,13 +98,13 @@ public final /* synthetic */ class a extends k implements Function1<Stats, Unit>
if (booleanValue) {
krispOveruseDetector.d.f(KrispOveruseDetector.Status.CPU_OVERUSE);
} else if (longValue == 0) {
int i = krispOveruseDetector.f2219c + 1;
krispOveruseDetector.f2219c = i;
int i = krispOveruseDetector.f2220c + 1;
krispOveruseDetector.f2220c = i;
if (i > 2) {
krispOveruseDetector.d.f(KrispOveruseDetector.Status.FAILED);
}
} else {
krispOveruseDetector.f2219c = 0;
krispOveruseDetector.f2220c = 0;
}
}
krispOveruseDetector.b = stats2.getOutboundRtpAudio();

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.f2228y = uri.getHost();
rtcConnection.f2229z = Integer.valueOf(uri.getPort());
rtcConnection.f2229y = uri.getHost();
rtcConnection.f2230z = 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

@ -77,7 +77,7 @@ public final class b extends k implements Function2<CoroutineScope, Continuation
}
String joinToString$default = u.joinToString$default(arrayList, "&", null, null, 0, null, null, 62, null);
RequestBody.Companion companion = RequestBody.Companion;
MediaType.a aVar = MediaType.f3031c;
MediaType.a aVar = MediaType.f3034c;
RequestBody a = companion.a(joinToString$default, MediaType.a.a(ShareTarget.ENCODING_TYPE_URL_ENCODED));
Request.a aVar2 = new Request.a();
m.checkParameterIsNotNull(a, "body");

View file

@ -1,100 +1,22 @@
package c.a.y;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextSwitcher;
import android.widget.TextView;
import c.a.i.g1;
import com.discord.R;
import com.discord.api.message.reaction.MessageReaction;
import com.discord.utilities.textprocessing.node.EmojiNode;
import com.discord.utilities.view.text.SimpleDraweeSpanTextView;
import d0.z.d.m;
/* compiled from: ReactionView.kt */
public final class a0 extends LinearLayout {
public int j;
public Long k;
public MessageReaction l;
public final g1 m;
import d0.z.d.o;
import kotlin.jvm.functions.Function1;
/* compiled from: PileView.kt */
public final class a0 extends o implements Function1<Integer, String> {
public final /* synthetic */ String $avatarUrl;
public a0(Context context) {
super(context);
View inflate = LayoutInflater.from(getContext()).inflate(R.layout.reaction_view, (ViewGroup) this, false);
addView(inflate);
int i = R.id.counter_text_1;
TextView textView = (TextView) inflate.findViewById(R.id.counter_text_1);
if (textView != null) {
i = R.id.counter_text_2;
TextView textView2 = (TextView) inflate.findViewById(R.id.counter_text_2);
if (textView2 != null) {
i = R.id.counter_text_switcher;
TextSwitcher textSwitcher = (TextSwitcher) inflate.findViewById(R.id.counter_text_switcher);
if (textSwitcher != null) {
i = R.id.emoji_text_view;
SimpleDraweeSpanTextView simpleDraweeSpanTextView = (SimpleDraweeSpanTextView) inflate.findViewById(R.id.emoji_text_view);
if (simpleDraweeSpanTextView != null) {
g1 g1Var = new g1((LinearLayout) inflate, textView, textView2, textSwitcher, simpleDraweeSpanTextView);
m.checkNotNullExpressionValue(g1Var, "ReactionViewBinding.infl…rom(context), this, true)");
this.m = g1Var;
return;
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a0(String str) {
super(1);
this.$avatarUrl = str;
}
private final void setIsMe(boolean z2) {
setActivated(z2);
setSelected(z2);
TextView textView = this.m.b;
m.checkNotNullExpressionValue(textView, "binding.counterText1");
textView.setActivated(z2);
TextView textView2 = this.m.f99c;
m.checkNotNullExpressionValue(textView2, "binding.counterText2");
textView2.setActivated(z2);
}
public final void a(MessageReaction messageReaction, long j, boolean z2) {
m.checkNotNullParameter(messageReaction, "reaction");
Long l = this.k;
boolean z3 = l == null || l == null || l.longValue() != j;
MessageReaction messageReaction2 = this.l;
int a = messageReaction.a();
g1 g1Var = this.m;
int i = this.j;
if (a != i) {
if (z3) {
g1Var.d.setCurrentText(String.valueOf(a));
} else {
if (a > i) {
TextSwitcher textSwitcher = g1Var.d;
textSwitcher.setInAnimation(textSwitcher.getContext(), R.anim.anim_slide_in_up);
textSwitcher.setOutAnimation(textSwitcher.getContext(), R.anim.anim_slide_out_up);
} else {
TextSwitcher textSwitcher2 = g1Var.d;
textSwitcher2.setInAnimation(textSwitcher2.getContext(), R.anim.anim_slide_in_down);
textSwitcher2.setOutAnimation(textSwitcher2.getContext(), R.anim.anim_slide_out_down);
}
g1Var.d.setText(String.valueOf(a));
}
this.j = a;
}
if (messageReaction2 == null || (!m.areEqual(messageReaction.b(), messageReaction2.b()))) {
EmojiNode.Companion companion = EmojiNode.Companion;
SimpleDraweeSpanTextView simpleDraweeSpanTextView = this.m.e;
m.checkNotNullExpressionValue(simpleDraweeSpanTextView, "binding.emojiTextView");
EmojiNode.Companion.renderEmoji$default(companion, simpleDraweeSpanTextView, messageReaction.b(), z2, 0, 4, null);
}
setIsMe(messageReaction.c());
this.l = messageReaction;
this.k = Long.valueOf(j);
}
public final MessageReaction getReaction() {
return this.l;
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public String invoke(Integer num) {
num.intValue();
return this.$avatarUrl;
}
}

View file

@ -1,231 +1,100 @@
package c.a.y;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextSwitcher;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.os.BundleKt;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;
import c.a.i.d;
import c.a.i.g1;
import com.discord.R;
import com.discord.app.AppBottomSheet;
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.textview.MaterialTextView;
import d0.z.d.a0;
import d0.z.d.k;
import com.discord.api.message.reaction.MessageReaction;
import com.discord.utilities.textprocessing.node.EmojiNode;
import com.discord.utilities.view.text.SimpleDraweeSpanTextView;
import d0.z.d.m;
import d0.z.d.o;
import java.io.Serializable;
import java.util.List;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SelectorBottomSheet.kt */
public final class b0 extends AppBottomSheet implements i {
public static final /* synthetic */ KProperty[] j = {c.d.b.a.a.b0(b0.class, "binding", "getBinding()Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0)};
public static final a k = new a(null);
public Function1<? super Integer, Unit> l;
public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
/* compiled from: ReactionView.kt */
public final class b0 extends LinearLayout {
public int j;
public Long k;
public MessageReaction l;
public final g1 m;
/* compiled from: SelectorBottomSheet.kt */
public static final class a {
/* compiled from: SelectorBottomSheet.kt */
/* renamed from: c.a.y.b0$a$a reason: collision with other inner class name */
public static final class C0050a extends o implements Function1<Integer, Unit> {
public static final C0050a j = new C0050a();
public C0050a() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Integer num) {
num.intValue();
return Unit.a;
}
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: c.a.y.b0$a */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ b0 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 = C0050a.j;
}
return aVar.a(fragmentManager, str, list, z3, function1);
}
public final b0 a(FragmentManager fragmentManager, String str, List<c0> list, boolean z2, Function1<? super Integer, Unit> function1) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(str, "title");
m.checkNotNullParameter(list, "options");
m.checkNotNullParameter(function1, "onSelectedListener");
b0 b0Var = new b0();
b0Var.setArguments(BundleKt.bundleOf(d0.o.to("simple_bottom_sheet_title", str), d0.o.to("simple_bottom_sheet_options", list), d0.o.to("simple_bottom_sheet_show_dividers", Boolean.valueOf(z2))));
b0Var.l = function1;
b0Var.show(fragmentManager, a0.getOrCreateKotlinClass(b0.class).toString());
return b0Var;
}
}
/* compiled from: SelectorBottomSheet.kt */
public static final /* synthetic */ class b extends k implements Function1<View, c.a.i.c> {
public static final b j = new b();
public b() {
super(1, c.a.i.c.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.c invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.widget_simple_bottom_sheet_selector_header;
ConstraintLayout constraintLayout = (ConstraintLayout) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_header);
if (constraintLayout != null) {
i = R.id.widget_simple_bottom_sheet_selector_placeholder;
TextView textView = (TextView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_placeholder);
if (textView != null) {
i = R.id.widget_simple_bottom_sheet_selector_recycler;
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_recycler);
if (maxHeightRecyclerView != null) {
return new c.a.i.c((ConstraintLayout) view2, constraintLayout, textView, maxHeightRecyclerView);
public b0(Context context) {
super(context);
View inflate = LayoutInflater.from(getContext()).inflate(R.layout.reaction_view, (ViewGroup) this, false);
addView(inflate);
int i = R.id.counter_text_1;
TextView textView = (TextView) inflate.findViewById(R.id.counter_text_1);
if (textView != null) {
i = R.id.counter_text_2;
TextView textView2 = (TextView) inflate.findViewById(R.id.counter_text_2);
if (textView2 != null) {
i = R.id.counter_text_switcher;
TextSwitcher textSwitcher = (TextSwitcher) inflate.findViewById(R.id.counter_text_switcher);
if (textSwitcher != null) {
i = R.id.emoji_text_view;
SimpleDraweeSpanTextView simpleDraweeSpanTextView = (SimpleDraweeSpanTextView) inflate.findViewById(R.id.emoji_text_view);
if (simpleDraweeSpanTextView != null) {
g1 g1Var = new g1((LinearLayout) inflate, textView, textView2, textSwitcher, simpleDraweeSpanTextView);
m.checkNotNullExpressionValue(g1Var, "ReactionViewBinding.infl…rom(context), this, true)");
this.m = g1Var;
return;
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* compiled from: SelectorBottomSheet.kt */
public static final class c extends o implements Function2<LayoutInflater, ViewGroup, e0> {
public final /* synthetic */ b0 this$0;
private final void setIsMe(boolean z2) {
setActivated(z2);
setSelected(z2);
TextView textView = this.m.b;
m.checkNotNullExpressionValue(textView, "binding.counterText1");
textView.setActivated(z2);
TextView textView2 = this.m.f99c;
m.checkNotNullExpressionValue(textView2, "binding.counterText2");
textView2.setActivated(z2);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(b0 b0Var) {
super(2);
this.this$0 = b0Var;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public e0 invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
LayoutInflater layoutInflater2 = layoutInflater;
ViewGroup viewGroup2 = viewGroup;
m.checkNotNullParameter(layoutInflater2, "inflater");
m.checkNotNullParameter(viewGroup2, "parent");
View inflate = layoutInflater2.inflate(R.layout.bottom_sheet_simple_selector_item, viewGroup2, false);
int i = R.id.select_component_sheet_item_description;
MaterialTextView materialTextView = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_description);
if (materialTextView != null) {
i = R.id.select_component_sheet_item_icon;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.select_component_sheet_item_icon);
if (simpleDraweeView != null) {
i = R.id.select_component_sheet_item_title;
MaterialTextView materialTextView2 = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_title);
if (materialTextView2 != null) {
d dVar = new d((ConstraintLayout) inflate, materialTextView, simpleDraweeView, materialTextView2);
m.checkNotNullExpressionValue(dVar, "BottomSheetSimpleSelecto…(inflater, parent, false)");
b0 b0Var = this.this$0;
Dialog requireDialog = b0Var.requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
return new e0(b0Var, requireDialog, dVar);
}
public final void a(MessageReaction messageReaction, long j, boolean z2) {
m.checkNotNullParameter(messageReaction, "reaction");
Long l = this.k;
boolean z3 = l == null || l == null || l.longValue() != j;
MessageReaction messageReaction2 = this.l;
int a = messageReaction.a();
g1 g1Var = this.m;
int i = this.j;
if (a != i) {
if (z3) {
g1Var.d.setCurrentText(String.valueOf(a));
} else {
if (a > i) {
TextSwitcher textSwitcher = g1Var.d;
textSwitcher.setInAnimation(textSwitcher.getContext(), R.anim.anim_slide_in_up);
textSwitcher.setOutAnimation(textSwitcher.getContext(), R.anim.anim_slide_out_up);
} else {
TextSwitcher textSwitcher2 = g1Var.d;
textSwitcher2.setInAnimation(textSwitcher2.getContext(), R.anim.anim_slide_in_down);
textSwitcher2.setOutAnimation(textSwitcher2.getContext(), R.anim.anim_slide_out_down);
}
g1Var.d.setText(String.valueOf(a));
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
this.j = a;
}
}
public b0() {
super(false, 1, null);
}
@Override // c.a.y.i
public void c(int i) {
Function1<? super Integer, Unit> function1 = this.l;
if (function1 != null) {
function1.invoke(Integer.valueOf(i));
if (messageReaction2 == null || (!m.areEqual(messageReaction.b(), messageReaction2.b()))) {
EmojiNode.Companion companion = EmojiNode.Companion;
SimpleDraweeSpanTextView simpleDraweeSpanTextView = this.m.e;
m.checkNotNullExpressionValue(simpleDraweeSpanTextView, "binding.emojiTextView");
EmojiNode.Companion.renderEmoji$default(companion, simpleDraweeSpanTextView, messageReaction.b(), z2, 0, 4, null);
}
setIsMe(messageReaction.c());
this.l = messageReaction;
this.k = Long.valueOf(j);
}
public final c.a.i.c g() {
return (c.a.i.c) this.m.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppBottomSheet
public int getContentViewResId() {
return R.layout.bottom_sheet_simple_selector;
}
@Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnDismissListener
public void onDismiss(DialogInterface dialogInterface) {
m.checkNotNullParameter(dialogInterface, "dialog");
super.onDismiss(dialogInterface);
this.l = null;
}
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
dismiss();
}
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
m.checkNotNullParameter(view, "view");
super.onViewCreated(view, bundle);
setBottomSheetCollapsedStateDisabled();
String string = getArgumentsOrDefault().getString("simple_bottom_sheet_title");
Serializable serializable = getArgumentsOrDefault().getSerializable("simple_bottom_sheet_options");
if (!(serializable instanceof List)) {
serializable = null;
}
List list = (List) serializable;
boolean z2 = getArgumentsOrDefault().getBoolean("simple_bottom_sheet_show_dividers");
TextView textView = g().f73c;
m.checkNotNullExpressionValue(textView, "binding.widgetSimpleBottomSheetSelectorPlaceholder");
textView.setText(string);
ConstraintLayout constraintLayout = g().b;
m.checkNotNullExpressionValue(constraintLayout, "binding.widgetSimpleBottomSheetSelectorHeader");
int i = 0;
if (!(!(string == null || string.length() == 0))) {
i = 8;
}
constraintLayout.setVisibility(i);
if (list != null) {
MaxHeightRecyclerView maxHeightRecyclerView = g().d;
m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.widgetSimpleBottomSheetSelectorRecycler");
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(list, new c(this)));
MaxHeightRecyclerView maxHeightRecyclerView2 = g().d;
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
if (adapter != null) {
adapter.notifyDataSetChanged();
}
if (z2) {
SimpleRecyclerAdapter.Companion.addThemedDivider(maxHeightRecyclerView2);
}
}
public final MessageReaction getReaction() {
return this.l;
}
}

View file

@ -1,116 +1,231 @@
package c.a.y;
import c.d.b.a.a;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.os.BundleKt;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;
import c.a.i.d;
import com.discord.R;
import com.discord.app.AppBottomSheet;
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.textview.MaterialTextView;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.io.Serializable;
import java.util.List;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SelectorBottomSheet.kt */
public final class c0 implements Serializable {
private final CharSequence description;
private final Integer iconRes;
private final Integer iconTint;
private final String iconUri;
private final String title;
private final Integer titleEndIcon;
private final Integer titleTextColor;
public final class c0 extends AppBottomSheet implements i {
public static final /* synthetic */ KProperty[] j = {c.d.b.a.a.b0(c0.class, "binding", "getBinding()Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0)};
public static final a k = new a(null);
public Function1<? super Integer, Unit> l;
public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, b.j, null, 2, null);
/* compiled from: SelectorBottomSheet.kt */
public static final class a {
/* compiled from: SelectorBottomSheet.kt */
/* renamed from: c.a.y.c0$a$a reason: collision with other inner class name */
public static final class C0050a extends o implements Function1<Integer, Unit> {
public static final C0050a j = new C0050a();
public C0050a() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Integer num) {
num.intValue();
return Unit.a;
}
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX DEBUG: Multi-variable search result rejected for r6v0, resolved type: c.a.y.c0$a */
/* JADX WARN: Multi-variable type inference failed */
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 = C0050a.j;
}
return aVar.a(fragmentManager, str, list, z3, function1);
}
public final c0 a(FragmentManager fragmentManager, String str, List<d0> list, boolean z2, Function1<? super Integer, Unit> function1) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(str, "title");
m.checkNotNullParameter(list, "options");
m.checkNotNullParameter(function1, "onSelectedListener");
c0 c0Var = new c0();
c0Var.setArguments(BundleKt.bundleOf(d0.o.to("simple_bottom_sheet_title", str), d0.o.to("simple_bottom_sheet_options", list), d0.o.to("simple_bottom_sheet_show_dividers", Boolean.valueOf(z2))));
c0Var.l = function1;
c0Var.show(fragmentManager, a0.getOrCreateKotlinClass(c0.class).toString());
return c0Var;
}
}
/* compiled from: SelectorBottomSheet.kt */
public static final /* synthetic */ class b extends k implements Function1<View, c.a.i.c> {
public static final b j = new b();
public b() {
super(1, c.a.i.c.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/BottomSheetSimpleSelectorBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.c invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i = R.id.widget_simple_bottom_sheet_selector_header;
ConstraintLayout constraintLayout = (ConstraintLayout) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_header);
if (constraintLayout != null) {
i = R.id.widget_simple_bottom_sheet_selector_placeholder;
TextView textView = (TextView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_placeholder);
if (textView != null) {
i = R.id.widget_simple_bottom_sheet_selector_recycler;
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(R.id.widget_simple_bottom_sheet_selector_recycler);
if (maxHeightRecyclerView != null) {
return new c.a.i.c((ConstraintLayout) view2, constraintLayout, textView, maxHeightRecyclerView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i)));
}
}
/* compiled from: SelectorBottomSheet.kt */
public static final class c extends o implements Function2<LayoutInflater, ViewGroup, f0> {
public final /* synthetic */ c0 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(c0 c0Var) {
super(2);
this.this$0 = c0Var;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public f0 invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
LayoutInflater layoutInflater2 = layoutInflater;
ViewGroup viewGroup2 = viewGroup;
m.checkNotNullParameter(layoutInflater2, "inflater");
m.checkNotNullParameter(viewGroup2, "parent");
View inflate = layoutInflater2.inflate(R.layout.bottom_sheet_simple_selector_item, viewGroup2, false);
int i = R.id.select_component_sheet_item_description;
MaterialTextView materialTextView = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_description);
if (materialTextView != null) {
i = R.id.select_component_sheet_item_icon;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.select_component_sheet_item_icon);
if (simpleDraweeView != null) {
i = R.id.select_component_sheet_item_title;
MaterialTextView materialTextView2 = (MaterialTextView) inflate.findViewById(R.id.select_component_sheet_item_title);
if (materialTextView2 != null) {
d dVar = new d((ConstraintLayout) inflate, materialTextView, simpleDraweeView, materialTextView2);
m.checkNotNullExpressionValue(dVar, "BottomSheetSimpleSelecto…(inflater, parent, false)");
c0 c0Var = this.this$0;
Dialog requireDialog = c0Var.requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
return new f0(c0Var, requireDialog, dVar);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
}
public c0() {
this(null, null, null, null, null, null, null, 127);
super(false, 1, null);
}
public c0(String str, CharSequence charSequence, Integer num, String str2, Integer num2, Integer num3, Integer num4, int i) {
str = (i & 1) != 0 ? null : str;
charSequence = (i & 2) != 0 ? null : charSequence;
num = (i & 4) != 0 ? null : num;
str2 = (i & 8) != 0 ? null : str2;
int i2 = i & 16;
num3 = (i & 32) != 0 ? null : num3;
int i3 = i & 64;
this.title = str;
this.description = charSequence;
this.iconRes = num;
this.iconUri = str2;
this.iconTint = null;
this.titleTextColor = num3;
this.titleEndIcon = null;
}
public final CharSequence a() {
return this.description;
}
public final Integer b() {
return this.iconRes;
}
public final Integer c() {
return this.iconTint;
}
public final String d() {
return this.iconUri;
}
public final String e() {
return this.title;
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (this == obj) {
return true;
@Override // c.a.y.i
public void c(int i) {
Function1<? super Integer, Unit> function1 = this.l;
if (function1 != null) {
function1.invoke(Integer.valueOf(i));
}
if (!(obj instanceof c0)) {
return false;
}
public final c.a.i.c g() {
return (c.a.i.c) this.m.getValue((Fragment) this, j[0]);
}
@Override // com.discord.app.AppBottomSheet
public int getContentViewResId() {
return R.layout.bottom_sheet_simple_selector;
}
@Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnDismissListener
public void onDismiss(DialogInterface dialogInterface) {
m.checkNotNullParameter(dialogInterface, "dialog");
super.onDismiss(dialogInterface);
this.l = null;
}
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
dismiss();
}
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
m.checkNotNullParameter(view, "view");
super.onViewCreated(view, bundle);
setBottomSheetCollapsedStateDisabled();
String string = getArgumentsOrDefault().getString("simple_bottom_sheet_title");
Serializable serializable = getArgumentsOrDefault().getSerializable("simple_bottom_sheet_options");
if (!(serializable instanceof List)) {
serializable = null;
}
c0 c0Var = (c0) obj;
return m.areEqual(this.title, c0Var.title) && m.areEqual(this.description, c0Var.description) && m.areEqual(this.iconRes, c0Var.iconRes) && m.areEqual(this.iconUri, c0Var.iconUri) && m.areEqual(this.iconTint, c0Var.iconTint) && m.areEqual(this.titleTextColor, c0Var.titleTextColor) && m.areEqual(this.titleEndIcon, c0Var.titleEndIcon);
}
public final Integer f() {
return this.titleEndIcon;
}
public final Integer g() {
return this.titleTextColor;
}
@Override // java.lang.Object
public int hashCode() {
String str = this.title;
List list = (List) serializable;
boolean z2 = getArgumentsOrDefault().getBoolean("simple_bottom_sheet_show_dividers");
TextView textView = g().f73c;
m.checkNotNullExpressionValue(textView, "binding.widgetSimpleBottomSheetSelectorPlaceholder");
textView.setText(string);
ConstraintLayout constraintLayout = g().b;
m.checkNotNullExpressionValue(constraintLayout, "binding.widgetSimpleBottomSheetSelectorHeader");
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
CharSequence charSequence = this.description;
int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
Integer num = this.iconRes;
int hashCode3 = (hashCode2 + (num != null ? num.hashCode() : 0)) * 31;
String str2 = this.iconUri;
int hashCode4 = (hashCode3 + (str2 != null ? str2.hashCode() : 0)) * 31;
Integer num2 = this.iconTint;
int hashCode5 = (hashCode4 + (num2 != null ? num2.hashCode() : 0)) * 31;
Integer num3 = this.titleTextColor;
int hashCode6 = (hashCode5 + (num3 != null ? num3.hashCode() : 0)) * 31;
Integer num4 = this.titleEndIcon;
if (num4 != null) {
i = num4.hashCode();
if (!(!(string == null || string.length() == 0))) {
i = 8;
}
constraintLayout.setVisibility(i);
if (list != null) {
MaxHeightRecyclerView maxHeightRecyclerView = g().d;
m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.widgetSimpleBottomSheetSelectorRecycler");
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(list, new c(this)));
MaxHeightRecyclerView maxHeightRecyclerView2 = g().d;
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
if (adapter != null) {
adapter.notifyDataSetChanged();
}
if (z2) {
SimpleRecyclerAdapter.Companion.addThemedDivider(maxHeightRecyclerView2);
}
}
return hashCode6 + i;
}
@Override // java.lang.Object
public String toString() {
StringBuilder R = a.R("SimpleBottomSheetItem(title=");
R.append(this.title);
R.append(", description=");
R.append(this.description);
R.append(", iconRes=");
R.append(this.iconRes);
R.append(", iconUri=");
R.append(this.iconUri);
R.append(", iconTint=");
R.append(this.iconTint);
R.append(", titleTextColor=");
R.append(this.titleTextColor);
R.append(", titleEndIcon=");
return a.E(R, this.titleEndIcon, ")");
}
}

View file

@ -1,18 +1,116 @@
package c.a.y;
import android.view.View;
import c.d.b.a.a;
import d0.z.d.m;
import java.io.Serializable;
/* compiled from: SelectorBottomSheet.kt */
public final class d0 implements View.OnClickListener {
public final /* synthetic */ e0 j;
public final class d0 implements Serializable {
private final CharSequence description;
private final Integer iconRes;
private final Integer iconTint;
private final String iconUri;
private final String title;
private final Integer titleEndIcon;
private final Integer titleTextColor;
public d0(e0 e0Var) {
this.j = e0Var;
public d0() {
this(null, null, null, null, null, null, null, 127);
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
e0 e0Var = this.j;
e0Var.a.c(e0Var.getAdapterPosition());
this.j.b.dismiss();
public d0(String str, CharSequence charSequence, Integer num, String str2, Integer num2, Integer num3, Integer num4, int i) {
str = (i & 1) != 0 ? null : str;
charSequence = (i & 2) != 0 ? null : charSequence;
num = (i & 4) != 0 ? null : num;
str2 = (i & 8) != 0 ? null : str2;
int i2 = i & 16;
num3 = (i & 32) != 0 ? null : num3;
int i3 = i & 64;
this.title = str;
this.description = charSequence;
this.iconRes = num;
this.iconUri = str2;
this.iconTint = null;
this.titleTextColor = num3;
this.titleEndIcon = null;
}
public final CharSequence a() {
return this.description;
}
public final Integer b() {
return this.iconRes;
}
public final Integer c() {
return this.iconTint;
}
public final String d() {
return this.iconUri;
}
public final String e() {
return this.title;
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof d0)) {
return false;
}
d0 d0Var = (d0) obj;
return m.areEqual(this.title, d0Var.title) && m.areEqual(this.description, d0Var.description) && m.areEqual(this.iconRes, d0Var.iconRes) && m.areEqual(this.iconUri, d0Var.iconUri) && m.areEqual(this.iconTint, d0Var.iconTint) && m.areEqual(this.titleTextColor, d0Var.titleTextColor) && m.areEqual(this.titleEndIcon, d0Var.titleEndIcon);
}
public final Integer f() {
return this.titleEndIcon;
}
public final Integer g() {
return this.titleTextColor;
}
@Override // java.lang.Object
public int hashCode() {
String str = this.title;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
CharSequence charSequence = this.description;
int hashCode2 = (hashCode + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
Integer num = this.iconRes;
int hashCode3 = (hashCode2 + (num != null ? num.hashCode() : 0)) * 31;
String str2 = this.iconUri;
int hashCode4 = (hashCode3 + (str2 != null ? str2.hashCode() : 0)) * 31;
Integer num2 = this.iconTint;
int hashCode5 = (hashCode4 + (num2 != null ? num2.hashCode() : 0)) * 31;
Integer num3 = this.titleTextColor;
int hashCode6 = (hashCode5 + (num3 != null ? num3.hashCode() : 0)) * 31;
Integer num4 = this.titleEndIcon;
if (num4 != null) {
i = num4.hashCode();
}
return hashCode6 + i;
}
@Override // java.lang.Object
public String toString() {
StringBuilder R = a.R("SimpleBottomSheetItem(title=");
R.append(this.title);
R.append(", description=");
R.append(this.description);
R.append(", iconRes=");
R.append(this.iconRes);
R.append(", iconUri=");
R.append(this.iconUri);
R.append(", iconTint=");
R.append(this.iconTint);
R.append(", titleTextColor=");
R.append(this.titleTextColor);
R.append(", titleEndIcon=");
return a.E(R, this.titleEndIcon, ")");
}
}

View file

@ -1,101 +1,18 @@
package c.a.y;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.drawable.DrawableCompat;
import c.a.i.d;
import c.a.k.b;
import com.discord.R;
import com.discord.utilities.color.ColorCompat;
import com.discord.utilities.images.MGImages;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.textview.MaterialTextView;
import d0.z.d.m;
import android.view.View;
/* compiled from: SelectorBottomSheet.kt */
public final class e0 extends SimpleRecyclerAdapter.ViewHolder<c0> {
public final i a;
public final DialogInterface b;
public final class e0 implements View.OnClickListener {
public final /* synthetic */ f0 j;
/* renamed from: c reason: collision with root package name */
public final d f244c;
/* JADX WARNING: Illegal instructions before constructor call */
public e0(i iVar, DialogInterface dialogInterface, d dVar) {
super(r0);
m.checkNotNullParameter(iVar, "onSelectedListener");
m.checkNotNullParameter(dialogInterface, "dialogInterface");
m.checkNotNullParameter(dVar, "itemBinding");
ConstraintLayout constraintLayout = dVar.a;
m.checkNotNullExpressionValue(constraintLayout, "itemBinding.root");
this.a = iVar;
this.b = dialogInterface;
this.f244c = dVar;
public e0(f0 f0Var) {
this.j = f0Var;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
public void bind(c0 c0Var) {
int i;
Drawable drawable;
c0 c0Var2 = c0Var;
m.checkNotNullParameter(c0Var2, "data");
MaterialTextView materialTextView = this.f244c.d;
m.checkNotNullExpressionValue(materialTextView, "itemBinding.selectComponentSheetItemTitle");
b.a(materialTextView, c0Var2.e());
MaterialTextView materialTextView2 = this.f244c.b;
m.checkNotNullExpressionValue(materialTextView2, "itemBinding.selectComponentSheetItemDescription");
ViewExtensions.setTextAndVisibilityBy(materialTextView2, c0Var2.a());
SimpleDraweeView simpleDraweeView = this.f244c.f80c;
m.checkNotNullExpressionValue(simpleDraweeView, "itemBinding.selectComponentSheetItemIcon");
int i2 = 0;
if (!((c0Var2.d() == null && c0Var2.b() == null) ? false : true)) {
i2 = 8;
}
simpleDraweeView.setVisibility(i2);
String d = c0Var2.d();
if (d != null) {
SimpleDraweeView simpleDraweeView2 = this.f244c.f80c;
m.checkNotNullExpressionValue(simpleDraweeView2, "itemBinding.selectComponentSheetItemIcon");
MGImages.setImage$default(simpleDraweeView2, d, R.dimen.emoji_size, R.dimen.emoji_size, true, null, null, 96, null);
} else {
Integer b = c0Var2.b();
if (b != null) {
this.f244c.f80c.setImageResource(b.intValue());
}
}
Integer c2 = c0Var2.c();
if (c2 != null) {
this.f244c.f80c.setColorFilter(c2.intValue());
}
MaterialTextView materialTextView3 = this.f244c.d;
materialTextView3.setText(c0Var2.e());
Integer g = c0Var2.g();
if (g != null) {
i = g.intValue();
} else {
m.checkNotNullExpressionValue(materialTextView3, "this");
i = ColorCompat.getThemedColor(materialTextView3, (int) R.attr.colorHeaderPrimary);
}
materialTextView3.setTextColor(i);
Integer f = c0Var2.f();
if (f != null) {
f.intValue();
Drawable drawable2 = ContextCompat.getDrawable(materialTextView3.getContext(), c0Var2.f().intValue());
if (drawable2 != null) {
MaterialTextView materialTextView4 = this.f244c.d;
m.checkNotNullExpressionValue(materialTextView4, "itemBinding.selectComponentSheetItemTitle");
DrawableCompat.setTint(drawable2, ColorCompat.getThemedColor(materialTextView4, (int) R.attr.colorHeaderPrimary));
drawable = drawable2;
com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null);
this.f244c.a.setOnClickListener(new d0(this));
}
}
drawable = null;
com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null);
this.f244c.a.setOnClickListener(new d0(this));
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
f0 f0Var = this.j;
f0Var.a.c(f0Var.getAdapterPosition());
this.j.b.dismiss();
}
}

View file

@ -19,7 +19,7 @@ public final class f extends DividerItemDecoration {
public final int b;
/* renamed from: c reason: collision with root package name */
public final int f245c;
public final int f244c;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public f(Context context, int i, int i2, int i3, int i4, int i5) {
@ -30,7 +30,7 @@ public final class f extends DividerItemDecoration {
m.checkNotNullParameter(context, "context");
this.a = i2;
this.b = i3;
this.f245c = i4;
this.f244c = i4;
Drawable drawable = ContextCompat.getDrawable(context, R.drawable.drawable_divider);
if (drawable != null) {
Drawable wrap = DrawableCompat.wrap(drawable);
@ -45,7 +45,7 @@ public final class f extends DividerItemDecoration {
m.checkNotNullParameter(recyclerView, "parent");
m.checkNotNullParameter(state, "state");
int paddingLeft = recyclerView.getPaddingLeft() + this.b;
int width = (recyclerView.getWidth() - recyclerView.getPaddingRight()) - this.f245c;
int width = (recyclerView.getWidth() - recyclerView.getPaddingRight()) - this.f244c;
Drawable drawable = getDrawable();
int childCount = recyclerView.getChildCount();
for (int i = 0; i < childCount; i++) {

View file

@ -1,30 +1,101 @@
package c.a.y;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.drawable.DrawableCompat;
import c.a.i.d;
import c.a.k.b;
import com.discord.R;
import com.discord.utilities.color.ColorCompat;
import com.discord.views.VoiceUserLimitView;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: VoiceUserLimitView.kt */
public final class f0 extends o implements Function0<Drawable> {
public final /* synthetic */ VoiceUserLimitView this$0;
import com.discord.utilities.images.MGImages;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.textview.MaterialTextView;
import d0.z.d.m;
/* compiled from: SelectorBottomSheet.kt */
public final class f0 extends SimpleRecyclerAdapter.ViewHolder<d0> {
public final i a;
public final DialogInterface b;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public f0(VoiceUserLimitView voiceUserLimitView) {
super(0);
this.this$0 = voiceUserLimitView;
/* renamed from: c reason: collision with root package name */
public final d f245c;
/* JADX WARNING: Illegal instructions before constructor call */
public f0(i iVar, DialogInterface dialogInterface, d dVar) {
super(r0);
m.checkNotNullParameter(iVar, "onSelectedListener");
m.checkNotNullParameter(dialogInterface, "dialogInterface");
m.checkNotNullParameter(dVar, "itemBinding");
ConstraintLayout constraintLayout = dVar.a;
m.checkNotNullExpressionValue(constraintLayout, "itemBinding.root");
this.a = iVar;
this.b = dialogInterface;
this.f245c = dVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Drawable mo1invoke() {
Drawable drawable = ContextCompat.getDrawable(this.this$0.getContext(), R.drawable.ic_videocam_white_12dp);
if (drawable != null) {
drawable.setTint(ColorCompat.getThemedColor(this.this$0.getContext(), (int) R.attr.colorInteractiveNormal));
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
public void bind(d0 d0Var) {
int i;
Drawable drawable;
d0 d0Var2 = d0Var;
m.checkNotNullParameter(d0Var2, "data");
MaterialTextView materialTextView = this.f245c.d;
m.checkNotNullExpressionValue(materialTextView, "itemBinding.selectComponentSheetItemTitle");
b.a(materialTextView, d0Var2.e());
MaterialTextView materialTextView2 = this.f245c.b;
m.checkNotNullExpressionValue(materialTextView2, "itemBinding.selectComponentSheetItemDescription");
ViewExtensions.setTextAndVisibilityBy(materialTextView2, d0Var2.a());
SimpleDraweeView simpleDraweeView = this.f245c.f80c;
m.checkNotNullExpressionValue(simpleDraweeView, "itemBinding.selectComponentSheetItemIcon");
int i2 = 0;
if (!((d0Var2.d() == null && d0Var2.b() == null) ? false : true)) {
i2 = 8;
}
return drawable;
simpleDraweeView.setVisibility(i2);
String d = d0Var2.d();
if (d != null) {
SimpleDraweeView simpleDraweeView2 = this.f245c.f80c;
m.checkNotNullExpressionValue(simpleDraweeView2, "itemBinding.selectComponentSheetItemIcon");
MGImages.setImage$default(simpleDraweeView2, d, R.dimen.emoji_size, R.dimen.emoji_size, true, null, null, 96, null);
} else {
Integer b = d0Var2.b();
if (b != null) {
this.f245c.f80c.setImageResource(b.intValue());
}
}
Integer c2 = d0Var2.c();
if (c2 != null) {
this.f245c.f80c.setColorFilter(c2.intValue());
}
MaterialTextView materialTextView3 = this.f245c.d;
materialTextView3.setText(d0Var2.e());
Integer g = d0Var2.g();
if (g != null) {
i = g.intValue();
} else {
m.checkNotNullExpressionValue(materialTextView3, "this");
i = ColorCompat.getThemedColor(materialTextView3, (int) R.attr.colorHeaderPrimary);
}
materialTextView3.setTextColor(i);
Integer f = d0Var2.f();
if (f != null) {
f.intValue();
Drawable drawable2 = ContextCompat.getDrawable(materialTextView3.getContext(), d0Var2.f().intValue());
if (drawable2 != null) {
MaterialTextView materialTextView4 = this.f245c.d;
m.checkNotNullExpressionValue(materialTextView4, "itemBinding.selectComponentSheetItemTitle");
DrawableCompat.setTint(drawable2, ColorCompat.getThemedColor(materialTextView4, (int) R.attr.colorHeaderPrimary));
drawable = drawable2;
com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null);
this.f245c.a.setOnClickListener(new e0(this));
}
}
drawable = null;
com.discord.utilities.drawable.DrawableCompat.setCompoundDrawablesCompat$default(materialTextView3, (Drawable) null, (Drawable) null, drawable, (Drawable) null, 11, (Object) null);
this.f245c.a.setOnClickListener(new e0(this));
}
}

View file

@ -1,23 +1,30 @@
package c.a.y;
import android.graphics.Bitmap;
import d0.z.d.m;
import android.graphics.drawable.Drawable;
import androidx.core.content.ContextCompat;
import com.discord.R;
import com.discord.utilities.color.ColorCompat;
import com.discord.views.VoiceUserLimitView;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: VoiceUserView.kt */
public final class g0 extends o implements Function2<Bitmap, String, Unit> {
public static final g0 j = new g0();
import kotlin.jvm.functions.Function0;
/* compiled from: VoiceUserLimitView.kt */
public final class g0 extends o implements Function0<Drawable> {
public final /* synthetic */ VoiceUserLimitView this$0;
public g0() {
super(2);
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public g0(VoiceUserLimitView voiceUserLimitView) {
super(0);
this.this$0 = voiceUserLimitView;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public Unit invoke(Bitmap bitmap, String str) {
m.checkNotNullParameter(bitmap, "<anonymous parameter 0>");
return Unit.a;
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Drawable mo1invoke() {
Drawable drawable = ContextCompat.getDrawable(this.this$0.getContext(), R.drawable.ic_videocam_white_12dp);
if (drawable != null) {
drawable.setTint(ColorCompat.getThemedColor(this.this$0.getContext(), (int) R.attr.colorInteractiveNormal));
}
return drawable;
}
}

View file

@ -1,23 +1,23 @@
package c.a.y;
import com.discord.views.VoiceUserView;
import android.graphics.Bitmap;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: VoiceUserView.kt */
public final class h0 extends o implements Function0<Boolean> {
public final /* synthetic */ VoiceUserView this$0;
public final class h0 extends o implements Function2<Bitmap, String, Unit> {
public static final h0 j = new h0();
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public h0(VoiceUserView voiceUserView) {
super(0);
this.this$0 = voiceUserView;
public h0() {
super(2);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Boolean mo1invoke() {
VoiceUserView voiceUserView = this.this$0;
return Boolean.valueOf(voiceUserView.m == VoiceUserView.a.RINGING && voiceUserView.f2270s);
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public Unit invoke(Bitmap bitmap, String str) {
m.checkNotNullParameter(bitmap, "<anonymous parameter 0>");
return Unit.a;
}
}

View file

@ -1,26 +1,23 @@
package c.a.y;
import android.graphics.Bitmap;
import c.f.j.q.a;
import com.discord.views.VoiceUserView;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: VoiceUserView.kt */
public final class i0 extends a {
public final /* synthetic */ VoiceUserView.c a;
public final class i0 extends o implements Function0<Boolean> {
public final /* synthetic */ VoiceUserView this$0;
public i0(VoiceUserView.c cVar) {
this.a = cVar;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public i0(VoiceUserView voiceUserView) {
super(0);
this.this$0 = voiceUserView;
}
@Override // c.f.j.q.a
public void process(Bitmap bitmap) {
if (bitmap != null) {
Function2<? super Bitmap, ? super String, Unit> function2 = this.a.this$0.p;
Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false);
m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)");
function2.invoke(copy, this.a.$newAvatarUrl);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Boolean mo1invoke() {
VoiceUserView voiceUserView = this.this$0;
return Boolean.valueOf(voiceUserView.m == VoiceUserView.a.RINGING && voiceUserView.f2271s);
}
}

View file

@ -0,0 +1,26 @@
package c.a.y;
import android.graphics.Bitmap;
import c.f.j.q.a;
import com.discord.views.VoiceUserView;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: VoiceUserView.kt */
public final class j0 extends a {
public final /* synthetic */ VoiceUserView.c a;
public j0(VoiceUserView.c cVar) {
this.a = cVar;
}
@Override // c.f.j.q.a
public void process(Bitmap bitmap) {
if (bitmap != null) {
Function2<? super Bitmap, ? super String, Unit> function2 = this.a.this$0.p;
Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false);
m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)");
function2.invoke(copy, this.a.$newAvatarUrl);
}
}
}

View file

@ -1,25 +0,0 @@
package c.a.y.j0;
import android.graphics.Point;
import d0.z.d.m;
import j0.k.b;
import java.util.concurrent.TimeUnit;
import kotlin.Unit;
import rx.Observable;
/* compiled from: AppVideoStreamRenderer.kt */
public final class a<T, R> implements b<Unit, Observable<? extends Point>> {
public final /* synthetic */ e j;
public a(e eVar) {
this.j = eVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public Observable<? extends Point> call(Unit unit) {
Observable<R> K = this.j.j.O(50, TimeUnit.MILLISECONDS).F(f.j).K();
m.checkNotNullExpressionValue(K, "frameResolutionSubject\n … .onBackpressureLatest()");
return K;
}
}

View file

@ -1,28 +0,0 @@
package c.a.y.j0;
import android.graphics.Point;
import com.discord.views.calls.AppVideoStreamRenderer;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: AppVideoStreamRenderer.kt */
public final class b extends o implements Function1<Point, Unit> {
public final /* synthetic */ AppVideoStreamRenderer this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(AppVideoStreamRenderer appVideoStreamRenderer) {
super(1);
this.this$0 = appVideoStreamRenderer;
}
/* 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(Point point) {
Point point2 = point;
m.checkNotNullParameter(point2, "resolution");
this.this$0.n.onNext(point2);
return Unit.a;
}
}

View file

@ -1,18 +1,25 @@
package c.a.y.k0;
import android.view.View;
import android.graphics.Point;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
/* compiled from: GuildChannelSideBarActionsView.kt */
public final class a implements View.OnClickListener {
public final /* synthetic */ Function1 j;
import j0.k.b;
import java.util.concurrent.TimeUnit;
import kotlin.Unit;
import rx.Observable;
/* compiled from: AppVideoStreamRenderer.kt */
public final class a<T, R> implements b<Unit, Observable<? extends Point>> {
public final /* synthetic */ e j;
public a(Function1 function1) {
this.j = function1;
public a(e eVar) {
this.j = eVar;
}
@Override // android.view.View.OnClickListener
public final /* synthetic */ void onClick(View view) {
m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)");
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public Observable<? extends Point> call(Unit unit) {
Observable<R> K = this.j.j.O(50, TimeUnit.MILLISECONDS).F(f.j).K();
m.checkNotNullExpressionValue(K, "frameResolutionSubject\n … .onBackpressureLatest()");
return K;
}
}

View file

@ -1,18 +1,28 @@
package c.a.y.k0;
import android.view.View;
import android.graphics.Point;
import com.discord.views.calls.AppVideoStreamRenderer;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: GuildChannelSideBarActionsView.kt */
public final class b implements View.OnClickListener {
public final /* synthetic */ Function1 j;
/* compiled from: AppVideoStreamRenderer.kt */
public final class b extends o implements Function1<Point, Unit> {
public final /* synthetic */ AppVideoStreamRenderer this$0;
public b(Function1 function1) {
this.j = function1;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(AppVideoStreamRenderer appVideoStreamRenderer) {
super(1);
this.this$0 = appVideoStreamRenderer;
}
@Override // android.view.View.OnClickListener
public final /* synthetic */ void onClick(View view) {
m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)");
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Point point) {
Point point2 = point;
m.checkNotNullParameter(point2, "resolution");
this.this$0.n.onNext(point2);
return Unit.a;
}
}

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import com.discord.views.calls.AppVideoStreamRenderer;
import d0.z.d.m;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import co.discord.media_engine.VideoStreamRenderer;
import java.util.HashMap;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import org.webrtc.RendererCommon;
import rx.subjects.BehaviorSubject;

View file

@ -1,7 +1,7 @@
package c.a.y.j0;
package c.a.y.k0;
import android.graphics.Point;
import c.a.y.j0.e;
import c.a.y.k0.e;
import j0.k.b;
/* compiled from: RxRendererEvents.kt */
public final class f<T, R> implements b<e.a, Point> {

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import android.graphics.Bitmap;
import com.discord.utilities.colors.RepresentativeColorsKt;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import com.discord.views.calls.StageCallSpeakerView;
import d0.z.d.m;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import com.discord.models.domain.ModelAuditLogEntry;
import com.discord.views.calls.StageCallSpeakerView;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import d0.z.d.m;
import d0.z.d.o;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import android.graphics.Bitmap;
import com.discord.utilities.colors.RepresentativeColorsKt;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import j0.k.b;
/* compiled from: VideoCallParticipantView.kt */

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import com.discord.views.calls.VideoCallParticipantView;
import d0.z.d.o;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import android.view.View;
import com.discord.views.calls.VideoCallParticipantView;

View file

@ -1,4 +1,4 @@
package c.a.y.j0;
package c.a.y.k0;
import android.graphics.Point;
import android.view.View;

View file

@ -1,24 +1,18 @@
package c.a.y.l0;
import android.view.View;
import android.widget.AdapterView;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
/* compiled from: ExperimentOverrideView.kt */
public final class a implements AdapterView.OnItemSelectedListener {
/* compiled from: GuildChannelSideBarActionsView.kt */
public final class a implements View.OnClickListener {
public final /* synthetic */ Function1 j;
public a(Function1 function1) {
this.j = function1;
}
@Override // android.widget.AdapterView.OnItemSelectedListener
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
if (j != -1) {
this.j.invoke(Integer.valueOf((int) j));
}
}
@Override // android.widget.AdapterView.OnItemSelectedListener
public void onNothingSelected(AdapterView<?> adapterView) {
@Override // android.view.View.OnClickListener
public final /* synthetic */ void onClick(View view) {
m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)");
}
}

View file

@ -1,17 +1,18 @@
package c.a.y.l0;
import android.view.View;
import kotlin.jvm.functions.Function0;
/* compiled from: ExperimentOverrideView.kt */
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
/* compiled from: GuildChannelSideBarActionsView.kt */
public final class b implements View.OnClickListener {
public final /* synthetic */ Function0 j;
public final /* synthetic */ Function1 j;
public b(Function0 function0) {
this.j = function0;
public b(Function1 function1) {
this.j = function1;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.j.mo1invoke();
public final /* synthetic */ void onClick(View view) {
m.checkNotNullExpressionValue(this.j.invoke(view), "invoke(...)");
}
}

View file

@ -1,26 +1,24 @@
package c.a.y.m0;
import android.view.View;
import com.discord.utilities.billing.GooglePlayInAppSku;
import com.discord.views.premium.GiftSelectView;
import kotlin.Unit;
import android.widget.AdapterView;
import kotlin.jvm.functions.Function1;
/* compiled from: GiftSelectView.kt */
public final class a implements View.OnClickListener {
public final /* synthetic */ GiftSelectView j;
/* compiled from: ExperimentOverrideView.kt */
public final class a implements AdapterView.OnItemSelectedListener {
public final /* synthetic */ Function1 j;
public a(GiftSelectView giftSelectView) {
this.j = giftSelectView;
public a(Function1 function1) {
this.j = function1;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function1<? super GooglePlayInAppSku, Unit> function1;
GiftSelectView giftSelectView = this.j;
GooglePlayInAppSku googlePlayInAppSku = giftSelectView.l;
if (!(googlePlayInAppSku == null || (function1 = giftSelectView.k) == null)) {
function1.invoke(googlePlayInAppSku);
@Override // android.widget.AdapterView.OnItemSelectedListener
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
if (j != -1) {
this.j.invoke(Integer.valueOf((int) j));
}
giftSelectView.j.f1863c.setOnClickListener(null);
}
@Override // android.widget.AdapterView.OnItemSelectedListener
public void onNothingSelected(AdapterView<?> adapterView) {
}
}

View file

@ -0,0 +1,17 @@
package c.a.y.m0;
import android.view.View;
import kotlin.jvm.functions.Function0;
/* compiled from: ExperimentOverrideView.kt */
public final class b implements View.OnClickListener {
public final /* synthetic */ Function0 j;
public b(Function0 function0) {
this.j = function0;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.j.mo1invoke();
}
}

View file

@ -1,5 +1,26 @@
package c.a.y.n0;
/* compiled from: SegmentedControlSegment.kt */
public interface a {
void a(boolean z2);
import android.view.View;
import com.discord.utilities.billing.GooglePlayInAppSku;
import com.discord.views.premium.GiftSelectView;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: GiftSelectView.kt */
public final class a implements View.OnClickListener {
public final /* synthetic */ GiftSelectView j;
public a(GiftSelectView giftSelectView) {
this.j = giftSelectView;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function1<? super GooglePlayInAppSku, Unit> function1;
GiftSelectView giftSelectView = this.j;
GooglePlayInAppSku googlePlayInAppSku = giftSelectView.l;
if (!(googlePlayInAppSku == null || (function1 = giftSelectView.k) == null)) {
function1.invoke(googlePlayInAppSku);
}
giftSelectView.j.f1864c.setOnClickListener(null);
}
}

View file

@ -1,51 +1,5 @@
package c.a.y.o0;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import c.a.i.a5;
import c.a.y.o0.d;
import com.discord.R;
import com.discord.utilities.extensions.SimpleDraweeViewExtensionsKt;
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
import com.facebook.drawee.view.SimpleDraweeView;
import d0.z.d.m;
/* compiled from: SpeakersViewHolder.kt */
public final class a extends MGRecyclerViewHolder<c, d> {
public final a5 a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(c cVar) {
super((int) R.layout.widget_discovery_stage_card_speaker, cVar);
m.checkNotNullParameter(cVar, "adapter");
View view = this.itemView;
int i = R.id.discovery_stage_card_speaker_avatar;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.discovery_stage_card_speaker_avatar);
if (simpleDraweeView != null) {
i = R.id.discovery_stage_card_speaker_name;
TextView textView = (TextView) view.findViewById(R.id.discovery_stage_card_speaker_name);
if (textView != null) {
a5 a5Var = new a5((LinearLayout) view, simpleDraweeView, textView);
m.checkNotNullExpressionValue(a5Var, "WidgetDiscoveryStageCard…kerBinding.bind(itemView)");
this.a = a5Var;
return;
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [int, java.lang.Object] */
@Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder
public void onConfigure(int i, d dVar) {
d dVar2 = dVar;
m.checkNotNullParameter(dVar2, "data");
super.onConfigure(i, dVar2);
d.a aVar = (d.a) dVar2;
SimpleDraweeView simpleDraweeView = this.a.b;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.discoveryStageCardSpeakerAvatar");
SimpleDraweeViewExtensionsKt.setAvatar$default(simpleDraweeView, aVar.l, false, R.dimen.avatar_size_medium, aVar.m, 2, null);
TextView textView = this.a.f65c;
m.checkNotNullExpressionValue(textView, "binding.discoveryStageCardSpeakerName");
textView.setText(aVar.n);
}
/* compiled from: SegmentedControlSegment.kt */
public interface a {
void a(boolean z2);
}

View file

@ -1,21 +1,51 @@
package c.a.y.p0;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: StepsView.kt */
public final class a extends o implements Function1<Integer, Unit> {
public static final a j = new a();
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import c.a.i.a5;
import c.a.y.p0.d;
import com.discord.R;
import com.discord.utilities.extensions.SimpleDraweeViewExtensionsKt;
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;
import com.facebook.drawee.view.SimpleDraweeView;
import d0.z.d.m;
/* compiled from: SpeakersViewHolder.kt */
public final class a extends MGRecyclerViewHolder<c, d> {
public final a5 a;
public a() {
super(1);
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(c cVar) {
super((int) R.layout.widget_discovery_stage_card_speaker, cVar);
m.checkNotNullParameter(cVar, "adapter");
View view = this.itemView;
int i = R.id.discovery_stage_card_speaker_avatar;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.discovery_stage_card_speaker_avatar);
if (simpleDraweeView != null) {
i = R.id.discovery_stage_card_speaker_name;
TextView textView = (TextView) view.findViewById(R.id.discovery_stage_card_speaker_name);
if (textView != null) {
a5 a5Var = new a5((LinearLayout) view, simpleDraweeView, textView);
m.checkNotNullExpressionValue(a5Var, "WidgetDiscoveryStageCard…kerBinding.bind(itemView)");
this.a = a5Var;
return;
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
}
/* 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(Integer num) {
num.intValue();
return Unit.a;
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [int, java.lang.Object] */
@Override // com.discord.utilities.mg_recycler.MGRecyclerViewHolder
public void onConfigure(int i, d dVar) {
d dVar2 = dVar;
m.checkNotNullParameter(dVar2, "data");
super.onConfigure(i, dVar2);
d.a aVar = (d.a) dVar2;
SimpleDraweeView simpleDraweeView = this.a.b;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.discoveryStageCardSpeakerAvatar");
SimpleDraweeViewExtensionsKt.setAvatar$default(simpleDraweeView, aVar.l, false, R.dimen.avatar_size_medium, aVar.m, 2, null);
TextView textView = this.a.f65c;
m.checkNotNullExpressionValue(textView, "binding.discoveryStageCardSpeakerName");
textView.setText(aVar.n);
}
}

View file

@ -1,10 +1,10 @@
package c.a.y.o0;
package c.a.y.p0;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import c.a.i.z4;
import c.a.y.o0.d;
import c.a.y.p0.d;
import c.d.b.a.a;
import com.discord.R;
import com.discord.utilities.mg_recycler.MGRecyclerViewHolder;

View file

@ -1,4 +1,4 @@
package c.a.y.o0;
package c.a.y.p0;
import android.view.ViewGroup;
import androidx.recyclerview.widget.GridLayoutManager;

View file

@ -1,4 +1,4 @@
package c.a.y.o0;
package c.a.y.p0;
import com.discord.models.member.GuildMember;
import com.discord.models.user.User;

View file

@ -1,16 +1,21 @@
package c.a.y.q0;
import com.discord.utilities.file.DownloadUtils;
import kotlin.Pair;
import rx.functions.Func2;
/* compiled from: StickerView.kt */
public final class a<T1, T2, R> implements Func2<DownloadUtils.DownloadState, Integer, Pair<? extends DownloadUtils.DownloadState, ? extends Integer>> {
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: StepsView.kt */
public final class a extends o implements Function1<Integer, Unit> {
public static final a j = new a();
public a() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // rx.functions.Func2
public Pair<? extends DownloadUtils.DownloadState, ? extends Integer> call(DownloadUtils.DownloadState downloadState, Integer num) {
return new Pair<>(downloadState, num);
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Integer num) {
num.intValue();
return Unit.a;
}
}

View file

@ -1,26 +1,16 @@
package c.a.y.r0;
import com.discord.views.typing.TypingDots;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: TypingDots.kt */
public final class a extends o implements Function0<Unit> {
public final /* synthetic */ TypingDots this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(TypingDots typingDots) {
super(0);
this.this$0 = typingDots;
}
import com.discord.utilities.file.DownloadUtils;
import kotlin.Pair;
import rx.functions.Func2;
/* compiled from: StickerView.kt */
public final class a<T1, T2, R> implements Func2<DownloadUtils.DownloadState, Integer, Pair<? extends DownloadUtils.DownloadState, ? extends Integer>> {
public static final a j = new a();
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Unit mo1invoke() {
if (this.this$0.isAttachedToWindow()) {
this.this$0.a(true);
}
return Unit.a;
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // rx.functions.Func2
public Pair<? extends DownloadUtils.DownloadState, ? extends Integer> call(DownloadUtils.DownloadState downloadState, Integer num) {
return new Pair<>(downloadState, num);
}
}

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import com.discord.views.sticker.StickerView;
import d0.z.d.m;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import android.view.View;
import com.discord.utilities.file.DownloadUtils;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import android.widget.ImageView;
import com.discord.api.sticker.BaseSticker;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import com.discord.utilities.file.DownloadUtils;
import kotlin.Pair;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import com.discord.views.sticker.StickerView;
import d0.z.d.m;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import android.view.View;
import com.discord.rlottie.RLottieDrawable;

View file

@ -1,4 +1,4 @@
package c.a.y.q0;
package c.a.y.r0;
import android.content.Context;
import android.widget.ImageView;

View file

@ -1,25 +1,26 @@
package c.a.y.s0;
import android.graphics.Bitmap;
import com.discord.views.user.UserAvatarPresenceView;
import d0.z.d.m;
import com.discord.views.typing.TypingDots;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: UserAvatarPresenceView.kt */
public final class a extends c.f.j.q.a {
public final /* synthetic */ UserAvatarPresenceView.c a;
import kotlin.jvm.functions.Function0;
/* compiled from: TypingDots.kt */
public final class a extends o implements Function0<Unit> {
public final /* synthetic */ TypingDots this$0;
public a(UserAvatarPresenceView.c cVar) {
this.a = cVar;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(TypingDots typingDots) {
super(0);
this.this$0 = typingDots;
}
@Override // c.f.j.q.a
public void process(Bitmap bitmap) {
if (bitmap != null) {
Function2<? super Bitmap, ? super String, Unit> function2 = this.a.this$0.m;
Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false);
m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)");
function2.invoke(copy, this.a.$iconUrl);
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Unit mo1invoke() {
if (this.this$0.isAttachedToWindow()) {
this.this$0.a(true);
}
return Unit.a;
}
}

View file

@ -0,0 +1,25 @@
package c.a.y.t0;
import android.graphics.Bitmap;
import com.discord.views.user.UserAvatarPresenceView;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
/* compiled from: UserAvatarPresenceView.kt */
public final class a extends c.f.j.q.a {
public final /* synthetic */ UserAvatarPresenceView.c a;
public a(UserAvatarPresenceView.c cVar) {
this.a = cVar;
}
@Override // c.f.j.q.a
public void process(Bitmap bitmap) {
if (bitmap != null) {
Function2<? super Bitmap, ? super String, Unit> function2 = this.a.this$0.m;
Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false);
m.checkNotNullExpressionValue(copy, "bitmap.copy(Bitmap.Config.ARGB_8888, false)");
function2.invoke(copy, this.a.$iconUrl);
}
}
}

View file

@ -1,4 +1,4 @@
package c.a.y.s0;
package c.a.y.t0;
import android.graphics.Bitmap;
import c.f.j.q.a;

View file

@ -98,7 +98,7 @@ public class a extends AppCompatDialogFragment {
}
} else if (i == 2) {
FlexInputFragment flexInputFragment = (FlexInputFragment) ((Fragment) this.k);
FlexInputViewModel flexInputViewModel = flexInputFragment.f2541s;
FlexInputViewModel flexInputViewModel = flexInputFragment.f2544s;
if (flexInputViewModel != null) {
flexInputViewModel.onSendButtonClicked(flexInputFragment.o);
}
@ -418,7 +418,7 @@ public class a extends AppCompatDialogFragment {
flexInputFragment.k();
eVar.mo1invoke();
} catch (UninitializedPropertyAccessException unused) {
flexInputFragment.f2542x.add(eVar);
flexInputFragment.f2545x.add(eVar);
}
FloatingActionButton floatingActionButton2 = this.m;
if (floatingActionButton2 != null) {

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).f2541s) != null) {
if ((parentFragment instanceof FlexInputFragment) && (flexInputViewModel = ((FlexInputFragment) parentFragment).f2544s) != 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.f2541s;
FlexInputViewModel flexInputViewModel = this.a.f2544s;
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.f2541s) != null) {
if (this.j.isAdded() && !this.j.isHidden() && (flexInputViewModel = this.j.f2544s) != null) {
f.M0(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.f2541s;
FlexInputViewModel flexInputViewModel = this.this$0.f2544s;
if (flexInputViewModel != null) {
f.M0(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.f2541s;
FlexInputViewModel flexInputViewModel = this.j.f2544s;
if (flexInputViewModel == null) {
return false;
}

View file

@ -17,7 +17,7 @@ public final class m implements SelectionCoordinator.ItemSelectionListener<Attac
public void onItemSelected(Attachment<? extends Object> attachment) {
d0.z.d.m.checkNotNullParameter(attachment, "item");
FlexInputFragment flexInputFragment = this.a;
FlexInputViewModel flexInputViewModel = flexInputFragment.f2541s;
FlexInputViewModel flexInputViewModel = flexInputFragment.f2544s;
if (flexInputViewModel != null) {
flexInputViewModel.onAttachmentsUpdated(flexInputFragment.b().getAttachments());
}
@ -28,7 +28,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.f2541s;
FlexInputViewModel flexInputViewModel = flexInputFragment.f2544s;
if (flexInputViewModel != null) {
flexInputViewModel.onAttachmentsUpdated(flexInputFragment.b().getAttachments());
}

View file

@ -1197,7 +1197,7 @@ public class d {
function1.invoke(renderContext);
if (!(objArr.length == 0)) {
if (!(!renderContext.a.isEmpty())) {
renderContext.f2162c = k.toList(objArr);
renderContext.f2163c = k.toList(objArr);
} else {
throw new IllegalArgumentException("must provide named arguments OR formatArgs, not both.");
}

View file

@ -77,8 +77,8 @@ public abstract class c {
q(fVar, replace2, arrayList, w.i);
n(fVar, replace2, arrayList, w.g);
q(fVar, replace2, arrayList, w.g);
n(fVar, replace2, arrayList, w.f2973c);
q(fVar, replace2, arrayList, w.f2973c);
n(fVar, replace2, arrayList, w.f2976c);
q(fVar, replace2, arrayList, w.f2976c);
o(fVar, replace2, arrayList);
cls2 = b.a(v, fVar.b());
}

View file

@ -311,13 +311,13 @@ public class c extends AbstractDraweeController<CloseableReference<c.f.j.j.c>, I
ImageRequest imageRequest = this.I;
ImageRequest imageRequest2 = this.K;
ImageRequest[] imageRequestArr = this.J;
if (imageRequest == null || (uri = imageRequest.f2331c) == null) {
if (imageRequest == null || (uri = imageRequest.f2334c) == null) {
if (!(imageRequestArr == null || imageRequestArr.length <= 0 || imageRequestArr[0] == null)) {
ImageRequest imageRequest3 = imageRequestArr[0];
uri = imageRequest3 != null ? imageRequest3.f2331c : null;
uri = imageRequest3 != null ? imageRequest3.f2334c : null;
}
if (imageRequest2 != null) {
return imageRequest2.f2331c;
return imageRequest2.f2334c;
}
return null;
}

View file

@ -85,7 +85,7 @@ public class d extends AbstractDraweeControllerBuilder<d, ImageRequest, Closeabl
c.f.j.r.b.b();
try {
DraweeController draweeController = this.n;
String valueOf = String.valueOf(AbstractDraweeControllerBuilder.f2318c.getAndIncrement());
String valueOf = String.valueOf(AbstractDraweeControllerBuilder.f2321c.getAndIncrement());
if (draweeController instanceof c) {
cVar = (c) draweeController;
} else {

View file

@ -30,7 +30,7 @@ public class b extends g implements f0 {
if (!draweeHolder.a) {
a.m(c.class, "%x: Draw requested for a non-attached controller %x. %s", Integer.valueOf(System.identityHashCode(draweeHolder)), Integer.valueOf(System.identityHashCode(draweeHolder.e)), draweeHolder.toString());
draweeHolder.b = true;
draweeHolder.f2322c = true;
draweeHolder.f2325c = true;
draweeHolder.b();
}
}

View file

@ -155,7 +155,7 @@ public class f {
Objects.requireNonNull((z) this.g);
Executor executor = z.g.a;
if (eVar instanceof Boolean) {
return ((Boolean) eVar).booleanValue() ? z.g.f3062c : z.g.d;
return ((Boolean) eVar).booleanValue() ? z.g.f3065c : z.g.d;
}
z.g<e> gVar = new z.g<>();
if (gVar.h(eVar)) {

View file

@ -9,11 +9,11 @@ public class n implements i {
public static n a;
public CacheKey a(ImageRequest imageRequest, Object obj) {
return new b(imageRequest.f2331c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, null, null, obj);
return new b(imageRequest.f2334c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, null, null, obj);
}
public CacheKey b(ImageRequest imageRequest, Object obj) {
return new f(imageRequest.f2331c.toString());
return new f(imageRequest.f2334c.toString());
}
public CacheKey c(ImageRequest imageRequest, Object obj) {
@ -28,6 +28,6 @@ public class n implements i {
cacheKey = null;
str = null;
}
return new b(imageRequest.f2331c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, cacheKey, str, obj);
return new b(imageRequest.f2334c.toString(), imageRequest.i, imageRequest.j, imageRequest.h, cacheKey, str, obj);
}
}

View file

@ -262,7 +262,7 @@ public class v<K, V> implements m<K, V>, w<K, V> {
MemoryCacheParams memoryCacheParams = this.f;
int min = Math.min(memoryCacheParams.d, memoryCacheParams.b - e());
MemoryCacheParams memoryCacheParams2 = this.f;
p = p(min, Math.min(memoryCacheParams2.f2324c, memoryCacheParams2.a - f()));
p = p(min, Math.min(memoryCacheParams2.f2327c, memoryCacheParams2.a - f()));
h(p);
}
i(p);

View file

@ -17,7 +17,7 @@ public class c implements f {
public h a(DiskCacheConfig diskCacheConfig) {
Objects.requireNonNull(this.a);
e eVar = new e(diskCacheConfig.a, diskCacheConfig.f2312c, diskCacheConfig.b, diskCacheConfig.h);
e eVar = new e(diskCacheConfig.a, diskCacheConfig.f2315c, diskCacheConfig.b, diskCacheConfig.h);
ExecutorService newSingleThreadExecutor = Executors.newSingleThreadExecutor();
return new d(eVar, diskCacheConfig.g, new d.c(diskCacheConfig.f, diskCacheConfig.e, diskCacheConfig.d), diskCacheConfig.i, diskCacheConfig.h, diskCacheConfig.j, newSingleThreadExecutor, false);
}

View file

@ -84,7 +84,7 @@ public class h {
ImageRequest.c f = ImageRequest.c.f(imageRequest.m, cVar);
String valueOf = String.valueOf(this.i.getAndIncrement());
if (!imageRequest.f) {
if (c.f.d.l.b.e(imageRequest.f2331c)) {
if (c.f.d.l.b.e(imageRequest.f2334c)) {
z2 = false;
c1 c1Var = new c1(imageRequest, valueOf, str, b0Var, obj, f, false, z2, imageRequest.l, this.l);
c.f.j.r.b.b();

View file

@ -153,7 +153,7 @@ public class p {
try {
b.b();
Objects.requireNonNull(imageRequest);
Uri uri = imageRequest.f2331c;
Uri uri = imageRequest.f2334c;
d.y(uri, "Uri is null.");
int i = imageRequest.d;
if (i != 0) {
@ -247,7 +247,7 @@ public class p {
}
}
}
if (this.m && imageRequest.f2332s > 0) {
if (this.m && imageRequest.f2335s > 0) {
synchronized (this) {
oVar = new o(r0Var, this.b.j.g());
}

View file

@ -19,7 +19,7 @@ public class a1 extends g0 {
@Override // c.f.j.p.g0
public e d(ImageRequest imageRequest) throws IOException {
return c(this.f479c.openInputStream(imageRequest.f2331c), -1);
return c(this.f479c.openInputStream(imageRequest.f2334c), -1);
}
@Override // c.f.j.p.g0

View file

@ -45,7 +45,7 @@ public class d implements w0 {
HashMap hashMap = new HashMap();
this.h = hashMap;
hashMap.put(ModelAuditLogEntry.CHANGE_KEY_ID, str);
hashMap.put("uri_source", imageRequest == null ? "null-request" : imageRequest.f2331c);
hashMap.put("uri_source", imageRequest == null ? "null-request" : imageRequest.f2334c);
this.d = str2;
this.e = y0Var;
this.f = obj;

View file

@ -25,10 +25,10 @@ public class d0 extends g0 {
@Override // c.f.j.p.g0
public e d(ImageRequest imageRequest) throws IOException {
int i;
InputStream open = this.f485c.open(imageRequest.f2331c.getPath().substring(1), 2);
InputStream open = this.f485c.open(imageRequest.f2334c.getPath().substring(1), 2);
AssetFileDescriptor assetFileDescriptor = null;
try {
assetFileDescriptor = this.f485c.openFd(imageRequest.f2331c.getPath().substring(1));
assetFileDescriptor = this.f485c.openFd(imageRequest.f2334c.getPath().substring(1));
i = (int) assetFileDescriptor.getLength();
} catch (IOException unused) {
i = -1;

View file

@ -28,7 +28,7 @@ public class e0 extends g0 {
@Override // c.f.j.p.g0
public e d(ImageRequest imageRequest) throws IOException {
InputStream inputStream;
Uri uri = imageRequest.f2331c;
Uri uri = imageRequest.f2334c;
Uri uri2 = b.a;
boolean z2 = false;
if (uri.getPath() != null && b.c(uri) && "com.android.contacts".equals(uri.getAuthority()) && !uri.getPath().startsWith(b.a.getPath())) {

View file

@ -42,7 +42,7 @@ public class f0 extends g0 implements j1<e> {
c.f.j.d.e eVar;
Cursor query;
e f2;
Uri uri = imageRequest.f2331c;
Uri uri = imageRequest.f2334c;
if (!b.b(uri) || (eVar = imageRequest.i) == null || (query = this.g.query(uri, f487c, null, null, null)) == null) {
return null;
}

View file

@ -25,10 +25,10 @@ public class i0 extends g0 {
@Override // c.f.j.p.g0
public e d(ImageRequest imageRequest) throws IOException {
int i;
InputStream openRawResource = this.f494c.openRawResource(Integer.parseInt(imageRequest.f2331c.getPath().substring(1)));
InputStream openRawResource = this.f494c.openRawResource(Integer.parseInt(imageRequest.f2334c.getPath().substring(1)));
AssetFileDescriptor assetFileDescriptor = null;
try {
assetFileDescriptor = this.f494c.openRawResourceFd(Integer.parseInt(imageRequest.f2331c.getPath().substring(1)));
assetFileDescriptor = this.f494c.openRawResourceFd(Integer.parseInt(imageRequest.f2334c.getPath().substring(1)));
i = (int) assetFileDescriptor.getLength();
} catch (Resources.NotFoundException unused) {
i = -1;

View file

@ -83,7 +83,7 @@ public class j0 implements v0<CloseableReference<c>> {
bitmap = ThumbnailUtils.createVideoThumbnail(str, i);
} else {
try {
ParcelFileDescriptor openFileDescriptor = j0.this.b.openFileDescriptor(this.q.f2331c, "r");
ParcelFileDescriptor openFileDescriptor = j0.this.b.openFileDescriptor(this.q.f2334c, "r");
MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();
mediaMetadataRetriever.setDataSource(openFileDescriptor.getFileDescriptor());
bitmap = mediaMetadataRetriever.getFrameAtTime(-1);
@ -141,7 +141,7 @@ public class j0 implements v0<CloseableReference<c>> {
String str;
Uri uri;
Objects.requireNonNull(j0Var);
Uri uri2 = imageRequest.f2331c;
Uri uri2 = imageRequest.f2334c;
if (c.f.d.l.b.d(uri2)) {
return imageRequest.a().getPath();
}

View file

@ -18,7 +18,7 @@ public class m extends g0 {
@Override // c.f.j.p.g0
public e d(ImageRequest imageRequest) throws IOException {
boolean z2;
String uri = imageRequest.f2331c.toString();
String uri = imageRequest.f2334c.toString();
d.i(Boolean.valueOf(uri.substring(0, 5).equals("data:")));
int indexOf = uri.indexOf(44);
String substring = uri.substring(indexOf + 1, uri.length());

View file

@ -141,7 +141,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
w0Var.d("image_format", eVar.l.b);
if (n.this.f || !b.m(i2, 16)) {
ImageRequest e2 = this.a.e();
if (n.this.g || !c.f.d.l.b.e(e2.f2331c)) {
if (n.this.g || !c.f.d.l.b.e(e2.f2334c)) {
eVar.q = c.c.a.a0.d.Z(e2.j, e2.i, eVar, this.b);
}
}
@ -179,7 +179,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
synchronized (c0Var) {
j = c0Var.j - c0Var.i;
}
String valueOf2 = String.valueOf(cVar2.f503c.e().f2331c);
String valueOf2 = String.valueOf(cVar2.f503c.e().f2334c);
int f = (z3 || m) ? eVar.f() : cVar2.o(eVar);
i p = (z3 || m) ? h.a : cVar2.p();
cVar2.d.e(cVar2.f503c, "DecodeProducer");
@ -439,7 +439,7 @@ public class n implements v0<CloseableReference<c.f.j.j.c>> {
public void b(l<CloseableReference<c.f.j.j.c>> lVar, w0 w0Var) {
try {
c.f.j.r.b.b();
this.e.b(!c.f.d.l.b.e(w0Var.e().f2331c) ? new a(this, lVar, w0Var, this.h, this.i) : new b(this, lVar, w0Var, new d(this.a), this.d, this.h, this.i), w0Var);
this.e.b(!c.f.d.l.b.e(w0Var.e().f2334c) ? new a(this, lVar, w0Var, this.h, this.i) : new b(this, lVar, w0Var, new d(this.a), this.d, this.h, this.i), w0Var);
c.f.j.r.b.b();
} catch (Throwable th) {
c.f.j.r.b.b();

View file

@ -36,7 +36,7 @@ public class o implements v0<CloseableReference<c>> {
ImageRequest e = w0Var.e();
ScheduledExecutorService scheduledExecutorService = this.b;
if (scheduledExecutorService != null) {
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2332s, TimeUnit.MILLISECONDS);
scheduledExecutorService.schedule(new a(lVar, w0Var), (long) e.f2335s, TimeUnit.MILLISECONDS);
} else {
this.a.b(lVar, w0Var);
}

View file

@ -64,7 +64,7 @@ public class o0 implements c<e, Void> {
this.f505c.b(eVar2, 9);
} else {
this.f505c.b(eVar2, 8);
ImageRequestBuilder b = ImageRequestBuilder.b(e.f2331c);
ImageRequestBuilder b = ImageRequestBuilder.b(e.f2334c);
b.e = e.h;
b.o = e.k;
b.f = e.b;
@ -73,11 +73,11 @@ public class o0 implements c<e, Void> {
b.j = e.q;
b.g = e.f;
b.i = e.l;
b.f2333c = e.i;
b.f2336c = e.i;
b.n = e.r;
b.d = e.j;
b.m = e.p;
b.p = e.f2332s;
b.p = e.f2335s;
int i = f2 - 1;
if (i >= 0) {
z3 = true;

View file

@ -185,7 +185,7 @@ public class q0 implements v0<e> {
return;
}
w0Var.o().e(w0Var, "PartialDiskCacheProducer");
Uri build = e.f2331c.buildUpon().appendQueryParameter("fresco_partial", "true").build();
Uri build = e.f2334c.buildUpon().appendQueryParameter("fresco_partial", "true").build();
i iVar = this.b;
w0Var.b();
Objects.requireNonNull((n) iVar);

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