842 lines
44 KiB
Java
842 lines
44 KiB
Java
package com.discord.widgets.settings;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.content.Context;
|
|
import android.text.method.LinkMovementMethod;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import androidx.appcompat.app.AlertDialog;
|
|
import androidx.fragment.app.Fragment;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import b.a.d.f;
|
|
import b.a.d.j;
|
|
import b.a.d.o;
|
|
import b.a.i.w5;
|
|
import b.a.k.b;
|
|
import b.d.b.a.a;
|
|
import com.discord.R;
|
|
import com.discord.api.connectedaccounts.ConnectedAccount;
|
|
import com.discord.app.AppFragment;
|
|
import com.discord.databinding.ViewDialogConfirmationBinding;
|
|
import com.discord.databinding.WidgetSettingsPrivacyBinding;
|
|
import com.discord.models.domain.Consents;
|
|
import com.discord.models.domain.Harvest;
|
|
import com.discord.models.domain.ModelUserSettings;
|
|
import com.discord.models.experiments.domain.Experiment;
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.stores.StoreUser;
|
|
import com.discord.stores.StoreUserConnections;
|
|
import com.discord.stores.StoreUserSettings;
|
|
import com.discord.utilities.accessibility.AccessibilityUtils;
|
|
import com.discord.utilities.rest.RestAPI;
|
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
|
import com.discord.utilities.time.TimeUtils;
|
|
import com.discord.utilities.user.UserUtils;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
|
|
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
|
|
import com.discord.views.CheckedSetting;
|
|
import com.discord.views.RadioManager;
|
|
import com.discord.widgets.notice.WidgetNoticeDialog;
|
|
import com.google.android.material.button.MaterialButton;
|
|
import d0.g;
|
|
import d0.t.n;
|
|
import d0.t.n0;
|
|
import d0.z.d.m;
|
|
import j0.l.e.k;
|
|
import java.util.List;
|
|
import kotlin.Lazy;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function5;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.reflect.KProperty;
|
|
import rx.Observable;
|
|
import rx.functions.Func7;
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public final class WidgetSettingsPrivacy extends AppFragment {
|
|
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.b0(WidgetSettingsPrivacy.class, "binding", "getBinding()Lcom/discord/databinding/WidgetSettingsPrivacyBinding;", 0)};
|
|
public static final Companion Companion = new Companion(null);
|
|
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetSettingsPrivacy$binding$2.INSTANCE, null, 2, null);
|
|
private AlertDialog dialog;
|
|
private final Lazy explicitContentRadios$delegate = g.lazy(new WidgetSettingsPrivacy$explicitContentRadios$2(this));
|
|
private final Lazy friendSourceRadios$delegate = g.lazy(new WidgetSettingsPrivacy$friendSourceRadios$2(this));
|
|
private RadioManager radioManagerExplicit;
|
|
private final StoreUserSettings userSettings = StoreStream.Companion.getUserSettings();
|
|
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final void launch(Context context) {
|
|
m.checkNotNullParameter(context, "context");
|
|
j.e(context, WidgetSettingsPrivacy.class, null, 4);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public static final class LocalState {
|
|
private final ConnectedAccount contactSyncConnection;
|
|
private final Experiment contactSyncExperiment;
|
|
private final boolean defaultRestrictedGuilds;
|
|
private final int explicitContentFilter;
|
|
private final ModelUserSettings.FriendSourceFlags friendSourceFlags;
|
|
|
|
/* renamed from: me reason: collision with root package name */
|
|
private final MeUser f2842me;
|
|
private final int userDiscoveryFlags;
|
|
|
|
public LocalState(MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, ConnectedAccount connectedAccount, Experiment experiment, int i2) {
|
|
m.checkNotNullParameter(meUser, "me");
|
|
this.f2842me = meUser;
|
|
this.explicitContentFilter = i;
|
|
this.defaultRestrictedGuilds = z2;
|
|
this.friendSourceFlags = friendSourceFlags;
|
|
this.contactSyncConnection = connectedAccount;
|
|
this.contactSyncExperiment = experiment;
|
|
this.userDiscoveryFlags = i2;
|
|
}
|
|
|
|
public static /* synthetic */ LocalState copy$default(LocalState localState, MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, ConnectedAccount connectedAccount, Experiment experiment, int i2, int i3, Object obj) {
|
|
if ((i3 & 1) != 0) {
|
|
meUser = localState.f2842me;
|
|
}
|
|
if ((i3 & 2) != 0) {
|
|
i = localState.explicitContentFilter;
|
|
}
|
|
if ((i3 & 4) != 0) {
|
|
z2 = localState.defaultRestrictedGuilds;
|
|
}
|
|
if ((i3 & 8) != 0) {
|
|
friendSourceFlags = localState.friendSourceFlags;
|
|
}
|
|
if ((i3 & 16) != 0) {
|
|
connectedAccount = localState.contactSyncConnection;
|
|
}
|
|
if ((i3 & 32) != 0) {
|
|
experiment = localState.contactSyncExperiment;
|
|
}
|
|
if ((i3 & 64) != 0) {
|
|
i2 = localState.userDiscoveryFlags;
|
|
}
|
|
return localState.copy(meUser, i, z2, friendSourceFlags, connectedAccount, experiment, i2);
|
|
}
|
|
|
|
public final MeUser component1() {
|
|
return this.f2842me;
|
|
}
|
|
|
|
public final int component2() {
|
|
return this.explicitContentFilter;
|
|
}
|
|
|
|
public final boolean component3() {
|
|
return this.defaultRestrictedGuilds;
|
|
}
|
|
|
|
public final ModelUserSettings.FriendSourceFlags component4() {
|
|
return this.friendSourceFlags;
|
|
}
|
|
|
|
public final ConnectedAccount component5() {
|
|
return this.contactSyncConnection;
|
|
}
|
|
|
|
public final Experiment component6() {
|
|
return this.contactSyncExperiment;
|
|
}
|
|
|
|
public final int component7() {
|
|
return this.userDiscoveryFlags;
|
|
}
|
|
|
|
public final LocalState copy(MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, ConnectedAccount connectedAccount, Experiment experiment, int i2) {
|
|
m.checkNotNullParameter(meUser, "me");
|
|
return new LocalState(meUser, i, z2, friendSourceFlags, connectedAccount, experiment, i2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof LocalState)) {
|
|
return false;
|
|
}
|
|
LocalState localState = (LocalState) obj;
|
|
return m.areEqual(this.f2842me, localState.f2842me) && this.explicitContentFilter == localState.explicitContentFilter && this.defaultRestrictedGuilds == localState.defaultRestrictedGuilds && m.areEqual(this.friendSourceFlags, localState.friendSourceFlags) && m.areEqual(this.contactSyncConnection, localState.contactSyncConnection) && m.areEqual(this.contactSyncExperiment, localState.contactSyncExperiment) && this.userDiscoveryFlags == localState.userDiscoveryFlags;
|
|
}
|
|
|
|
public final ConnectedAccount getContactSyncConnection() {
|
|
return this.contactSyncConnection;
|
|
}
|
|
|
|
public final Experiment getContactSyncExperiment() {
|
|
return this.contactSyncExperiment;
|
|
}
|
|
|
|
public final boolean getDefaultRestrictedGuilds() {
|
|
return this.defaultRestrictedGuilds;
|
|
}
|
|
|
|
public final int getExplicitContentFilter() {
|
|
return this.explicitContentFilter;
|
|
}
|
|
|
|
public final ModelUserSettings.FriendSourceFlags getFriendSourceFlags() {
|
|
return this.friendSourceFlags;
|
|
}
|
|
|
|
public final MeUser getMe() {
|
|
return this.f2842me;
|
|
}
|
|
|
|
public final int getUserDiscoveryFlags() {
|
|
return this.userDiscoveryFlags;
|
|
}
|
|
|
|
public int hashCode() {
|
|
MeUser meUser = this.f2842me;
|
|
int i = 0;
|
|
int hashCode = (((meUser != null ? meUser.hashCode() : 0) * 31) + this.explicitContentFilter) * 31;
|
|
boolean z2 = this.defaultRestrictedGuilds;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = (hashCode + i2) * 31;
|
|
ModelUserSettings.FriendSourceFlags friendSourceFlags = this.friendSourceFlags;
|
|
int hashCode2 = (i5 + (friendSourceFlags != null ? friendSourceFlags.hashCode() : 0)) * 31;
|
|
ConnectedAccount connectedAccount = this.contactSyncConnection;
|
|
int hashCode3 = (hashCode2 + (connectedAccount != null ? connectedAccount.hashCode() : 0)) * 31;
|
|
Experiment experiment = this.contactSyncExperiment;
|
|
if (experiment != null) {
|
|
i = experiment.hashCode();
|
|
}
|
|
return ((hashCode3 + i) * 31) + this.userDiscoveryFlags;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("LocalState(me=");
|
|
R.append(this.f2842me);
|
|
R.append(", explicitContentFilter=");
|
|
R.append(this.explicitContentFilter);
|
|
R.append(", defaultRestrictedGuilds=");
|
|
R.append(this.defaultRestrictedGuilds);
|
|
R.append(", friendSourceFlags=");
|
|
R.append(this.friendSourceFlags);
|
|
R.append(", contactSyncConnection=");
|
|
R.append(this.contactSyncConnection);
|
|
R.append(", contactSyncExperiment=");
|
|
R.append(this.contactSyncExperiment);
|
|
R.append(", userDiscoveryFlags=");
|
|
return a.A(R, this.userDiscoveryFlags, ")");
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public static final class Model {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final Consents consents;
|
|
private final ConnectedAccount contactSyncConnection;
|
|
private final boolean defaultRestrictedGuilds;
|
|
private final int explicitContentFilter;
|
|
private final ModelUserSettings.FriendSourceFlags friendSourceFlags;
|
|
private final RestAPI.HarvestState harvestState;
|
|
|
|
/* renamed from: me reason: collision with root package name */
|
|
private final MeUser f2843me;
|
|
private final boolean showContactSync;
|
|
private final int userDiscoveryFlags;
|
|
|
|
/* compiled from: WidgetSettingsPrivacy.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX DEBUG: Type inference failed for r9v0. Raw type applied. Possible types: rx.Observable<R>, rx.Observable */
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
|
public final Observable<Model> get() {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
Observable observeMe$default = StoreUser.observeMe$default(companion.getUsers(), false, 1, null);
|
|
Observable<Integer> observeExplicitContentFilter = companion.getUserSettings().observeExplicitContentFilter();
|
|
Observable<Boolean> observeIsDefaultGuildsRestricted = companion.getUserSettings().observeIsDefaultGuildsRestricted();
|
|
Observable<ModelUserSettings.FriendSourceFlags> observeFriendSourceFlags = companion.getUserSettings().observeFriendSourceFlags();
|
|
Observable F = companion.getUserConnections().observeConnectedAccounts().F(WidgetSettingsPrivacy$Model$Companion$get$1.INSTANCE);
|
|
Observable<Experiment> observeUserExperiment = companion.getExperiments().observeUserExperiment("2021-04_contact_sync_android_main", true);
|
|
Observable<Integer> observeFriendDiscoveryFlags = companion.getUserSettings().observeFriendDiscoveryFlags();
|
|
WidgetSettingsPrivacy$Model$Companion$get$2 widgetSettingsPrivacy$Model$Companion$get$2 = WidgetSettingsPrivacy$Model$Companion$get$2.INSTANCE;
|
|
if (widgetSettingsPrivacy$Model$Companion$get$2 != null) {
|
|
widgetSettingsPrivacy$Model$Companion$get$2 = new WidgetSettingsPrivacy$sam$rx_functions_Func7$0(widgetSettingsPrivacy$Model$Companion$get$2);
|
|
}
|
|
Observable Y = Observable.e(observeMe$default, observeExplicitContentFilter, observeIsDefaultGuildsRestricted, observeFriendSourceFlags, F, observeUserExperiment, observeFriendDiscoveryFlags, (Func7) widgetSettingsPrivacy$Model$Companion$get$2).Y(WidgetSettingsPrivacy$Model$Companion$get$3.INSTANCE);
|
|
m.checkNotNullExpressionValue(Y, "Observable\n .co… }\n }");
|
|
Observable<Model> q = ObservableExtensionsKt.computationLatest(Y).q();
|
|
m.checkNotNullExpressionValue(q, "Observable\n .co… .distinctUntilChanged()");
|
|
return q;
|
|
}
|
|
}
|
|
|
|
public Model(MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, int i2, ConnectedAccount connectedAccount, boolean z3, Consents consents, RestAPI.HarvestState harvestState) {
|
|
m.checkNotNullParameter(meUser, "me");
|
|
m.checkNotNullParameter(consents, "consents");
|
|
this.f2843me = meUser;
|
|
this.explicitContentFilter = i;
|
|
this.defaultRestrictedGuilds = z2;
|
|
this.friendSourceFlags = friendSourceFlags;
|
|
this.userDiscoveryFlags = i2;
|
|
this.contactSyncConnection = connectedAccount;
|
|
this.showContactSync = z3;
|
|
this.consents = consents;
|
|
this.harvestState = harvestState;
|
|
}
|
|
|
|
public static /* synthetic */ Model copy$default(Model model, MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, int i2, ConnectedAccount connectedAccount, boolean z3, Consents consents, RestAPI.HarvestState harvestState, int i3, Object obj) {
|
|
return model.copy((i3 & 1) != 0 ? model.f2843me : meUser, (i3 & 2) != 0 ? model.explicitContentFilter : i, (i3 & 4) != 0 ? model.defaultRestrictedGuilds : z2, (i3 & 8) != 0 ? model.friendSourceFlags : friendSourceFlags, (i3 & 16) != 0 ? model.userDiscoveryFlags : i2, (i3 & 32) != 0 ? model.contactSyncConnection : connectedAccount, (i3 & 64) != 0 ? model.showContactSync : z3, (i3 & 128) != 0 ? model.consents : consents, (i3 & 256) != 0 ? model.harvestState : harvestState);
|
|
}
|
|
|
|
public final MeUser component1() {
|
|
return this.f2843me;
|
|
}
|
|
|
|
public final int component2() {
|
|
return this.explicitContentFilter;
|
|
}
|
|
|
|
public final boolean component3() {
|
|
return this.defaultRestrictedGuilds;
|
|
}
|
|
|
|
public final ModelUserSettings.FriendSourceFlags component4() {
|
|
return this.friendSourceFlags;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.userDiscoveryFlags;
|
|
}
|
|
|
|
public final ConnectedAccount component6() {
|
|
return this.contactSyncConnection;
|
|
}
|
|
|
|
public final boolean component7() {
|
|
return this.showContactSync;
|
|
}
|
|
|
|
public final Consents component8() {
|
|
return this.consents;
|
|
}
|
|
|
|
public final RestAPI.HarvestState component9() {
|
|
return this.harvestState;
|
|
}
|
|
|
|
public final Model copy(MeUser meUser, int i, boolean z2, ModelUserSettings.FriendSourceFlags friendSourceFlags, int i2, ConnectedAccount connectedAccount, boolean z3, Consents consents, RestAPI.HarvestState harvestState) {
|
|
m.checkNotNullParameter(meUser, "me");
|
|
m.checkNotNullParameter(consents, "consents");
|
|
return new Model(meUser, i, z2, friendSourceFlags, i2, connectedAccount, z3, consents, harvestState);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Model)) {
|
|
return false;
|
|
}
|
|
Model model = (Model) obj;
|
|
return m.areEqual(this.f2843me, model.f2843me) && this.explicitContentFilter == model.explicitContentFilter && this.defaultRestrictedGuilds == model.defaultRestrictedGuilds && m.areEqual(this.friendSourceFlags, model.friendSourceFlags) && this.userDiscoveryFlags == model.userDiscoveryFlags && m.areEqual(this.contactSyncConnection, model.contactSyncConnection) && this.showContactSync == model.showContactSync && m.areEqual(this.consents, model.consents) && m.areEqual(this.harvestState, model.harvestState);
|
|
}
|
|
|
|
public final Consents getConsents() {
|
|
return this.consents;
|
|
}
|
|
|
|
public final ConnectedAccount getContactSyncConnection() {
|
|
return this.contactSyncConnection;
|
|
}
|
|
|
|
public final boolean getDefaultRestrictedGuilds() {
|
|
return this.defaultRestrictedGuilds;
|
|
}
|
|
|
|
public final int getExplicitContentFilter() {
|
|
return this.explicitContentFilter;
|
|
}
|
|
|
|
public final ModelUserSettings.FriendSourceFlags getFriendSourceFlags() {
|
|
return this.friendSourceFlags;
|
|
}
|
|
|
|
public final RestAPI.HarvestState getHarvestState() {
|
|
return this.harvestState;
|
|
}
|
|
|
|
public final MeUser getMe() {
|
|
return this.f2843me;
|
|
}
|
|
|
|
public final boolean getShowContactSync() {
|
|
return this.showContactSync;
|
|
}
|
|
|
|
public final int getUserDiscoveryFlags() {
|
|
return this.userDiscoveryFlags;
|
|
}
|
|
|
|
public int hashCode() {
|
|
MeUser meUser = this.f2843me;
|
|
int i = 0;
|
|
int hashCode = (((meUser != null ? meUser.hashCode() : 0) * 31) + this.explicitContentFilter) * 31;
|
|
boolean z2 = this.defaultRestrictedGuilds;
|
|
int i2 = 1;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int i5 = z2 ? 1 : 0;
|
|
int i6 = (hashCode + i3) * 31;
|
|
ModelUserSettings.FriendSourceFlags friendSourceFlags = this.friendSourceFlags;
|
|
int hashCode2 = (((i6 + (friendSourceFlags != null ? friendSourceFlags.hashCode() : 0)) * 31) + this.userDiscoveryFlags) * 31;
|
|
ConnectedAccount connectedAccount = this.contactSyncConnection;
|
|
int hashCode3 = (hashCode2 + (connectedAccount != null ? connectedAccount.hashCode() : 0)) * 31;
|
|
boolean z3 = this.showContactSync;
|
|
if (!z3) {
|
|
i2 = z3 ? 1 : 0;
|
|
}
|
|
int i7 = (hashCode3 + i2) * 31;
|
|
Consents consents = this.consents;
|
|
int hashCode4 = (i7 + (consents != null ? consents.hashCode() : 0)) * 31;
|
|
RestAPI.HarvestState harvestState = this.harvestState;
|
|
if (harvestState != null) {
|
|
i = harvestState.hashCode();
|
|
}
|
|
return hashCode4 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = a.R("Model(me=");
|
|
R.append(this.f2843me);
|
|
R.append(", explicitContentFilter=");
|
|
R.append(this.explicitContentFilter);
|
|
R.append(", defaultRestrictedGuilds=");
|
|
R.append(this.defaultRestrictedGuilds);
|
|
R.append(", friendSourceFlags=");
|
|
R.append(this.friendSourceFlags);
|
|
R.append(", userDiscoveryFlags=");
|
|
R.append(this.userDiscoveryFlags);
|
|
R.append(", contactSyncConnection=");
|
|
R.append(this.contactSyncConnection);
|
|
R.append(", showContactSync=");
|
|
R.append(this.showContactSync);
|
|
R.append(", consents=");
|
|
R.append(this.consents);
|
|
R.append(", harvestState=");
|
|
R.append(this.harvestState);
|
|
R.append(")");
|
|
return R.toString();
|
|
}
|
|
}
|
|
|
|
public WidgetSettingsPrivacy() {
|
|
super(R.layout.widget_settings_privacy);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$configureRequestDataButton(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2, RestAPI.HarvestState harvestState) {
|
|
widgetSettingsPrivacy.configureRequestDataButton(z2, harvestState);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$configureUI(WidgetSettingsPrivacy widgetSettingsPrivacy, Model model) {
|
|
widgetSettingsPrivacy.configureUI(model);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$confirmConsent(WidgetSettingsPrivacy widgetSettingsPrivacy, Context context, Function5 function5) {
|
|
widgetSettingsPrivacy.confirmConsent(context, function5);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$deleteContactSync(WidgetSettingsPrivacy widgetSettingsPrivacy) {
|
|
widgetSettingsPrivacy.deleteContactSync();
|
|
}
|
|
|
|
public static final /* synthetic */ WidgetSettingsPrivacyBinding access$getBinding$p(WidgetSettingsPrivacy widgetSettingsPrivacy) {
|
|
return widgetSettingsPrivacy.getBinding();
|
|
}
|
|
|
|
public static final /* synthetic */ StoreUserSettings access$getUserSettings$p(WidgetSettingsPrivacy widgetSettingsPrivacy) {
|
|
return widgetSettingsPrivacy.userSettings;
|
|
}
|
|
|
|
public static final /* synthetic */ void access$onRequestDataClick(WidgetSettingsPrivacy widgetSettingsPrivacy, Context context, RestAPI.HarvestState harvestState) {
|
|
widgetSettingsPrivacy.onRequestDataClick(context, harvestState);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$showDefaultGuildsRestrictedExistingServers(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2) {
|
|
widgetSettingsPrivacy.showDefaultGuildsRestrictedExistingServers(z2);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$toggleConsent(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2, String str, CheckedSetting checkedSetting) {
|
|
widgetSettingsPrivacy.toggleConsent(z2, str, checkedSetting);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$toggleContactSync(WidgetSettingsPrivacy widgetSettingsPrivacy, ConnectedAccount connectedAccount, boolean z2) {
|
|
widgetSettingsPrivacy.toggleContactSync(connectedAccount, z2);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$updateDefaultGuildsRestricted(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2, boolean z3) {
|
|
widgetSettingsPrivacy.updateDefaultGuildsRestricted(z2, z3);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$updateFriendDiscoveryFlags(WidgetSettingsPrivacy widgetSettingsPrivacy, boolean z2, boolean z3) {
|
|
widgetSettingsPrivacy.updateFriendDiscoveryFlags(z2, z3);
|
|
}
|
|
|
|
public static final /* synthetic */ void access$updateFriendSourceFlags(WidgetSettingsPrivacy widgetSettingsPrivacy, int i, boolean z2) {
|
|
widgetSettingsPrivacy.updateFriendSourceFlags(i, z2);
|
|
}
|
|
|
|
private final void configureContactSyncOptions(Model model) {
|
|
LinearLayout linearLayout = getBinding().j;
|
|
m.checkNotNullExpressionValue(linearLayout, "binding.settingsPrivacyContactSync");
|
|
int i = 8;
|
|
linearLayout.setVisibility(model.getShowContactSync() ? 0 : 8);
|
|
if (model.getShowContactSync()) {
|
|
TextView textView = getBinding().d;
|
|
m.checkNotNullExpressionValue(textView, "binding.contactSyncSettingInfo");
|
|
b.m(textView, R.string.contact_sync_info_settings_2, new Object[0], new WidgetSettingsPrivacy$configureContactSyncOptions$1(this));
|
|
TextView textView2 = getBinding().d;
|
|
m.checkNotNullExpressionValue(textView2, "binding.contactSyncSettingInfo");
|
|
textView2.setMovementMethod(LinkMovementMethod.getInstance());
|
|
CheckedSetting checkedSetting = getBinding().c;
|
|
m.checkNotNullExpressionValue(checkedSetting, "binding.contactSyncSettingEnabled");
|
|
ConnectedAccount contactSyncConnection = model.getContactSyncConnection();
|
|
checkedSetting.setChecked(contactSyncConnection != null && contactSyncConnection.a());
|
|
CheckedSetting checkedSetting2 = getBinding().e;
|
|
m.checkNotNullExpressionValue(checkedSetting2, "binding.contactSyncSettingPhone");
|
|
checkedSetting2.setChecked((model.getUserDiscoveryFlags() & 2) == 2);
|
|
CheckedSetting checkedSetting3 = getBinding().f2610b;
|
|
m.checkNotNullExpressionValue(checkedSetting3, "binding.contactSyncSettingEmail");
|
|
checkedSetting3.setChecked((model.getUserDiscoveryFlags() & 4) == 4);
|
|
getBinding().c.e(new WidgetSettingsPrivacy$configureContactSyncOptions$2(this, model));
|
|
getBinding().e.e(new WidgetSettingsPrivacy$configureContactSyncOptions$3(this));
|
|
getBinding().f2610b.e(new WidgetSettingsPrivacy$configureContactSyncOptions$4(this));
|
|
CheckedSetting checkedSetting4 = getBinding().f;
|
|
m.checkNotNullExpressionValue(checkedSetting4, "binding.contactSyncSettingStaffOnly");
|
|
if (UserUtils.INSTANCE.isStaff(model.getMe())) {
|
|
i = 0;
|
|
}
|
|
checkedSetting4.setVisibility(i);
|
|
CheckedSetting checkedSetting5 = getBinding().f;
|
|
m.checkNotNullExpressionValue(checkedSetting5, "binding.contactSyncSettingStaffOnly");
|
|
checkedSetting5.setChecked(true);
|
|
getBinding().f.e(new WidgetSettingsPrivacy$configureContactSyncOptions$5(this, model));
|
|
}
|
|
}
|
|
|
|
private final void configureDefaultGuildsRestricted(Model model) {
|
|
CheckedSetting checkedSetting = getBinding().m;
|
|
m.checkNotNullExpressionValue(checkedSetting, "binding.settingsPrivacyDefaultRestrictedGuilds");
|
|
checkedSetting.setChecked(!model.getDefaultRestrictedGuilds());
|
|
getBinding().m.e(new WidgetSettingsPrivacy$configureDefaultGuildsRestricted$1(this, model));
|
|
}
|
|
|
|
private final void configureExplicitContentRadio(Model model, CheckedSetting checkedSetting, int i) {
|
|
RadioManager radioManager;
|
|
checkedSetting.e(new WidgetSettingsPrivacy$configureExplicitContentRadio$1(this, i));
|
|
if (this.radioManagerExplicit != null && model.getExplicitContentFilter() == i && (radioManager = this.radioManagerExplicit) != null) {
|
|
radioManager.a(checkedSetting);
|
|
}
|
|
}
|
|
|
|
private final void configureFriendSourceRadio(Model model) {
|
|
boolean z2 = false;
|
|
getFriendSourceRadios().get(0).setOnCheckedListener(new WidgetSettingsPrivacy$configureFriendSourceRadio$1(this));
|
|
getFriendSourceRadios().get(1).setOnCheckedListener(new WidgetSettingsPrivacy$configureFriendSourceRadio$2(this));
|
|
getFriendSourceRadios().get(2).setOnCheckedListener(new WidgetSettingsPrivacy$configureFriendSourceRadio$3(this));
|
|
ModelUserSettings.FriendSourceFlags friendSourceFlags = model.getFriendSourceFlags();
|
|
boolean isAll = friendSourceFlags != null ? friendSourceFlags.isAll() : false;
|
|
CheckedSetting checkedSetting = getFriendSourceRadios().get(0);
|
|
m.checkNotNullExpressionValue(checkedSetting, "friendSourceRadios[0]");
|
|
checkedSetting.setChecked(isAll);
|
|
CheckedSetting checkedSetting2 = getFriendSourceRadios().get(1);
|
|
m.checkNotNullExpressionValue(checkedSetting2, "friendSourceRadios[1]");
|
|
CheckedSetting checkedSetting3 = checkedSetting2;
|
|
ModelUserSettings.FriendSourceFlags friendSourceFlags2 = model.getFriendSourceFlags();
|
|
checkedSetting3.setChecked((friendSourceFlags2 != null ? friendSourceFlags2.isMutualFriends() : false) || isAll);
|
|
CheckedSetting checkedSetting4 = getFriendSourceRadios().get(2);
|
|
m.checkNotNullExpressionValue(checkedSetting4, "friendSourceRadios[2]");
|
|
CheckedSetting checkedSetting5 = checkedSetting4;
|
|
ModelUserSettings.FriendSourceFlags friendSourceFlags3 = model.getFriendSourceFlags();
|
|
if ((friendSourceFlags3 != null ? friendSourceFlags3.isMutualGuilds() : false) || isAll) {
|
|
z2 = true;
|
|
}
|
|
checkedSetting5.setChecked(z2);
|
|
}
|
|
|
|
private final void configurePrivacyControls(Model model) {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
m.checkNotNullExpressionValue(context, "context ?: return");
|
|
LinearLayout linearLayout = getBinding().k;
|
|
m.checkNotNullExpressionValue(linearLayout, "binding.settingsPrivacyControls");
|
|
linearLayout.setVisibility(0);
|
|
CheckedSetting checkedSetting = getBinding().f2614z;
|
|
m.checkNotNullExpressionValue(checkedSetting, "binding.settingsPrivacyStatistics");
|
|
checkedSetting.setChecked(model.getConsents().getUsageStatistics().getConsented());
|
|
getBinding().f2614z.setOnCheckedListener(new WidgetSettingsPrivacy$configurePrivacyControls$1(this, context));
|
|
CheckedSetting checkedSetting2 = getBinding().v;
|
|
m.checkNotNullExpressionValue(checkedSetting2, "binding.settingsPrivacyPersonalization");
|
|
checkedSetting2.setChecked(model.getConsents().getPersonalization().getConsented());
|
|
getBinding().v.setOnCheckedListener(new WidgetSettingsPrivacy$configurePrivacyControls$2(this, context));
|
|
}
|
|
}
|
|
|
|
private final void configureRequestDataButton(boolean z2, RestAPI.HarvestState harvestState) {
|
|
getBinding().w.setOnClickListener(new WidgetSettingsPrivacy$configureRequestDataButton$1(this, z2, harvestState));
|
|
}
|
|
|
|
private final void configureUI(Model model) {
|
|
configureDefaultGuildsRestricted(model);
|
|
configureFriendSourceRadio(model);
|
|
configureContactSyncOptions(model);
|
|
CheckedSetting checkedSetting = getExplicitContentRadios().get(0);
|
|
m.checkNotNullExpressionValue(checkedSetting, "explicitContentRadios[0]");
|
|
configureExplicitContentRadio(model, checkedSetting, 0);
|
|
CheckedSetting checkedSetting2 = getExplicitContentRadios().get(1);
|
|
m.checkNotNullExpressionValue(checkedSetting2, "explicitContentRadios[1]");
|
|
configureExplicitContentRadio(model, checkedSetting2, 1);
|
|
CheckedSetting checkedSetting3 = getExplicitContentRadios().get(2);
|
|
m.checkNotNullExpressionValue(checkedSetting3, "explicitContentRadios[2]");
|
|
configureExplicitContentRadio(model, checkedSetting3, 2);
|
|
configurePrivacyControls(model);
|
|
configureRequestDataButton(model.getMe().isVerified(), model.getHarvestState());
|
|
}
|
|
|
|
private final void confirmConsent(Context context, Function5<? super AlertDialog, ? super TextView, ? super TextView, ? super TextView, ? super TextView, Unit> function5) {
|
|
ViewDialogConfirmationBinding a = ViewDialogConfirmationBinding.a(getLayoutInflater().inflate(R.layout.view_dialog_confirmation, (ViewGroup) null, false));
|
|
m.checkNotNullExpressionValue(a, "ViewDialogConfirmationBi…outInflater, null, false)");
|
|
AlertDialog create = new AlertDialog.Builder(context).setView(a.a).setCancelable(false).create();
|
|
m.checkNotNullExpressionValue(create, "AlertDialog.Builder(this…(false)\n .create()");
|
|
TextView textView = a.d;
|
|
m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader");
|
|
TextView textView2 = a.e;
|
|
m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText");
|
|
MaterialButton materialButton = a.f2171b;
|
|
m.checkNotNullExpressionValue(materialButton, "binding.viewDialogConfirmationCancel");
|
|
MaterialButton materialButton2 = a.c;
|
|
m.checkNotNullExpressionValue(materialButton2, "binding.viewDialogConfirmationConfirm");
|
|
function5.invoke(create, textView, textView2, materialButton, materialButton2);
|
|
create.show();
|
|
}
|
|
|
|
private final void deleteContactSync() {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
companion.getContactSync().clearDismissStates();
|
|
companion.getUserConnections().deleteUserConnection("contacts", "@me");
|
|
}
|
|
|
|
private final WidgetSettingsPrivacyBinding getBinding() {
|
|
return (WidgetSettingsPrivacyBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
|
|
}
|
|
|
|
private final List<CheckedSetting> getExplicitContentRadios() {
|
|
return (List) this.explicitContentRadios$delegate.getValue();
|
|
}
|
|
|
|
private final List<CheckedSetting> getFriendSourceRadios() {
|
|
return (List) this.friendSourceRadios$delegate.getValue();
|
|
}
|
|
|
|
public static final void launch(Context context) {
|
|
Companion.launch(context);
|
|
}
|
|
|
|
private final void onRequestDataClick(Context context, RestAPI.HarvestState harvestState) {
|
|
WidgetSettingsPrivacy$onRequestDataClick$4 widgetSettingsPrivacy$onRequestDataClick$4 = new WidgetSettingsPrivacy$onRequestDataClick$4(this, context, new WidgetSettingsPrivacy$onRequestDataClick$3(this, context, new WidgetSettingsPrivacy$onRequestDataClick$2(this, context), new WidgetSettingsPrivacy$onRequestDataClick$1(this, context)));
|
|
if (harvestState instanceof RestAPI.HarvestState.NeverRequested) {
|
|
widgetSettingsPrivacy$onRequestDataClick$4.mo1invoke();
|
|
} else if (harvestState instanceof RestAPI.HarvestState.LastRequested) {
|
|
Harvest data = ((RestAPI.HarvestState.LastRequested) harvestState).getData();
|
|
if (Harvest.canRequest$default(data, 0, 1, null)) {
|
|
widgetSettingsPrivacy$onRequestDataClick$4.mo1invoke();
|
|
} else {
|
|
showNextAvailableRequestAlert(data.nextAvailableRequestInMillis());
|
|
}
|
|
}
|
|
}
|
|
|
|
private final void showDefaultGuildsRestrictedExistingServers(boolean z2) {
|
|
View inflate = getLayoutInflater().inflate(R.layout.widget_settings_privacy_defaults, (ViewGroup) null, false);
|
|
int i = R.id.settings_privacy_defaults_existing_no;
|
|
MaterialButton materialButton = (MaterialButton) inflate.findViewById(R.id.settings_privacy_defaults_existing_no);
|
|
if (materialButton != null) {
|
|
i = R.id.settings_privacy_defaults_existing_yes;
|
|
MaterialButton materialButton2 = (MaterialButton) inflate.findViewById(R.id.settings_privacy_defaults_existing_yes);
|
|
if (materialButton2 != null) {
|
|
LinearLayout linearLayout = (LinearLayout) inflate;
|
|
m.checkNotNullExpressionValue(new w5(linearLayout, materialButton, materialButton2), "WidgetSettingsPrivacyDef…outInflater, null, false)");
|
|
materialButton.setOnClickListener(new WidgetSettingsPrivacy$showDefaultGuildsRestrictedExistingServers$$inlined$apply$lambda$1(this, z2));
|
|
materialButton2.setOnClickListener(new WidgetSettingsPrivacy$showDefaultGuildsRestrictedExistingServers$$inlined$apply$lambda$2(this, z2));
|
|
AlertDialog alertDialog = this.dialog;
|
|
if (alertDialog != null) {
|
|
alertDialog.dismiss();
|
|
}
|
|
m.checkNotNullExpressionValue(linearLayout, "binding.root");
|
|
AlertDialog create = new AlertDialog.Builder(linearLayout.getContext()).setView(linearLayout).create();
|
|
this.dialog = create;
|
|
if (create != null) {
|
|
create.show();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
|
|
}
|
|
|
|
private final void showNextAvailableRequestAlert(long j) {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
m.checkNotNullExpressionValue(context, "context ?: return");
|
|
WidgetNoticeDialog.Builder positiveButton$default = WidgetNoticeDialog.Builder.setPositiveButton$default(new WidgetNoticeDialog.Builder(context).setTitle(R.string.data_privacy_rate_limit_title).setMessage(b.h(context, R.string.data_download_requested_status_note, new Object[]{TimeUtils.renderUtcDate$default(TimeUtils.INSTANCE, j, context, 0, 4, null)}, null, 4)), (int) R.string.okay, (Function1) null, 2, (Object) null);
|
|
FragmentManager parentFragmentManager = getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
positiveButton$default.show(parentFragmentManager);
|
|
}
|
|
}
|
|
|
|
private final void toggleConsent(boolean z2, String str, CheckedSetting checkedSetting) {
|
|
ObservableExtensionsKt.withDimmer(ObservableExtensionsKt.ui$default(RestAPI.Companion.getApi().setConsent(z2, str), this, null, 2, null), getBinding().g, 100).k(o.a.g(getContext(), new WidgetSettingsPrivacy$toggleConsent$1(checkedSetting), new WidgetSettingsPrivacy$toggleConsent$2(checkedSetting, z2)));
|
|
}
|
|
|
|
private final void toggleContactSync(ConnectedAccount connectedAccount, boolean z2) {
|
|
if (connectedAccount != null) {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
StoreUserConnections userConnections = companion.getUserConnections();
|
|
boolean f = connectedAccount.f();
|
|
boolean z3 = true;
|
|
if (connectedAccount.i() != 1) {
|
|
z3 = false;
|
|
}
|
|
userConnections.updateUserConnection(connectedAccount, z2, f, z3);
|
|
if (z2) {
|
|
companion.getContactSync().backgroundUploadContacts();
|
|
}
|
|
}
|
|
}
|
|
|
|
private final void updateDefaultGuildsRestricted(boolean z2, boolean z3) {
|
|
Observable Z = (!z3 ? new k(null) : !z2 ? new k(n0.emptySet()) : StoreStream.Companion.getGuilds().observeGuilds().F(WidgetSettingsPrivacy$updateDefaultGuildsRestricted$1.INSTANCE)).Z(1);
|
|
m.checkNotNullExpressionValue(Z, "when {\n !applyToExi… }\n }\n .take(1)");
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(Z), this, null, 2, null), WidgetSettingsPrivacy.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettingsPrivacy$updateDefaultGuildsRestricted$2(this, z2), 62, (Object) null);
|
|
AlertDialog alertDialog = this.dialog;
|
|
if (alertDialog != null) {
|
|
alertDialog.dismiss();
|
|
}
|
|
}
|
|
|
|
private final void updateFriendDiscoveryFlags(boolean z2, boolean z3) {
|
|
int i = z2 ? 2 : 0;
|
|
if (z3) {
|
|
i |= 4;
|
|
}
|
|
StoreStream.Companion.getUserSettings().setFriendDiscoveryFlags(getAppActivity(), i);
|
|
}
|
|
|
|
private final void updateFriendSourceFlags(int i, boolean z2) {
|
|
boolean z3 = false;
|
|
CheckedSetting checkedSetting = getFriendSourceRadios().get(0);
|
|
m.checkNotNullExpressionValue(checkedSetting, "friendSourceRadios[0]");
|
|
boolean isChecked = checkedSetting.isChecked();
|
|
CheckedSetting checkedSetting2 = getFriendSourceRadios().get(1);
|
|
m.checkNotNullExpressionValue(checkedSetting2, "friendSourceRadios[1]");
|
|
boolean isChecked2 = checkedSetting2.isChecked();
|
|
CheckedSetting checkedSetting3 = getFriendSourceRadios().get(2);
|
|
m.checkNotNullExpressionValue(checkedSetting3, "friendSourceRadios[2]");
|
|
boolean isChecked3 = checkedSetting3.isChecked();
|
|
if ((isChecked && isChecked2 && isChecked3) || (i == 0 && z2)) {
|
|
z3 = true;
|
|
}
|
|
StoreStream.Companion.getUserSettings().setFriendSourceFlags(getAppActivity(), Boolean.valueOf(z3), Boolean.valueOf(isChecked3), Boolean.valueOf(isChecked2));
|
|
}
|
|
|
|
@Override // com.discord.app.AppFragment, androidx.fragment.app.Fragment
|
|
public void onPause() {
|
|
super.onPause();
|
|
AlertDialog alertDialog = this.dialog;
|
|
if (alertDialog != null) {
|
|
alertDialog.dismiss();
|
|
}
|
|
}
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
@SuppressLint({"SetTextI18n"})
|
|
public void onViewBound(View view) {
|
|
m.checkNotNullParameter(view, "view");
|
|
super.onViewBound(view);
|
|
AppFragment.setActionBarDisplayHomeAsUpEnabled$default(this, false, 1, null);
|
|
setActionBarSubtitle(R.string.user_settings);
|
|
setActionBarTitle(R.string.privacy_and_safety);
|
|
this.radioManagerExplicit = new RadioManager(getExplicitContentRadios());
|
|
CheckedSetting checkedSetting = getBinding().v;
|
|
CheckedSetting checkedSetting2 = getBinding().v;
|
|
m.checkNotNullExpressionValue(checkedSetting2, "binding.settingsPrivacyPersonalization");
|
|
f fVar = f.a;
|
|
checkedSetting.h(b.j(checkedSetting2, R.string.data_privacy_controls_personalization_note_learn_more, new Object[]{fVar.a(360004109911L, null)}, null, 4), true);
|
|
CheckedSetting checkedSetting3 = getBinding().f2613y;
|
|
CheckedSetting checkedSetting4 = getBinding().f2613y;
|
|
m.checkNotNullExpressionValue(checkedSetting4, "binding.settingsPrivacyScreenreaderDetection");
|
|
checkedSetting3.h(b.j(checkedSetting4, R.string.data_privacy_controls_allow_accessibility_detection_note, new Object[]{fVar.a(360035966492L, null)}, null, 4), true);
|
|
CheckedSetting checkedSetting5 = getBinding().f2613y;
|
|
checkedSetting5.setOnCheckedListener(new WidgetSettingsPrivacy$onViewBound$$inlined$apply$lambda$1(checkedSetting5, this));
|
|
getBinding().i.setButtonVisibility(false);
|
|
CheckedSetting checkedSetting6 = getBinding().i;
|
|
CheckedSetting checkedSetting7 = getBinding().i;
|
|
m.checkNotNullExpressionValue(checkedSetting7, "binding.settingsPrivacyBasicService");
|
|
checkedSetting6.h(b.d(checkedSetting7, R.string.data_privacy_controls_basic_service_note, new Object[0], WidgetSettingsPrivacy$onViewBound$2.INSTANCE), true);
|
|
getBinding().i.e(WidgetSettingsPrivacy$onViewBound$3.INSTANCE);
|
|
String a = fVar.a(360004027692L, null);
|
|
TextView textView = getBinding().h;
|
|
m.checkNotNullExpressionValue(textView, "binding.requestDataLink");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append('[');
|
|
TextView textView2 = getBinding().h;
|
|
m.checkNotNullExpressionValue(textView2, "binding.requestDataLink");
|
|
sb.append(b.j(textView2, R.string.notice_whats_this, new Object[0], null, 4));
|
|
sb.append("](");
|
|
sb.append(a);
|
|
sb.append(')');
|
|
textView.setText(b.l(sb.toString(), new Object[0], null, 2));
|
|
getBinding().h.setOnClickListener(new WidgetSettingsPrivacy$onViewBound$4(a));
|
|
CheckedSetting checkedSetting8 = getBinding().f2614z;
|
|
CheckedSetting checkedSetting9 = getBinding().f2614z;
|
|
m.checkNotNullExpressionValue(checkedSetting9, "binding.settingsPrivacyStatistics");
|
|
checkedSetting8.h(b.j(checkedSetting9, R.string.data_privacy_controls_usage_statistics_note, new Object[]{fVar.a(360004109911L, null)}, null, 4), true);
|
|
for (TextView textView3 : n.listOf((Object[]) new TextView[]{getBinding().f2612x, getBinding().n, getBinding().u, getBinding().l})) {
|
|
AccessibilityUtils accessibilityUtils = AccessibilityUtils.INSTANCE;
|
|
m.checkNotNullExpressionValue(textView3, "header");
|
|
accessibilityUtils.setViewIsHeading(textView3);
|
|
}
|
|
}
|
|
|
|
@Override // com.discord.app.AppFragment
|
|
public void onViewBoundOrOnResume() {
|
|
super.onViewBoundOrOnResume();
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(Model.Companion.get(), this, null, 2, null), WidgetSettingsPrivacy.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettingsPrivacy$onViewBoundOrOnResume$1(this), 62, (Object) null);
|
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(this.userSettings.observeIsAccessibilityDetectionAllowed(), this, null, 2, null), WidgetSettingsPrivacy.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new WidgetSettingsPrivacy$onViewBoundOrOnResume$2(this), 62, (Object) null);
|
|
}
|
|
}
|