24 lines
1 KiB
Java
24 lines
1 KiB
Java
package com.discord.widgets.channels;
|
|
|
|
import android.media.MediaPlayer;
|
|
import android.widget.VideoView;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetThreadOnboarding.kt */
|
|
public final class WidgetThreadOnboarding$configureMedia$2 implements MediaPlayer.OnPreparedListener {
|
|
public final /* synthetic */ WidgetThreadOnboarding this$0;
|
|
|
|
public WidgetThreadOnboarding$configureMedia$2(WidgetThreadOnboarding widgetThreadOnboarding) {
|
|
this.this$0 = widgetThreadOnboarding;
|
|
}
|
|
|
|
@Override // android.media.MediaPlayer.OnPreparedListener
|
|
public final void onPrepared(MediaPlayer mediaPlayer) {
|
|
m.checkNotNullParameter(mediaPlayer, "mp");
|
|
mediaPlayer.start();
|
|
mediaPlayer.setLooping(true);
|
|
VideoView videoView = WidgetThreadOnboarding.access$getBinding$p(this.this$0).f1998c;
|
|
m.checkNotNullExpressionValue(videoView, "binding.threadOnboardingVideo");
|
|
videoView.getLayoutParams().height = -2;
|
|
WidgetThreadOnboarding.access$getBinding$p(this.this$0).f1998c.requestLayout();
|
|
}
|
|
}
|