2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.settings;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.view.View;
|
|
|
|
import c.a.d.o;
|
|
|
|
import com.discord.utilities.rest.RestAPI;
|
|
|
|
import d0.z.d.m;
|
|
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
|
|
public final class WidgetSettingsPrivacy$configureRequestDataButton$1 implements View.OnClickListener {
|
|
|
|
public final /* synthetic */ RestAPI.HarvestState $harvestState;
|
|
|
|
public final /* synthetic */ boolean $isMeVerified;
|
|
|
|
public final /* synthetic */ WidgetSettingsPrivacy this$0;
|
|
|
|
|
|
|
|
public WidgetSettingsPrivacy$configureRequestDataButton$1(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2, RestAPI.HarvestState harvestState) {
|
|
|
|
this.this$0 = widgetSettingsPrivacy;
|
|
|
|
this.$isMeVerified = z2;
|
|
|
|
this.$harvestState = harvestState;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
|
|
public final void onClick(View view) {
|
|
|
|
RestAPI.HarvestState harvestState;
|
|
|
|
Context context = this.this$0.getContext();
|
|
|
|
if (context != null) {
|
|
|
|
m.checkNotNullExpressionValue(context, "context ?: return@setOnClickListener");
|
|
|
|
if (!this.$isMeVerified || (harvestState = this.$harvestState) == null) {
|
2021-07-03 23:36:06 +00:00
|
|
|
o.i(this.this$0, 2131888033, 0, 4);
|
2021-06-27 20:44:35 +00:00
|
|
|
} else {
|
|
|
|
WidgetSettingsPrivacy.access$onRequestDataClick(this.this$0, context, harvestState);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|