2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.home;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
|
|
/* compiled from: WidgetHomeHeaderManager.kt */
|
|
|
|
public final class WidgetHomeHeaderManager$configure$$inlined$apply$lambda$1 implements View.OnClickListener {
|
|
|
|
public final /* synthetic */ WidgetHomeModel $model$inlined;
|
|
|
|
public final /* synthetic */ WidgetHomeModel $this_apply;
|
|
|
|
public final /* synthetic */ WidgetHome $widgetHome$inlined;
|
|
|
|
|
|
|
|
public WidgetHomeHeaderManager$configure$$inlined$apply$lambda$1(WidgetHomeModel widgetHomeModel, WidgetHome widgetHome, WidgetHomeModel widgetHomeModel2) {
|
|
|
|
this.$this_apply = widgetHomeModel;
|
|
|
|
this.$widgetHome$inlined = widgetHome;
|
|
|
|
this.$model$inlined = widgetHomeModel2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
|
|
|
Channel channel = this.$this_apply.getChannel();
|
2021-07-03 23:36:06 +00:00
|
|
|
Integer valueOf = channel != null ? Integer.valueOf(channel.A()) : null;
|
2021-06-27 20:44:35 +00:00
|
|
|
if ((valueOf != null && valueOf.intValue() == 1) || ((valueOf != null && valueOf.intValue() == 3) || ((valueOf != null && valueOf.intValue() == 5) || (valueOf != null && valueOf.intValue() == 0)))) {
|
|
|
|
this.$widgetHome$inlined.getPanelLayout().openEndPanel();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|