53 lines
2.4 KiB
Java
53 lines
2.4 KiB
Java
package com.discord.widgets.settings;
|
|
|
|
import android.content.Context;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import c.a.k.b;
|
|
import com.discord.R;
|
|
import com.discord.widgets.notice.WidgetNoticeDialog;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public final class WidgetSettingsPrivacy$onRequestDataClick$2 extends o implements Function1<String, Unit> {
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ WidgetSettingsPrivacy this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetSettingsPrivacy$onRequestDataClick$2(WidgetSettingsPrivacy widgetSettingsPrivacy, Context context) {
|
|
super(1);
|
|
this.this$0 = widgetSettingsPrivacy;
|
|
this.$context = context;
|
|
}
|
|
|
|
public static /* synthetic */ void invoke$default(WidgetSettingsPrivacy$onRequestDataClick$2 widgetSettingsPrivacy$onRequestDataClick$2, String str, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = null;
|
|
}
|
|
widgetSettingsPrivacy$onRequestDataClick$2.invoke(str);
|
|
}
|
|
|
|
/* 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(String str) {
|
|
invoke(str);
|
|
return Unit.a;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
|
public final void invoke(String str) {
|
|
WidgetNoticeDialog.Builder title = new WidgetNoticeDialog.Builder(this.$context).setTitle(R.string.data_privacy_controls_request_data_failure_title);
|
|
String str2 = str;
|
|
if (str == null) {
|
|
str2 = b.h(this.$context, R.string.data_privacy_controls_request_data_failure_body, new Object[0], null, 4);
|
|
}
|
|
WidgetNoticeDialog.Builder positiveButton$default = WidgetNoticeDialog.Builder.setPositiveButton$default(title.setMessage(str2), (int) R.string.okay, (Function1) null, 2, (Object) null);
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
positiveButton$default.show(parentFragmentManager);
|
|
}
|
|
}
|