2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
|
|
import com.google.android.material.bottomsheet.BottomSheetBehavior;
|
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: WidgetGuildInviteShare.kt */
|
|
|
|
public final class WidgetGuildInviteShare$initBottomSheetBehavior$1 extends BottomSheetBehavior.BottomSheetCallback {
|
|
|
|
public final /* synthetic */ WidgetGuildInviteShare this$0;
|
|
|
|
|
|
|
|
public WidgetGuildInviteShare$initBottomSheetBehavior$1(WidgetGuildInviteShare widgetGuildInviteShare) {
|
|
|
|
this.this$0 = widgetGuildInviteShare;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.google.android.material.bottomsheet.BottomSheetBehavior.BottomSheetCallback
|
|
|
|
public void onSlide(View view, float f) {
|
|
|
|
m.checkNotNullParameter(view, "bottomSheet");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // com.google.android.material.bottomsheet.BottomSheetBehavior.BottomSheetCallback
|
|
|
|
public void onStateChanged(View view, int i) {
|
|
|
|
m.checkNotNullParameter(view, "bottomSheet");
|
|
|
|
if (i == 5) {
|
|
|
|
WidgetGuildInviteShare.access$getViewModel$p(this.this$0).refreshUi();
|
|
|
|
WidgetGuildInviteShare.access$getBinding$p(this.this$0).f.sendAccessibilityEvent(8);
|
|
|
|
} else if (i == 3) {
|
|
|
|
WidgetGuildInviteShare.access$getBinding$p(this.this$0).k.sendAccessibilityEvent(8);
|
2021-09-30 06:24:59 +00:00
|
|
|
this.this$0.getAppLogger().a(null);
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
ViewExtensions.fadeBy$default(WidgetGuildInviteShare.access$getBinding$p(this.this$0).b, i != 5, 0, 2, null);
|
|
|
|
}
|
|
|
|
}
|