forked from Juby210/discord-jadx
57 lines
2.7 KiB
Java
57 lines
2.7 KiB
Java
package c.a.y.k0;
|
|
|
|
import android.graphics.Point;
|
|
import android.view.View;
|
|
import android.widget.ProgressBar;
|
|
import android.widget.TextView;
|
|
import com.discord.views.calls.AppVideoStreamRenderer;
|
|
import com.discord.views.calls.VideoCallParticipantView;
|
|
import com.facebook.drawee.view.SimpleDraweeView;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: VideoCallParticipantView.kt */
|
|
public final class o extends d0.z.d.o implements Function1<Point, Unit> {
|
|
public final /* synthetic */ VideoCallParticipantView this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public o(VideoCallParticipantView videoCallParticipantView) {
|
|
super(1);
|
|
this.this$0 = videoCallParticipantView;
|
|
}
|
|
|
|
/* 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, "it");
|
|
VideoCallParticipantView videoCallParticipantView = this.this$0;
|
|
AppVideoStreamRenderer appVideoStreamRenderer = videoCallParticipantView.j.q;
|
|
m.checkNotNullExpressionValue(appVideoStreamRenderer, "binding.participantVideoStreamRenderer");
|
|
boolean z2 = false;
|
|
appVideoStreamRenderer.setVisibility(0);
|
|
View view = videoCallParticipantView.j.f77c;
|
|
m.checkNotNullExpressionValue(view, "binding.participantBgLetterbox");
|
|
view.setVisibility(0);
|
|
ProgressBar progressBar = videoCallParticipantView.j.p;
|
|
m.checkNotNullExpressionValue(progressBar, "binding.participantVideoLoadingIndicator");
|
|
progressBar.setVisibility(8);
|
|
SimpleDraweeView simpleDraweeView = videoCallParticipantView.j.m;
|
|
m.checkNotNullExpressionValue(simpleDraweeView, "binding.participantStreamPreviewImage");
|
|
simpleDraweeView.setVisibility(8);
|
|
TextView textView = videoCallParticipantView.j.n;
|
|
m.checkNotNullExpressionValue(textView, "binding.participantStreamPreviewText");
|
|
textView.setVisibility(8);
|
|
if ((point2.x > point2.y) != (videoCallParticipantView.getWidth() > videoCallParticipantView.getHeight())) {
|
|
z2 = true;
|
|
}
|
|
if (videoCallParticipantView.k && z2) {
|
|
int height = videoCallParticipantView.getHeight();
|
|
videoCallParticipantView.getLayoutParams().height = videoCallParticipantView.getWidth();
|
|
videoCallParticipantView.getLayoutParams().width = height;
|
|
}
|
|
return Unit.a;
|
|
}
|
|
}
|