2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.media;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.FrameLayout;
|
|
|
|
import android.widget.ProgressBar;
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.R;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.databinding.WidgetMediaBinding;
|
|
|
|
import com.facebook.samples.zoomable.ZoomableDraweeView;
|
|
|
|
import com.google.android.exoplayer2.ui.PlayerControlView;
|
|
|
|
import com.google.android.exoplayer2.ui.PlayerView;
|
|
|
|
import com.google.android.material.appbar.AppBarLayout;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.k;
|
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetMedia.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes2.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public final /* synthetic */ class WidgetMedia$binding$2 extends k implements Function1<View, WidgetMediaBinding> {
|
|
|
|
public static final WidgetMedia$binding$2 INSTANCE = new WidgetMedia$binding$2();
|
|
|
|
|
|
|
|
public WidgetMedia$binding$2() {
|
|
|
|
super(1, WidgetMediaBinding.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetMediaBinding;", 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
public final WidgetMediaBinding invoke(View view) {
|
|
|
|
m.checkNotNullParameter(view, "p1");
|
2021-08-09 22:51:56 +00:00
|
|
|
int i = R.id.action_bar_toolbar_layout;
|
|
|
|
AppBarLayout appBarLayout = (AppBarLayout) view.findViewById(R.id.action_bar_toolbar_layout);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (appBarLayout != null) {
|
|
|
|
FrameLayout frameLayout = (FrameLayout) view;
|
2021-08-09 22:51:56 +00:00
|
|
|
i = R.id.media_image;
|
|
|
|
ZoomableDraweeView zoomableDraweeView = (ZoomableDraweeView) view.findViewById(R.id.media_image);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (zoomableDraweeView != null) {
|
2021-08-09 22:51:56 +00:00
|
|
|
i = R.id.media_loading_indicator;
|
|
|
|
ProgressBar progressBar = (ProgressBar) view.findViewById(R.id.media_loading_indicator);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (progressBar != null) {
|
2021-08-09 22:51:56 +00:00
|
|
|
i = R.id.media_player_control_view;
|
|
|
|
PlayerControlView playerControlView = (PlayerControlView) view.findViewById(R.id.media_player_control_view);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (playerControlView != null) {
|
2021-08-09 22:51:56 +00:00
|
|
|
i = R.id.media_player_view;
|
|
|
|
PlayerView playerView = (PlayerView) view.findViewById(R.id.media_player_view);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (playerView != null) {
|
|
|
|
return new WidgetMediaBinding(frameLayout, appBarLayout, frameLayout, zoomableDraweeView, progressBar, playerControlView, playerView);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i)));
|
|
|
|
}
|
|
|
|
}
|