83 lines
3.8 KiB
Java
83 lines
3.8 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
import androidx.fragment.app.Fragment;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import c.d.b.a.a;
|
|
import com.discord.app.AppBottomSheet;
|
|
import com.discord.databinding.WidgetServerSettingsChannelsSortActionsBinding;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.reflect.KProperty;
|
|
/* compiled from: WidgetServerSettingsChannelsSortActions.kt */
|
|
public final class WidgetServerSettingsChannelsSortActions extends AppBottomSheet {
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.W(WidgetServerSettingsChannelsSortActions.class, "binding", "getBinding()Lcom/discord/databinding/WidgetServerSettingsChannelsSortActionsBinding;", 0)};
|
|
public static final Companion Companion = new Companion(null);
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetServerSettingsChannelsSortActions$binding$2.INSTANCE, null, 2, null);
|
|
private Function1<? super Integer, Unit> sortTypeSelectedListener;
|
|
|
|
/* compiled from: WidgetServerSettingsChannelsSortActions.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final void show(FragmentManager fragmentManager, Function1<? super Integer, Unit> function1) {
|
|
m.checkNotNullParameter(fragmentManager, "fragmentManager");
|
|
m.checkNotNullParameter(function1, "sortTypeSelectedListener");
|
|
WidgetServerSettingsChannelsSortActions widgetServerSettingsChannelsSortActions = new WidgetServerSettingsChannelsSortActions();
|
|
widgetServerSettingsChannelsSortActions.setSortTypeSelectedListener(function1);
|
|
widgetServerSettingsChannelsSortActions.show(fragmentManager, "javaClass");
|
|
}
|
|
}
|
|
|
|
public WidgetServerSettingsChannelsSortActions() {
|
|
super(false, 1, null);
|
|
}
|
|
|
|
private final void configureUI() {
|
|
getBinding().b.setOnClickListener(new WidgetServerSettingsChannelsSortActions$configureUI$1(this));
|
|
getBinding().d.setOnClickListener(new WidgetServerSettingsChannelsSortActions$configureUI$2(this));
|
|
getBinding().f1887c.setOnClickListener(new WidgetServerSettingsChannelsSortActions$configureUI$3(this));
|
|
}
|
|
|
|
private final WidgetServerSettingsChannelsSortActionsBinding getBinding() {
|
|
return (WidgetServerSettingsChannelsSortActionsBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
}
|
|
|
|
@Override // com.discord.app.AppBottomSheet
|
|
public int getContentViewResId() {
|
|
return 2131559167;
|
|
}
|
|
|
|
/* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kotlin.jvm.functions.Function1<? super java.lang.Integer, kotlin.Unit>, kotlin.jvm.functions.Function1<java.lang.Integer, kotlin.Unit> */
|
|
public final Function1<Integer, Unit> getSortTypeSelectedListener() {
|
|
return this.sortTypeSelectedListener;
|
|
}
|
|
|
|
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
|
|
public void onPause() {
|
|
super.onPause();
|
|
dismiss();
|
|
}
|
|
|
|
@Override // com.discord.app.AppBottomSheet, androidx.fragment.app.Fragment
|
|
public void onViewCreated(View view, Bundle bundle) {
|
|
m.checkNotNullParameter(view, "view");
|
|
super.onViewCreated(view, bundle);
|
|
configureUI();
|
|
}
|
|
|
|
public final void setSortTypeSelectedListener(Function1<? super Integer, Unit> function1) {
|
|
this.sortTypeSelectedListener = function1;
|
|
}
|
|
}
|