34 lines
1.5 KiB
Java
34 lines
1.5 KiB
Java
package com.discord.widgets.settings;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.R;
|
|
import com.discord.utilities.rest.RestAPI;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
/* loaded from: classes2.dex */
|
|
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) {
|
|
b.a.d.m.i(this.this$0, R.string.data_privacy_controls_request_data_tooltip, 0, 4);
|
|
} else {
|
|
WidgetSettingsPrivacy.access$onRequestDataClick(this.this$0, context, harvestState);
|
|
}
|
|
}
|
|
}
|
|
}
|