2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.friends;
|
|
|
|
|
|
|
|
import android.view.ContextThemeWrapper;
|
|
|
|
import android.view.MenuItem;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.PopupMenu;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetFriendsList.kt */
|
|
|
|
public final class WidgetFriendsList$onViewBound$8 extends o implements Function1<View, Unit> {
|
|
|
|
public final /* synthetic */ WidgetFriendsList this$0;
|
|
|
|
|
|
|
|
/* compiled from: WidgetFriendsList.kt */
|
|
|
|
/* renamed from: com.discord.widgets.friends.WidgetFriendsList$onViewBound$8$1 reason: invalid class name */
|
|
|
|
public static final class AnonymousClass1 implements MenuItem.OnMenuItemClickListener {
|
|
|
|
public final /* synthetic */ WidgetFriendsList$onViewBound$8 this$0;
|
|
|
|
|
|
|
|
public AnonymousClass1(WidgetFriendsList$onViewBound$8 widgetFriendsList$onViewBound$8) {
|
|
|
|
this.this$0 = widgetFriendsList$onViewBound$8;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.MenuItem.OnMenuItemClickListener
|
|
|
|
public final boolean onMenuItemClick(MenuItem menuItem) {
|
|
|
|
WidgetFriendsList.access$getViewModel$p(this.this$0.this$0).dismissContactSyncUpsell();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetFriendsList$onViewBound$8(WidgetFriendsList widgetFriendsList) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetFriendsList;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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(View view) {
|
|
|
|
invoke(view);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(View view) {
|
|
|
|
m.checkNotNullParameter(view, "upsellView");
|
|
|
|
PopupMenu popupMenu = new PopupMenu(new ContextThemeWrapper(view.getContext(), 2131951664), view);
|
|
|
|
popupMenu.getMenuInflater().inflate(2131623947, popupMenu.getMenu());
|
2021-07-03 23:36:06 +00:00
|
|
|
popupMenu.getMenu().findItem(2131363921).setOnMenuItemClickListener(new AnonymousClass1(this));
|
2021-06-27 20:44:35 +00:00
|
|
|
popupMenu.show();
|
|
|
|
}
|
|
|
|
}
|