36 lines
1.7 KiB
Java
36 lines
1.7 KiB
Java
|
package com.discord.widgets.stickers;
|
||
|
|
||
|
import com.discord.widgets.stickers.GuildStickerSheetViewModel;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetGuildStickerSheet.kt */
|
||
|
public final class WidgetGuildStickerSheet$bindSubscriptions$1 extends o implements Function1<GuildStickerSheetViewModel.ViewState, Unit> {
|
||
|
public final /* synthetic */ WidgetGuildStickerSheet this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetGuildStickerSheet$bindSubscriptions$1(WidgetGuildStickerSheet widgetGuildStickerSheet) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetGuildStickerSheet;
|
||
|
}
|
||
|
|
||
|
/* 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 /* bridge */ /* synthetic */ Unit invoke(GuildStickerSheetViewModel.ViewState viewState) {
|
||
|
invoke(viewState);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(GuildStickerSheetViewModel.ViewState viewState) {
|
||
|
if (m.areEqual(viewState, GuildStickerSheetViewModel.ViewState.Loading.INSTANCE)) {
|
||
|
WidgetGuildStickerSheet.access$showLoading(this.this$0);
|
||
|
} else if (m.areEqual(viewState, GuildStickerSheetViewModel.ViewState.Dismiss.INSTANCE)) {
|
||
|
this.this$0.dismiss();
|
||
|
} else if (viewState instanceof GuildStickerSheetViewModel.ViewState.Loaded) {
|
||
|
WidgetGuildStickerSheet.access$configureUI(this.this$0, (GuildStickerSheetViewModel.ViewState.Loaded) viewState);
|
||
|
}
|
||
|
}
|
||
|
}
|