discord-jadx/app/src/main/java/com/discord/widgets/chat/input/expression/WidgetExpressionPickerSheet...

52 lines
2.0 KiB
Java

package com.discord.widgets.chat.input.expression;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import com.discord.app.AppBottomSheet;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetExpressionPickerSheet.kt */
public abstract class WidgetExpressionPickerSheet extends AppBottomSheet {
private Function0<Unit> onCancel;
public WidgetExpressionPickerSheet() {
super(false, 1, null);
}
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.widgets.chat.input.expression.WidgetExpressionPickerSheet */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ void setOnCancel$default(WidgetExpressionPickerSheet widgetExpressionPickerSheet, Function0 function0, int i, Object obj) {
if (obj == null) {
if ((i & 1) != 0) {
function0 = null;
}
widgetExpressionPickerSheet.setOnCancel(function0);
return;
}
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: setOnCancel");
}
@Override // androidx.fragment.app.DialogFragment, android.content.DialogInterface.OnCancelListener
public void onCancel(DialogInterface dialogInterface) {
m.checkNotNullParameter(dialogInterface, "dialog");
super.onCancel(dialogInterface);
Function0<Unit> function0 = this.onCancel;
if (function0 != null) {
function0.mo1invoke();
}
}
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
m.checkNotNullParameter(view, "view");
super.onViewCreated(view, bundle);
setBottomSheetCollapsedStateDisabled();
}
public final void setOnCancel(Function0<Unit> function0) {
this.onCancel = function0;
}
}