94.3 - Alpha (94203)

This commit is contained in:
Juby210 2021-09-24 08:27:57 +02:00
parent 7a22fe0e02
commit 6dc605dc35
162 changed files with 15473 additions and 14534 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 29
versionCode 94202
versionName "94.2 - Alpha"
versionCode 94203
versionName "94.3 - Alpha"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="94202" android:versionName="94.2 - Alpha" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="94203" android:versionName="94.3 - Alpha" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

View file

@ -12,6 +12,9 @@ import d0.z.d.m;
public final class TrackAgeGateSubmitted implements AnalyticsSchema, TrackBaseReceiver, TrackSourceMetadataReceiver {
private final transient String analyticsSchemaTypeName = "age_gate_submitted";
private final UtcDateTime dob = null;
private final Long dobDay = null;
private final Long dobMonth = null;
private final Long dobYear = null;
private TrackBase trackBase;
private TrackSourceMetadata trackSourceMetadata;
@ -21,21 +24,39 @@ public final class TrackAgeGateSubmitted implements AnalyticsSchema, TrackBaseRe
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof TrackAgeGateSubmitted) && m.areEqual(this.dob, ((TrackAgeGateSubmitted) obj).dob);
if (this == obj) {
return true;
}
return true;
if (!(obj instanceof TrackAgeGateSubmitted)) {
return false;
}
TrackAgeGateSubmitted trackAgeGateSubmitted = (TrackAgeGateSubmitted) obj;
return m.areEqual(this.dob, trackAgeGateSubmitted.dob) && m.areEqual(this.dobDay, trackAgeGateSubmitted.dobDay) && m.areEqual(this.dobMonth, trackAgeGateSubmitted.dobMonth) && m.areEqual(this.dobYear, trackAgeGateSubmitted.dobYear);
}
public int hashCode() {
UtcDateTime utcDateTime = this.dob;
if (utcDateTime != null) {
return utcDateTime.hashCode();
int i = 0;
int hashCode = (utcDateTime != null ? utcDateTime.hashCode() : 0) * 31;
Long l = this.dobDay;
int hashCode2 = (hashCode + (l != null ? l.hashCode() : 0)) * 31;
Long l2 = this.dobMonth;
int hashCode3 = (hashCode2 + (l2 != null ? l2.hashCode() : 0)) * 31;
Long l3 = this.dobYear;
if (l3 != null) {
i = l3.hashCode();
}
return 0;
return hashCode3 + i;
}
public String toString() {
return a.B(a.P("TrackAgeGateSubmitted(dob="), this.dob, ")");
StringBuilder P = a.P("TrackAgeGateSubmitted(dob=");
P.append(this.dob);
P.append(", dobDay=");
P.append(this.dobDay);
P.append(", dobMonth=");
P.append(this.dobMonth);
P.append(", dobYear=");
return a.F(P, this.dobYear, ")");
}
}

View file

@ -0,0 +1,37 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackDevPortalCtaClicked.kt */
public final class TrackDevPortalCtaClicked implements AnalyticsSchema, TrackBaseReceiver {
private final transient String analyticsSchemaTypeName = "dev_portal_cta_clicked";
private final CharSequence ctaName = null;
private TrackBase trackBase;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof TrackDevPortalCtaClicked) && m.areEqual(this.ctaName, ((TrackDevPortalCtaClicked) obj).ctaName);
}
return true;
}
public int hashCode() {
CharSequence charSequence = this.ctaName;
if (charSequence != null) {
return charSequence.hashCode();
}
return 0;
}
public String toString() {
return a.D(a.P("TrackDevPortalCtaClicked(ctaName="), this.ctaName, ")");
}
}

View file

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackDevPortalCtaClicked.kt */
public interface TrackDevPortalCtaClickedReceiver extends AnalyticsSchema {
}

View file

@ -0,0 +1,37 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackDevPortalCtaViewed.kt */
public final class TrackDevPortalCtaViewed implements AnalyticsSchema, TrackBaseReceiver {
private final transient String analyticsSchemaTypeName = "dev_portal_cta_viewed";
private final CharSequence ctaName = null;
private TrackBase trackBase;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof TrackDevPortalCtaViewed) && m.areEqual(this.ctaName, ((TrackDevPortalCtaViewed) obj).ctaName);
}
return true;
}
public int hashCode() {
CharSequence charSequence = this.ctaName;
if (charSequence != null) {
return charSequence.hashCode();
}
return 0;
}
public String toString() {
return a.D(a.P("TrackDevPortalCtaViewed(ctaName="), this.ctaName, ")");
}
}

View file

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackDevPortalCtaViewed.kt */
public interface TrackDevPortalCtaViewedReceiver extends AnalyticsSchema {
}

View file

@ -0,0 +1,56 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.analytics.generated.traits.TrackChannel;
import com.discord.analytics.generated.traits.TrackChannelReceiver;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackDmSafety.kt */
public final class TrackDmSafety implements AnalyticsSchema, TrackBaseReceiver, TrackChannelReceiver {
private final transient String analyticsSchemaTypeName = "dm_safety";
private final Long messageId = null;
private final CharSequence response = null;
private final CharSequence safetyPrompt = null;
private TrackBase trackBase;
private TrackChannel trackChannel;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof TrackDmSafety)) {
return false;
}
TrackDmSafety trackDmSafety = (TrackDmSafety) obj;
return m.areEqual(this.safetyPrompt, trackDmSafety.safetyPrompt) && m.areEqual(this.response, trackDmSafety.response) && m.areEqual(this.messageId, trackDmSafety.messageId);
}
public int hashCode() {
CharSequence charSequence = this.safetyPrompt;
int i = 0;
int hashCode = (charSequence != null ? charSequence.hashCode() : 0) * 31;
CharSequence charSequence2 = this.response;
int hashCode2 = (hashCode + (charSequence2 != null ? charSequence2.hashCode() : 0)) * 31;
Long l = this.messageId;
if (l != null) {
i = l.hashCode();
}
return hashCode2 + i;
}
public String toString() {
StringBuilder P = a.P("TrackDmSafety(safetyPrompt=");
P.append(this.safetyPrompt);
P.append(", response=");
P.append(this.response);
P.append(", messageId=");
return a.F(P, this.messageId, ")");
}
}

View file

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackDmSafety.kt */
public interface TrackDmSafetyReceiver extends AnalyticsSchema {
}

View file

@ -0,0 +1,37 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackEasterEggInteracted.kt */
public final class TrackEasterEggInteracted implements AnalyticsSchema, TrackBaseReceiver {
private final transient String analyticsSchemaTypeName = "easter_egg_interacted";
private TrackBase trackBase;
private final CharSequence type = null;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof TrackEasterEggInteracted) && m.areEqual(this.type, ((TrackEasterEggInteracted) obj).type);
}
return true;
}
public int hashCode() {
CharSequence charSequence = this.type;
if (charSequence != null) {
return charSequence.hashCode();
}
return 0;
}
public String toString() {
return a.D(a.P("TrackEasterEggInteracted(type="), this.type, ")");
}
}

View file

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackEasterEggInteracted.kt */
public interface TrackEasterEggInteractedReceiver extends AnalyticsSchema {
}

View file

@ -0,0 +1,37 @@
package com.discord.analytics.generated.events;
import c.d.b.a.a;
import com.discord.analytics.generated.traits.TrackBase;
import com.discord.analytics.generated.traits.TrackBaseReceiver;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackPremiumUncancelWinbackCtaClicked.kt */
public final class TrackPremiumUncancelWinbackCtaClicked implements AnalyticsSchema, TrackBaseReceiver {
private final CharSequence action = null;
private final transient String analyticsSchemaTypeName = "premium_uncancel_winback_cta_clicked";
private TrackBase trackBase;
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof TrackPremiumUncancelWinbackCtaClicked) && m.areEqual(this.action, ((TrackPremiumUncancelWinbackCtaClicked) obj).action);
}
return true;
}
public int hashCode() {
CharSequence charSequence = this.action;
if (charSequence != null) {
return charSequence.hashCode();
}
return 0;
}
public String toString() {
return a.D(a.P("TrackPremiumUncancelWinbackCtaClicked(action="), this.action, ")");
}
}

View file

@ -0,0 +1,6 @@
package com.discord.analytics.generated.events;
import com.discord.api.science.AnalyticsSchema;
/* compiled from: TrackPremiumUncancelWinbackCtaClicked.kt */
public interface TrackPremiumUncancelWinbackCtaClickedReceiver extends AnalyticsSchema {
}

View file

@ -24,4 +24,8 @@ public final class TrackImpressionChannelAddInfo implements AnalyticsSchema, Tra
public String b() {
return this.analyticsSchemaTypeName;
}
public void c(TrackImpressionMetadata trackImpressionMetadata) {
this.trackImpressionMetadata = trackImpressionMetadata;
}
}

View file

@ -24,4 +24,8 @@ public final class TrackImpressionChannelAddMembers implements AnalyticsSchema,
public String b() {
return this.analyticsSchemaTypeName;
}
public void c(TrackImpressionMetadata trackImpressionMetadata) {
this.trackImpressionMetadata = trackImpressionMetadata;
}
}

View file

@ -24,4 +24,8 @@ public final class TrackImpressionGuildAddCustomize implements AnalyticsSchema,
public String b() {
return this.analyticsSchemaTypeName;
}
public void c(TrackImpressionMetadata trackImpressionMetadata) {
this.trackImpressionMetadata = trackImpressionMetadata;
}
}

View file

@ -24,4 +24,8 @@ public final class TrackImpressionGuildAddJoin implements AnalyticsSchema, Track
public String b() {
return this.analyticsSchemaTypeName;
}
public void c(TrackImpressionMetadata trackImpressionMetadata) {
this.trackImpressionMetadata = trackImpressionMetadata;
}
}

View file

@ -15,14 +15,24 @@ import com.discord.api.science.AnalyticsSchema;
import d0.z.d.m;
/* compiled from: TrackImpressionUserAgeGate.kt */
public final class TrackImpressionUserAgeGate implements AnalyticsSchema, TrackBaseReceiver, TrackGuildReceiver, TrackChannelReceiver, TrackLocationMetadataReceiver, TrackImpressionMetadataReceiver {
private final transient String analyticsSchemaTypeName = "impression_user_age_gate";
private final Boolean existingUser = null;
private final transient String analyticsSchemaTypeName;
private final Boolean existingUser;
private TrackBase trackBase;
private TrackChannel trackChannel;
private TrackGuild trackGuild;
private TrackImpressionMetadata trackImpressionMetadata;
private TrackLocationMetadata trackLocationMetadata;
public TrackImpressionUserAgeGate() {
this.existingUser = null;
this.analyticsSchemaTypeName = "impression_user_age_gate";
}
public TrackImpressionUserAgeGate(Boolean bool) {
this.existingUser = bool;
this.analyticsSchemaTypeName = "impression_user_age_gate";
}
@Override // com.discord.api.science.AnalyticsSchema
public String b() {
return this.analyticsSchemaTypeName;

View file

@ -4,10 +4,25 @@ import c.d.b.a.a;
import d0.z.d.m;
/* compiled from: TrackImpressionMetadata.kt */
public final class TrackImpressionMetadata {
private final CharSequence impressionGroup = null;
private final CharSequence impressionName = null;
private final CharSequence impressionType = null;
private final CharSequence sequenceId = null;
private final CharSequence impressionGroup;
private final CharSequence impressionName;
private final CharSequence impressionType;
private final CharSequence sequenceId;
public TrackImpressionMetadata() {
this(null, null, null, null, 15);
}
public TrackImpressionMetadata(CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, CharSequence charSequence4, int i) {
int i2 = i & 1;
int i3 = i & 2;
int i4 = i & 4;
charSequence4 = (i & 8) != 0 ? null : charSequence4;
this.sequenceId = null;
this.impressionName = null;
this.impressionType = null;
this.impressionGroup = charSequence4;
}
public boolean equals(Object obj) {
if (this == obj) {

View file

@ -0,0 +1,8 @@
package com.discord.analytics.utils;
/* compiled from: ImpressionGroups.kt */
public final class ImpressionGroups {
public static final String CHANNEL_ADD_FLOW = "channel_add_flow";
public static final String GUILD_ADD_FLOW = "guild_add_flow";
public static final String GUILD_ADD_NUF = "guild_add_nuf";
public static final ImpressionGroups INSTANCE = new ImpressionGroups();
}

View file

@ -25,9 +25,11 @@ public final class WidgetChannelsListItemActiveEventBinding implements ViewBindi
@NonNull
public final TextView f;
@NonNull
public final UserSummaryView g;
public final TextView g;
@NonNull
public final MaterialTextView h;
public final UserSummaryView h;
@NonNull
public final MaterialTextView i;
public WidgetChannelsListItemActiveEventBinding(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull MaterialButton materialButton, @NonNull TextView textView2, @NonNull ImageView imageView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull UserSummaryView userSummaryView, @NonNull MaterialTextView materialTextView) {
this.a = constraintLayout;
@ -35,9 +37,10 @@ public final class WidgetChannelsListItemActiveEventBinding implements ViewBindi
this.f1752c = textView;
this.d = materialButton;
this.e = textView2;
this.f = textView4;
this.g = userSummaryView;
this.h = materialTextView;
this.f = textView3;
this.g = textView4;
this.h = userSummaryView;
this.i = materialTextView;
}
@Override // androidx.viewbinding.ViewBinding

View file

@ -13,7 +13,9 @@ import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.button.MaterialButton;
public final class WidgetGuildProfileActionsBinding implements ViewBinding {
@NonNull
public final LinearLayout A;
public final MaterialButton A;
@NonNull
public final LinearLayout B;
@NonNull
public final LinearLayout a;
@NonNull
@ -37,47 +39,47 @@ public final class WidgetGuildProfileActionsBinding implements ViewBinding {
@NonNull
public final TextView j;
@NonNull
public final CardView k;
public final TextView k;
@NonNull
public final RecyclerView l;
public final CardView l;
@NonNull
public final CardView m;
public final RecyclerView m;
@NonNull
public final TextView n;
public final CardView n;
@NonNull
public final SimpleDraweeView o;
public final TextView o;
@NonNull
public final CheckedSetting p;
public final SimpleDraweeView p;
@NonNull
public final MaterialButton q;
public final CheckedSetting q;
@NonNull
public final TextView r;
public final MaterialButton r;
@NonNull
/* renamed from: s reason: collision with root package name */
public final TextView f1862s;
@NonNull
public final CardView t;
public final TextView t;
@NonNull
public final TextView u;
public final CardView u;
@NonNull
public final ImageView v;
public final TextView v;
@NonNull
public final TextView w;
public final ImageView w;
@NonNull
/* renamed from: x reason: collision with root package name */
public final CardView f1863x;
public final TextView f1863x;
@NonNull
/* renamed from: y reason: collision with root package name */
public final MaterialButton f1864y;
public final CardView f1864y;
@NonNull
/* renamed from: z reason: collision with root package name */
public final MaterialButton f1865z;
public WidgetGuildProfileActionsBinding(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull LinearLayout linearLayout3, @NonNull CheckedSetting checkedSetting, @NonNull LinearLayout linearLayout4, @NonNull LinearLayout linearLayout5, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull CardView cardView, @NonNull RecyclerView recyclerView, @NonNull CardView cardView2, @NonNull TextView textView5, @NonNull SimpleDraweeView simpleDraweeView, @NonNull CheckedSetting checkedSetting2, @NonNull MaterialButton materialButton, @NonNull TextView textView6, @NonNull TextView textView7, @NonNull CardView cardView3, @NonNull TextView textView8, @NonNull ImageView imageView, @NonNull TextView textView9, @NonNull CardView cardView4, @NonNull CardView cardView5, @NonNull MaterialButton materialButton2, @NonNull MaterialButton materialButton3, @NonNull LinearLayout linearLayout6) {
public WidgetGuildProfileActionsBinding(@NonNull LinearLayout linearLayout, @NonNull LinearLayout linearLayout2, @NonNull TextView textView, @NonNull LinearLayout linearLayout3, @NonNull CheckedSetting checkedSetting, @NonNull LinearLayout linearLayout4, @NonNull LinearLayout linearLayout5, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull TextView textView4, @NonNull TextView textView5, @NonNull CardView cardView, @NonNull RecyclerView recyclerView, @NonNull CardView cardView2, @NonNull TextView textView6, @NonNull SimpleDraweeView simpleDraweeView, @NonNull CheckedSetting checkedSetting2, @NonNull MaterialButton materialButton, @NonNull TextView textView7, @NonNull TextView textView8, @NonNull CardView cardView3, @NonNull TextView textView9, @NonNull ImageView imageView, @NonNull TextView textView10, @NonNull CardView cardView4, @NonNull CardView cardView5, @NonNull MaterialButton materialButton2, @NonNull MaterialButton materialButton3, @NonNull LinearLayout linearLayout6) {
this.a = linearLayout;
this.b = linearLayout2;
this.f1861c = textView;
@ -88,23 +90,24 @@ public final class WidgetGuildProfileActionsBinding implements ViewBinding {
this.h = textView2;
this.i = textView3;
this.j = textView4;
this.k = cardView;
this.l = recyclerView;
this.m = cardView2;
this.n = textView5;
this.o = simpleDraweeView;
this.p = checkedSetting2;
this.q = materialButton;
this.r = textView6;
this.k = textView5;
this.l = cardView;
this.m = recyclerView;
this.n = cardView2;
this.o = textView6;
this.p = simpleDraweeView;
this.q = checkedSetting2;
this.r = materialButton;
this.f1862s = textView7;
this.t = cardView3;
this.u = textView8;
this.v = imageView;
this.w = textView9;
this.f1863x = cardView4;
this.f1864y = materialButton2;
this.f1865z = materialButton3;
this.A = linearLayout6;
this.t = textView8;
this.u = cardView3;
this.v = textView9;
this.w = imageView;
this.f1863x = textView10;
this.f1864y = cardView4;
this.f1865z = materialButton2;
this.A = materialButton3;
this.B = linearLayout6;
}
@Override // androidx.viewbinding.ViewBinding

View file

@ -19,45 +19,48 @@ public final class WidgetGuildScheduledEventSettingsBinding implements ViewBindi
@NonNull
/* renamed from: c reason: collision with root package name */
public final TextView f1878c;
public final ImageView f1878c;
@NonNull
public final TextInputEditText d;
public final TextView d;
@NonNull
public final TextInputLayout e;
public final TextInputEditText e;
@NonNull
public final TextView f;
public final TextInputLayout f;
@NonNull
public final TextInputEditText g;
public final TextView g;
@NonNull
public final TextInputLayout h;
public final TextInputEditText h;
@NonNull
public final TextInputEditText i;
public final TextInputLayout i;
@NonNull
public final MaterialButton j;
public final TextInputEditText j;
@NonNull
public final TextInputEditText k;
public final MaterialButton k;
@NonNull
public final TextInputEditText l;
@NonNull
public final TextView m;
public final TextInputEditText m;
@NonNull
public final TextInputEditText n;
public final TextView n;
@NonNull
public final TextInputEditText o;
public WidgetGuildScheduledEventSettingsBinding(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull TextView textView, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull TextView textView2, @NonNull TextInputEditText textInputEditText2, @NonNull TextInputLayout textInputLayout2, @NonNull TextView textView3, @NonNull TextInputEditText textInputEditText3, @NonNull TextInputLayout textInputLayout3, @NonNull MaterialButton materialButton, @NonNull NestedScrollView nestedScrollView, @NonNull TextView textView4, @NonNull TextInputEditText textInputEditText4, @NonNull TextInputLayout textInputLayout4, @NonNull TextView textView5, @NonNull TextInputEditText textInputEditText5, @NonNull TextInputLayout textInputLayout5, @NonNull TextView textView6, @NonNull ScreenTitleView screenTitleView, @NonNull ConstraintLayout constraintLayout2, @NonNull TextView textView7, @NonNull TextInputEditText textInputEditText6, @NonNull TextInputLayout textInputLayout6) {
public WidgetGuildScheduledEventSettingsBinding(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull TextView textView, @NonNull TextInputEditText textInputEditText, @NonNull TextInputLayout textInputLayout, @NonNull TextView textView2, @NonNull TextInputEditText textInputEditText2, @NonNull TextInputLayout textInputLayout2, @NonNull TextView textView3, @NonNull TextInputEditText textInputEditText3, @NonNull TextInputLayout textInputLayout3, @NonNull MaterialButton materialButton, @NonNull NestedScrollView nestedScrollView, @NonNull TextView textView4, @NonNull TextInputEditText textInputEditText4, @NonNull TextInputLayout textInputLayout4, @NonNull TextView textView5, @NonNull TextInputEditText textInputEditText5, @NonNull TextInputLayout textInputLayout5, @NonNull TextView textView6, @NonNull ScreenTitleView screenTitleView, @NonNull ConstraintLayout constraintLayout2, @NonNull TextView textView7, @NonNull TextInputEditText textInputEditText6, @NonNull TextInputLayout textInputLayout6) {
this.a = constraintLayout;
this.b = imageView;
this.f1878c = textView;
this.d = textInputEditText;
this.e = textInputLayout;
this.f = textView2;
this.g = textInputEditText2;
this.h = textInputLayout2;
this.i = textInputEditText3;
this.j = materialButton;
this.k = textInputEditText4;
this.l = textInputEditText5;
this.m = textView6;
this.n = textInputEditText6;
this.f1878c = imageView2;
this.d = textView;
this.e = textInputEditText;
this.f = textInputLayout;
this.g = textView2;
this.h = textInputEditText2;
this.i = textInputLayout2;
this.j = textInputEditText3;
this.k = materialButton;
this.l = textInputEditText4;
this.m = textInputEditText5;
this.n = textView6;
this.o = textInputEditText6;
}
@Override // androidx.viewbinding.ViewBinding

View file

@ -17,30 +17,30 @@ public final class WidgetPreviewGuildScheduledEventBinding implements ViewBindin
@NonNull
/* renamed from: c reason: collision with root package name */
public final CheckedSetting f1927c;
public final ImageView f1927c;
@NonNull
public final GuildScheduledEventItemView d;
public final CheckedSetting d;
@NonNull
public final TextView e;
public final GuildScheduledEventItemView e;
@NonNull
public final TextView f;
@NonNull
public final TextView g;
@NonNull
public final ConstraintLayout h;
public final MaterialButton h;
@NonNull
public final MaterialButton i;
public final TextView i;
public WidgetPreviewGuildScheduledEventBinding(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull CheckedSetting checkedSetting, @NonNull GuildScheduledEventItemView guildScheduledEventItemView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull TextView textView3, @NonNull ConstraintLayout constraintLayout2, @NonNull MaterialButton materialButton) {
public WidgetPreviewGuildScheduledEventBinding(@NonNull ConstraintLayout constraintLayout, @NonNull ImageView imageView, @NonNull ImageView imageView2, @NonNull CheckedSetting checkedSetting, @NonNull GuildScheduledEventItemView guildScheduledEventItemView, @NonNull TextView textView, @NonNull TextView textView2, @NonNull ConstraintLayout constraintLayout2, @NonNull MaterialButton materialButton, @NonNull TextView textView3) {
this.a = constraintLayout;
this.b = imageView;
this.f1927c = checkedSetting;
this.d = guildScheduledEventItemView;
this.e = textView;
this.f = textView2;
this.g = textView3;
this.h = constraintLayout2;
this.i = materialButton;
this.f1927c = imageView2;
this.d = checkedSetting;
this.e = guildScheduledEventItemView;
this.f = textView;
this.g = textView2;
this.h = materialButton;
this.i = textView3;
}
@Override // androidx.viewbinding.ViewBinding

View file

@ -4,6 +4,7 @@ import android.net.Uri;
import androidx.core.app.NotificationCompat;
import c.a.d.m0.a;
import com.discord.stores.StoreDynamicLink;
import com.discord.utilities.intent.IntentUtils;
import d0.g0.t;
import d0.z.d.m;
import j0.k.b;
@ -15,7 +16,7 @@ import kotlin.text.Regex;
public final class StoreDynamicLink$storeLinkIfExists$1<T, R> implements b<Uri, StoreDynamicLink.DynamicLinkData> {
public static final StoreDynamicLink$storeLinkIfExists$1 INSTANCE = new StoreDynamicLink$storeLinkIfExists$1();
/* JADX WARNING: Removed duplicated region for block: B:44:0x00ce */
/* JADX WARNING: Removed duplicated region for block: B:48:0x00d8 */
public final StoreDynamicLink.DynamicLinkData call(Uri uri) {
String str;
String str2;
@ -31,8 +32,10 @@ public final class StoreDynamicLink$storeLinkIfExists$1<T, R> implements b<Uri,
if (m.areEqual(uri, Uri.EMPTY)) {
return null;
}
a aVar = a.F;
IntentUtils intentUtils = IntentUtils.INSTANCE;
m.checkNotNullExpressionValue(uri, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI);
Uri uri2 = intentUtils.isHttpDomainUrl(uri) ? uri : null;
a aVar = a.F;
m.checkNotNullParameter(uri, "$this$isInviteLink");
boolean z2 = false;
String str8 = "";
@ -86,14 +89,14 @@ public final class StoreDynamicLink$storeLinkIfExists$1<T, R> implements b<Uri,
str3 = uri.getQueryParameter("fingerprint");
str4 = uri.getQueryParameter("attemptId");
str7 = uri.getQueryParameter("auth_token");
return new StoreDynamicLink.DynamicLinkData(str3, str4, str, str2, str7);
return new StoreDynamicLink.DynamicLinkData(uri2, str3, str4, str, str2, str7);
}
}
str2 = null;
str3 = uri.getQueryParameter("fingerprint");
str4 = uri.getQueryParameter("attemptId");
str7 = uri.getQueryParameter("auth_token");
return new StoreDynamicLink.DynamicLinkData(str3, str4, str, str2, str7);
return new StoreDynamicLink.DynamicLinkData(uri2, str3, str4, str, str2, str7);
}
}
str = null;
@ -117,6 +120,6 @@ public final class StoreDynamicLink$storeLinkIfExists$1<T, R> implements b<Uri,
str7 = uri.getQueryParameter("auth_token");
} catch (Exception unused3) {
}
return new StoreDynamicLink.DynamicLinkData(str3, str4, str, str2, str7);
return new StoreDynamicLink.DynamicLinkData(uri2, str3, str4, str, str2, str7);
}
}

View file

@ -42,8 +42,10 @@ public final class StoreDynamicLink {
private final String fingerprint;
private final String guildTemplateCode;
private final String inviteCode;
private final Uri uri;
public DynamicLinkData(String str, String str2, String str3, String str4, String str5) {
public DynamicLinkData(Uri uri, String str, String str2, String str3, String str4, String str5) {
this.uri = uri;
this.fingerprint = str;
this.attemptId = str2;
this.inviteCode = str3;
@ -51,47 +53,54 @@ public final class StoreDynamicLink {
this.authToken = str5;
}
public static /* synthetic */ DynamicLinkData copy$default(DynamicLinkData dynamicLinkData, String str, String str2, String str3, String str4, String str5, int i, Object obj) {
public static /* synthetic */ DynamicLinkData copy$default(DynamicLinkData dynamicLinkData, Uri uri, String str, String str2, String str3, String str4, String str5, int i, Object obj) {
if ((i & 1) != 0) {
str = dynamicLinkData.fingerprint;
uri = dynamicLinkData.uri;
}
if ((i & 2) != 0) {
str2 = dynamicLinkData.attemptId;
str = dynamicLinkData.fingerprint;
}
if ((i & 4) != 0) {
str3 = dynamicLinkData.inviteCode;
str2 = dynamicLinkData.attemptId;
}
if ((i & 8) != 0) {
str4 = dynamicLinkData.guildTemplateCode;
str3 = dynamicLinkData.inviteCode;
}
if ((i & 16) != 0) {
str4 = dynamicLinkData.guildTemplateCode;
}
if ((i & 32) != 0) {
str5 = dynamicLinkData.authToken;
}
return dynamicLinkData.copy(str, str2, str3, str4, str5);
return dynamicLinkData.copy(uri, str, str2, str3, str4, str5);
}
public final String component1() {
return this.fingerprint;
public final Uri component1() {
return this.uri;
}
public final String component2() {
return this.attemptId;
return this.fingerprint;
}
public final String component3() {
return this.inviteCode;
return this.attemptId;
}
public final String component4() {
return this.guildTemplateCode;
return this.inviteCode;
}
public final String component5() {
return this.guildTemplateCode;
}
public final String component6() {
return this.authToken;
}
public final DynamicLinkData copy(String str, String str2, String str3, String str4, String str5) {
return new DynamicLinkData(str, str2, str3, str4, str5);
public final DynamicLinkData copy(Uri uri, String str, String str2, String str3, String str4, String str5) {
return new DynamicLinkData(uri, str, str2, str3, str4, str5);
}
public boolean equals(Object obj) {
@ -102,7 +111,7 @@ public final class StoreDynamicLink {
return false;
}
DynamicLinkData dynamicLinkData = (DynamicLinkData) obj;
return m.areEqual(this.fingerprint, dynamicLinkData.fingerprint) && m.areEqual(this.attemptId, dynamicLinkData.attemptId) && m.areEqual(this.inviteCode, dynamicLinkData.inviteCode) && m.areEqual(this.guildTemplateCode, dynamicLinkData.guildTemplateCode) && m.areEqual(this.authToken, dynamicLinkData.authToken);
return m.areEqual(this.uri, dynamicLinkData.uri) && m.areEqual(this.fingerprint, dynamicLinkData.fingerprint) && m.areEqual(this.attemptId, dynamicLinkData.attemptId) && m.areEqual(this.inviteCode, dynamicLinkData.inviteCode) && m.areEqual(this.guildTemplateCode, dynamicLinkData.guildTemplateCode) && m.areEqual(this.authToken, dynamicLinkData.authToken);
}
public final String getAttemptId() {
@ -125,25 +134,33 @@ public final class StoreDynamicLink {
return this.inviteCode;
}
public final Uri getUri() {
return this.uri;
}
public int hashCode() {
String str = this.fingerprint;
Uri uri = this.uri;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
int hashCode = (uri != null ? uri.hashCode() : 0) * 31;
String str = this.fingerprint;
int hashCode2 = (hashCode + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.attemptId;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
int hashCode3 = (hashCode2 + (str2 != null ? str2.hashCode() : 0)) * 31;
String str3 = this.inviteCode;
int hashCode3 = (hashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31;
int hashCode4 = (hashCode3 + (str3 != null ? str3.hashCode() : 0)) * 31;
String str4 = this.guildTemplateCode;
int hashCode4 = (hashCode3 + (str4 != null ? str4.hashCode() : 0)) * 31;
int hashCode5 = (hashCode4 + (str4 != null ? str4.hashCode() : 0)) * 31;
String str5 = this.authToken;
if (str5 != null) {
i = str5.hashCode();
}
return hashCode4 + i;
return hashCode5 + i;
}
public String toString() {
StringBuilder P = a.P("DynamicLinkData(fingerprint=");
StringBuilder P = a.P("DynamicLinkData(uri=");
P.append(this.uri);
P.append(", fingerprint=");
P.append(this.fingerprint);
P.append(", attemptId=");
P.append(this.attemptId);
@ -188,7 +205,13 @@ public final class StoreDynamicLink {
String inviteCode2 = dynamicLinkData.getInviteCode();
Objects.requireNonNull(inviteCode2, "null cannot be cast to non-null type kotlin.CharSequence");
IntentUtils.consumeRoutingIntent$default(IntentUtils.INSTANCE, routeBuilders.selectInvite(w.trim(inviteCode2).toString(), StoreInviteSettings.LOCATION_DEEPLINK), context, null, 4, null);
} else if (dynamicLinkData != null && (guildTemplateCode = dynamicLinkData.getGuildTemplateCode()) != null && (!t.isBlank(guildTemplateCode))) {
} else if (dynamicLinkData == null || (guildTemplateCode = dynamicLinkData.getGuildTemplateCode()) == null || !(!t.isBlank(guildTemplateCode))) {
if ((dynamicLinkData != null ? dynamicLinkData.getUri() : null) != null) {
Intent data = new Intent().setData(dynamicLinkData.getUri());
m.checkNotNullExpressionValue(data, "Intent().setData(data.uri)");
IntentUtils.consumeRoutingIntent$default(IntentUtils.INSTANCE, data, context, null, 4, null);
}
} else {
IntentUtils.RouteBuilders routeBuilders2 = IntentUtils.RouteBuilders.INSTANCE;
String guildTemplateCode2 = dynamicLinkData.getGuildTemplateCode();
Objects.requireNonNull(guildTemplateCode2, "null cannot be cast to non-null type kotlin.CharSequence");

View file

@ -420,6 +420,8 @@ public final class StoreGuildScheduledEvents extends StoreV2 {
@StoreThread
public final void handleConnectionOpen(ModelPayload modelPayload) {
m.checkNotNullParameter(modelPayload, "payload");
this.guildScheduledEventsFetchTimestamps.clear();
this.userGuildScheduledEventsFetches.clear();
List<Guild> guilds = modelPayload.getGuilds();
m.checkNotNullExpressionValue(guilds, "payload.guilds");
for (Guild guild : guilds) {

View file

@ -183,19 +183,6 @@ public final class IntentUtils {
return scheme.authority(a.a).build();
}
private final boolean isHttpDomainUrl(Uri uri) {
Regex regex = new Regex("https?", i.IGNORE_CASE);
String scheme = uri.getScheme();
if (scheme == null) {
scheme = "";
}
m.checkNotNullExpressionValue(scheme, "uri.scheme ?: \"\"");
if (regex.matches(scheme)) {
return a.F.a(uri.getHost());
}
return false;
}
private final void notifyFirebaseUserActionStatus(Intent intent, boolean z2) {
String stringExtra = intent.getStringExtra("actions.fulfillment.extra.ACTION_TOKEN");
if (stringExtra != null) {
@ -358,6 +345,20 @@ public final class IntentUtils {
return false;
}
public final boolean isHttpDomainUrl(Uri uri) {
m.checkNotNullParameter(uri, NotificationCompat.MessagingStyle.Message.KEY_DATA_URI);
Regex regex = new Regex("https?", i.IGNORE_CASE);
String scheme = uri.getScheme();
if (scheme == null) {
scheme = "";
}
m.checkNotNullExpressionValue(scheme, "uri.scheme ?: \"\"");
if (regex.matches(scheme)) {
return a.F.a(uri.getHost());
}
return false;
}
public final Intent toExternalizedSend(Intent intent) {
Uri uri;
m.checkNotNullParameter(intent, "$this$toExternalizedSend");

View file

@ -0,0 +1,32 @@
package com.discord.utilities.intent;
import androidx.fragment.app.FragmentActivity;
import com.discord.widgets.contact_sync.ContactSyncAnalytics;
import com.discord.widgets.contact_sync.WidgetContactSync;
import d0.t.g0;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: RouteHandlers.kt */
public final class RouteHandlers$selectFeature$settingMap$9 extends o implements Function1<FragmentActivity, Unit> {
public static final RouteHandlers$selectFeature$settingMap$9 INSTANCE = new RouteHandlers$selectFeature$settingMap$9();
public RouteHandlers$selectFeature$settingMap$9() {
super(1);
}
/* 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(FragmentActivity fragmentActivity) {
invoke(fragmentActivity);
return Unit.a;
}
public final void invoke(FragmentActivity fragmentActivity) {
m.checkNotNullParameter(fragmentActivity, "ctx");
ContactSyncAnalytics.Companion.trackStart$default(ContactSyncAnalytics.Companion, false, g0.mapOf(d0.o.to("location_page", "Deep Link")), 1, null);
WidgetContactSync.Companion.launch$default(WidgetContactSync.Companion, fragmentActivity, null, false, false, false, 30, null);
}
}

View file

@ -358,7 +358,7 @@ public final class RouteHandlers {
if (matchResult == null || (groupValues = matchResult.getGroupValues()) == null || (str = (String) u.getOrNull(groupValues, 1)) == null) {
str = "";
}
Map mapOf = h0.mapOf(o.to("/account", RouteHandlers$selectFeature$settingMap$1.INSTANCE), o.to("/nitro", RouteHandlers$selectFeature$settingMap$2.INSTANCE), o.to("/voice", RouteHandlers$selectFeature$settingMap$3.INSTANCE), o.to("/createServer", RouteHandlers$selectFeature$settingMap$4.INSTANCE), o.to("/quickSwitcher", RouteHandlers$selectFeature$settingMap$5.INSTANCE), o.to("/friends", RouteHandlers$selectFeature$settingMap$6.INSTANCE), o.to("/mentions", RouteHandlers$selectFeature$settingMap$7.INSTANCE), o.to("/settings", RouteHandlers$selectFeature$settingMap$8.INSTANCE));
Map mapOf = h0.mapOf(o.to("/account", RouteHandlers$selectFeature$settingMap$1.INSTANCE), o.to("/nitro", RouteHandlers$selectFeature$settingMap$2.INSTANCE), o.to("/voice", RouteHandlers$selectFeature$settingMap$3.INSTANCE), o.to("/createServer", RouteHandlers$selectFeature$settingMap$4.INSTANCE), o.to("/quickSwitcher", RouteHandlers$selectFeature$settingMap$5.INSTANCE), o.to("/friends", RouteHandlers$selectFeature$settingMap$6.INSTANCE), o.to("/mentions", RouteHandlers$selectFeature$settingMap$7.INSTANCE), o.to("/settings", RouteHandlers$selectFeature$settingMap$8.INSTANCE), o.to("/contactSync", RouteHandlers$selectFeature$settingMap$9.INSTANCE));
StoreStream.Companion.getNavigation().launchNotice(a.u("ROUTING:", str), new RouteHandlers$selectFeature$1(mapOf, str));
return mapOf.containsKey(str) ? new AnalyticsMetadata(str, null, null, 6, null) : AnalyticsMetadata.Companion.getUNKNOWN();
}

View file

@ -15,6 +15,7 @@ public final class ManageGuildContext {
private final boolean canManageBans;
private final boolean canManageChannels;
private final boolean canManageEmojisAndStickers;
private final boolean canManageEvents;
private final boolean canManageNicknames;
private final boolean canManageRoles;
private final boolean canManageServer;
@ -46,14 +47,14 @@ public final class ManageGuildContext {
break;
}
}
return new ManageGuildContext(!z2 || PermissionUtils.can(32, l), !z2 || PermissionUtils.can(16, l) || z4, !z2 || PermissionUtils.can(Permission.MANAGE_ROLES, l), !z2 || PermissionUtils.can(4, l), !z2 || PermissionUtils.can(Permission.MANAGE_NICKNAMES, l), !z2 || PermissionUtils.can(Permission.MANAGE_EMOJIS_AND_STICKERS, l), !z2 || PermissionUtils.can(128, l), !z2 && PermissionUtils.isElevated(z3, i));
return new ManageGuildContext(!z2 || PermissionUtils.can(32, l), !z2 || PermissionUtils.can(16, l) || z4, !z2 || PermissionUtils.can(Permission.MANAGE_ROLES, l), !z2 || PermissionUtils.can(4, l), !z2 || PermissionUtils.can(Permission.MANAGE_NICKNAMES, l), !z2 || PermissionUtils.can(Permission.MANAGE_EMOJIS_AND_STICKERS, l), !z2 || PermissionUtils.can(128, l), !z2 || PermissionUtils.can(Permission.MANAGE_EVENTS, l), !z2 && PermissionUtils.isElevated(z3, i));
}
z4 = false;
return new ManageGuildContext(!z2 || PermissionUtils.can(32, l), !z2 || PermissionUtils.can(16, l) || z4, !z2 || PermissionUtils.can(Permission.MANAGE_ROLES, l), !z2 || PermissionUtils.can(4, l), !z2 || PermissionUtils.can(Permission.MANAGE_NICKNAMES, l), !z2 || PermissionUtils.can(Permission.MANAGE_EMOJIS_AND_STICKERS, l), !z2 || PermissionUtils.can(128, l), !z2 && PermissionUtils.isElevated(z3, i));
return new ManageGuildContext(!z2 || PermissionUtils.can(32, l), !z2 || PermissionUtils.can(16, l) || z4, !z2 || PermissionUtils.can(Permission.MANAGE_ROLES, l), !z2 || PermissionUtils.can(4, l), !z2 || PermissionUtils.can(Permission.MANAGE_NICKNAMES, l), !z2 || PermissionUtils.can(Permission.MANAGE_EMOJIS_AND_STICKERS, l), !z2 || PermissionUtils.can(128, l), !z2 || PermissionUtils.can(Permission.MANAGE_EVENTS, l), !z2 && PermissionUtils.isElevated(z3, i));
}
}
public ManageGuildContext(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9) {
public ManageGuildContext(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9, boolean z10) {
this.canManageServer = z2;
this.canManageChannels = z3;
this.canManageRoles = z4;
@ -61,11 +62,12 @@ public final class ManageGuildContext {
this.canManageNicknames = z6;
this.canManageEmojisAndStickers = z7;
this.canViewAuditLogs = z8;
this.isOwnerWithRequiredMFALevel = z9;
this.canManageEvents = z9;
this.isOwnerWithRequiredMFALevel = z10;
}
public static /* synthetic */ ManageGuildContext copy$default(ManageGuildContext manageGuildContext, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9, int i, Object obj) {
return manageGuildContext.copy((i & 1) != 0 ? manageGuildContext.canManageServer : z2, (i & 2) != 0 ? manageGuildContext.canManageChannels : z3, (i & 4) != 0 ? manageGuildContext.canManageRoles : z4, (i & 8) != 0 ? manageGuildContext.canManageBans : z5, (i & 16) != 0 ? manageGuildContext.canManageNicknames : z6, (i & 32) != 0 ? manageGuildContext.canManageEmojisAndStickers : z7, (i & 64) != 0 ? manageGuildContext.canViewAuditLogs : z8, (i & 128) != 0 ? manageGuildContext.isOwnerWithRequiredMFALevel : z9);
public static /* synthetic */ ManageGuildContext copy$default(ManageGuildContext manageGuildContext, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9, boolean z10, int i, Object obj) {
return manageGuildContext.copy((i & 1) != 0 ? manageGuildContext.canManageServer : z2, (i & 2) != 0 ? manageGuildContext.canManageChannels : z3, (i & 4) != 0 ? manageGuildContext.canManageRoles : z4, (i & 8) != 0 ? manageGuildContext.canManageBans : z5, (i & 16) != 0 ? manageGuildContext.canManageNicknames : z6, (i & 32) != 0 ? manageGuildContext.canManageEmojisAndStickers : z7, (i & 64) != 0 ? manageGuildContext.canViewAuditLogs : z8, (i & 128) != 0 ? manageGuildContext.canManageEvents : z9, (i & 256) != 0 ? manageGuildContext.isOwnerWithRequiredMFALevel : z10);
}
public static final ManageGuildContext from(List<Channel> list, boolean z2, Long l, Map<Long, Long> map, int i, boolean z3) {
@ -105,11 +107,15 @@ public final class ManageGuildContext {
}
public final boolean component8() {
return this.canManageEvents;
}
public final boolean component9() {
return this.isOwnerWithRequiredMFALevel;
}
public final ManageGuildContext copy(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9) {
return new ManageGuildContext(z2, z3, z4, z5, z6, z7, z8, z9);
public final ManageGuildContext copy(boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, boolean z9, boolean z10) {
return new ManageGuildContext(z2, z3, z4, z5, z6, z7, z8, z9, z10);
}
public boolean equals(Object obj) {
@ -120,7 +126,7 @@ public final class ManageGuildContext {
return false;
}
ManageGuildContext manageGuildContext = (ManageGuildContext) obj;
return this.canManageServer == manageGuildContext.canManageServer && this.canManageChannels == manageGuildContext.canManageChannels && this.canManageRoles == manageGuildContext.canManageRoles && this.canManageBans == manageGuildContext.canManageBans && this.canManageNicknames == manageGuildContext.canManageNicknames && this.canManageEmojisAndStickers == manageGuildContext.canManageEmojisAndStickers && this.canViewAuditLogs == manageGuildContext.canViewAuditLogs && this.isOwnerWithRequiredMFALevel == manageGuildContext.isOwnerWithRequiredMFALevel;
return this.canManageServer == manageGuildContext.canManageServer && this.canManageChannels == manageGuildContext.canManageChannels && this.canManageRoles == manageGuildContext.canManageRoles && this.canManageBans == manageGuildContext.canManageBans && this.canManageNicknames == manageGuildContext.canManageNicknames && this.canManageEmojisAndStickers == manageGuildContext.canManageEmojisAndStickers && this.canViewAuditLogs == manageGuildContext.canViewAuditLogs && this.canManageEvents == manageGuildContext.canManageEvents && this.isOwnerWithRequiredMFALevel == manageGuildContext.isOwnerWithRequiredMFALevel;
}
public final boolean getCanManageBans() {
@ -135,6 +141,10 @@ public final class ManageGuildContext {
return this.canManageEmojisAndStickers;
}
public final boolean getCanManageEvents() {
return this.canManageEvents;
}
public final boolean getCanManageNicknames() {
return this.canManageNicknames;
}
@ -209,11 +219,19 @@ public final class ManageGuildContext {
int i27 = z8 ? 1 : 0;
int i28 = z8 ? 1 : 0;
int i29 = (i25 + i26) * 31;
boolean z9 = this.isOwnerWithRequiredMFALevel;
if (!z9) {
i = z9 ? 1 : 0;
boolean z9 = this.canManageEvents;
if (z9) {
z9 = true;
}
return i29 + i;
int i30 = z9 ? 1 : 0;
int i31 = z9 ? 1 : 0;
int i32 = z9 ? 1 : 0;
int i33 = (i29 + i30) * 31;
boolean z10 = this.isOwnerWithRequiredMFALevel;
if (!z10) {
i = z10 ? 1 : 0;
}
return i33 + i;
}
public final boolean isOwnerWithRequiredMFALevel() {
@ -235,6 +253,8 @@ public final class ManageGuildContext {
P.append(this.canManageEmojisAndStickers);
P.append(", canViewAuditLogs=");
P.append(this.canViewAuditLogs);
P.append(", canManageEvents=");
P.append(this.canManageEvents);
P.append(", isOwnerWithRequiredMFALevel=");
return a.L(P, this.isOwnerWithRequiredMFALevel, ")");
}

View file

@ -20,8 +20,8 @@ public final class SystemLogUtils$fetch$1<V> implements Callable<LinkedList<Stri
this.$logErrors = z2;
}
/* JADX WARNING: Code restructure failed: missing block: B:17:0x009d, code lost:
if (0 != 0) goto L_0x004c;
/* JADX WARNING: Code restructure failed: missing block: B:17:0x009b, code lost:
if (0 != 0) goto L_0x004a;
*/
@Override // java.util.concurrent.Callable
public final LinkedList<String> call() {

View file

@ -333,8 +333,8 @@ public final class SystemLogUtils {
return systemLogCapture.startThread();
}
/* JADX WARNING: Removed duplicated region for block: B:39:0x0084 */
/* JADX WARNING: Removed duplicated region for block: B:41:0x009a */
/* JADX WARNING: Removed duplicated region for block: B:39:0x0082 */
/* JADX WARNING: Removed duplicated region for block: B:41:0x0098 */
/* JADX WARNING: Removed duplicated region for block: B:59:? A[RETURN, SYNTHETIC] */
public final void processLogs$app_productionCanaryRelease(BufferedReader bufferedReader, LinkedList<String> linkedList, Regex regex) {
Exception e;

View file

@ -0,0 +1,21 @@
package com.discord.widgets.auth;
import com.discord.analytics.generated.events.impression.TrackImpressionUserAgeGate;
import com.discord.api.science.AnalyticsSchema;
import com.discord.stores.StoreStream;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetAgeVerify.kt */
public final class WidgetAgeVerify$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
public static final WidgetAgeVerify$loggingConfig$1 INSTANCE = new WidgetAgeVerify$loggingConfig$1();
public WidgetAgeVerify$loggingConfig$1() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AnalyticsSchema mo1invoke() {
return new TrackImpressionUserAgeGate(Boolean.valueOf(StoreStream.Companion.getUsers().getMe().getId() > 0));
}
}

View file

@ -19,6 +19,7 @@ import c.d.b.a.a;
import com.discord.R;
import com.discord.app.AppFragment;
import com.discord.app.AppViewFlipper;
import com.discord.app.LoggingConfig;
import com.discord.databinding.WidgetAgeVerifyBinding;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.birthday.BirthdayHelper;
@ -46,6 +47,7 @@ public final class WidgetAgeVerify extends AppFragment {
public static final Companion Companion = new Companion(null);
private static final String INTENT_EXTRA_NSFW_CHANNEL = "INTENT_EXTRA_NSFW_CHANNEL";
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetAgeVerify$binding$2.INSTANCE, null, 2, null);
private final LoggingConfig loggingConfig;
private final Lazy viewModel$delegate;
/* compiled from: WidgetAgeVerify.kt */
@ -78,6 +80,7 @@ public final class WidgetAgeVerify extends AppFragment {
WidgetAgeVerify$viewModel$2 widgetAgeVerify$viewModel$2 = WidgetAgeVerify$viewModel$2.INSTANCE;
f0 f0Var = new f0(this);
this.viewModel$delegate = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(WidgetAgeVerifyViewModel.class), new WidgetAgeVerify$appViewModels$$inlined$viewModels$1(f0Var), new h0(widgetAgeVerify$viewModel$2));
this.loggingConfig = new LoggingConfig(false, null, WidgetAgeVerify$loggingConfig$1.INSTANCE, 3);
}
public static final /* synthetic */ void access$configureUI(WidgetAgeVerify widgetAgeVerify, WidgetAgeVerifyViewModel.ViewState viewState) {
@ -208,6 +211,11 @@ public final class WidgetAgeVerify extends AppFragment {
}
}
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
@Override // com.discord.app.AppFragment
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");

View file

@ -16,10 +16,10 @@ public final class WidgetAuthMfa$onViewBound$1<T1, T2> implements Action2<MenuIt
public final void call(MenuItem menuItem, Context context) {
m.checkNotNullExpressionValue(menuItem, "menuItem");
switch (menuItem.getItemId()) {
case R.id.menu_auth_mfa_backup_codes /* 2131364169 */:
case R.id.menu_auth_mfa_backup_codes /* 2131364170 */:
WidgetAuthMfa.access$showBackupCodesDialog(this.this$0);
return;
case R.id.menu_auth_mfa_info /* 2131364170 */:
case R.id.menu_auth_mfa_info /* 2131364171 */:
WidgetAuthMfa.access$showInfoDialog(this.this$0);
return;
default:

View file

@ -0,0 +1,24 @@
package com.discord.widgets.channels;
import com.discord.analytics.generated.events.impression.TrackImpressionChannelAddInfo;
import com.discord.analytics.generated.traits.TrackImpressionMetadata;
import com.discord.analytics.utils.ImpressionGroups;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetCreateChannel.kt */
public final class WidgetCreateChannel$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
public static final WidgetCreateChannel$loggingConfig$1 INSTANCE = new WidgetCreateChannel$loggingConfig$1();
public WidgetCreateChannel$loggingConfig$1() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AnalyticsSchema mo1invoke() {
TrackImpressionChannelAddInfo trackImpressionChannelAddInfo = new TrackImpressionChannelAddInfo();
trackImpressionChannelAddInfo.c(new TrackImpressionMetadata(null, null, null, ImpressionGroups.CHANNEL_ADD_FLOW, 7));
return trackImpressionChannelAddInfo;
}
}

View file

@ -24,6 +24,7 @@ import com.discord.api.permission.Permission;
import com.discord.api.role.GuildRole;
import com.discord.app.AppActivity;
import com.discord.app.AppFragment;
import com.discord.app.LoggingConfig;
import com.discord.databinding.ViewCheckableRoleListItemThemedBinding;
import com.discord.databinding.WidgetCreateChannelBinding;
import com.discord.restapi.RestAPIParams;
@ -76,6 +77,7 @@ public final class WidgetCreateChannel extends AppFragment {
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetCreateChannel$binding$2.INSTANCE, null, 2, null);
private final Lazy categoryId$delegate = g.lazy(new WidgetCreateChannel$categoryId$2(this));
private final Lazy guildId$delegate = g.lazy(new WidgetCreateChannel$guildId$2(this));
private final LoggingConfig loggingConfig = new LoggingConfig(false, null, WidgetCreateChannel$loggingConfig$1.INSTANCE, 3);
private final Lazy provideResultOnly$delegate = g.lazy(new WidgetCreateChannel$provideResultOnly$2(this));
private RolesAdapter rolesAdapter;
private final Lazy shouldChannelDefaultPrivate$delegate = g.lazy(new WidgetCreateChannel$shouldChannelDefaultPrivate$2(this));
@ -475,6 +477,11 @@ public final class WidgetCreateChannel extends AppFragment {
finishActivity();
}
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
@Override // com.discord.app.AppFragment
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");

View file

@ -3,6 +3,8 @@ package com.discord.widgets.channels.list;
import c.d.b.a.a;
import com.discord.api.channel.Channel;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityMetadata;
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType;
import com.discord.api.guildscheduledevent.GuildScheduledEventStatus;
import com.discord.api.permission.Permission;
import com.discord.api.stageinstance.StageInstance;
@ -37,6 +39,7 @@ import com.discord.widgets.channels.list.items.ChannelListItemEventsSeparator;
import com.discord.widgets.channels.list.items.ChannelListItemInvite;
import com.discord.widgets.channels.list.items.ChannelListItemMfaNotice;
import com.discord.widgets.channels.list.items.ChannelListItemVoiceUser;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventLocationInfo;
import com.discord.widgets.stage.StageRoles;
import com.discord.widgets.stage.model.StageChannel;
import d0.f0.q;
@ -333,33 +336,35 @@ public final class WidgetChannelListModel {
return companion.guildListBuilder(j, guildChannelsInfo, map, map2, set, channel, j2, map3, map4, set2, set3, map5, map6, list, z2);
}
/* JADX WARNING: Removed duplicated region for block: B:101:0x0195 A[EDGE_INSN: B:101:0x0195->B:81:0x0195 ?: BREAK , SYNTHETIC] */
private final ChannelListItemActiveEventData getChannelEventNoticeData(GuildChannelsInfo guildChannelsInfo, Map<Long, StageChannel> map, List<GuildScheduledEvent> list, Map<Long, ? extends Collection<ChannelListItemVoiceUser>> map2, Map<Long, Channel> map3, long j) {
Object obj;
Channel channel;
ArrayList arrayList;
ChannelListItemVoiceUser channelListItemVoiceUser;
Object obj2;
GuildScheduledEventEntityMetadata d;
String a;
boolean z2;
Channel channel;
List list2;
ChannelListItemVoiceUser channelListItemVoiceUser;
Object obj3;
boolean z3;
boolean z4;
Channel channel2;
Long b;
StageChannel stageChannel = (StageChannel) q.firstOrNull(q.filter(u.asSequence(map.values()), WidgetChannelListModel$Companion$getChannelEventNoticeData$1.INSTANCE));
boolean z4 = false;
String str = null;
if (stageChannel != null) {
Channel channel3 = stageChannel.getChannel();
GuildScheduledEventLocationInfo.ChannelLocation channelLocation = new GuildScheduledEventLocationInfo.ChannelLocation(stageChannel.getChannel());
int audienceSize = stageChannel.getAudienceSize();
List<UserGuildMember> speakers = stageChannel.getSpeakers();
boolean containsMe = stageChannel.getContainsMe();
StageRoles r9 = stageChannel.m44getMyRolestwRsX0();
if (r9 != null && StageRoles.m27isSpeakerimpl(r9.m29unboximpl())) {
z4 = true;
}
StageRoles r1 = stageChannel.m44getMyRolestwRsX0();
boolean z5 = r1 != null && StageRoles.m27isSpeakerimpl(r1.m29unboximpl());
StageInstance stageInstance = stageChannel.getStageInstance();
if (stageInstance != null) {
str = stageInstance.f();
}
return new ChannelListItemActiveEventData(str, channel3, audienceSize, speakers, containsMe, z4);
return new ChannelListItemActiveEventData(str, channelLocation, audienceSize, speakers, containsMe, z5, null);
}
Iterator<T> it = list.iterator();
while (true) {
@ -370,13 +375,13 @@ public final class WidgetChannelListModel {
obj = it.next();
GuildScheduledEvent guildScheduledEvent = (GuildScheduledEvent) obj;
if (guildScheduledEvent.k() != GuildScheduledEventStatus.ACTIVE || (channel2 = map3.get(guildScheduledEvent.b())) == null || channel2.A() != 2 || !PermissionUtils.can(Permission.CONNECT, guildChannelsInfo.getChannelPermissions().get(guildScheduledEvent.b())) || ((b = guildScheduledEvent.b()) != null && b.longValue() == j)) {
z3 = false;
z4 = false;
continue;
} else {
z3 = true;
z4 = true;
continue;
}
if (z3) {
if (z4) {
break;
}
}
@ -384,12 +389,12 @@ public final class WidgetChannelListModel {
if (!(guildScheduledEvent2 == null || (channel = map3.get(guildScheduledEvent2.b())) == null)) {
Collection<ChannelListItemVoiceUser> collection = (Collection) map2.get(guildScheduledEvent2.b());
if (collection != null) {
arrayList = new ArrayList(o.collectionSizeOrDefault(collection, 10));
list2 = new ArrayList(o.collectionSizeOrDefault(collection, 10));
for (ChannelListItemVoiceUser channelListItemVoiceUser2 : collection) {
arrayList.add(new UserGuildMember(channelListItemVoiceUser2.getUser(), channelListItemVoiceUser2.getComputed()));
list2.add(new UserGuildMember(channelListItemVoiceUser2.getUser(), channelListItemVoiceUser2.getComputed()));
}
} else {
arrayList = null;
list2 = null;
}
long id2 = StoreStream.Companion.getUsers().getMe().getId();
Collection collection2 = (Collection) map2.get(guildScheduledEvent2.b());
@ -397,33 +402,62 @@ public final class WidgetChannelListModel {
Iterator it2 = collection2.iterator();
while (true) {
if (!it2.hasNext()) {
obj2 = null;
obj3 = null;
break;
}
obj2 = it2.next();
if (((ChannelListItemVoiceUser) obj2).getUser().getId() == id2) {
z2 = true;
obj3 = it2.next();
if (((ChannelListItemVoiceUser) obj3).getUser().getId() == id2) {
z3 = true;
continue;
} else {
z2 = false;
z3 = false;
continue;
}
if (z3) {
break;
}
}
channelListItemVoiceUser = (ChannelListItemVoiceUser) obj3;
} else {
channelListItemVoiceUser = null;
}
boolean z6 = channelListItemVoiceUser != null;
if (!z6) {
GuildScheduledEventLocationInfo.ChannelLocation channelLocation2 = new GuildScheduledEventLocationInfo.ChannelLocation(channel);
if (list2 == null) {
list2 = n.emptyList();
}
return new ChannelListItemActiveEventData(guildScheduledEvent2.h(), channelLocation2, 0, list2, z6, z6, null);
}
}
Iterator<T> it3 = list.iterator();
while (true) {
if (!it3.hasNext()) {
obj2 = null;
break;
}
obj2 = it3.next();
GuildScheduledEvent guildScheduledEvent3 = (GuildScheduledEvent) obj2;
if (guildScheduledEvent3.k() == GuildScheduledEventStatus.ACTIVE && guildScheduledEvent3.e() == GuildScheduledEventEntityType.EXTERNAL) {
GuildScheduledEventEntityMetadata d2 = guildScheduledEvent3.d();
if ((d2 != null ? d2.a() : null) != null) {
z2 = true;
continue;
if (z2) {
break;
}
}
channelListItemVoiceUser = (ChannelListItemVoiceUser) obj2;
} else {
channelListItemVoiceUser = null;
}
if (channelListItemVoiceUser != null) {
z4 = true;
}
if (!z4) {
return new ChannelListItemActiveEventData(guildScheduledEvent2.h(), channel, 0, arrayList != null ? arrayList : n.emptyList(), z4, z4);
z2 = false;
continue;
if (z2) {
}
}
return null;
GuildScheduledEvent guildScheduledEvent4 = (GuildScheduledEvent) obj2;
if (guildScheduledEvent4 == null || (d = guildScheduledEvent4.d()) == null || (a = d.a()) == null) {
return null;
}
return new ChannelListItemActiveEventData(guildScheduledEvent4.h(), new GuildScheduledEventLocationInfo.ExternalLocation(a), 0, n.emptyList(), false, false, Long.valueOf(guildScheduledEvent4.g()));
}
private final Observable<WidgetChannelListModel> getPrivateChannelList() {

View file

@ -81,6 +81,8 @@ import com.discord.widgets.channels.list.items.ChannelListItemThread;
import com.discord.widgets.channels.list.items.ChannelListItemVoiceChannel;
import com.discord.widgets.channels.list.items.ChannelListItemVoiceUser;
import com.discord.widgets.channels.list.items.ChannelListVocalItem;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventLocationInfo;
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textview.MaterialTextView;
@ -1359,7 +1361,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ChannelListItemActiveEventData data;
GuildScheduledEventLocationInfo.ChannelLocation channelLocation;
Channel channel;
if (this.this$0.getAdapterPosition() != -1) {
ChannelListItem item = this.$adapter.getItem(this.this$0.getAdapterPosition());
@ -1367,8 +1369,13 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
item = null;
}
ChannelListItemActiveEvent channelListItemActiveEvent = (ChannelListItemActiveEvent) item;
if (channelListItemActiveEvent != null && (data = channelListItemActiveEvent.getData()) != null && (channel = data.getChannel()) != null && AnimatableValueParser.m1(channel)) {
this.$adapter.getOnCallChannel().invoke(channel);
if (channelListItemActiveEvent != null) {
GuildScheduledEventLocationInfo locationInfo = channelListItemActiveEvent.getData().getLocationInfo();
if ((locationInfo instanceof GuildScheduledEventLocationInfo.ChannelLocation) && (channel = (channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo).getChannel()) != null && AnimatableValueParser.m1(channel)) {
this.$adapter.getOnCallChannel().invoke(channelLocation.getChannel());
} else if ((locationInfo instanceof GuildScheduledEventLocationInfo.ExternalLocation) && channelListItemActiveEvent.getData().getEventId() != null) {
WidgetGuildScheduledEventDetailsBottomSheet.Companion.show(WidgetChannelsListAdapter.access$getFragmentManager$p(this.$adapter), channelListItemActiveEvent.getData().getEventId().longValue());
}
}
}
}
@ -1423,45 +1430,59 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
throw new NullPointerException("Missing required view with ID: ".concat(view.getResources().getResourceName(i2)));
}
/* JADX WARNING: Code restructure failed: missing block: B:28:0x00a1, code lost:
if (r14 != null) goto L_0x00ac;
*/
public void onConfigure(int i, ChannelListItem channelListItem) {
String str;
CharSequence charSequence;
m.checkNotNullParameter(channelListItem, "data");
super.onConfigure(i, (int) channelListItem);
ChannelListItemActiveEventData data = ((ChannelListItemActiveEvent) channelListItem).getData();
GuildScheduledEventLocationInfo locationInfo = data.getLocationInfo();
if (!(locationInfo instanceof GuildScheduledEventLocationInfo.ChannelLocation)) {
locationInfo = null;
}
GuildScheduledEventLocationInfo.ChannelLocation channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo;
Channel channel = channelLocation != null ? channelLocation.getChannel() : null;
int audienceSize = data.getAudienceSize();
boolean z2 = data.getChannel().A() == 13;
int i2 = z2 ? R.drawable.ic_channel_stage_16dp : R.drawable.ic_channel_voice_16dp;
boolean z2 = channel != null && channel.A() == 13;
int i2 = z2 ? R.drawable.ic_channel_stage_16dp : (channel == null || channel.A() != 2) ? R.drawable.ic_location_16dp : R.drawable.ic_channel_voice_16dp;
ConstraintLayout constraintLayout = this.binding.a;
m.checkNotNullExpressionValue(constraintLayout, "binding.root");
Drawable drawable = ContextCompat.getDrawable(constraintLayout.getContext(), i2);
this.binding.f.setText(data.getLocationInfo() instanceof GuildScheduledEventLocationInfo.ExternalLocation ? R.string.live_event : R.string.stage_channel_live_now);
TextView textView = this.binding.e;
m.checkNotNullExpressionValue(textView, "binding.eventTopic");
textView.setText(data.getTopic());
TextView textView2 = this.binding.f1752c;
m.checkNotNullExpressionValue(textView2, "binding.eventChannel");
Channel channel = data.getChannel();
ConstraintLayout constraintLayout2 = this.binding.a;
m.checkNotNullExpressionValue(constraintLayout2, "binding.root");
Context context = constraintLayout2.getContext();
m.checkNotNullExpressionValue(context, "binding.root.context");
textView2.setText(AnimatableValueParser.A0(channel, context, false, 2));
if (channel != null) {
ConstraintLayout constraintLayout2 = this.binding.a;
m.checkNotNullExpressionValue(constraintLayout2, "binding.root");
Context context = constraintLayout2.getContext();
m.checkNotNullExpressionValue(context, "binding.root.context");
str = AnimatableValueParser.A0(channel, context, false, 2);
}
str = data.getLocationInfo().getLocationName();
textView2.setText(str);
this.binding.f1752c.setCompoundDrawablesWithIntrinsicBounds(drawable, (Drawable) null, (Drawable) null, (Drawable) null);
TextView textView3 = this.binding.f;
TextView textView3 = this.binding.g;
m.checkNotNullExpressionValue(textView3, "binding.stageEventListeners");
int i3 = 8;
textView3.setVisibility(z2 ? 0 : 8);
TextView textView4 = this.binding.f;
TextView textView4 = this.binding.g;
m.checkNotNullExpressionValue(textView4, "binding.stageEventListeners");
b.n(textView4, R.string.listening_count, new Object[]{Integer.valueOf(audienceSize)}, null, 4);
ImageView imageView = this.binding.b;
m.checkNotNullExpressionValue(imageView, "binding.channelSeparator");
imageView.setVisibility(z2 ? 0 : 8);
UserSummaryView userSummaryView = this.binding.g;
UserSummaryView userSummaryView = this.binding.h;
userSummaryView.setVisibility(data.getSpeakers().isEmpty() ^ true ? 0 : 8);
if (!data.getSpeakers().isEmpty()) {
userSummaryView.setMembers(data.getSpeakers());
}
MaterialTextView materialTextView = this.binding.h;
MaterialTextView materialTextView = this.binding.i;
if (!data.getSpeakers().isEmpty()) {
i3 = 0;
}
@ -1476,7 +1497,7 @@ public final class WidgetChannelsListAdapter extends MGRecyclerAdapterSimple<Cha
}
materialTextView.setText(charSequence);
}
this.binding.d.setText(!z2 ? R.string.join : R.string.stage_channel_join_button);
this.binding.d.setText(data.getLocationInfo() instanceof GuildScheduledEventLocationInfo.ExternalLocation ? R.string.guild_event_see_detail : !z2 ? R.string.join : R.string.stage_channel_join_button);
}
}

View file

@ -7,16 +7,10 @@ public final class ChannelListItemActiveEvent implements ChannelListItem {
private final String key;
private final int type = 15;
/* JADX DEBUG: TODO: convert one arg to string using `String.valueOf()`, args: [(wrap: int : 0x0013: INVOKE (r1v0 int) = (r3v0 'this' com.discord.widgets.channels.list.items.ChannelListItemActiveEvent A[IMMUTABLE_TYPE, THIS]) type: VIRTUAL call: com.discord.widgets.channels.list.items.ChannelListItemActiveEvent.getType():int), (wrap: long : 0x001e: INVOKE (r1v1 long) =
(wrap: com.discord.api.channel.Channel : 0x001a: INVOKE (r4v1 com.discord.api.channel.Channel) = (r4v0 com.discord.widgets.channels.list.items.ChannelListItemActiveEventData) type: VIRTUAL call: com.discord.widgets.channels.list.items.ChannelListItemActiveEventData.getChannel():com.discord.api.channel.Channel)
type: VIRTUAL call: com.discord.api.channel.Channel.h():long)] */
public ChannelListItemActiveEvent(ChannelListItemActiveEventData channelListItemActiveEventData) {
m.checkNotNullParameter(channelListItemActiveEventData, "data");
this.data = channelListItemActiveEventData;
StringBuilder sb = new StringBuilder();
sb.append(getType());
sb.append(channelListItemActiveEventData.getChannel().h());
this.key = sb.toString();
this.key = getType() + channelListItemActiveEventData.getLocationInfo().getLocationName();
}
public final ChannelListItemActiveEventData getData() {

View file

@ -1,38 +1,40 @@
package com.discord.widgets.channels.list.items;
import c.d.b.a.a;
import com.discord.api.channel.Channel;
import com.discord.models.guild.UserGuildMember;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventLocationInfo;
import d0.z.d.m;
import java.util.List;
/* compiled from: ChannelListItemActiveEvent.kt */
public final class ChannelListItemActiveEventData {
private final int audienceSize;
private final Channel channel;
private final boolean connected;
private final Long eventId;
private final boolean isSpeaker;
private final GuildScheduledEventLocationInfo locationInfo;
private final List<UserGuildMember> speakers;
private final String topic;
public ChannelListItemActiveEventData(String str, Channel channel, int i, List<UserGuildMember> list, boolean z2, boolean z3) {
m.checkNotNullParameter(channel, "channel");
public ChannelListItemActiveEventData(String str, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, int i, List<UserGuildMember> list, boolean z2, boolean z3, Long l) {
m.checkNotNullParameter(guildScheduledEventLocationInfo, "locationInfo");
m.checkNotNullParameter(list, "speakers");
this.topic = str;
this.channel = channel;
this.locationInfo = guildScheduledEventLocationInfo;
this.audienceSize = i;
this.speakers = list;
this.connected = z2;
this.isSpeaker = z3;
this.eventId = l;
}
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: com.discord.widgets.channels.list.items.ChannelListItemActiveEventData */
/* JADX DEBUG: Multi-variable search result rejected for r5v0, resolved type: com.discord.widgets.channels.list.items.ChannelListItemActiveEventData */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ ChannelListItemActiveEventData copy$default(ChannelListItemActiveEventData channelListItemActiveEventData, String str, Channel channel, int i, List list, boolean z2, boolean z3, int i2, Object obj) {
public static /* synthetic */ ChannelListItemActiveEventData copy$default(ChannelListItemActiveEventData channelListItemActiveEventData, String str, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, int i, List list, boolean z2, boolean z3, Long l, int i2, Object obj) {
if ((i2 & 1) != 0) {
str = channelListItemActiveEventData.topic;
}
if ((i2 & 2) != 0) {
channel = channelListItemActiveEventData.channel;
guildScheduledEventLocationInfo = channelListItemActiveEventData.locationInfo;
}
if ((i2 & 4) != 0) {
i = channelListItemActiveEventData.audienceSize;
@ -46,15 +48,18 @@ public final class ChannelListItemActiveEventData {
if ((i2 & 32) != 0) {
z3 = channelListItemActiveEventData.isSpeaker;
}
return channelListItemActiveEventData.copy(str, channel, i, list, z2, z3);
if ((i2 & 64) != 0) {
l = channelListItemActiveEventData.eventId;
}
return channelListItemActiveEventData.copy(str, guildScheduledEventLocationInfo, i, list, z2, z3, l);
}
public final String component1() {
return this.topic;
}
public final Channel component2() {
return this.channel;
public final GuildScheduledEventLocationInfo component2() {
return this.locationInfo;
}
public final int component3() {
@ -73,10 +78,14 @@ public final class ChannelListItemActiveEventData {
return this.isSpeaker;
}
public final ChannelListItemActiveEventData copy(String str, Channel channel, int i, List<UserGuildMember> list, boolean z2, boolean z3) {
m.checkNotNullParameter(channel, "channel");
public final Long component7() {
return this.eventId;
}
public final ChannelListItemActiveEventData copy(String str, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, int i, List<UserGuildMember> list, boolean z2, boolean z3, Long l) {
m.checkNotNullParameter(guildScheduledEventLocationInfo, "locationInfo");
m.checkNotNullParameter(list, "speakers");
return new ChannelListItemActiveEventData(str, channel, i, list, z2, z3);
return new ChannelListItemActiveEventData(str, guildScheduledEventLocationInfo, i, list, z2, z3, l);
}
public boolean equals(Object obj) {
@ -87,21 +96,25 @@ public final class ChannelListItemActiveEventData {
return false;
}
ChannelListItemActiveEventData channelListItemActiveEventData = (ChannelListItemActiveEventData) obj;
return m.areEqual(this.topic, channelListItemActiveEventData.topic) && m.areEqual(this.channel, channelListItemActiveEventData.channel) && this.audienceSize == channelListItemActiveEventData.audienceSize && m.areEqual(this.speakers, channelListItemActiveEventData.speakers) && this.connected == channelListItemActiveEventData.connected && this.isSpeaker == channelListItemActiveEventData.isSpeaker;
return m.areEqual(this.topic, channelListItemActiveEventData.topic) && m.areEqual(this.locationInfo, channelListItemActiveEventData.locationInfo) && this.audienceSize == channelListItemActiveEventData.audienceSize && m.areEqual(this.speakers, channelListItemActiveEventData.speakers) && this.connected == channelListItemActiveEventData.connected && this.isSpeaker == channelListItemActiveEventData.isSpeaker && m.areEqual(this.eventId, channelListItemActiveEventData.eventId);
}
public final int getAudienceSize() {
return this.audienceSize;
}
public final Channel getChannel() {
return this.channel;
}
public final boolean getConnected() {
return this.connected;
}
public final Long getEventId() {
return this.eventId;
}
public final GuildScheduledEventLocationInfo getLocationInfo() {
return this.locationInfo;
}
public final List<UserGuildMember> getSpeakers() {
return this.speakers;
}
@ -114,27 +127,29 @@ public final class ChannelListItemActiveEventData {
String str = this.topic;
int i = 0;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
Channel channel = this.channel;
int hashCode2 = (((hashCode + (channel != null ? channel.hashCode() : 0)) * 31) + this.audienceSize) * 31;
GuildScheduledEventLocationInfo guildScheduledEventLocationInfo = this.locationInfo;
int hashCode2 = (((hashCode + (guildScheduledEventLocationInfo != null ? guildScheduledEventLocationInfo.hashCode() : 0)) * 31) + this.audienceSize) * 31;
List<UserGuildMember> list = this.speakers;
if (list != null) {
i = list.hashCode();
}
int i2 = (hashCode2 + i) * 31;
int hashCode3 = (hashCode2 + (list != null ? list.hashCode() : 0)) * 31;
boolean z2 = this.connected;
int i3 = 1;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = z2 ? 1 : 0;
int i7 = (i2 + i4) * 31;
int i6 = (hashCode3 + i3) * 31;
boolean z3 = this.isSpeaker;
if (!z3) {
i3 = z3 ? 1 : 0;
i2 = z3 ? 1 : 0;
}
return i7 + i3;
int i7 = (i6 + i2) * 31;
Long l = this.eventId;
if (l != null) {
i = l.hashCode();
}
return i7 + i;
}
public final boolean isSpeaker() {
@ -144,8 +159,8 @@ public final class ChannelListItemActiveEventData {
public String toString() {
StringBuilder P = a.P("ChannelListItemActiveEventData(topic=");
P.append(this.topic);
P.append(", channel=");
P.append(this.channel);
P.append(", locationInfo=");
P.append(this.locationInfo);
P.append(", audienceSize=");
P.append(this.audienceSize);
P.append(", speakers=");
@ -153,6 +168,8 @@ public final class ChannelListItemActiveEventData {
P.append(", connected=");
P.append(this.connected);
P.append(", isSpeaker=");
return a.L(P, this.isSpeaker, ")");
P.append(this.isSpeaker);
P.append(", eventId=");
return a.F(P, this.eventId, ")");
}
}

View file

@ -98,68 +98,68 @@ public final class WidgetChannelSettingsEditPermissions extends AppFragment {
@SuppressLint({"NonConstantResourceId"})
private final long getPermission(@IdRes int i) {
switch (i) {
case R.id.channel_permission_events_manage_events /* 2131362333 */:
case R.id.channel_permission_events_manage_events /* 2131362334 */:
return Permission.MANAGE_EVENTS;
case R.id.channel_permission_general_create_instant_invite /* 2131362334 */:
case R.id.channel_permission_general_create_instant_invite /* 2131362335 */:
return 1;
case R.id.channel_permission_general_manage_channel /* 2131362335 */:
case R.id.channel_permission_general_manage_channel /* 2131362336 */:
return 16;
case R.id.channel_permission_general_manage_permissions /* 2131362336 */:
case R.id.channel_permission_general_manage_permissions /* 2131362337 */:
return Permission.MANAGE_ROLES;
case R.id.channel_permission_general_manage_threads /* 2131362337 */:
case R.id.channel_permission_general_manage_threads /* 2131362338 */:
return Permission.MANAGE_THREADS;
case R.id.channel_permission_general_manage_webhooks /* 2131362338 */:
case R.id.channel_permission_general_manage_webhooks /* 2131362339 */:
return Permission.MANAGE_WEBHOOKS;
case R.id.channel_permission_owner_view /* 2131362339 */:
case R.id.channel_permission_owner_view /* 2131362340 */:
default:
throw new IllegalArgumentException(a.l("Invalid ID: ", i));
case R.id.channel_permission_stage_request_to_speak /* 2131362340 */:
case R.id.channel_permission_stage_request_to_speak /* 2131362341 */:
return Permission.REQUEST_TO_SPEAK;
case R.id.channel_permission_text_add_reactions /* 2131362341 */:
case R.id.channel_permission_text_add_reactions /* 2131362342 */:
return 64;
case R.id.channel_permission_text_attach_files /* 2131362342 */:
case R.id.channel_permission_text_attach_files /* 2131362343 */:
return Permission.ATTACH_FILES;
case R.id.channel_permission_text_create_private_threads /* 2131362343 */:
case R.id.channel_permission_text_create_private_threads /* 2131362344 */:
return Permission.CREATE_PRIVATE_THREADS;
case R.id.channel_permission_text_create_public_threads /* 2131362344 */:
case R.id.channel_permission_text_create_public_threads /* 2131362345 */:
return Permission.CREATE_PUBLIC_THREADS;
case R.id.channel_permission_text_embed_links /* 2131362345 */:
case R.id.channel_permission_text_embed_links /* 2131362346 */:
return Permission.EMBED_LINKS;
case R.id.channel_permission_text_manage_messages /* 2131362346 */:
case R.id.channel_permission_text_manage_messages /* 2131362347 */:
return Permission.MANAGE_MESSAGES;
case R.id.channel_permission_text_mention_everyone /* 2131362347 */:
case R.id.channel_permission_text_mention_everyone /* 2131362348 */:
return Permission.MENTION_EVERYONE;
case R.id.channel_permission_text_read_message_history /* 2131362348 */:
case R.id.channel_permission_text_read_message_history /* 2131362349 */:
return Permission.READ_MESSAGE_HISTORY;
case R.id.channel_permission_text_read_messages /* 2131362349 */:
case R.id.channel_permission_text_read_messages /* 2131362350 */:
return Permission.VIEW_CHANNEL;
case R.id.channel_permission_text_send_messages /* 2131362350 */:
case R.id.channel_permission_text_send_messages /* 2131362351 */:
return Permission.SEND_MESSAGES;
case R.id.channel_permission_text_send_messages_in_threads /* 2131362351 */:
case R.id.channel_permission_text_send_messages_in_threads /* 2131362352 */:
return Permission.SEND_MESSAGES_IN_THREADS;
case R.id.channel_permission_text_send_tts_messages /* 2131362352 */:
case R.id.channel_permission_text_send_tts_messages /* 2131362353 */:
return Permission.SEND_TTS_MESSAGES;
case R.id.channel_permission_text_use_external_emojis /* 2131362353 */:
case R.id.channel_permission_text_use_external_emojis /* 2131362354 */:
return Permission.USE_EXTERNAL_EMOJIS;
case R.id.channel_permission_text_use_external_stickers /* 2131362354 */:
case R.id.channel_permission_text_use_external_stickers /* 2131362355 */:
return Permission.USE_EXTERNAL_STICKERS;
case R.id.channel_permission_use_application_commands /* 2131362355 */:
case R.id.channel_permission_use_application_commands /* 2131362356 */:
return Permission.USE_APPLICATION_COMMANDS;
case R.id.channel_permission_voice_connect /* 2131362356 */:
case R.id.channel_permission_voice_connect /* 2131362357 */:
return Permission.CONNECT;
case R.id.channel_permission_voice_deafen_members /* 2131362357 */:
case R.id.channel_permission_voice_deafen_members /* 2131362358 */:
return Permission.DEAFEN_MEMBERS;
case R.id.channel_permission_voice_move_members /* 2131362358 */:
case R.id.channel_permission_voice_move_members /* 2131362359 */:
return Permission.MOVE_MEMBERS;
case R.id.channel_permission_voice_mute_members /* 2131362359 */:
case R.id.channel_permission_voice_mute_members /* 2131362360 */:
return Permission.MUTE_MEMBERS;
case R.id.channel_permission_voice_priority_speaker /* 2131362360 */:
case R.id.channel_permission_voice_priority_speaker /* 2131362361 */:
return 256;
case R.id.channel_permission_voice_speak /* 2131362361 */:
case R.id.channel_permission_voice_speak /* 2131362362 */:
return Permission.SPEAK;
case R.id.channel_permission_voice_use_vad /* 2131362362 */:
case R.id.channel_permission_voice_use_vad /* 2131362363 */:
return Permission.USE_VAD;
case R.id.channel_permission_voice_video /* 2131362363 */:
case R.id.channel_permission_voice_video /* 2131362364 */:
return 512;
}
}

View file

@ -0,0 +1,24 @@
package com.discord.widgets.channels.permissions;
import com.discord.analytics.generated.events.impression.TrackImpressionChannelAddMembers;
import com.discord.analytics.generated.traits.TrackImpressionMetadata;
import com.discord.analytics.utils.ImpressionGroups;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetCreateChannelAddMember.kt */
public final class WidgetCreateChannelAddMember$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
public static final WidgetCreateChannelAddMember$loggingConfig$1 INSTANCE = new WidgetCreateChannelAddMember$loggingConfig$1();
public WidgetCreateChannelAddMember$loggingConfig$1() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AnalyticsSchema mo1invoke() {
TrackImpressionChannelAddMembers trackImpressionChannelAddMembers = new TrackImpressionChannelAddMembers();
trackImpressionChannelAddMembers.c(new TrackImpressionMetadata(null, null, null, ImpressionGroups.CHANNEL_ADD_FLOW, 7));
return trackImpressionChannelAddMembers;
}
}

View file

@ -13,6 +13,7 @@ import com.discord.R;
import com.discord.api.channel.Channel;
import com.discord.api.permission.PermissionOverwrite;
import com.discord.app.AppFragment;
import com.discord.app.LoggingConfig;
import com.discord.databinding.WidgetCreateChannelAddMemberBinding;
import com.discord.stores.StoreStream;
import com.discord.utilities.channel.permissions.ChannelPermissionsAddMemberUtils;
@ -35,6 +36,7 @@ public final class WidgetCreateChannelAddMember extends AppFragment {
private final FragmentViewBindingDelegate binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetCreateChannelAddMember$binding$2.INSTANCE, null, 2, null);
private final Lazy channelId$delegate = g.lazy(new WidgetCreateChannelAddMember$channelId$2(this));
private WidgetChannelSettingsAddMemberFragment fragment;
private final LoggingConfig loggingConfig = new LoggingConfig(false, null, WidgetCreateChannelAddMember$loggingConfig$1.INSTANCE, 3);
/* compiled from: WidgetCreateChannelAddMember.kt */
public static final class Companion {
@ -97,6 +99,11 @@ public final class WidgetCreateChannelAddMember extends AppFragment {
return ((Number) this.channelId$delegate.getValue()).longValue();
}
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
@Override // com.discord.app.AppFragment
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");

View file

@ -21,7 +21,7 @@ public final class WidgetTextChannelSettings$configureUI$1<T1, T2> implements Ac
public final void call(MenuItem menuItem, Context context) {
m.checkNotNullExpressionValue(menuItem, "menuItem");
switch (menuItem.getItemId()) {
case R.id.menu_channel_settings_delete /* 2131364175 */:
case R.id.menu_channel_settings_delete /* 2131364176 */:
if (this.$this_configureUI.isPublicGuildRulesChannel() || this.$this_configureUI.isPublicGuildUpdatesChannel()) {
WidgetTextChannelSettings.access$cannotDeleteWarn(this.this$0, this.$this_configureUI.isPublicGuildRulesChannel());
return;
@ -29,7 +29,7 @@ public final class WidgetTextChannelSettings$configureUI$1<T1, T2> implements Ac
WidgetTextChannelSettings.access$confirmDelete(this.this$0, this.$this_configureUI.getChannel());
return;
}
case R.id.menu_channel_settings_reset /* 2131364176 */:
case R.id.menu_channel_settings_reset /* 2131364177 */:
StoreUserGuildSettings userGuildSettings = StoreStream.Companion.getUserGuildSettings();
m.checkNotNullExpressionValue(context, "context");
userGuildSettings.setChannelNotificationsDefault(context, this.$this_configureUI.getChannel());

View file

@ -19,11 +19,11 @@ public final class WidgetThreadBrowser$updateMenu$1<T1, T2> implements Action2<M
public final void call(MenuItem menuItem, Context context) {
m.checkNotNullExpressionValue(menuItem, "menuItem");
switch (menuItem.getItemId()) {
case R.id.menu_thread_browser_create_thread /* 2131364220 */:
case R.id.menu_thread_browser_create_thread /* 2131364221 */:
ChannelSelector.openCreateThread$default(ChannelSelector.Companion.getInstance(), WidgetThreadBrowser.access$getGuildId$p(this.this$0), WidgetThreadBrowser.access$getChannelId$p(this.this$0), null, "Thread Browser Toolbar", 4, null);
this.this$0.requireAppActivity().finish();
return;
case R.id.menu_thread_browser_filters /* 2131364221 */:
case R.id.menu_thread_browser_filters /* 2131364222 */:
WidgetThreadBrowserFilterSheet.Companion companion = WidgetThreadBrowserFilterSheet.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");

View file

@ -1,61 +1,15 @@
package com.discord.widgets.chat.list.adapter;
import com.discord.models.domain.ModelInvite;
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildScheduledEventInvite;
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet;
import d0.l;
import d0.w.h.c;
import d0.w.i.a.e;
import d0.w.i.a.k;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.Job;
/* compiled from: WidgetChatListAdapterItemGuildScheduledEventInvite.kt */
public final class WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3 extends o implements Function0<Unit> {
public final /* synthetic */ WidgetChatListAdapterItemGuildScheduledEventInvite.Model $model;
public final /* synthetic */ WidgetChatListAdapterItemGuildScheduledEventInvite this$0;
/* compiled from: WidgetChatListAdapterItemGuildScheduledEventInvite.kt */
@e(c = "com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3$1", f = "WidgetChatListAdapterItemGuildScheduledEventInvite.kt", l = {}, m = "invokeSuspend")
/* renamed from: com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3$1 reason: invalid class name */
public static final class AnonymousClass1 extends k implements Function2<ModelInvite, Continuation<? super Unit>, Object> {
public int label;
public final /* synthetic */ WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3 widgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3, Continuation continuation) {
super(2, continuation);
this.this$0 = widgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3;
}
@Override // d0.w.i.a.a
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
m.checkNotNullParameter(continuation, "completion");
return new AnonymousClass1(this.this$0, continuation);
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public final Object invoke(ModelInvite modelInvite, Continuation<? super Unit> continuation) {
return ((AnonymousClass1) create(modelInvite, continuation)).invokeSuspend(Unit.a);
}
@Override // d0.w.i.a.a
public final Object invokeSuspend(Object obj) {
c.getCOROUTINE_SUSPENDED();
if (this.label == 0) {
l.throwOnFailure(obj);
WidgetGuildScheduledEventDetailsBottomSheet.Companion.enqueue(this.this$0.$model.getGuildScheduledEvent().g());
return Unit.a;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatListAdapterItemGuildScheduledEventInvite$configureUI$3(WidgetChatListAdapterItemGuildScheduledEventInvite widgetChatListAdapterItemGuildScheduledEventInvite, WidgetChatListAdapterItemGuildScheduledEventInvite.Model model) {
super(0);
@ -69,7 +23,7 @@ public final class WidgetChatListAdapterItemGuildScheduledEventInvite$configureU
Job access$getInviteJoinJob$p = WidgetChatListAdapterItemGuildScheduledEventInvite.access$getInviteJoinJob$p(this.this$0);
if (access$getInviteJoinJob$p == null || !access$getInviteJoinJob$p.a()) {
WidgetChatListAdapterItemGuildScheduledEventInvite widgetChatListAdapterItemGuildScheduledEventInvite = this.this$0;
WidgetChatListAdapterItemGuildScheduledEventInvite.access$setInviteJoinJob$p(widgetChatListAdapterItemGuildScheduledEventInvite, WidgetChatListAdapterItemInviteBase.joinServerOrDM$default(widgetChatListAdapterItemGuildScheduledEventInvite, widgetChatListAdapterItemGuildScheduledEventInvite.getClass(), this.$model.getInvite(), null, new AnonymousClass1(this, null), 4, null));
WidgetChatListAdapterItemGuildScheduledEventInvite.access$setInviteJoinJob$p(widgetChatListAdapterItemGuildScheduledEventInvite, WidgetChatListAdapterItemInviteBase.joinServerOrDM$default(widgetChatListAdapterItemGuildScheduledEventInvite, widgetChatListAdapterItemGuildScheduledEventInvite.getClass(), this.$model.getInvite(), null, null, 12, null));
}
}
}

View file

@ -27,19 +27,19 @@ public final class WidgetFriendsList$configureToolbar$1<T1, T2> implements Actio
public final void call(MenuItem menuItem, Context context) {
m.checkNotNullExpressionValue(menuItem, "menuItem");
switch (menuItem.getItemId()) {
case R.id.menu_friends_add_friend /* 2131364195 */:
case R.id.menu_friends_add_friend /* 2131364196 */:
WidgetFriendsAdd.Companion companion = WidgetFriendsAdd.Companion;
m.checkNotNullExpressionValue(context, "context");
WidgetFriendsAdd.Companion.show$default(companion, context, null, "Friends", 2, null);
return;
case R.id.menu_friends_contact_sync /* 2131364196 */:
case R.id.menu_friends_contact_sync /* 2131364197 */:
ContactSyncAnalytics.Companion.trackStart$default(ContactSyncAnalytics.Companion, false, g0.mapOf(o.to("location_page", "Friends List Icon")), 1, null);
AnalyticsTracker.INSTANCE.openModal("Contact Sync", new Traits.Location("Friends List Icon", null, null, null, null, 30, null));
WidgetContactSync.Companion companion2 = WidgetContactSync.Companion;
m.checkNotNullExpressionValue(context, "context");
WidgetContactSync.Companion.launch$default(companion2, context, null, false, false, false, 30, null);
return;
case R.id.menu_friends_start_group /* 2131364197 */:
case R.id.menu_friends_start_group /* 2131364198 */:
if (GroupInviteFriendsSheetFeatureFlag.Companion.getINSTANCE().isEnabled()) {
GroupInviteFriendsSheet.Companion companion3 = GroupInviteFriendsSheet.Companion;
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();

View file

@ -0,0 +1,28 @@
package com.discord.widgets.guilds.create;
import com.discord.analytics.generated.events.impression.TrackImpressionGuildAddCustomize;
import com.discord.analytics.generated.traits.TrackImpressionMetadata;
import com.discord.analytics.utils.ImpressionGroups;
import com.discord.api.science.AnalyticsSchema;
import com.discord.widgets.nux.GuildTemplateAnalytics;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetGuildCreate.kt */
public final class WidgetGuildCreate$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
public final /* synthetic */ WidgetGuildCreate this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildCreate$loggingConfig$1(WidgetGuildCreate widgetGuildCreate) {
super(0);
this.this$0 = widgetGuildCreate;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AnalyticsSchema mo1invoke() {
TrackImpressionGuildAddCustomize trackImpressionGuildAddCustomize = new TrackImpressionGuildAddCustomize();
trackImpressionGuildAddCustomize.c(new TrackImpressionMetadata(null, null, null, m.areEqual(this.this$0.getArgs().getAnalyticsLocation(), GuildTemplateAnalytics.STEP_GUILD_TEMPLATE) ? ImpressionGroups.GUILD_ADD_NUF : ImpressionGroups.GUILD_ADD_FLOW, 7));
return trackImpressionGuildAddCustomize;
}
}

View file

@ -22,6 +22,7 @@ import c.d.b.a.a;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.R;
import com.discord.app.AppFragment;
import com.discord.app.LoggingConfig;
import com.discord.databinding.WidgetGuildCreateBinding;
import com.discord.dialogs.ImageUploadDialog;
import com.discord.utilities.icon.IconUtils;
@ -56,6 +57,7 @@ public class WidgetGuildCreate extends AppFragment {
private final Lazy args$delegate;
private final FragmentViewBindingDelegate binding$delegate;
private String currentImageUri;
private final LoggingConfig loggingConfig;
private final Lazy viewModel$delegate;
/* compiled from: WidgetGuildCreate.kt */
@ -338,6 +340,7 @@ public class WidgetGuildCreate extends AppFragment {
f0 f0Var = new f0(this);
this.viewModel$delegate = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(WidgetGuildCreateViewModel.class), new WidgetGuildCreate$appViewModels$$inlined$viewModels$1(f0Var), new h0(widgetGuildCreate$viewModel$2));
this.binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetGuildCreate$binding$2.INSTANCE, null, 2, null);
this.loggingConfig = new LoggingConfig(false, null, new WidgetGuildCreate$loggingConfig$1(this), 3);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
@ -426,6 +429,11 @@ public class WidgetGuildCreate extends AppFragment {
return (Options) this.args$delegate.getValue();
}
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
public GuildCreateCloneViews getViews() {
GuildCreateCloneViews.Companion companion = GuildCreateCloneViews.Companion;
WidgetGuildCreateBinding binding = getBinding();

View file

@ -6,11 +6,11 @@ import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
/* compiled from: InviteJoinHelper.kt */
public final class InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$1 extends o implements Function0<Unit> {
public final class InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$1 extends o implements Function0<Unit> {
public final /* synthetic */ Continuation $cont;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$1(Continuation continuation) {
public InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$1(Continuation continuation) {
super(0);
this.$cont = continuation;
}

View file

@ -6,11 +6,11 @@ import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
/* compiled from: InviteJoinHelper.kt */
public final class InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$2 extends o implements Function0<Unit> {
public final class InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$2 extends o implements Function0<Unit> {
public final /* synthetic */ Continuation $cont;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$2(Continuation continuation) {
public InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$2(Continuation continuation) {
super(0);
this.$cont = continuation;
}

View file

@ -7,6 +7,8 @@ import com.discord.R;
import com.discord.api.channel.Channel;
import com.discord.api.guild.Guild;
import com.discord.api.guild.GuildFeature;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.api.guildscheduledevent.GuildScheduledEventStatus;
import com.discord.api.permission.Permission;
import com.discord.app.AppFragment;
import com.discord.models.domain.ModelInvite;
@ -37,7 +39,7 @@ import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Ref$ObjectRef;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: InviteJoinHelper.kt */
@e(c = "com.discord.widgets.guilds.invite.InviteJoinHelper$joinViaInvite$4", f = "InviteJoinHelper.kt", l = {67, 95, 97, 99, 131, 161}, m = "invokeSuspend")
@e(c = "com.discord.widgets.guilds.invite.InviteJoinHelper$joinViaInvite$4", f = "InviteJoinHelper.kt", l = {70, 99, 101, 103, 137, 168}, m = "invokeSuspend")
public final class InviteJoinHelper$joinViaInvite$4 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public final /* synthetic */ AppFragment $fragment;
public final /* synthetic */ ModelInvite $invite;
@ -73,10 +75,10 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio
return ((InviteJoinHelper$joinViaInvite$4) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
}
/* JADX WARNING: Removed duplicated region for block: B:110:0x02a3 */
/* JADX WARNING: Removed duplicated region for block: B:111:0x02af */
/* JADX WARNING: Removed duplicated region for block: B:121:0x0300 */
/* JADX WARNING: Removed duplicated region for block: B:124:0x0311 A[RETURN] */
/* JADX WARNING: Removed duplicated region for block: B:116:0x02b5 */
/* JADX WARNING: Removed duplicated region for block: B:117:0x02c3 */
/* JADX WARNING: Removed duplicated region for block: B:127:0x0318 */
/* JADX WARNING: Removed duplicated region for block: B:130:0x0329 A[RETURN] */
/* JADX WARNING: Removed duplicated region for block: B:67:0x0184 */
/* JADX WARNING: Removed duplicated region for block: B:71:0x01b0 A[RETURN] */
/* JADX WARNING: Removed duplicated region for block: B:74:0x01c2 A[RETURN] */
@ -131,7 +133,7 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio
MemberVerificationUtils memberVerificationUtils = MemberVerificationUtils.INSTANCE;
Context context = ref$ObjectRef2.element;
Guild guild4 = this.$invite.getGuild();
memberVerificationUtils.maybeShowVerificationGate(context, ref$ObjectRef3.element, (guild4 == null || (boxLong2 = d0.w.i.a.b.boxLong(guild4.p())) == null) ? -1 : boxLong2.longValue(), this.$location, this.$invite, new InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$1(gVar), new InviteJoinHelper$joinViaInvite$4$isThroughMembershipGate$1$2(gVar));
memberVerificationUtils.maybeShowVerificationGate(context, ref$ObjectRef3.element, (guild4 == null || (boxLong2 = d0.w.i.a.b.boxLong(guild4.p())) == null) ? -1 : boxLong2.longValue(), this.$location, this.$invite, new InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$1(gVar), new InviteJoinHelper$joinViaInvite$4$hasCompletedMembershipGate$1$2(gVar));
obj4 = gVar.getOrThrow();
if (obj4 == c.getCOROUTINE_SUSPENDED()) {
d0.w.i.a.g.probeCoroutineSuspended(this);
@ -173,53 +175,65 @@ public final class InviteJoinHelper$joinViaInvite$4 extends k implements Functio
Guild guild5 = this.$invite.getGuild();
if (((guild5 == null || (boxLong = d0.w.i.a.b.boxLong(guild5.p())) == null) ? 0 : boxLong.longValue()) > 0) {
if (this.$invite.getGuildScheduledEvent() != null) {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
} else {
Channel channel2 = this.$invite.getChannel();
m.checkNotNullExpressionValue(channel2, "invite.channel");
if (!AnimatableValueParser.D1(channel2)) {
Channel channel3 = this.$invite.getChannel();
m.checkNotNullExpressionValue(channel3, "invite.channel");
if (!AnimatableValueParser.x1(channel3)) {
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$invite);
} else if (!z2) {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
} else {
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$invite);
GuildScheduledEvent guildScheduledEvent = this.$invite.getGuildScheduledEvent();
if ((guildScheduledEvent != null ? guildScheduledEvent.k() : null) != GuildScheduledEventStatus.ACTIVE) {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
function2 = this.$onInviteFlowFinished;
if (modelInvite == null) {
modelInvite = this.$invite;
}
this.L$0 = null;
this.L$1 = null;
this.L$2 = null;
this.label = 6;
if (function2.invoke(modelInvite, this) == coroutine_suspended) {
return coroutine_suspended;
}
return Unit.a;
}
}
Channel channel2 = this.$invite.getChannel();
m.checkNotNullExpressionValue(channel2, "invite.channel");
if (!AnimatableValueParser.D1(channel2)) {
Channel channel3 = this.$invite.getChannel();
m.checkNotNullExpressionValue(channel3, "invite.channel");
if (!AnimatableValueParser.x1(channel3)) {
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$fragment, this.$invite);
} else if (!z2) {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
} else {
this.L$0 = ref$ObjectRef;
this.L$1 = modelInvite;
this.L$2 = this;
this.label = 5;
g gVar2 = new g(b.intercepted(this));
this.$fragment.requestMicrophone(new InviteJoinHelper$joinViaInvite$4$hasMicrophonePermissions$1$1(gVar2), new InviteJoinHelper$joinViaInvite$4$hasMicrophonePermissions$1$2(gVar2));
obj2 = gVar2.getOrThrow();
if (obj2 == c.getCOROUTINE_SUSPENDED()) {
d0.w.i.a.g.probeCoroutineSuspended(this);
}
if (obj2 == coroutine_suspended) {
return coroutine_suspended;
}
if (!((Boolean) obj2).booleanValue()) {
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$invite);
} else {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
}
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$fragment, this.$invite);
}
} else if (!z2) {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
} else {
this.L$0 = ref$ObjectRef;
this.L$1 = modelInvite;
this.L$2 = this;
this.label = 5;
g gVar2 = new g(b.intercepted(this));
this.$fragment.requestMicrophone(new InviteJoinHelper$joinViaInvite$4$hasMicrophonePermissions$1$1(gVar2), new InviteJoinHelper$joinViaInvite$4$hasMicrophonePermissions$1$2(gVar2));
obj2 = gVar2.getOrThrow();
if (obj2 == c.getCOROUTINE_SUSPENDED()) {
d0.w.i.a.g.probeCoroutineSuspended(this);
}
if (obj2 == coroutine_suspended) {
return coroutine_suspended;
}
if (!((Boolean) obj2).booleanValue()) {
InviteJoinHelper.access$navigateToChannel(InviteJoinHelper.INSTANCE, ref$ObjectRef.element, this.$fragment, this.$invite);
} else {
InviteJoinHelper.access$navigateToGuild(InviteJoinHelper.INSTANCE, this.$invite);
}
}
function2 = this.$onInviteFlowFinished;
if (modelInvite == null) {
modelInvite = this.$invite;
}
this.L$0 = null;
this.L$1 = null;
this.L$2 = null;
this.label = 6;
if (function2.invoke(modelInvite, this) == coroutine_suspended) {
return coroutine_suspended;
}
return Unit.a;
}

View file

@ -1,8 +1,12 @@
package com.discord.widgets.guilds.invite;
import android.content.Context;
import androidx.core.view.PointerIconCompat;
import androidx.fragment.app.FragmentManager;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LifecycleOwnerKt;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.api.channel.Channel;
import com.discord.api.guild.Guild;
import com.discord.api.guildscheduledevent.GuildScheduledEvent;
import com.discord.app.AppFragment;
@ -12,6 +16,8 @@ import com.discord.utilities.channel.ChannelSelector;
import com.discord.utilities.coroutines.AppCoroutineScopeKt;
import com.discord.utilities.error.Error;
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet;
import com.discord.widgets.stage.StageChannelJoinHelper;
import com.discord.widgets.voice.sheet.WidgetVoiceBottomSheet;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
@ -26,8 +32,8 @@ public final class InviteJoinHelper {
private InviteJoinHelper() {
}
public static final /* synthetic */ void access$navigateToChannel(InviteJoinHelper inviteJoinHelper, Context context, ModelInvite modelInvite) {
inviteJoinHelper.navigateToChannel(context, modelInvite);
public static final /* synthetic */ void access$navigateToChannel(InviteJoinHelper inviteJoinHelper, Context context, AppFragment appFragment, ModelInvite modelInvite) {
inviteJoinHelper.navigateToChannel(context, appFragment, modelInvite);
}
public static final /* synthetic */ void access$navigateToGuild(InviteJoinHelper inviteJoinHelper, ModelInvite modelInvite) {
@ -38,8 +44,26 @@ public final class InviteJoinHelper {
return inviteJoinHelper.joinViaInvite(modelInvite, cls, appFragment, str, (i & 16) != 0 ? new InviteJoinHelper$joinViaInvite$1(null) : function2, (i & 32) != 0 ? new InviteJoinHelper$joinViaInvite$2(null) : function22, (i & 64) != 0 ? new InviteJoinHelper$joinViaInvite$3(null) : function23);
}
private final void navigateToChannel(Context context, ModelInvite modelInvite) {
private final void navigateToChannel(Context context, AppFragment appFragment, ModelInvite modelInvite) {
ChannelSelector.Companion.getInstance().findAndSet(context, modelInvite.getChannel().h());
Channel channel = modelInvite.getChannel();
m.checkNotNullExpressionValue(channel, "modelInvite.channel");
if (AnimatableValueParser.D1(channel)) {
WidgetVoiceBottomSheet.Companion companion = WidgetVoiceBottomSheet.Companion;
FragmentManager parentFragmentManager = appFragment.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "appFragment.parentFragmentManager");
companion.show(parentFragmentManager, modelInvite.getChannel().h(), true, WidgetVoiceBottomSheet.FeatureContext.HOME);
return;
}
Channel channel2 = modelInvite.getChannel();
m.checkNotNullExpressionValue(channel2, "modelInvite.channel");
if (AnimatableValueParser.x1(channel2)) {
StageChannelJoinHelper stageChannelJoinHelper = StageChannelJoinHelper.INSTANCE;
Context requireContext = appFragment.requireContext();
FragmentManager parentFragmentManager2 = appFragment.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager2, "appFragment.parentFragmentManager");
StageChannelJoinHelper.connectToStage$default(stageChannelJoinHelper, requireContext, parentFragmentManager2, modelInvite.getChannel().h(), false, false, null, null, null, null, null, PointerIconCompat.TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW, null);
}
}
private final void navigateToGuild(ModelInvite modelInvite) {

View file

@ -0,0 +1,24 @@
package com.discord.widgets.guilds.join;
import com.discord.analytics.generated.events.impression.TrackImpressionGuildAddJoin;
import com.discord.analytics.generated.traits.TrackImpressionMetadata;
import com.discord.analytics.utils.ImpressionGroups;
import com.discord.api.science.AnalyticsSchema;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetGuildJoin.kt */
public final class WidgetGuildJoin$loggingConfig$1 extends o implements Function0<AnalyticsSchema> {
public static final WidgetGuildJoin$loggingConfig$1 INSTANCE = new WidgetGuildJoin$loggingConfig$1();
public WidgetGuildJoin$loggingConfig$1() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AnalyticsSchema mo1invoke() {
TrackImpressionGuildAddJoin trackImpressionGuildAddJoin = new TrackImpressionGuildAddJoin();
trackImpressionGuildAddJoin.c(new TrackImpressionMetadata(null, null, null, ImpressionGroups.GUILD_ADD_FLOW, 7));
return trackImpressionGuildAddJoin;
}
}

View file

@ -12,6 +12,7 @@ import c.d.b.a.a;
import com.discord.R;
import com.discord.app.AppActivity;
import com.discord.app.AppFragment;
import com.discord.app.LoggingConfig;
import com.discord.databinding.WidgetGuildJoinBinding;
import com.discord.stores.StoreInviteSettings;
import com.discord.utilities.analytics.AnalyticsTracker;
@ -28,6 +29,7 @@ public class WidgetGuildJoin extends AppFragment {
public static final /* synthetic */ KProperty[] $$delegatedProperties = {a.a0(WidgetGuildJoin.class, "binding", "getBinding()Lcom/discord/databinding/WidgetGuildJoinBinding;", 0)};
public static final Companion Companion = new Companion(null);
private final FragmentViewBindingDelegate binding$delegate;
private final LoggingConfig loggingConfig;
/* compiled from: WidgetGuildJoin.kt */
public static final class Companion {
@ -72,6 +74,7 @@ public class WidgetGuildJoin extends AppFragment {
public WidgetGuildJoin(@LayoutRes int i) {
super(i);
this.binding$delegate = FragmentViewBindingDelegateKt.viewBinding$default(this, WidgetGuildJoin$binding$2.INSTANCE, null, 2, null);
this.loggingConfig = new LoggingConfig(false, null, WidgetGuildJoin$loggingConfig$1.INSTANCE, 3);
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
@ -83,6 +86,11 @@ public class WidgetGuildJoin extends AppFragment {
return (WidgetGuildJoinBinding) this.binding$delegate.getValue((Fragment) this, $$delegatedProperties[0]);
}
@Override // com.discord.app.AppFragment, com.discord.app.AppLogger.a
public LoggingConfig getLoggingConfig() {
return this.loggingConfig;
}
public final void handleGuildJoin() {
TextInputLayout textInputLayout = getBinding().f1860c;
m.checkNotNullExpressionValue(textInputLayout, "binding.guildJoinInvite");

View file

@ -2,28 +2,26 @@ package com.discord.widgets.guilds.profile;
import android.content.Context;
import android.view.View;
import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentity;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import android.widget.TextView;
import com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventLocationSelect;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildProfileSheet.kt */
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$3 extends o implements Function1<View, Unit> {
public final /* synthetic */ WidgetGuildProfileSheetViewModel.Actions $actions$inlined;
public final /* synthetic */ boolean $canChangeNickname$inlined;
public final /* synthetic */ boolean $canManageEvents$inlined;
public final /* synthetic */ long $guildId$inlined;
public final /* synthetic */ boolean $inPerGuildAvatarExperiment$inlined;
public final /* synthetic */ TextView $this_apply;
public final /* synthetic */ WidgetGuildProfileSheet this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$3(WidgetGuildProfileSheet widgetGuildProfileSheet, boolean z2, boolean z3, long j, WidgetGuildProfileSheetViewModel.Actions actions) {
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$3(TextView textView, WidgetGuildProfileSheet widgetGuildProfileSheet, boolean z2, long j) {
super(1);
this.$this_apply = textView;
this.this$0 = widgetGuildProfileSheet;
this.$canChangeNickname$inlined = z2;
this.$inPerGuildAvatarExperiment$inlined = z3;
this.$canManageEvents$inlined = z2;
this.$guildId$inlined = j;
this.$actions$inlined = actions;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@ -36,14 +34,9 @@ public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$
public final void invoke(View view) {
m.checkNotNullParameter(view, "it");
if (this.$inPerGuildAvatarExperiment$inlined) {
WidgetChangeGuildIdentity.Companion companion = WidgetChangeGuildIdentity.Companion;
long j = this.$guildId$inlined;
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "it.context");
companion.launch(j, "Guild Bottom Sheet", context);
return;
}
WidgetGuildProfileSheet.access$showChangeNicknameDialog(this.this$0, this.$guildId$inlined, this.$actions$inlined.getNick(), false);
WidgetGuildScheduledEventLocationSelect.Companion companion = WidgetGuildScheduledEventLocationSelect.Companion;
Context context = this.$this_apply.getContext();
m.checkNotNullExpressionValue(context, "context");
WidgetGuildScheduledEventLocationSelect.Companion.launch$default(companion, context, this.$guildId$inlined, null, 4, null);
}
}

View file

@ -1,26 +1,49 @@
package com.discord.widgets.guilds.profile;
import com.discord.app.AppActivity;
import android.content.Context;
import android.view.View;
import com.discord.widgets.guilds.profile.WidgetChangeGuildIdentity;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import d0.z.d.m;
import rx.functions.Action1;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildProfileSheet.kt */
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4<T> implements Action1<Boolean> {
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4 extends o implements Function1<View, Unit> {
public final /* synthetic */ WidgetGuildProfileSheetViewModel.Actions $actions$inlined;
public final /* synthetic */ boolean $canChangeNickname$inlined;
public final /* synthetic */ long $guildId$inlined;
public final /* synthetic */ boolean $inPerGuildAvatarExperiment$inlined;
public final /* synthetic */ WidgetGuildProfileSheet this$0;
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(WidgetGuildProfileSheet widgetGuildProfileSheet, WidgetGuildProfileSheetViewModel.Actions actions, long j) {
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(WidgetGuildProfileSheet widgetGuildProfileSheet, boolean z2, boolean z3, long j, WidgetGuildProfileSheetViewModel.Actions actions) {
super(1);
this.this$0 = widgetGuildProfileSheet;
this.$actions$inlined = actions;
this.$canChangeNickname$inlined = z2;
this.$inPerGuildAvatarExperiment$inlined = z3;
this.$guildId$inlined = j;
this.$actions$inlined = actions;
}
public final void call(Boolean bool) {
WidgetGuildProfileSheetViewModel access$getViewModel$p = WidgetGuildProfileSheet.access$getViewModel$p(this.this$0);
AppActivity appActivity = this.this$0.getAppActivity();
long j = this.$guildId$inlined;
m.checkNotNullExpressionValue(bool, "checked");
access$getViewModel$p.setAllowDM(appActivity, j, bool.booleanValue());
/* 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, "it");
if (this.$inPerGuildAvatarExperiment$inlined) {
WidgetChangeGuildIdentity.Companion companion = WidgetChangeGuildIdentity.Companion;
long j = this.$guildId$inlined;
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "it.context");
companion.launch(j, "Guild Bottom Sheet", context);
return;
}
WidgetGuildProfileSheet.access$showChangeNicknameDialog(this.this$0, this.$guildId$inlined, this.$actions$inlined.getNick(), false);
}
}

View file

@ -1,5 +1,6 @@
package com.discord.widgets.guilds.profile;
import com.discord.app.AppActivity;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import d0.z.d.m;
import rx.functions.Action1;
@ -17,8 +18,9 @@ public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$
public final void call(Boolean bool) {
WidgetGuildProfileSheetViewModel access$getViewModel$p = WidgetGuildProfileSheet.access$getViewModel$p(this.this$0);
AppActivity appActivity = this.this$0.getAppActivity();
long j = this.$guildId$inlined;
m.checkNotNullExpressionValue(bool, "checked");
access$getViewModel$p.setHideMutedChannels(j, bool.booleanValue());
access$getViewModel$p.setAllowDM(appActivity, j, bool.booleanValue());
}
}

View file

@ -1,35 +1,24 @@
package com.discord.widgets.guilds.profile;
import android.view.View;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import rx.functions.Action1;
/* compiled from: WidgetGuildProfileSheet.kt */
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$6 extends o implements Function1<View, Unit> {
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$6<T> implements Action1<Boolean> {
public final /* synthetic */ WidgetGuildProfileSheetViewModel.Actions $actions$inlined;
public final /* synthetic */ long $guildId$inlined;
public final /* synthetic */ WidgetGuildProfileSheet this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$6(WidgetGuildProfileSheet widgetGuildProfileSheet, WidgetGuildProfileSheetViewModel.Actions actions, long j) {
super(1);
this.this$0 = widgetGuildProfileSheet;
this.$actions$inlined = actions;
this.$guildId$inlined = j;
}
/* 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, "it");
WidgetGuildProfileSheet.access$showLeaveServerDialog(this.this$0, this.$guildId$inlined);
public final void call(Boolean bool) {
WidgetGuildProfileSheetViewModel access$getViewModel$p = WidgetGuildProfileSheet.access$getViewModel$p(this.this$0);
long j = this.$guildId$inlined;
m.checkNotNullExpressionValue(bool, "checked");
access$getViewModel$p.setHideMutedChannels(j, bool.booleanValue());
}
}

View file

@ -0,0 +1,35 @@
package com.discord.widgets.guilds.profile;
import android.view.View;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildProfileSheet.kt */
public final class WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$7 extends o implements Function1<View, Unit> {
public final /* synthetic */ WidgetGuildProfileSheetViewModel.Actions $actions$inlined;
public final /* synthetic */ long $guildId$inlined;
public final /* synthetic */ WidgetGuildProfileSheet this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$7(WidgetGuildProfileSheet widgetGuildProfileSheet, WidgetGuildProfileSheetViewModel.Actions actions, long j) {
super(1);
this.this$0 = widgetGuildProfileSheet;
this.$actions$inlined = actions;
this.$guildId$inlined = j;
}
/* 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, "it");
WidgetGuildProfileSheet.access$showLeaveServerDialog(this.this$0, this.$guildId$inlined);
}
}

View file

@ -4,11 +4,11 @@ import android.content.Context;
import android.view.View;
import d0.z.d.m;
/* compiled from: WidgetGuildProfileSheet.kt */
public final class WidgetGuildProfileSheet$configureGuildActions$10 implements View.OnClickListener {
public final class WidgetGuildProfileSheet$configureGuildActions$11 implements View.OnClickListener {
public final /* synthetic */ long $guildId;
public final /* synthetic */ WidgetGuildProfileSheet this$0;
public WidgetGuildProfileSheet$configureGuildActions$10(WidgetGuildProfileSheet widgetGuildProfileSheet, long j) {
public WidgetGuildProfileSheet$configureGuildActions$11(WidgetGuildProfileSheet widgetGuildProfileSheet, long j) {
this.this$0 = widgetGuildProfileSheet;
this.$guildId = j;
}

View file

@ -45,6 +45,7 @@ import com.discord.views.CheckedSetting;
import com.discord.widgets.guilds.invite.WidgetGuildInviteShare;
import com.discord.widgets.guilds.leave.WidgetLeaveGuildDialog;
import com.discord.widgets.guilds.profile.WidgetGuildProfileSheetViewModel;
import com.discord.widgets.stage.start.StageEventsCreationGuildsFeatureFlag;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputLayout;
@ -195,21 +196,21 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding2 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
MaterialButton materialButton = widgetGuildProfileActionsBinding2.f1864y;
MaterialButton materialButton = widgetGuildProfileActionsBinding2.f1865z;
materialButton.setVisibility(showUploadEmoji ? 0 : 8);
setOnClickAndDismissListener(materialButton, new WidgetGuildProfileSheet$configureBottomActions$$inlined$apply$lambda$1(this, showUploadEmoji, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding3 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding3 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
MaterialButton materialButton2 = widgetGuildProfileActionsBinding3.q;
MaterialButton materialButton2 = widgetGuildProfileActionsBinding3.r;
materialButton2.setVisibility(showJoinServer ? 0 : 8);
setOnClickAndDismissListener(materialButton2, new WidgetGuildProfileSheet$configureBottomActions$$inlined$apply$lambda$2(this, showJoinServer, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding4 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding4 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
MaterialButton materialButton3 = widgetGuildProfileActionsBinding4.f1865z;
MaterialButton materialButton3 = widgetGuildProfileActionsBinding4.A;
if (showViewServer) {
i = 0;
}
@ -236,7 +237,7 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
TextView textView = widgetGuildProfileActionsBinding.n;
TextView textView = widgetGuildProfileActionsBinding.o;
m.checkNotNullExpressionValue(textView, "guildActionBinding.guildProfileSheetEmojisCount");
Resources resources = getResources();
m.checkNotNullExpressionValue(resources, "resources");
@ -245,14 +246,14 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding2 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
ImageView imageView = widgetGuildProfileActionsBinding2.v;
ImageView imageView = widgetGuildProfileActionsBinding2.w;
m.checkNotNullExpressionValue(imageView, "guildActionBinding.guild…PremiumUpsellDotSeparator");
imageView.setVisibility(isPremium ^ true ? 0 : 8);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding3 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding3 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
TextView textView2 = widgetGuildProfileActionsBinding3.w;
TextView textView2 = widgetGuildProfileActionsBinding3.f1863x;
m.checkNotNullExpressionValue(textView2, "guildActionBinding.guild…ileSheetPremiumUpsellText");
textView2.setVisibility(isPremium ^ true ? 0 : 8);
if (size != 0) {
@ -260,7 +261,7 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding4 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView = widgetGuildProfileActionsBinding4.m;
CardView cardView = widgetGuildProfileActionsBinding4.n;
m.checkNotNullExpressionValue(cardView, "guildActionBinding.guildProfileSheetEmojisCard");
cardView.setVisibility(0);
int maxEmojisPerRow = maxEmojisPerRow();
@ -268,7 +269,7 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding5 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
RecyclerView recyclerView = widgetGuildProfileActionsBinding5.l;
RecyclerView recyclerView = widgetGuildProfileActionsBinding5.m;
m.checkNotNullExpressionValue(recyclerView, "guildActionBinding.guildProfileSheetEmojis");
RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager();
Objects.requireNonNull(layoutManager, "null cannot be cast to non-null type androidx.recyclerview.widget.GridLayoutManager");
@ -280,7 +281,7 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding6 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView2 = widgetGuildProfileActionsBinding6.m;
CardView cardView2 = widgetGuildProfileActionsBinding6.n;
m.checkNotNullExpressionValue(cardView2, "guildActionBinding.guildProfileSheetEmojisCard");
cardView2.setVisibility(8);
}
@ -305,27 +306,28 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
linearLayout2.setVisibility(0);
boolean isUnread = actions.isUnread();
boolean canManageChannels = actions.getCanManageChannels();
boolean canManageEvents = actions.getCanManageEvents();
boolean canChangeNickname = actions.getCanChangeNickname();
String nick = actions.getNick();
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding3 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding3 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView = widgetGuildProfileActionsBinding3.t;
CardView cardView = widgetGuildProfileActionsBinding3.u;
m.checkNotNullExpressionValue(cardView, "guildActionBinding.guild…fileSheetMarkAsReadAction");
cardView.setVisibility(isUnread ? 0 : 8);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding4 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding4 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
widgetGuildProfileActionsBinding4.f1862s.setOnClickListener(new WidgetGuildProfileSheet$configureGuildActions$1(this, j));
widgetGuildProfileActionsBinding4.t.setOnClickListener(new WidgetGuildProfileSheet$configureGuildActions$1(this, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding5 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding5 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView2 = widgetGuildProfileActionsBinding5.f1863x;
CardView cardView2 = widgetGuildProfileActionsBinding5.f1864y;
m.checkNotNullExpressionValue(cardView2, "guildActionBinding.guildProfileSheetPrimaryActions");
cardView2.setVisibility(canManageChannels ? 0 : 8);
cardView2.setVisibility(canManageChannels || (canManageEvents && StageEventsCreationGuildsFeatureFlag.Companion.getINSTANCE().canGuildCreateStageEvents(j)) ? 0 : 8);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding6 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding6 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
@ -344,72 +346,79 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding8 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
widgetGuildProfileActionsBinding8.f1861c.setText(z2 ? R.string.change_identity : R.string.change_nickname);
TextView textView3 = widgetGuildProfileActionsBinding8.k;
textView3.setVisibility(canManageEvents && StageEventsCreationGuildsFeatureFlag.Companion.getINSTANCE().canGuildCreateStageEvents(j) ? 0 : 8);
setOnClickAndDismissListener(textView3, new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$3(textView3, this, canManageEvents, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding9 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding9 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
View view = widgetGuildProfileActionsBinding9.b;
view.setVisibility(canChangeNickname || z2 ? 0 : 8);
setOnClickAndDismissListener(view, new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$3(this, canChangeNickname, z2, j, actions));
widgetGuildProfileActionsBinding9.f1861c.setText(z2 ? R.string.change_identity : R.string.change_nickname);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding10 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding10 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
TextView textView3 = widgetGuildProfileActionsBinding10.u;
textView3.setVisibility(actions.getDisplayGuildIdentityRow() ? 0 : 8);
if (nick == null) {
nick = actions.getUsername();
}
textView3.setText(nick);
View view = widgetGuildProfileActionsBinding10.b;
view.setVisibility(canChangeNickname || z2 ? 0 : 8);
setOnClickAndDismissListener(view, new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(this, canChangeNickname, z2, j, actions));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding11 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding11 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
SimpleDraweeView simpleDraweeView = widgetGuildProfileActionsBinding11.o;
String guildAvatar = actions.getGuildAvatar();
simpleDraweeView.setVisibility((guildAvatar == null || guildAvatar.length() == 0) ^ true ? 0 : 8);
simpleDraweeView.setImageURI(IconUtils.INSTANCE.getForGuildMember(actions.getGuildAvatar(), j, j2, Integer.valueOf(DimenUtils.dpToPixels(16)), false));
TextView textView4 = widgetGuildProfileActionsBinding11.v;
textView4.setVisibility(actions.getDisplayGuildIdentityRow() ? 0 : 8);
if (nick == null) {
nick = actions.getUsername();
}
textView4.setText(nick);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding12 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding12 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
LinearLayout linearLayout3 = widgetGuildProfileActionsBinding12.A;
m.checkNotNullExpressionValue(linearLayout3, "guildActionBinding.perGuildIdentityContainer");
linearLayout3.setVisibility(actions.getDisplayGuildIdentityRow() ? 0 : 8);
SimpleDraweeView simpleDraweeView = widgetGuildProfileActionsBinding12.p;
String guildAvatar = actions.getGuildAvatar();
simpleDraweeView.setVisibility((guildAvatar == null || guildAvatar.length() == 0) ^ true ? 0 : 8);
simpleDraweeView.setImageURI(IconUtils.INSTANCE.getForGuildMember(actions.getGuildAvatar(), j, j2, Integer.valueOf(DimenUtils.dpToPixels(16)), false));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding13 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding13 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CheckedSetting checkedSetting = widgetGuildProfileActionsBinding13.e;
checkedSetting.setChecked(actions.isAllowDMChecked());
checkedSetting.setOnCheckedListener(new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$4(this, actions, j));
LinearLayout linearLayout3 = widgetGuildProfileActionsBinding13.B;
m.checkNotNullExpressionValue(linearLayout3, "guildActionBinding.perGuildIdentityContainer");
linearLayout3.setVisibility(actions.getDisplayGuildIdentityRow() ? 0 : 8);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding14 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding14 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CheckedSetting checkedSetting2 = widgetGuildProfileActionsBinding14.p;
checkedSetting2.setChecked(actions.getHideMutedChannels());
checkedSetting2.setOnCheckedListener(new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$5(this, actions, j));
CheckedSetting checkedSetting = widgetGuildProfileActionsBinding14.e;
checkedSetting.setChecked(actions.isAllowDMChecked());
checkedSetting.setOnCheckedListener(new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$5(this, actions, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding15 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding15 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
View view2 = widgetGuildProfileActionsBinding15.r;
view2.setVisibility(actions.getCanLeaveGuild() ? 0 : 8);
setOnClickAndDismissListener(view2, new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$6(this, actions, j));
CheckedSetting checkedSetting2 = widgetGuildProfileActionsBinding15.q;
checkedSetting2.setChecked(actions.getHideMutedChannels());
checkedSetting2.setOnCheckedListener(new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$6(this, actions, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding16 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding16 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView3 = widgetGuildProfileActionsBinding16.k;
m.checkNotNullExpressionValue(cardView3, "guildActionBinding.guild…fileSheetDeveloperActions");
cardView3.setVisibility(actions.isDeveloper() ? 0 : 8);
View view2 = widgetGuildProfileActionsBinding16.f1862s;
view2.setVisibility(actions.getCanLeaveGuild() ? 0 : 8);
setOnClickAndDismissListener(view2, new WidgetGuildProfileSheet$configureGuildActions$$inlined$apply$lambda$7(this, actions, j));
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding17 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding17 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
widgetGuildProfileActionsBinding17.h.setOnClickListener(new WidgetGuildProfileSheet$configureGuildActions$10(this, j));
CardView cardView3 = widgetGuildProfileActionsBinding17.l;
m.checkNotNullExpressionValue(cardView3, "guildActionBinding.guild…fileSheetDeveloperActions");
cardView3.setVisibility(actions.isDeveloper() ? 0 : 8);
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding18 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding18 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
widgetGuildProfileActionsBinding18.h.setOnClickListener(new WidgetGuildProfileSheet$configureGuildActions$11(this, j));
}
private final void configureGuildBanner(WidgetGuildProfileSheetViewModel.Banner banner) {
@ -621,8 +630,8 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
m.checkNotNullExpressionValue(materialButton4, "binding.guildProfileShee…Invite(guildId) }\n }");
}
/* JADX WARNING: Removed duplicated region for block: B:113:0x0302 */
/* JADX WARNING: Removed duplicated region for block: B:114:0x0313 */
/* JADX WARNING: Removed duplicated region for block: B:116:0x0313 */
/* JADX WARNING: Removed duplicated region for block: B:117:0x0324 */
private final void configureUI(WidgetGuildProfileSheetViewModel.ViewState.Loaded loaded) {
WidgetGuildProfileSheetViewModel.Actions actions;
WidgetGuildProfileSheetViewModel.TabItems tabItems;
@ -664,106 +673,111 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (textView3 != null) {
TextView textView4 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_create_channel);
if (textView4 != null) {
CardView cardView = (CardView) inflate.findViewById(R.id.guild_profile_sheet_developer_actions);
if (cardView != null) {
RecyclerView recyclerView = (RecyclerView) inflate.findViewById(R.id.guild_profile_sheet_emojis);
if (recyclerView != null) {
tabItems = component10;
i = R.id.guild_profile_sheet_emojis_card;
CardView cardView2 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_emojis_card);
if (cardView2 != null) {
TextView textView5 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_emojis_count);
if (textView5 != null) {
i = R.id.guild_profile_sheet_guild_avatar;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.guild_profile_sheet_guild_avatar);
if (simpleDraweeView != null) {
i = R.id.guild_profile_sheet_hide_muted_channels;
CheckedSetting checkedSetting2 = (CheckedSetting) inflate.findViewById(R.id.guild_profile_sheet_hide_muted_channels);
if (checkedSetting2 != null) {
MaterialButton materialButton = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_join_server);
if (materialButton != null) {
i = R.id.guild_profile_sheet_leave_server;
TextView textView6 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_leave_server);
if (textView6 != null) {
i = R.id.guild_profile_sheet_mark_as_read;
TextView textView7 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_mark_as_read);
TextView textView5 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_create_event);
if (textView5 != null) {
CardView cardView = (CardView) inflate.findViewById(R.id.guild_profile_sheet_developer_actions);
if (cardView != null) {
RecyclerView recyclerView = (RecyclerView) inflate.findViewById(R.id.guild_profile_sheet_emojis);
if (recyclerView != null) {
tabItems = component10;
i = R.id.guild_profile_sheet_emojis_card;
CardView cardView2 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_emojis_card);
if (cardView2 != null) {
TextView textView6 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_emojis_count);
if (textView6 != null) {
i = R.id.guild_profile_sheet_guild_avatar;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) inflate.findViewById(R.id.guild_profile_sheet_guild_avatar);
if (simpleDraweeView != null) {
i = R.id.guild_profile_sheet_hide_muted_channels;
CheckedSetting checkedSetting2 = (CheckedSetting) inflate.findViewById(R.id.guild_profile_sheet_hide_muted_channels);
if (checkedSetting2 != null) {
MaterialButton materialButton = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_join_server);
if (materialButton != null) {
i = R.id.guild_profile_sheet_leave_server;
TextView textView7 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_leave_server);
if (textView7 != null) {
CardView cardView3 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_mark_as_read_action);
if (cardView3 != null) {
i = R.id.guild_profile_sheet_nickname;
TextView textView8 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_nickname);
if (textView8 != null) {
i = R.id.guild_profile_sheet_premium_upsell_dot_separator;
ImageView imageView = (ImageView) inflate.findViewById(R.id.guild_profile_sheet_premium_upsell_dot_separator);
if (imageView != null) {
i = R.id.guild_profile_sheet_premium_upsell_text;
TextView textView9 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_premium_upsell_text);
if (textView9 != null) {
CardView cardView4 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_primary_actions);
if (cardView4 != null) {
i = R.id.guild_profile_sheet_secondary_actions;
CardView cardView5 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_secondary_actions);
if (cardView5 != null) {
i = R.id.guild_profile_sheet_upload_emoji;
MaterialButton materialButton2 = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_upload_emoji);
if (materialButton2 != null) {
MaterialButton materialButton3 = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_view_server);
if (materialButton3 != null) {
i = R.id.per_guild_identity_container;
LinearLayout linearLayout5 = (LinearLayout) inflate.findViewById(R.id.per_guild_identity_container);
if (linearLayout5 != null) {
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding = new WidgetGuildProfileActionsBinding(linearLayout4, linearLayout, textView, linearLayout2, checkedSetting, linearLayout3, linearLayout4, textView2, textView3, textView4, cardView, recyclerView, cardView2, textView5, simpleDraweeView, checkedSetting2, materialButton, textView6, textView7, cardView3, textView8, imageView, textView9, cardView4, cardView5, materialButton2, materialButton3, linearLayout5);
m.checkNotNullExpressionValue(widgetGuildProfileActionsBinding, "WidgetGuildProfileActionsBinding.bind(view)");
this.guildActionBinding = widgetGuildProfileActionsBinding;
if (widgetGuildProfileActionsBinding == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
m.checkNotNullExpressionValue(recyclerView, "guildActionBinding.guildProfileSheetEmojis");
recyclerView.setAdapter(this.emojisAdapter);
configureGuildIcon(component1, component4, component3);
configureGuildBanner(component7);
configureGuildContent(component2, component5, component6);
configureMemberCount(component8, component9);
configureTabItems(component1, tabItems, component14);
if (!component14) {
configureGuildHubActions(component1, component16.getId(), actions, loaded.getInPerGuildAvatarExperiment());
i = R.id.guild_profile_sheet_mark_as_read;
TextView textView8 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_mark_as_read);
if (textView8 != null) {
CardView cardView3 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_mark_as_read_action);
if (cardView3 != null) {
i = R.id.guild_profile_sheet_nickname;
TextView textView9 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_nickname);
if (textView9 != null) {
i = R.id.guild_profile_sheet_premium_upsell_dot_separator;
ImageView imageView = (ImageView) inflate.findViewById(R.id.guild_profile_sheet_premium_upsell_dot_separator);
if (imageView != null) {
i = R.id.guild_profile_sheet_premium_upsell_text;
TextView textView10 = (TextView) inflate.findViewById(R.id.guild_profile_sheet_premium_upsell_text);
if (textView10 != null) {
CardView cardView4 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_primary_actions);
if (cardView4 != null) {
i = R.id.guild_profile_sheet_secondary_actions;
CardView cardView5 = (CardView) inflate.findViewById(R.id.guild_profile_sheet_secondary_actions);
if (cardView5 != null) {
i = R.id.guild_profile_sheet_upload_emoji;
MaterialButton materialButton2 = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_upload_emoji);
if (materialButton2 != null) {
MaterialButton materialButton3 = (MaterialButton) inflate.findViewById(R.id.guild_profile_sheet_view_server);
if (materialButton3 != null) {
i = R.id.per_guild_identity_container;
LinearLayout linearLayout5 = (LinearLayout) inflate.findViewById(R.id.per_guild_identity_container);
if (linearLayout5 != null) {
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding = new WidgetGuildProfileActionsBinding(linearLayout4, linearLayout, textView, linearLayout2, checkedSetting, linearLayout3, linearLayout4, textView2, textView3, textView4, textView5, cardView, recyclerView, cardView2, textView6, simpleDraweeView, checkedSetting2, materialButton, textView7, textView8, cardView3, textView9, imageView, textView10, cardView4, cardView5, materialButton2, materialButton3, linearLayout5);
m.checkNotNullExpressionValue(widgetGuildProfileActionsBinding, "WidgetGuildProfileActionsBinding.bind(view)");
this.guildActionBinding = widgetGuildProfileActionsBinding;
if (widgetGuildProfileActionsBinding == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
m.checkNotNullExpressionValue(recyclerView, "guildActionBinding.guildProfileSheetEmojis");
recyclerView.setAdapter(this.emojisAdapter);
configureGuildIcon(component1, component4, component3);
configureGuildBanner(component7);
configureGuildContent(component2, component5, component6);
configureMemberCount(component8, component9);
configureTabItems(component1, tabItems, component14);
if (!component14) {
configureGuildHubActions(component1, component16.getId(), actions, loaded.getInPerGuildAvatarExperiment());
return;
}
configureGuildActions(component1, component16.getId(), actions, loaded.getInPerGuildAvatarExperiment());
configureEmojis(component12);
configureBottomActions(component1, this.channelId, component13);
return;
}
configureGuildActions(component1, component16.getId(), actions, loaded.getInPerGuildAvatarExperiment());
configureEmojis(component12);
configureBottomActions(component1, this.channelId, component13);
return;
} else {
i = R.id.guild_profile_sheet_view_server;
}
} else {
i = R.id.guild_profile_sheet_view_server;
}
}
} else {
i = R.id.guild_profile_sheet_primary_actions;
}
} else {
i = R.id.guild_profile_sheet_primary_actions;
}
}
}
} else {
i = R.id.guild_profile_sheet_mark_as_read_action;
}
} else {
i = R.id.guild_profile_sheet_mark_as_read_action;
}
}
} else {
i = R.id.guild_profile_sheet_join_server;
}
} else {
i = R.id.guild_profile_sheet_join_server;
}
}
} else {
i = R.id.guild_profile_sheet_emojis_count;
}
} else {
i = R.id.guild_profile_sheet_emojis_count;
}
} else {
i = R.id.guild_profile_sheet_emojis;
}
} else {
i = R.id.guild_profile_sheet_emojis;
i = R.id.guild_profile_sheet_developer_actions;
}
} else {
i = R.id.guild_profile_sheet_developer_actions;
i = R.id.guild_profile_sheet_create_event;
}
} else {
i = R.id.guild_profile_sheet_create_channel;
@ -802,19 +816,19 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
SimpleDraweeView simpleDraweeView2 = (SimpleDraweeView) inflate2.findViewById(R.id.guild_profile_sheet_guild_avatar);
if (simpleDraweeView2 != null) {
i2 = R.id.guild_profile_sheet_invite;
TextView textView10 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_invite);
if (textView10 != null) {
TextView textView11 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_invite);
if (textView11 != null) {
CardView cardView6 = (CardView) inflate2.findViewById(R.id.guild_profile_sheet_invite_action);
if (cardView6 != null) {
TextView textView11 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_leave_server);
if (textView11 != null) {
TextView textView12 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_nickname);
if (textView12 != null) {
TextView textView12 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_leave_server);
if (textView12 != null) {
TextView textView13 = (TextView) inflate2.findViewById(R.id.guild_profile_sheet_nickname);
if (textView13 != null) {
CardView cardView7 = (CardView) inflate2.findViewById(R.id.guild_profile_sheet_secondary_actions);
if (cardView7 != null) {
LinearLayout linearLayout9 = (LinearLayout) inflate2.findViewById(R.id.per_guild_identity_container);
if (linearLayout9 != null) {
WidgetGuildHubProfileActionsBinding widgetGuildHubProfileActionsBinding = new WidgetGuildHubProfileActionsBinding(linearLayout7, linearLayout6, linearLayout7, linearLayout8, simpleDraweeView2, textView10, cardView6, textView11, textView12, cardView7, linearLayout9);
WidgetGuildHubProfileActionsBinding widgetGuildHubProfileActionsBinding = new WidgetGuildHubProfileActionsBinding(linearLayout7, linearLayout6, linearLayout7, linearLayout8, simpleDraweeView2, textView11, cardView6, textView12, textView13, cardView7, linearLayout9);
m.checkNotNullExpressionValue(widgetGuildHubProfileActionsBinding, "WidgetGuildHubProfileActionsBinding.bind(view)");
this.guildHubActionBinding = widgetGuildHubProfileActionsBinding;
} else {
@ -964,14 +978,14 @@ public final class WidgetGuildProfileSheet extends AppBottomSheet {
if (widgetGuildProfileActionsBinding == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView = widgetGuildProfileActionsBinding.m;
CardView cardView = widgetGuildProfileActionsBinding.n;
m.checkNotNullExpressionValue(cardView, "guildActionBinding.guildProfileSheetEmojisCard");
int contentPaddingLeft = cardView.getContentPaddingLeft();
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding2 = this.guildActionBinding;
if (widgetGuildProfileActionsBinding2 == null) {
m.throwUninitializedPropertyAccessException("guildActionBinding");
}
CardView cardView2 = widgetGuildProfileActionsBinding2.m;
CardView cardView2 = widgetGuildProfileActionsBinding2.n;
m.checkNotNullExpressionValue(cardView2, "guildActionBinding.guildProfileSheetEmojisCard");
int contentPaddingRight = cardView2.getContentPaddingRight() + contentPaddingLeft;
WidgetGuildProfileActionsBinding widgetGuildProfileActionsBinding3 = this.guildActionBinding;

View file

@ -88,6 +88,7 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
private final boolean canChangeNickname;
private final boolean canLeaveGuild;
private final boolean canManageChannels;
private final boolean canManageEvents;
private final boolean displayGuildIdentityRow;
private final String guildAvatar;
private final boolean hideMutedChannels;
@ -97,37 +98,42 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
private final String nick;
private final String username;
/* JADX WARNING: Code restructure failed: missing block: B:12:0x0038, code lost:
if ((r6 == null || r6.length() == 0) == false) goto L_0x003a;
/* JADX WARNING: Code restructure failed: missing block: B:12:0x003a, code lost:
if ((r7 == null || r7.length() == 0) == false) goto L_0x003c;
*/
public Actions(boolean z2, boolean z3, boolean z4, String str, String str2, boolean z5, boolean z6, boolean z7, boolean z8, String str3) {
public Actions(boolean z2, boolean z3, boolean z4, boolean z5, String str, String str2, boolean z6, boolean z7, boolean z8, boolean z9, String str3) {
m.checkNotNullParameter(str3, "username");
this.isUnread = z2;
this.canManageChannels = z3;
this.canChangeNickname = z4;
this.canManageEvents = z4;
this.canChangeNickname = z5;
this.nick = str;
this.guildAvatar = str2;
this.isAllowDMChecked = z5;
this.hideMutedChannels = z6;
this.canLeaveGuild = z7;
this.isDeveloper = z8;
this.isAllowDMChecked = z6;
this.hideMutedChannels = z7;
this.canLeaveGuild = z8;
this.isDeveloper = z9;
this.username = str3;
boolean z9 = false;
boolean z10 = false;
if (str == null || str.length() == 0) {
}
z9 = true;
this.displayGuildIdentityRow = z9;
z10 = true;
this.displayGuildIdentityRow = z10;
}
public static /* synthetic */ Actions copy$default(Actions actions, boolean z2, boolean z3, boolean z4, String str, String str2, boolean z5, boolean z6, boolean z7, boolean z8, String str3, int i, Object obj) {
return actions.copy((i & 1) != 0 ? actions.isUnread : z2, (i & 2) != 0 ? actions.canManageChannels : z3, (i & 4) != 0 ? actions.canChangeNickname : z4, (i & 8) != 0 ? actions.nick : str, (i & 16) != 0 ? actions.guildAvatar : str2, (i & 32) != 0 ? actions.isAllowDMChecked : z5, (i & 64) != 0 ? actions.hideMutedChannels : z6, (i & 128) != 0 ? actions.canLeaveGuild : z7, (i & 256) != 0 ? actions.isDeveloper : z8, (i & 512) != 0 ? actions.username : str3);
public static /* synthetic */ Actions copy$default(Actions actions, boolean z2, boolean z3, boolean z4, boolean z5, String str, String str2, boolean z6, boolean z7, boolean z8, boolean z9, String str3, int i, Object obj) {
return actions.copy((i & 1) != 0 ? actions.isUnread : z2, (i & 2) != 0 ? actions.canManageChannels : z3, (i & 4) != 0 ? actions.canManageEvents : z4, (i & 8) != 0 ? actions.canChangeNickname : z5, (i & 16) != 0 ? actions.nick : str, (i & 32) != 0 ? actions.guildAvatar : str2, (i & 64) != 0 ? actions.isAllowDMChecked : z6, (i & 128) != 0 ? actions.hideMutedChannels : z7, (i & 256) != 0 ? actions.canLeaveGuild : z8, (i & 512) != 0 ? actions.isDeveloper : z9, (i & 1024) != 0 ? actions.username : str3);
}
public final boolean component1() {
return this.isUnread;
}
public final String component10() {
public final boolean component10() {
return this.isDeveloper;
}
public final String component11() {
return this.username;
}
@ -136,36 +142,36 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
}
public final boolean component3() {
return this.canManageEvents;
}
public final boolean component4() {
return this.canChangeNickname;
}
public final String component4() {
public final String component5() {
return this.nick;
}
public final String component5() {
public final String component6() {
return this.guildAvatar;
}
public final boolean component6() {
public final boolean component7() {
return this.isAllowDMChecked;
}
public final boolean component7() {
public final boolean component8() {
return this.hideMutedChannels;
}
public final boolean component8() {
public final boolean component9() {
return this.canLeaveGuild;
}
public final boolean component9() {
return this.isDeveloper;
}
public final Actions copy(boolean z2, boolean z3, boolean z4, String str, String str2, boolean z5, boolean z6, boolean z7, boolean z8, String str3) {
public final Actions copy(boolean z2, boolean z3, boolean z4, boolean z5, String str, String str2, boolean z6, boolean z7, boolean z8, boolean z9, String str3) {
m.checkNotNullParameter(str3, "username");
return new Actions(z2, z3, z4, str, str2, z5, z6, z7, z8, str3);
return new Actions(z2, z3, z4, z5, str, str2, z6, z7, z8, z9, str3);
}
public boolean equals(Object obj) {
@ -176,7 +182,7 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
return false;
}
Actions actions = (Actions) obj;
return this.isUnread == actions.isUnread && this.canManageChannels == actions.canManageChannels && this.canChangeNickname == actions.canChangeNickname && m.areEqual(this.nick, actions.nick) && m.areEqual(this.guildAvatar, actions.guildAvatar) && this.isAllowDMChecked == actions.isAllowDMChecked && this.hideMutedChannels == actions.hideMutedChannels && this.canLeaveGuild == actions.canLeaveGuild && this.isDeveloper == actions.isDeveloper && m.areEqual(this.username, actions.username);
return this.isUnread == actions.isUnread && this.canManageChannels == actions.canManageChannels && this.canManageEvents == actions.canManageEvents && this.canChangeNickname == actions.canChangeNickname && m.areEqual(this.nick, actions.nick) && m.areEqual(this.guildAvatar, actions.guildAvatar) && this.isAllowDMChecked == actions.isAllowDMChecked && this.hideMutedChannels == actions.hideMutedChannels && this.canLeaveGuild == actions.canLeaveGuild && this.isDeveloper == actions.isDeveloper && m.areEqual(this.username, actions.username);
}
public final boolean getCanChangeNickname() {
@ -191,6 +197,10 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
return this.canManageChannels;
}
public final boolean getCanManageEvents() {
return this.canManageEvents;
}
public final boolean getDisplayGuildIdentityRow() {
return this.displayGuildIdentityRow;
}
@ -229,7 +239,7 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
int i7 = z3 ? 1 : 0;
int i8 = z3 ? 1 : 0;
int i9 = (i5 + i6) * 31;
boolean z4 = this.canChangeNickname;
boolean z4 = this.canManageEvents;
if (z4) {
z4 = true;
}
@ -237,28 +247,28 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
int i11 = z4 ? 1 : 0;
int i12 = z4 ? 1 : 0;
int i13 = (i9 + i10) * 31;
String str = this.nick;
int i14 = 0;
int hashCode = (i13 + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.guildAvatar;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
boolean z5 = this.isAllowDMChecked;
boolean z5 = this.canChangeNickname;
if (z5) {
z5 = true;
}
int i14 = z5 ? 1 : 0;
int i15 = z5 ? 1 : 0;
int i16 = z5 ? 1 : 0;
int i17 = z5 ? 1 : 0;
int i18 = (hashCode2 + i15) * 31;
boolean z6 = this.hideMutedChannels;
int i17 = (i13 + i14) * 31;
String str = this.nick;
int i18 = 0;
int hashCode = (i17 + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.guildAvatar;
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
boolean z6 = this.isAllowDMChecked;
if (z6) {
z6 = true;
}
int i19 = z6 ? 1 : 0;
int i20 = z6 ? 1 : 0;
int i21 = z6 ? 1 : 0;
int i22 = (i18 + i19) * 31;
boolean z7 = this.canLeaveGuild;
int i22 = (hashCode2 + i19) * 31;
boolean z7 = this.hideMutedChannels;
if (z7) {
z7 = true;
}
@ -266,16 +276,24 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
int i24 = z7 ? 1 : 0;
int i25 = z7 ? 1 : 0;
int i26 = (i22 + i23) * 31;
boolean z8 = this.isDeveloper;
if (!z8) {
i = z8 ? 1 : 0;
boolean z8 = this.canLeaveGuild;
if (z8) {
z8 = true;
}
int i27 = (i26 + i) * 31;
int i27 = z8 ? 1 : 0;
int i28 = z8 ? 1 : 0;
int i29 = z8 ? 1 : 0;
int i30 = (i26 + i27) * 31;
boolean z9 = this.isDeveloper;
if (!z9) {
i = z9 ? 1 : 0;
}
int i31 = (i30 + i) * 31;
String str3 = this.username;
if (str3 != null) {
i14 = str3.hashCode();
i18 = str3.hashCode();
}
return i27 + i14;
return i31 + i18;
}
public final boolean isAllowDMChecked() {
@ -295,6 +313,8 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
P.append(this.isUnread);
P.append(", canManageChannels=");
P.append(this.canManageChannels);
P.append(", canManageEvents=");
P.append(this.canManageEvents);
P.append(", canChangeNickname=");
P.append(this.canChangeNickname);
P.append(", nick=");
@ -1354,13 +1374,13 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
/* JADX WARNING: Removed duplicated region for block: B:10:0x0044 */
/* JADX WARNING: Removed duplicated region for block: B:11:0x0057 */
/* JADX WARNING: Removed duplicated region for block: B:14:0x005b */
/* JADX WARNING: Removed duplicated region for block: B:23:0x00a9 */
/* JADX WARNING: Removed duplicated region for block: B:25:0x00af */
/* JADX WARNING: Removed duplicated region for block: B:33:0x00e1 */
/* JADX WARNING: Removed duplicated region for block: B:42:0x010e */
/* JADX WARNING: Removed duplicated region for block: B:43:0x0115 */
/* JADX WARNING: Removed duplicated region for block: B:45:0x0119 */
/* JADX WARNING: Removed duplicated region for block: B:48:0x012e */
/* JADX WARNING: Removed duplicated region for block: B:23:0x00ad */
/* JADX WARNING: Removed duplicated region for block: B:25:0x00b3 */
/* JADX WARNING: Removed duplicated region for block: B:33:0x00e5 */
/* JADX WARNING: Removed duplicated region for block: B:42:0x0112 */
/* JADX WARNING: Removed duplicated region for block: B:43:0x0119 */
/* JADX WARNING: Removed duplicated region for block: B:45:0x011d */
/* JADX WARNING: Removed duplicated region for block: B:48:0x0132 */
private final void handleLoadedGuild(Guild guild, GuildPreview guildPreview, GuildChannelsInfo guildChannelsInfo, MeUser meUser, GuildMember guildMember, List<Long> list, boolean z2, List<? extends Emoji> list2, boolean z3, boolean z4, boolean z5) {
Integer num;
List<? extends Emoji> list3;
@ -1376,7 +1396,7 @@ public final class WidgetGuildProfileSheetViewModel extends AppViewModel<ViewSta
Banner banner = new Banner(guild.getId(), guild.getBanner(), Banner.Type.BANNER);
ManageGuildContext manageGuildContext = guildChannelsInfo.getManageGuildContext();
TabItems tabItems = z3 ? new TabItems(manageGuildContext.canManage(), guildChannelsInfo.getAbleToInstantInvite(), guild.getPremiumSubscriptionCount()) : null;
Actions actions = z3 ? new Actions(z4, manageGuildContext.getCanManageChannels(), guildChannelsInfo.getCanChangeNickname(), guildMember != null ? guildMember.getNick() : null, guildMember != null ? guildMember.getAvatarHash() : null, !list.contains(Long.valueOf(guild.getId())), guildChannelsInfo.getHideMutedChannels(), !guild.isOwner(meUser.getId()), z2, meUser.getUsername()) : null;
Actions actions = z3 ? new Actions(z4, manageGuildContext.getCanManageChannels(), manageGuildContext.getCanManageEvents(), guildChannelsInfo.getCanChangeNickname(), guildMember != null ? guildMember.getNick() : null, guildMember != null ? guildMember.getAvatarHash() : null, !list.contains(Long.valueOf(guild.getId())), guildChannelsInfo.getHideMutedChannels(), !guild.isOwner(meUser.getId()), z2, meUser.getUsername()) : null;
if (z3) {
list3 = list2;
} else if (guildPreview == null || (d = guildPreview.d()) == null) {

View file

@ -1,18 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: GuildScheduledEventBottomButtonView.kt */
public final class GuildScheduledEventBottomButtonView$configure$5 extends o implements Function0<Unit> {
public static final GuildScheduledEventBottomButtonView$configure$5 INSTANCE = new GuildScheduledEventBottomButtonView$configure$5();
public GuildScheduledEventBottomButtonView$configure$5() {
super(0);
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
}
}

View file

@ -6,24 +6,20 @@ import kotlin.jvm.functions.Function0;
/* compiled from: GuildScheduledEventBottomButtonView.kt */
public final class GuildScheduledEventBottomButtonView$configureInterestedButton$$inlined$apply$lambda$1 implements View.OnClickListener {
public final /* synthetic */ boolean $isRsvped$inlined;
public final /* synthetic */ Function0 $onEndEventButtonClicked$inlined;
public final /* synthetic */ Function0 $onJoinButtonClicked$inlined;
public final /* synthetic */ Function0 $onRsvpButtonClicked$inlined;
public final /* synthetic */ GuildScheduledEventBottomButtonView.VisibilityInfo $visibilityInfo$inlined;
public GuildScheduledEventBottomButtonView$configureInterestedButton$$inlined$apply$lambda$1(GuildScheduledEventBottomButtonView.VisibilityInfo visibilityInfo, boolean z2, Function0 function0, Function0 function02, Function0 function03) {
public GuildScheduledEventBottomButtonView$configureInterestedButton$$inlined$apply$lambda$1(GuildScheduledEventBottomButtonView.VisibilityInfo visibilityInfo, boolean z2, Function0 function0, Function0 function02) {
this.$visibilityInfo$inlined = visibilityInfo;
this.$isRsvped$inlined = z2;
this.$onEndEventButtonClicked$inlined = function0;
this.$onJoinButtonClicked$inlined = function02;
this.$onRsvpButtonClicked$inlined = function03;
this.$onJoinButtonClicked$inlined = function0;
this.$onRsvpButtonClicked$inlined = function02;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
if (this.$visibilityInfo$inlined.isEventEndable()) {
this.$onEndEventButtonClicked$inlined.mo1invoke();
} else if (this.$visibilityInfo$inlined.isEventActive()) {
if (this.$visibilityInfo$inlined.isEventActive()) {
this.$onJoinButtonClicked$inlined.mo1invoke();
} else {
this.$onRsvpButtonClicked$inlined.mo1invoke();

View file

@ -33,9 +33,9 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
private final boolean isAnyButtonVisible;
private final boolean isEventActive;
private final boolean isEventComplete;
private final boolean isEventEndable;
private final boolean isShareVisible;
private final boolean isStartEventVisible;
private final boolean primaryInteractionButtonEnabled;
private final boolean primaryInteractionButtonVisible;
private final GuildScheduledEventTiming timing;
@ -50,12 +50,12 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
boolean z5 = true;
boolean z6 = guildScheduledEvent.k() == GuildScheduledEventStatus.COMPLETED;
this.isEventComplete = z6;
this.primaryInteractionButtonVisible = z2;
boolean isStartable = (!z4 || z6) ? false : eventTiming.isStartable();
this.isStartEventVisible = isStartable;
boolean z7 = eventTiming == GuildScheduledEventTiming.LIVE;
this.isEventActive = z7;
this.isEventEndable = z7 && guildScheduledEvent.e() == GuildScheduledEventEntityType.EXTERNAL;
this.primaryInteractionButtonVisible = z2;
this.primaryInteractionButtonEnabled = !z6 && (!z7 || guildScheduledEvent.e() != GuildScheduledEventEntityType.EXTERNAL);
boolean isStartable = (!z4 || z6) ? false : eventTiming.isStartable();
this.isStartEventVisible = isStartable;
boolean z8 = z3 && !z6;
this.isShareVisible = z8;
if (!z2 && !isStartable && !z8) {
@ -128,6 +128,10 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
return this.guildScheduledEvent;
}
public final boolean getPrimaryInteractionButtonEnabled() {
return this.primaryInteractionButtonEnabled;
}
public final boolean getPrimaryInteractionButtonVisible() {
return this.primaryInteractionButtonVisible;
}
@ -175,10 +179,6 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
return this.isEventComplete;
}
public final boolean isEventEndable() {
return this.isEventEndable;
}
public final boolean isShareVisible() {
return this.isShareVisible;
}
@ -228,7 +228,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
this.binding = a;
}
public static /* synthetic */ void configure$default(GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) {
public static /* synthetic */ void configure$default(GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView, GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0 function0, Function0 function02, Function0 function03, Function0 function04, int i, Object obj) {
boolean z6 = false;
boolean z7 = (i & 2) != 0 ? false : z2;
boolean z8 = (i & 4) != 0 ? false : z3;
@ -236,38 +236,29 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
if ((i & 16) == 0) {
z6 = z5;
}
guildScheduledEventBottomButtonView.configure(guildScheduledEvent, z7, z8, z9, z6, (i & 32) != 0 ? GuildScheduledEventBottomButtonView$configure$1.INSTANCE : function0, (i & 64) != 0 ? GuildScheduledEventBottomButtonView$configure$2.INSTANCE : function02, (i & 128) != 0 ? GuildScheduledEventBottomButtonView$configure$3.INSTANCE : function03, (i & 256) != 0 ? GuildScheduledEventBottomButtonView$configure$4.INSTANCE : function04, (i & 512) != 0 ? GuildScheduledEventBottomButtonView$configure$5.INSTANCE : function05);
guildScheduledEventBottomButtonView.configure(guildScheduledEvent, z7, z8, z9, z6, (i & 32) != 0 ? GuildScheduledEventBottomButtonView$configure$1.INSTANCE : function0, (i & 64) != 0 ? GuildScheduledEventBottomButtonView$configure$2.INSTANCE : function02, (i & 128) != 0 ? GuildScheduledEventBottomButtonView$configure$3.INSTANCE : function03, (i & 256) != 0 ? GuildScheduledEventBottomButtonView$configure$4.INSTANCE : function04);
}
private final void configureInterestedButton(VisibilityInfo visibilityInfo, boolean z2, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03) {
private final void configureInterestedButton(VisibilityInfo visibilityInfo, boolean z2, Function0<Unit> function0, Function0<Unit> function02) {
ImageView imageView = this.binding.f1633c;
int i = 8;
imageView.setVisibility(visibilityInfo.getPrimaryInteractionButtonVisible() ? 0 : 8);
boolean isEventEndable = visibilityInfo.isEventEndable();
int i2 = R.drawable.bg_guild_scheduled_event_list_item_interested_button_default;
if (!isEventEndable && !visibilityInfo.isEventComplete()) {
if (visibilityInfo.isEventActive()) {
i2 = R.drawable.bg_guild_scheduled_event_list_item_interested_button_active;
} else if (z2) {
i2 = R.drawable.bg_guild_scheduled_event_list_item_interested_button_interested;
}
}
imageView.setImageResource(i2);
imageView.setOnClickListener(new GuildScheduledEventBottomButtonView$configureInterestedButton$$inlined$apply$lambda$1(visibilityInfo, z2, function03, function02, function0));
imageView.setEnabled(!visibilityInfo.isEventComplete());
imageView.setImageResource(!visibilityInfo.getPrimaryInteractionButtonEnabled() ? R.drawable.bg_guild_scheduled_event_list_item_interested_button_disabled : visibilityInfo.isEventActive() ? R.drawable.bg_guild_scheduled_event_list_item_interested_button_active : z2 ? R.drawable.bg_guild_scheduled_event_list_item_interested_button_interested : R.drawable.bg_guild_scheduled_event_list_item_interested_button_default);
imageView.setOnClickListener(new GuildScheduledEventBottomButtonView$configureInterestedButton$$inlined$apply$lambda$1(visibilityInfo, z2, function02, function0));
imageView.setEnabled(visibilityInfo.getPrimaryInteractionButtonEnabled());
TextView textView = this.binding.d;
if (visibilityInfo.getPrimaryInteractionButtonVisible()) {
i = 0;
}
textView.setVisibility(i);
int color = (!z2 || visibilityInfo.isEventActive() || visibilityInfo.isEventComplete() || visibilityInfo.isEventEndable()) ? visibilityInfo.isEventComplete() ? ColorCompat.getColor(textView.getContext(), (int) R.color.white_alpha_40) : ColorCompat.getColor(textView.getContext(), (int) R.color.white) : ColorCompat.getThemedColor(textView.getContext(), (int) R.attr.colorControlBrandForegroundNew);
int i3 = (visibilityInfo.isEventActive() || visibilityInfo.isEventEndable() || visibilityInfo.isEventComplete()) ? 0 : z2 ? R.drawable.ic_check_brand_16dp : R.drawable.ic_bell_16dp;
int i4 = visibilityInfo.isEventEndable() ? R.string.end_event : visibilityInfo.isEventActive() ? R.string.stage_channel_join_button : visibilityInfo.isEventComplete() ? R.string.guild_event_invite_completed : R.string.stage_instance_interested_label;
DrawableCompat.setCompoundDrawablesCompat$default(textView, i3, 0, 0, 0, 14, (Object) null);
int color = !visibilityInfo.getPrimaryInteractionButtonEnabled() ? ColorCompat.getColor(textView.getContext(), (int) R.color.white_alpha_40) : (!z2 || visibilityInfo.isEventActive() || visibilityInfo.isEventComplete()) ? ColorCompat.getColor(textView.getContext(), (int) R.color.white) : ColorCompat.getThemedColor(textView.getContext(), (int) R.attr.colorInteractiveActive);
int i2 = (visibilityInfo.isEventActive() || !visibilityInfo.getPrimaryInteractionButtonEnabled()) ? 0 : z2 ? R.drawable.ic_check_active_16dp : R.drawable.ic_bell_16dp;
int i3 = (!visibilityInfo.isEventActive() || visibilityInfo.getGuildScheduledEvent().e() != GuildScheduledEventEntityType.EXTERNAL) ? visibilityInfo.isEventActive() ? R.string.stage_channel_join_button : visibilityInfo.isEventComplete() ? R.string.guild_event_invite_completed : R.string.stage_instance_interested_label : R.string.guild_event_started;
DrawableCompat.setCompoundDrawablesCompat$default(textView, i2, 0, 0, 0, 14, (Object) null);
textView.setTextColor(color);
Context context = textView.getContext();
m.checkNotNullExpressionValue(context, "context");
textView.setText(b.h(context, i4, new Object[0], null, 4));
textView.setText(b.h(context, i3, new Object[0], null, 4));
}
private final void configureShareButton(VisibilityInfo visibilityInfo, Function0<Unit> function0) {
@ -290,26 +281,24 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
imageView.setOnClickListener(new GuildScheduledEventBottomButtonView$configureStartEventButton$$inlined$apply$lambda$1(visibilityInfo, function0));
}
public final void configure(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05) {
public final void configure(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04) {
m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent");
m.checkNotNullParameter(function0, "onRsvpButtonClicked");
m.checkNotNullParameter(function02, "onStartEventButtonClicked");
m.checkNotNullParameter(function03, "onShareButtonClicked");
m.checkNotNullParameter(function04, "onJoinButtonClicked");
m.checkNotNullParameter(function05, "onEndEventButtonClicked");
VisibilityInfo visibilityInfo = new VisibilityInfo(guildScheduledEvent, z3, z4, z5);
configureStartEventButton(visibilityInfo, function02);
configureInterestedButton(visibilityInfo, z2, function0, function04, function05);
configureInterestedButton(visibilityInfo, z2, function0, function04);
configureShareButton(visibilityInfo, function03);
}
public final void configureForDetails(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05, Function0<Unit> function06) {
public final void configureForDetails(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05) {
m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent");
m.checkNotNullParameter(function0, "onStartEventButtonClicked");
m.checkNotNullParameter(function02, "onRsvpButtonClicked");
m.checkNotNullParameter(function03, "onShareButtonClicked");
m.checkNotNullParameter(function05, "onJoinButtonClicked");
m.checkNotNullParameter(function06, "onEndEventButtonClicked");
boolean z6 = true;
VisibilityInfo visibilityInfo = new VisibilityInfo(guildScheduledEvent, true, z3, z4);
configureStartEventButton(visibilityInfo, function0);
@ -322,7 +311,7 @@ public final class GuildScheduledEventBottomButtonView extends ConstraintLayout
m.checkNotNullExpressionValue(textView, "binding.interestedButtonText");
textView.setVisibility(8);
} else {
configureInterestedButton(visibilityInfo, z2, function02, function05, function06);
configureInterestedButton(visibilityInfo, z2, function02, function05);
}
configureShareButton(visibilityInfo, function03);
ImageView imageView2 = this.binding.b;

View file

@ -111,7 +111,7 @@ public final class GuildScheduledEventDateView extends ConstraintLayout {
if (ordinal != 5) {
i = ColorCompat.getColor(textView.getContext(), (int) R.color.status_green_600);
} else if (ordinal != 6) {
i = ColorCompat.getThemedColor(textView.getContext(), (int) R.attr.colorHeaderPrimary);
i = ColorCompat.getThemedColor(textView.getContext(), (int) R.attr.colorHeaderSecondary);
}
textView.setTextColor(i);
textView.setText(charSequence);

View file

@ -261,19 +261,20 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
public static final class Initialized extends ViewState {
private final boolean canShare;
private final boolean canStartEvent;
private final Channel channel;
private final Guild guild;
private final GuildScheduledEvent guildScheduledEvent;
private final boolean isDeveloperMode;
private final boolean isRsvped;
private final GuildScheduledEventLocationInfo locationInfo;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public Initialized(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5) {
public Initialized(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5) {
super(null);
m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent");
m.checkNotNullParameter(guildScheduledEventLocationInfo, "locationInfo");
m.checkNotNullParameter(guild, "guild");
this.guildScheduledEvent = guildScheduledEvent;
this.channel = channel;
this.locationInfo = guildScheduledEventLocationInfo;
this.guild = guild;
this.isRsvped = z2;
this.canShare = z3;
@ -281,12 +282,12 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
this.isDeveloperMode = z5;
}
public static /* synthetic */ Initialized copy$default(Initialized initialized, GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, int i, Object obj) {
public static /* synthetic */ Initialized copy$default(Initialized initialized, GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, int i, Object obj) {
if ((i & 1) != 0) {
guildScheduledEvent = initialized.guildScheduledEvent;
}
if ((i & 2) != 0) {
channel = initialized.channel;
guildScheduledEventLocationInfo = initialized.locationInfo;
}
if ((i & 4) != 0) {
guild = initialized.guild;
@ -303,15 +304,15 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
if ((i & 64) != 0) {
z5 = initialized.isDeveloperMode;
}
return initialized.copy(guildScheduledEvent, channel, guild, z2, z3, z4, z5);
return initialized.copy(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5);
}
public final GuildScheduledEvent component1() {
return this.guildScheduledEvent;
}
public final Channel component2() {
return this.channel;
public final GuildScheduledEventLocationInfo component2() {
return this.locationInfo;
}
public final Guild component3() {
@ -334,10 +335,11 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
return this.isDeveloperMode;
}
public final Initialized copy(GuildScheduledEvent guildScheduledEvent, Channel channel, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5) {
public final Initialized copy(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5) {
m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent");
m.checkNotNullParameter(guildScheduledEventLocationInfo, "locationInfo");
m.checkNotNullParameter(guild, "guild");
return new Initialized(guildScheduledEvent, channel, guild, z2, z3, z4, z5);
return new Initialized(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5);
}
public boolean equals(Object obj) {
@ -348,7 +350,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
return false;
}
Initialized initialized = (Initialized) obj;
return m.areEqual(this.guildScheduledEvent, initialized.guildScheduledEvent) && m.areEqual(this.channel, initialized.channel) && m.areEqual(this.guild, initialized.guild) && this.isRsvped == initialized.isRsvped && this.canShare == initialized.canShare && this.canStartEvent == initialized.canStartEvent && this.isDeveloperMode == initialized.isDeveloperMode;
return m.areEqual(this.guildScheduledEvent, initialized.guildScheduledEvent) && m.areEqual(this.locationInfo, initialized.locationInfo) && m.areEqual(this.guild, initialized.guild) && this.isRsvped == initialized.isRsvped && this.canShare == initialized.canShare && this.canStartEvent == initialized.canStartEvent && this.isDeveloperMode == initialized.isDeveloperMode;
}
public final boolean getCanShare() {
@ -359,10 +361,6 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
return this.canStartEvent;
}
public final Channel getChannel() {
return this.channel;
}
public final Guild getGuild() {
return this.guild;
}
@ -371,12 +369,16 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
return this.guildScheduledEvent;
}
public final GuildScheduledEventLocationInfo getLocationInfo() {
return this.locationInfo;
}
public int hashCode() {
GuildScheduledEvent guildScheduledEvent = this.guildScheduledEvent;
int i = 0;
int hashCode = (guildScheduledEvent != null ? guildScheduledEvent.hashCode() : 0) * 31;
Channel channel = this.channel;
int hashCode2 = (hashCode + (channel != null ? channel.hashCode() : 0)) * 31;
GuildScheduledEventLocationInfo guildScheduledEventLocationInfo = this.locationInfo;
int hashCode2 = (hashCode + (guildScheduledEventLocationInfo != null ? guildScheduledEventLocationInfo.hashCode() : 0)) * 31;
Guild guild = this.guild;
if (guild != null) {
i = guild.hashCode();
@ -425,8 +427,8 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
public String toString() {
StringBuilder P = a.P("Initialized(guildScheduledEvent=");
P.append(this.guildScheduledEvent);
P.append(", channel=");
P.append(this.channel);
P.append(", locationInfo=");
P.append(this.locationInfo);
P.append(", guild=");
P.append(this.guild);
P.append(", isRsvped=");
@ -495,7 +497,7 @@ public final class GuildScheduledEventDetailsViewModel extends AppViewModel<View
if (getViewState() == null) {
this.guildScheduledEventsStore.fetchGuildScheduledEventUserCounts(storeState.getGuild().getId());
}
obj = new ViewState.Initialized(storeState.getGuildScheduledEvent(), storeState.getChannel(), storeState.getGuild(), storeState.isRsvped(), storeState.getCanShare(), storeState.getCanStartEvent(), storeState.isDeveloperMode());
obj = new ViewState.Initialized(storeState.getGuildScheduledEvent(), GuildScheduledEventLocationInfo.Companion.buildLocationInfo(storeState.getGuildScheduledEvent(), storeState.getChannel()), storeState.getGuild(), storeState.isRsvped(), storeState.getCanShare(), storeState.getCanStartEvent(), storeState.isDeveloperMode());
}
updateViewState(obj);
}

View file

@ -1,18 +1,17 @@
package com.discord.widgets.guildscheduledevent;
import d0.z.d.o;
import kotlin.Unit;
import android.view.View;
import kotlin.jvm.functions.Function0;
/* compiled from: GuildScheduledEventItemView.kt */
public final class GuildScheduledEventItemView$configureInternal$5 extends o implements Function0<Unit> {
public static final GuildScheduledEventItemView$configureInternal$5 INSTANCE = new GuildScheduledEventItemView$configureInternal$5();
public final class GuildScheduledEventItemView$configureInternal$5 implements View.OnClickListener {
public final /* synthetic */ Function0 $onCardClicked;
public GuildScheduledEventItemView$configureInternal$5() {
super(0);
public GuildScheduledEventItemView$configureInternal$5(Function0 function0) {
this.$onCardClicked = function0;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.$onCardClicked.mo1invoke();
}
}

View file

@ -1,17 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import android.view.View;
import kotlin.jvm.functions.Function0;
/* compiled from: GuildScheduledEventItemView.kt */
public final class GuildScheduledEventItemView$configureInternal$6 implements View.OnClickListener {
public final /* synthetic */ Function0 $onCardClicked;
public GuildScheduledEventItemView$configureInternal$6(Function0 function0) {
this.$onCardClicked = function0;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.$onCardClicked.mo1invoke();
}
}

View file

@ -131,11 +131,11 @@ public final class GuildScheduledEventItemView extends ConstraintLayout {
guildScheduledEventItemView.configureInChatList(guildScheduledEvent, channel, guild, z2, z3, function0, (i & 64) != 0 ? GuildScheduledEventItemView$configureInChatList$1.INSTANCE : function02, (i & 128) != 0 ? GuildScheduledEventItemView$configureInChatList$2.INSTANCE : function03, function04);
}
private final void configureInternal(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05, Function0<Unit> function06) {
private final void configureInternal(GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05) {
GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView = this.binding.b;
m.checkNotNullExpressionValue(guildScheduledEventBottomButtonView, "binding.guildScheduledEventListItemButtomView");
guildScheduledEventBottomButtonView.setVisibility(new GuildScheduledEventBottomButtonView.VisibilityInfo(guildScheduledEvent, z3, z5, z4).isAnyButtonVisible() ? 0 : 8);
this.binding.b.configure(guildScheduledEvent, z2, z3, z5, z4, function02, function03, function04, function05, function06);
this.binding.b.configure(guildScheduledEvent, z2, z3, z5, z4, function02, function03, function04, function05);
TextView textView = this.binding.j;
m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventListItemRsvpText");
Integer l = guildScheduledEvent.l();
@ -147,12 +147,12 @@ public final class GuildScheduledEventItemView extends ConstraintLayout {
configureDescription(guildScheduledEvent.c());
configureLocation(guildScheduledEventLocationInfo, guild);
if (function0 != null) {
this.binding.a.setOnClickListener(new GuildScheduledEventItemView$configureInternal$6(function0));
this.binding.a.setOnClickListener(new GuildScheduledEventItemView$configureInternal$5(function0));
}
}
public static /* synthetic */ void configureInternal$default(GuildScheduledEventItemView guildScheduledEventItemView, GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, Function0 function06, int i, Object obj) {
guildScheduledEventItemView.configureInternal(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5, function0, (i & 256) != 0 ? GuildScheduledEventItemView$configureInternal$1.INSTANCE : function02, (i & 512) != 0 ? GuildScheduledEventItemView$configureInternal$2.INSTANCE : function03, (i & 1024) != 0 ? GuildScheduledEventItemView$configureInternal$3.INSTANCE : function04, (i & 2048) != 0 ? GuildScheduledEventItemView$configureInternal$4.INSTANCE : function05, (i & 4096) != 0 ? GuildScheduledEventItemView$configureInternal$5.INSTANCE : function06);
public static /* synthetic */ void configureInternal$default(GuildScheduledEventItemView guildScheduledEventItemView, GuildScheduledEvent guildScheduledEvent, GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild, boolean z2, boolean z3, boolean z4, boolean z5, Function0 function0, Function0 function02, Function0 function03, Function0 function04, Function0 function05, int i, Object obj) {
guildScheduledEventItemView.configureInternal(guildScheduledEvent, guildScheduledEventLocationInfo, guild, z2, z3, z4, z5, function0, (i & 256) != 0 ? GuildScheduledEventItemView$configureInternal$1.INSTANCE : function02, (i & 512) != 0 ? GuildScheduledEventItemView$configureInternal$2.INSTANCE : function03, (i & 1024) != 0 ? GuildScheduledEventItemView$configureInternal$3.INSTANCE : function04, (i & 2048) != 0 ? GuildScheduledEventItemView$configureInternal$4.INSTANCE : function05);
}
private final void configureLocation(GuildScheduledEventLocationInfo guildScheduledEventLocationInfo, Guild guild) {
@ -264,7 +264,7 @@ public final class GuildScheduledEventItemView extends ConstraintLayout {
m.checkNotNullParameter(function02, "rsvpButtonClickListener");
m.checkNotNullParameter(function03, "joinServerButtonClickListener");
m.checkNotNullParameter(function04, "shareButtonClickListener");
configureInternal$default(this, guildScheduledEvent, GuildScheduledEventLocationInfo.Companion.buildLocationInfo(guildScheduledEvent, channel), guild, z3, true, false, true, function0, function02, function03, function04, null, null, 6144, null);
configureInternal(guildScheduledEvent, GuildScheduledEventLocationInfo.Companion.buildLocationInfo(guildScheduledEvent, channel), guild, z3, true, false, true, function0, function02, function03, function04, function03);
ConstraintLayout constraintLayout = this.binding.a;
m.checkNotNullExpressionValue(constraintLayout, "binding.root");
constraintLayout.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary));
@ -295,22 +295,21 @@ public final class GuildScheduledEventItemView extends ConstraintLayout {
textView4.setVisibility(i);
}
public final void configureInEventList(GuildScheduledEventListItem.Event event, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05, Function0<Unit> function06) {
public final void configureInEventList(GuildScheduledEventListItem.Event event, Function0<Unit> function0, Function0<Unit> function02, Function0<Unit> function03, Function0<Unit> function04, Function0<Unit> function05) {
m.checkNotNullParameter(event, "item");
m.checkNotNullParameter(function0, "cardClickListener");
m.checkNotNullParameter(function02, "rsvpButtonClickListener");
m.checkNotNullParameter(function03, "eventStartButtonClickListener");
m.checkNotNullParameter(function04, "shareButtonClickListener");
m.checkNotNullParameter(function05, "joinButtonClickListener");
m.checkNotNullParameter(function06, "endEventButtonClickListener");
configureInternal(event.getEvent(), GuildScheduledEventLocationInfo.Companion.buildLocationInfo(event.getEvent(), event.getChannel()), null, event.isRsvped(), true, event.getCanStartEvent(), event.getCanShare(), function0, function02, function03, function04, function05, function06);
configureInternal(event.getEvent(), GuildScheduledEventLocationInfo.Companion.buildLocationInfo(event.getEvent(), event.getChannel()), null, event.isRsvped(), true, event.getCanStartEvent(), event.getCanShare(), function0, function02, function03, function04, function05);
}
public final void configureInVoiceChannel(GuildScheduledEvent guildScheduledEvent, boolean z2, boolean z3, Function0<Unit> function0, Function0<Unit> function02) {
m.checkNotNullParameter(guildScheduledEvent, "guildScheduledEvent");
m.checkNotNullParameter(function0, "onCardClicked");
m.checkNotNullParameter(function02, "onStartEventButtonClicked");
configureInternal$default(this, guildScheduledEvent, null, null, false, false, z2, false, function0, GuildScheduledEventItemView$configureInVoiceChannel$1.INSTANCE, function02, GuildScheduledEventItemView$configureInVoiceChannel$2.INSTANCE, GuildScheduledEventItemView$configureInVoiceChannel$3.INSTANCE, null, 4096, null);
configureInternal(guildScheduledEvent, null, null, false, false, z2, false, function0, GuildScheduledEventItemView$configureInVoiceChannel$1.INSTANCE, function02, GuildScheduledEventItemView$configureInVoiceChannel$2.INSTANCE, GuildScheduledEventItemView$configureInVoiceChannel$3.INSTANCE);
ConstraintLayout constraintLayout = this.binding.a;
m.checkNotNullExpressionValue(constraintLayout, "binding.root");
constraintLayout.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.bg_guild_scheduled_event_list_item_secondary));

View file

@ -1,51 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Context;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventListAdapter;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventListItem;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: GuildScheduledEventListAdapter.kt */
public final class GuildScheduledEventListAdapter$EventViewHolder$onConfigure$6 extends o implements Function0<Unit> {
public final /* synthetic */ GuildScheduledEventListItem.Event $item;
public final /* synthetic */ GuildScheduledEventListAdapter.EventViewHolder this$0;
/* compiled from: GuildScheduledEventListAdapter.kt */
/* renamed from: com.discord.widgets.guildscheduledevent.GuildScheduledEventListAdapter$EventViewHolder$onConfigure$6$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function1<Unit, Unit> {
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
public AnonymousClass1() {
super(1);
}
/* 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(Unit unit) {
invoke(unit);
return Unit.a;
}
public final void invoke(Unit unit) {
m.checkNotNullParameter(unit, "it");
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GuildScheduledEventListAdapter$EventViewHolder$onConfigure$6(GuildScheduledEventListAdapter.EventViewHolder eventViewHolder, GuildScheduledEventListItem.Event event) {
super(0);
this.this$0 = eventViewHolder;
this.$item = event;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(GuildScheduledEventAPI.INSTANCE.endEvent(this.$item.getEvent().g()), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass1.INSTANCE, 62, (Object) null);
}
}

View file

@ -45,7 +45,7 @@ public final class GuildScheduledEventListAdapter extends MGRecyclerAdapterSimpl
m.checkNotNullParameter(guildScheduledEventListItem, "data");
super.onConfigure(i, (int) guildScheduledEventListItem);
GuildScheduledEventListItem.Event event = (GuildScheduledEventListItem.Event) guildScheduledEventListItem;
this.binding.b.configureInEventList(event, new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$1(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$2(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$3(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$5(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$6(this, event));
this.binding.b.configureInEventList(event, new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$1(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$2(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$3(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$4(this, event), new GuildScheduledEventListAdapter$EventViewHolder$onConfigure$5(this, event));
}
}

View file

@ -15,6 +15,7 @@ import kotlin.jvm.functions.Function1;
import rx.Observable;
/* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */
public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 extends o implements Function0<Unit> {
public final /* synthetic */ Channel $channel;
public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState;
public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0;
@ -41,19 +42,20 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 ext
ChannelInviteLaunchUtils channelInviteLaunchUtils = ChannelInviteLaunchUtils.INSTANCE;
WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4 widgetGuildScheduledEventDetailsBottomSheet$configureUi$4 = this.this$0;
WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.this$0;
Channel channel2 = ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$viewState).getChannel();
Channel channel2 = widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$channel;
if (channel2 != null) {
channel = channel2;
}
ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, widgetGuildScheduledEventDetailsBottomSheet, channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.this$0.$viewState).getGuildScheduledEvent().g()), null, 16, null);
ChannelInviteLaunchUtils.inviteToChannel$default(channelInviteLaunchUtils, widgetGuildScheduledEventDetailsBottomSheet, channel, GuildScheduledEventUtilities.ANALYTICS_SOURCE, Long.valueOf(((GuildScheduledEventDetailsViewModel.ViewState.Initialized) widgetGuildScheduledEventDetailsBottomSheet$configureUi$4.$viewState).getGuildScheduledEvent().g()), null, 16, null);
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) {
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState, Channel channel) {
super(0);
this.this$0 = widgetGuildScheduledEventDetailsBottomSheet;
this.$viewState = viewState;
this.$channel = channel;
}
@Override // kotlin.jvm.functions.Function0

View file

@ -1,10 +1,11 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Context;
import androidx.fragment.app.Fragment;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.ViewKt;
import com.discord.api.channel.Channel;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel;
import com.discord.databinding.WidgetGuildScheduledEventDetailsBottomSheetBinding;
import com.discord.widgets.voice.VoiceUtils;
import d0.z.d.m;
import d0.z.d.o;
@ -12,30 +13,32 @@ import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */
public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6 extends o implements Function0<Unit> {
public final /* synthetic */ GuildScheduledEventDetailsViewModel.ViewState $viewState;
public final /* synthetic */ Channel $channel;
public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, GuildScheduledEventDetailsViewModel.ViewState viewState) {
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet, Channel channel) {
super(0);
this.this$0 = widgetGuildScheduledEventDetailsBottomSheet;
this.$viewState = viewState;
this.$channel = channel;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
this.this$0.dismiss();
Channel channel = ((GuildScheduledEventDetailsViewModel.ViewState.Initialized) this.$viewState).getChannel();
Channel channel = this.$channel;
if (channel != null) {
WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet = this.this$0;
Context requireContext = widgetGuildScheduledEventDetailsBottomSheet.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
Fragment requireParentFragment = this.this$0.requireParentFragment();
m.checkNotNullExpressionValue(requireParentFragment, "requireParentFragment()");
VoiceUtils.handleCallChannel(channel, widgetGuildScheduledEventDetailsBottomSheet, widgetGuildScheduledEventDetailsBottomSheet, requireContext, parentFragmentManager, requireParentFragment);
WidgetGuildScheduledEventDetailsBottomSheetBinding binding = this.this$0.getBinding();
m.checkNotNullExpressionValue(binding, "binding");
NestedScrollView nestedScrollView = binding.a;
m.checkNotNullExpressionValue(nestedScrollView, "binding.root");
VoiceUtils.handleCallChannel(channel, widgetGuildScheduledEventDetailsBottomSheet, widgetGuildScheduledEventDetailsBottomSheet, requireContext, parentFragmentManager, ViewKt.findFragment(nestedScrollView));
}
}
}

View file

@ -1,47 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Context;
import com.discord.utilities.rx.ObservableExtensionsKt;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */
public final class WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7 extends o implements Function0<Unit> {
public final /* synthetic */ WidgetGuildScheduledEventDetailsBottomSheet this$0;
/* compiled from: WidgetGuildScheduledEventDetailsBottomSheet.kt */
/* renamed from: com.discord.widgets.guildscheduledevent.WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function1<Unit, Unit> {
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
public AnonymousClass1() {
super(1);
}
/* 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(Unit unit) {
invoke(unit);
return Unit.a;
}
public final void invoke(Unit unit) {
m.checkNotNullParameter(unit, "it");
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(WidgetGuildScheduledEventDetailsBottomSheet widgetGuildScheduledEventDetailsBottomSheet) {
super(0);
this.this$0 = widgetGuildScheduledEventDetailsBottomSheet;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(GuildScheduledEventAPI.INSTANCE.endEvent(WidgetGuildScheduledEventDetailsBottomSheet.access$getGuildScheduledEventId$p(this.this$0)), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass1.INSTANCE, 62, (Object) null);
}
}

View file

@ -26,6 +26,7 @@ import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventDetailsViewModel;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventLocationInfo;
import com.discord.widgets.home.WidgetHome;
import com.facebook.drawee.view.SimpleDraweeView;
import d0.g;
@ -88,6 +89,7 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom
}
private final void configureUi(GuildScheduledEventDetailsViewModel.ViewState viewState) {
CharSequence charSequence;
if (!(viewState instanceof GuildScheduledEventDetailsViewModel.ViewState.Initialized)) {
dismiss();
return;
@ -103,25 +105,17 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom
TextView textView2 = getBinding().h;
d0.z.d.m.checkNotNullExpressionValue(textView2, "binding.guildScheduledEventDetailsGuildName");
textView2.setText(initialized.getGuild().getName());
ImageView imageView = getBinding().f1874c;
d0.z.d.m.checkNotNullExpressionValue(imageView, "binding.guildScheduledEventDetailsChannelIcon");
Channel channel = initialized.getChannel();
CharSequence charSequence = null;
int i = 8;
imageView.setVisibility((channel != null ? channel.m() : null) != null ? 0 : 8);
getBinding().f1874c.setImageResource(initialized.getLocationInfo().getLocationIcon());
TextView textView3 = getBinding().d;
d0.z.d.m.checkNotNullExpressionValue(textView3, "binding.guildScheduledEventDetailsChannelName");
Channel channel2 = initialized.getChannel();
ViewExtensions.setTextAndVisibilityBy(textView3, channel2 != null ? channel2.m() : null);
ImageView imageView2 = getBinding().j;
d0.z.d.m.checkNotNullExpressionValue(imageView2, "binding.guildScheduledEventDetailsRsvpIcon");
if (initialized.getGuildScheduledEvent().l() != null) {
i = 0;
}
imageView2.setVisibility(i);
textView3.setText(initialized.getLocationInfo().getLocationName());
ImageView imageView = getBinding().j;
d0.z.d.m.checkNotNullExpressionValue(imageView, "binding.guildScheduledEventDetailsRsvpIcon");
imageView.setVisibility(initialized.getGuildScheduledEvent().l() != null ? 0 : 8);
TextView textView4 = getBinding().i;
d0.z.d.m.checkNotNullExpressionValue(textView4, "binding.guildScheduledEventDetailsRsvpCount");
Integer l = initialized.getGuildScheduledEvent().l();
Channel channel = null;
if (l != null) {
int intValue = l.intValue();
Context requireContext = requireContext();
@ -129,13 +123,23 @@ public final class WidgetGuildScheduledEventDetailsBottomSheet extends AppBottom
Context requireContext2 = requireContext();
d0.z.d.m.checkNotNullExpressionValue(requireContext2, "requireContext()");
charSequence = b.h(requireContext, R.string.guild_event_interested_count, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext2, R.plurals.guild_event_interested_count_count, intValue, Integer.valueOf(intValue))}, null, 4);
} else {
charSequence = null;
}
ViewExtensions.setTextAndVisibilityBy(textView4, charSequence);
getDescriptionParser().configureDescription(initialized.getGuildScheduledEvent().c());
GuildScheduledEventBottomButtonView guildScheduledEventBottomButtonView = getBinding().b;
d0.z.d.m.checkNotNullExpressionValue(guildScheduledEventBottomButtonView, "binding.guildScheduledEventDetailsButtonView");
guildScheduledEventBottomButtonView.setVisibility(0);
getBinding().b.configureForDetails(initialized.getGuildScheduledEvent(), initialized.isRsvped(), initialized.getCanShare(), initialized.getCanStartEvent(), initialized.isDeveloperMode(), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(this), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$7(this));
GuildScheduledEventLocationInfo locationInfo = initialized.getLocationInfo();
if (!(locationInfo instanceof GuildScheduledEventLocationInfo.ChannelLocation)) {
locationInfo = null;
}
GuildScheduledEventLocationInfo.ChannelLocation channelLocation = (GuildScheduledEventLocationInfo.ChannelLocation) locationInfo;
if (channelLocation != null) {
channel = channelLocation.getChannel();
}
getBinding().b.configureForDetails(initialized.getGuildScheduledEvent(), initialized.isRsvped(), initialized.getCanShare(), initialized.getCanStartEvent(), initialized.isDeveloperMode(), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$2(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$3(this), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$4(this, viewState, channel), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$5(this, viewState), new WidgetGuildScheduledEventDetailsBottomSheet$configureUi$6(this, channel));
}
private final long getGuildScheduledEventId() {

View file

@ -11,7 +11,6 @@ import c.a.d.f0;
import c.a.d.h0;
import c.d.b.a.a;
import com.discord.R;
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType;
import com.discord.app.AppBottomSheet;
import com.discord.databinding.WidgetGuildScheduledEventDetailsExtrasBottomSheetBinding;
import com.discord.utilities.guildscheduledevent.GuildScheduledEventTiming;
@ -115,7 +114,7 @@ public final class WidgetGuildScheduledEventDetailsExtrasBottomSheet extends App
boolean z3 = eventTiming == GuildScheduledEventTiming.LIVE;
TextView textView4 = getBinding().e;
m.checkNotNullExpressionValue(textView4, "binding.endEvent");
textView4.setVisibility(canStartEvent && z3 && initialized.getGuildScheduledEvent().e() != GuildScheduledEventEntityType.EXTERNAL ? 0 : 8);
textView4.setVisibility(canStartEvent && z3 ? 0 : 8);
getBinding().e.setOnClickListener(new WidgetGuildScheduledEventDetailsExtrasBottomSheet$configureUi$4(this));
TextView textView5 = getBinding().b;
m.checkNotNullExpressionValue(textView5, "binding.cancelEvent");

View file

@ -24,79 +24,83 @@ public final /* synthetic */ class WidgetGuildScheduledEventSettings$binding$2 e
public final WidgetGuildScheduledEventSettingsBinding invoke(View view) {
m.checkNotNullParameter(view, "p1");
int i = R.id.close_button;
ImageView imageView = (ImageView) view.findViewById(R.id.close_button);
int i = R.id.back_button;
ImageView imageView = (ImageView) view.findViewById(R.id.back_button);
if (imageView != null) {
i = R.id.end_date_header;
TextView textView = (TextView) view.findViewById(R.id.end_date_header);
if (textView != null) {
i = R.id.end_date_input;
TextInputEditText textInputEditText = (TextInputEditText) view.findViewById(R.id.end_date_input);
if (textInputEditText != null) {
i = R.id.end_date_layout;
TextInputLayout textInputLayout = (TextInputLayout) view.findViewById(R.id.end_date_layout);
if (textInputLayout != null) {
i = R.id.end_time_header;
TextView textView2 = (TextView) view.findViewById(R.id.end_time_header);
if (textView2 != null) {
i = R.id.end_time_input;
TextInputEditText textInputEditText2 = (TextInputEditText) view.findViewById(R.id.end_time_input);
if (textInputEditText2 != null) {
i = R.id.end_time_layout;
TextInputLayout textInputLayout2 = (TextInputLayout) view.findViewById(R.id.end_time_layout);
if (textInputLayout2 != null) {
i = R.id.guild_scheduled_event_settings_description_header;
TextView textView3 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_description_header);
if (textView3 != null) {
i = R.id.guild_scheduled_event_settings_description_input;
TextInputEditText textInputEditText3 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_description_input);
if (textInputEditText3 != null) {
i = R.id.guild_scheduled_event_settings_description_input_layout;
TextInputLayout textInputLayout3 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_description_input_layout);
if (textInputLayout3 != null) {
i = R.id.guild_scheduled_event_settings_next_button;
MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.guild_scheduled_event_settings_next_button);
if (materialButton != null) {
i = R.id.guild_scheduled_event_settings_scroll_view;
NestedScrollView nestedScrollView = (NestedScrollView) view.findViewById(R.id.guild_scheduled_event_settings_scroll_view);
if (nestedScrollView != null) {
i = R.id.guild_scheduled_event_settings_start_date_header;
TextView textView4 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_start_date_header);
if (textView4 != null) {
i = R.id.guild_scheduled_event_settings_start_date_input;
TextInputEditText textInputEditText4 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_start_date_input);
if (textInputEditText4 != null) {
i = R.id.guild_scheduled_event_settings_start_date_input_layout;
TextInputLayout textInputLayout4 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_start_date_input_layout);
if (textInputLayout4 != null) {
i = R.id.guild_scheduled_event_settings_start_time_header;
TextView textView5 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_start_time_header);
if (textView5 != null) {
i = R.id.guild_scheduled_event_settings_start_time_input;
TextInputEditText textInputEditText5 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_start_time_input);
if (textInputEditText5 != null) {
i = R.id.guild_scheduled_event_settings_start_time_input_layout;
TextInputLayout textInputLayout5 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_start_time_input_layout);
if (textInputLayout5 != null) {
i = R.id.guild_scheduled_event_settings_step_text;
TextView textView6 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_step_text);
if (textView6 != null) {
i = R.id.guild_scheduled_event_settings_stv;
ScreenTitleView screenTitleView = (ScreenTitleView) view.findViewById(R.id.guild_scheduled_event_settings_stv);
if (screenTitleView != null) {
i = R.id.guild_scheduled_event_settings_toolbar;
ConstraintLayout constraintLayout = (ConstraintLayout) view.findViewById(R.id.guild_scheduled_event_settings_toolbar);
if (constraintLayout != null) {
i = R.id.guild_scheduled_event_settings_topic_header;
TextView textView7 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_topic_header);
if (textView7 != null) {
i = R.id.guild_scheduled_event_settings_topic_input;
TextInputEditText textInputEditText6 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_topic_input);
if (textInputEditText6 != null) {
i = R.id.guild_scheduled_event_settings_topic_layout;
TextInputLayout textInputLayout6 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_topic_layout);
if (textInputLayout6 != null) {
return new WidgetGuildScheduledEventSettingsBinding((ConstraintLayout) view, imageView, textView, textInputEditText, textInputLayout, textView2, textInputEditText2, textInputLayout2, textView3, textInputEditText3, textInputLayout3, materialButton, nestedScrollView, textView4, textInputEditText4, textInputLayout4, textView5, textInputEditText5, textInputLayout5, textView6, screenTitleView, constraintLayout, textView7, textInputEditText6, textInputLayout6);
i = R.id.close_button;
ImageView imageView2 = (ImageView) view.findViewById(R.id.close_button);
if (imageView2 != null) {
i = R.id.end_date_header;
TextView textView = (TextView) view.findViewById(R.id.end_date_header);
if (textView != null) {
i = R.id.end_date_input;
TextInputEditText textInputEditText = (TextInputEditText) view.findViewById(R.id.end_date_input);
if (textInputEditText != null) {
i = R.id.end_date_layout;
TextInputLayout textInputLayout = (TextInputLayout) view.findViewById(R.id.end_date_layout);
if (textInputLayout != null) {
i = R.id.end_time_header;
TextView textView2 = (TextView) view.findViewById(R.id.end_time_header);
if (textView2 != null) {
i = R.id.end_time_input;
TextInputEditText textInputEditText2 = (TextInputEditText) view.findViewById(R.id.end_time_input);
if (textInputEditText2 != null) {
i = R.id.end_time_layout;
TextInputLayout textInputLayout2 = (TextInputLayout) view.findViewById(R.id.end_time_layout);
if (textInputLayout2 != null) {
i = R.id.guild_scheduled_event_settings_description_header;
TextView textView3 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_description_header);
if (textView3 != null) {
i = R.id.guild_scheduled_event_settings_description_input;
TextInputEditText textInputEditText3 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_description_input);
if (textInputEditText3 != null) {
i = R.id.guild_scheduled_event_settings_description_input_layout;
TextInputLayout textInputLayout3 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_description_input_layout);
if (textInputLayout3 != null) {
i = R.id.guild_scheduled_event_settings_next_button;
MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.guild_scheduled_event_settings_next_button);
if (materialButton != null) {
i = R.id.guild_scheduled_event_settings_scroll_view;
NestedScrollView nestedScrollView = (NestedScrollView) view.findViewById(R.id.guild_scheduled_event_settings_scroll_view);
if (nestedScrollView != null) {
i = R.id.guild_scheduled_event_settings_start_date_header;
TextView textView4 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_start_date_header);
if (textView4 != null) {
i = R.id.guild_scheduled_event_settings_start_date_input;
TextInputEditText textInputEditText4 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_start_date_input);
if (textInputEditText4 != null) {
i = R.id.guild_scheduled_event_settings_start_date_input_layout;
TextInputLayout textInputLayout4 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_start_date_input_layout);
if (textInputLayout4 != null) {
i = R.id.guild_scheduled_event_settings_start_time_header;
TextView textView5 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_start_time_header);
if (textView5 != null) {
i = R.id.guild_scheduled_event_settings_start_time_input;
TextInputEditText textInputEditText5 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_start_time_input);
if (textInputEditText5 != null) {
i = R.id.guild_scheduled_event_settings_start_time_input_layout;
TextInputLayout textInputLayout5 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_start_time_input_layout);
if (textInputLayout5 != null) {
i = R.id.guild_scheduled_event_settings_step_text;
TextView textView6 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_step_text);
if (textView6 != null) {
i = R.id.guild_scheduled_event_settings_stv;
ScreenTitleView screenTitleView = (ScreenTitleView) view.findViewById(R.id.guild_scheduled_event_settings_stv);
if (screenTitleView != null) {
i = R.id.guild_scheduled_event_settings_toolbar;
ConstraintLayout constraintLayout = (ConstraintLayout) view.findViewById(R.id.guild_scheduled_event_settings_toolbar);
if (constraintLayout != null) {
i = R.id.guild_scheduled_event_settings_topic_header;
TextView textView7 = (TextView) view.findViewById(R.id.guild_scheduled_event_settings_topic_header);
if (textView7 != null) {
i = R.id.guild_scheduled_event_settings_topic_input;
TextInputEditText textInputEditText6 = (TextInputEditText) view.findViewById(R.id.guild_scheduled_event_settings_topic_input);
if (textInputEditText6 != null) {
i = R.id.guild_scheduled_event_settings_topic_layout;
TextInputLayout textInputLayout6 = (TextInputLayout) view.findViewById(R.id.guild_scheduled_event_settings_topic_layout);
if (textInputLayout6 != null) {
return new WidgetGuildScheduledEventSettingsBinding((ConstraintLayout) view, imageView, imageView2, textView, textInputEditText, textInputLayout, textView2, textInputEditText2, textInputLayout2, textView3, textInputEditText3, textInputLayout3, materialButton, nestedScrollView, textView4, textInputEditText4, textInputLayout4, textView5, textInputEditText5, textInputLayout5, textView6, screenTitleView, constraintLayout, textView7, textInputEditText6, textInputLayout6);
}
}
}
}

View file

@ -14,7 +14,6 @@ public final class WidgetGuildScheduledEventSettings$onViewBound$1 implements Vi
public final void onClick(View view) {
FragmentActivity activity = this.this$0.getActivity();
if (activity != null) {
activity.setResult(2);
activity.finish();
}
}

View file

@ -0,0 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.view.View;
import androidx.fragment.app.FragmentActivity;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$2 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
public WidgetGuildScheduledEventSettings$onViewBound$2(WidgetGuildScheduledEventSettings widgetGuildScheduledEventSettings) {
this.this$0 = widgetGuildScheduledEventSettings;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
FragmentActivity activity = this.this$0.getActivity();
if (activity != null) {
activity.setResult(2);
activity.finish();
}
}
}

View file

@ -1,21 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$4$$special$$inlined$let$lambda$1 implements TimePickerDialog.OnTimeSetListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings$onViewBound$4 this$0;
public WidgetGuildScheduledEventSettings$onViewBound$4$$special$$inlined$let$lambda$1(WidgetGuildScheduledEventSettings$onViewBound$4 widgetGuildScheduledEventSettings$onViewBound$4) {
this.this$0 = widgetGuildScheduledEventSettings$onViewBound$4;
}
@Override // android.app.TimePickerDialog.OnTimeSetListener
public final void onTimeSet(TimePicker timePicker, int i, int i2) {
GuildScheduledEventSettingsViewModel.DateError startTime = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setStartTime(i, i2);
if (startTime != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, startTime);
}
}
}

View file

@ -1,23 +0,0 @@
package com.discord.widgets.guildscheduledevent;
import android.app.TimePickerDialog;
import android.view.View;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$4 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
public WidgetGuildScheduledEventSettings$onViewBound$4(WidgetGuildScheduledEventSettings widgetGuildScheduledEventSettings) {
this.this$0 = widgetGuildScheduledEventSettings;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
GuildScheduledEventModel eventModel;
GuildScheduledEventPickerTime startTime;
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null && (startTime = eventModel.getStartTime()) != null) {
new TimePickerDialog(this.this$0.requireContext(), new WidgetGuildScheduledEventSettings$onViewBound$4$$special$$inlined$let$lambda$1(this), startTime.getHourOfDay(), startTime.getMinute(), false).show();
}
}
}

View file

@ -1,21 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.widget.DatePicker;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$5$$special$$inlined$let$lambda$1 implements DatePickerDialog.OnDateSetListener {
public final class WidgetGuildScheduledEventSettings$onViewBound$5$$special$$inlined$let$lambda$1 implements TimePickerDialog.OnTimeSetListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings$onViewBound$5 this$0;
public WidgetGuildScheduledEventSettings$onViewBound$5$$special$$inlined$let$lambda$1(WidgetGuildScheduledEventSettings$onViewBound$5 widgetGuildScheduledEventSettings$onViewBound$5) {
this.this$0 = widgetGuildScheduledEventSettings$onViewBound$5;
}
@Override // android.app.DatePickerDialog.OnDateSetListener
public final void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
GuildScheduledEventSettingsViewModel.DateError startDate = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setStartDate(i, i2, i3);
if (startDate != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, startDate);
@Override // android.app.TimePickerDialog.OnTimeSetListener
public final void onTimeSet(TimePicker timePicker, int i, int i2) {
GuildScheduledEventSettingsViewModel.DateError startTime = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setStartTime(i, i2);
if (startTime != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, startTime);
}
}
}

View file

@ -1,11 +1,8 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.view.View;
import android.widget.DatePicker;
import com.discord.utilities.time.ClockFactory;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
import d0.z.d.m;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$5 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
@ -17,14 +14,10 @@ public final class WidgetGuildScheduledEventSettings$onViewBound$5 implements Vi
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
GuildScheduledEventModel eventModel;
GuildScheduledEventPickerDate startDate;
GuildScheduledEventPickerTime startTime;
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null && (startDate = eventModel.getStartDate()) != null) {
DatePickerDialog datePickerDialog = new DatePickerDialog(this.this$0.requireContext(), new WidgetGuildScheduledEventSettings$onViewBound$5$$special$$inlined$let$lambda$1(this), startDate.getYear(), startDate.getMonth(), startDate.getDayOfMonth());
DatePicker datePicker = datePickerDialog.getDatePicker();
m.checkNotNullExpressionValue(datePicker, "datePicker");
datePicker.setMinDate(ClockFactory.get().currentTimeMillis());
datePickerDialog.show();
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null && (startTime = eventModel.getStartTime()) != null) {
new TimePickerDialog(this.this$0.requireContext(), new WidgetGuildScheduledEventSettings$onViewBound$5$$special$$inlined$let$lambda$1(this), startTime.getHourOfDay(), startTime.getMinute(), false).show();
}
}
}

View file

@ -1,21 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import android.app.DatePickerDialog;
import android.widget.DatePicker;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1 implements TimePickerDialog.OnTimeSetListener {
public final class WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1 implements DatePickerDialog.OnDateSetListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings$onViewBound$6 this$0;
public WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1(WidgetGuildScheduledEventSettings$onViewBound$6 widgetGuildScheduledEventSettings$onViewBound$6) {
this.this$0 = widgetGuildScheduledEventSettings$onViewBound$6;
}
@Override // android.app.TimePickerDialog.OnTimeSetListener
public final void onTimeSet(TimePicker timePicker, int i, int i2) {
GuildScheduledEventSettingsViewModel.DateError endTime = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setEndTime(i, i2);
if (endTime != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, endTime);
@Override // android.app.DatePickerDialog.OnDateSetListener
public final void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
GuildScheduledEventSettingsViewModel.DateError startDate = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setStartDate(i, i2, i3);
if (startDate != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, startDate);
}
}
}

View file

@ -1,9 +1,11 @@
package com.discord.widgets.guildscheduledevent;
import android.app.TimePickerDialog;
import android.content.Context;
import android.app.DatePickerDialog;
import android.view.View;
import android.widget.DatePicker;
import com.discord.utilities.time.ClockFactory;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
import d0.z.d.m;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$6 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
@ -15,15 +17,14 @@ public final class WidgetGuildScheduledEventSettings$onViewBound$6 implements Vi
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
GuildScheduledEventModel eventModel;
GuildScheduledEventPickerDate startDate;
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null) {
GuildScheduledEventPickerTime second = GuildScheduledEventPickerDateTime.INSTANCE.generateDefaultEndDateTime(eventModel.getStartDate(), eventModel.getStartTime()).getSecond();
Context requireContext = this.this$0.requireContext();
WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1 widgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1 = new WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1(this);
GuildScheduledEventPickerTime endTime = eventModel.getEndTime();
int hourOfDay = endTime != null ? endTime.getHourOfDay() : second.getHourOfDay();
GuildScheduledEventPickerTime endTime2 = eventModel.getEndTime();
new TimePickerDialog(requireContext, widgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1, hourOfDay, endTime2 != null ? endTime2.getMinute() : second.getMinute(), false).show();
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null && (startDate = eventModel.getStartDate()) != null) {
DatePickerDialog datePickerDialog = new DatePickerDialog(this.this$0.requireContext(), new WidgetGuildScheduledEventSettings$onViewBound$6$$special$$inlined$let$lambda$1(this), startDate.getYear(), startDate.getMonth(), startDate.getDayOfMonth());
DatePicker datePicker = datePickerDialog.getDatePicker();
m.checkNotNullExpressionValue(datePicker, "datePicker");
datePicker.setMinDate(ClockFactory.get().currentTimeMillis());
datePickerDialog.show();
}
}
}

View file

@ -1,21 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.widget.DatePicker;
import android.app.TimePickerDialog;
import android.widget.TimePicker;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1 implements DatePickerDialog.OnDateSetListener {
public final class WidgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1 implements TimePickerDialog.OnTimeSetListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings$onViewBound$7 this$0;
public WidgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1(WidgetGuildScheduledEventSettings$onViewBound$7 widgetGuildScheduledEventSettings$onViewBound$7) {
this.this$0 = widgetGuildScheduledEventSettings$onViewBound$7;
}
@Override // android.app.DatePickerDialog.OnDateSetListener
public final void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
GuildScheduledEventSettingsViewModel.DateError endDate = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setEndDate(i, i2, i3);
if (endDate != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, endDate);
@Override // android.app.TimePickerDialog.OnTimeSetListener
public final void onTimeSet(TimePicker timePicker, int i, int i2) {
GuildScheduledEventSettingsViewModel.DateError endTime = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setEndTime(i, i2);
if (endTime != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, endTime);
}
}
}

View file

@ -1,12 +1,9 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.view.View;
import android.widget.DatePicker;
import com.discord.utilities.time.ClockFactory;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
import d0.z.d.m;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$7 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
@ -20,19 +17,13 @@ public final class WidgetGuildScheduledEventSettings$onViewBound$7 implements Vi
GuildScheduledEventModel eventModel;
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null) {
GuildScheduledEventPickerDate first = GuildScheduledEventPickerDateTime.INSTANCE.generateDefaultEndDateTime(eventModel.getStartDate(), eventModel.getStartTime()).getFirst();
GuildScheduledEventPickerTime second = GuildScheduledEventPickerDateTime.INSTANCE.generateDefaultEndDateTime(eventModel.getStartDate(), eventModel.getStartTime()).getSecond();
Context requireContext = this.this$0.requireContext();
WidgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1 widgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1 = new WidgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1(this);
GuildScheduledEventPickerDate endDate = eventModel.getEndDate();
int year = endDate != null ? endDate.getYear() : first.getYear();
GuildScheduledEventPickerDate endDate2 = eventModel.getEndDate();
int month = endDate2 != null ? endDate2.getMonth() : first.getMonth();
GuildScheduledEventPickerDate endDate3 = eventModel.getEndDate();
DatePickerDialog datePickerDialog = new DatePickerDialog(requireContext, widgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1, year, month, endDate3 != null ? endDate3.getDayOfMonth() : first.getDayOfMonth());
DatePicker datePicker = datePickerDialog.getDatePicker();
m.checkNotNullExpressionValue(datePicker, "datePicker");
datePicker.setMinDate(Math.max(eventModel.getStartDate().toMillis(), ClockFactory.get().currentTimeMillis()));
datePickerDialog.show();
GuildScheduledEventPickerTime endTime = eventModel.getEndTime();
int hourOfDay = endTime != null ? endTime.getHourOfDay() : second.getHourOfDay();
GuildScheduledEventPickerTime endTime2 = eventModel.getEndTime();
new TimePickerDialog(requireContext, widgetGuildScheduledEventSettings$onViewBound$7$$special$$inlined$let$lambda$1, hourOfDay, endTime2 != null ? endTime2.getMinute() : second.getMinute(), false).show();
}
}
}

View file

@ -0,0 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.widget.DatePicker;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1 implements DatePickerDialog.OnDateSetListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings$onViewBound$8 this$0;
public WidgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1(WidgetGuildScheduledEventSettings$onViewBound$8 widgetGuildScheduledEventSettings$onViewBound$8) {
this.this$0 = widgetGuildScheduledEventSettings$onViewBound$8;
}
@Override // android.app.DatePickerDialog.OnDateSetListener
public final void onDateSet(DatePicker datePicker, int i, int i2, int i3) {
GuildScheduledEventSettingsViewModel.DateError endDate = WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0.this$0).setEndDate(i, i2, i3);
if (endDate != null) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0.this$0, endDate);
}
}
}

View file

@ -1,9 +1,12 @@
package com.discord.widgets.guildscheduledevent;
import android.app.DatePickerDialog;
import android.content.Context;
import android.view.View;
import android.widget.DatePicker;
import com.discord.utilities.time.ClockFactory;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
import com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent;
import d0.z.d.m;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$8 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
@ -14,22 +17,22 @@ public final class WidgetGuildScheduledEventSettings$onViewBound$8 implements Vi
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
GuildScheduledEventModel eventModel;
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p == null) {
return;
}
if (WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).hasStartTimeChanged(access$getCurrentViewState$p) && !WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isDateInFuture(access$getCurrentViewState$p.getEventModel().getStartDate(), access$getCurrentViewState$p.getEventModel().getStartTime())) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.START_DATE_IN_PAST);
} else if (WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).hasEndTimeChanged(access$getCurrentViewState$p) && !WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isDateInFuture(access$getCurrentViewState$p.getEventModel().getEndDate(), access$getCurrentViewState$p.getEventModel().getEndTime())) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.END_DATE_IN_PAST);
} else if (!WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isStartDateBeforeEndDate(access$getCurrentViewState$p)) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.END_DATE_BEFORE_START_DATE);
} else {
WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion;
if (access$getCurrentViewState$p != null && (eventModel = access$getCurrentViewState$p.getEventModel()) != null) {
GuildScheduledEventPickerDate first = GuildScheduledEventPickerDateTime.INSTANCE.generateDefaultEndDateTime(eventModel.getStartDate(), eventModel.getStartTime()).getFirst();
Context requireContext = this.this$0.requireContext();
GuildScheduledEventModel eventModel = access$getCurrentViewState$p.getEventModel();
Long access$getExistingGuildScheduledEventId$p = WidgetGuildScheduledEventSettings.access$getExistingGuildScheduledEventId$p(this.this$0);
companion.launch(requireContext, eventModel, access$getExistingGuildScheduledEventId$p != null ? new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(access$getExistingGuildScheduledEventId$p.longValue(), WidgetPreviewGuildScheduledEvent.Companion.Action.EDIT_EVENT) : null, WidgetGuildScheduledEventSettings.access$getPreviewLauncher$p(this.this$0));
WidgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1 widgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1 = new WidgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1(this);
GuildScheduledEventPickerDate endDate = eventModel.getEndDate();
int year = endDate != null ? endDate.getYear() : first.getYear();
GuildScheduledEventPickerDate endDate2 = eventModel.getEndDate();
int month = endDate2 != null ? endDate2.getMonth() : first.getMonth();
GuildScheduledEventPickerDate endDate3 = eventModel.getEndDate();
DatePickerDialog datePickerDialog = new DatePickerDialog(requireContext, widgetGuildScheduledEventSettings$onViewBound$8$$special$$inlined$let$lambda$1, year, month, endDate3 != null ? endDate3.getDayOfMonth() : first.getDayOfMonth());
DatePicker datePicker = datePickerDialog.getDatePicker();
m.checkNotNullExpressionValue(datePicker, "datePicker");
datePicker.setMinDate(Math.max(eventModel.getStartDate().toMillis(), ClockFactory.get().currentTimeMillis()));
datePickerDialog.show();
}
}
}

View file

@ -0,0 +1,35 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Context;
import android.view.View;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
import com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
public final class WidgetGuildScheduledEventSettings$onViewBound$9 implements View.OnClickListener {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
public WidgetGuildScheduledEventSettings$onViewBound$9(WidgetGuildScheduledEventSettings widgetGuildScheduledEventSettings) {
this.this$0 = widgetGuildScheduledEventSettings;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
GuildScheduledEventSettingsViewModel.ViewState.Initialized access$getCurrentViewState$p = WidgetGuildScheduledEventSettings.access$getCurrentViewState$p(this.this$0);
if (access$getCurrentViewState$p == null) {
return;
}
if (WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).hasStartTimeChanged(access$getCurrentViewState$p) && !WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isDateInFuture(access$getCurrentViewState$p.getEventModel().getStartDate(), access$getCurrentViewState$p.getEventModel().getStartTime())) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.START_DATE_IN_PAST);
} else if (WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).hasEndTimeChanged(access$getCurrentViewState$p) && !WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isDateInFuture(access$getCurrentViewState$p.getEventModel().getEndDate(), access$getCurrentViewState$p.getEventModel().getEndTime())) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.END_DATE_IN_PAST);
} else if (!WidgetGuildScheduledEventSettings.access$getViewModel$p(this.this$0).isStartDateBeforeEndDate(access$getCurrentViewState$p)) {
WidgetGuildScheduledEventSettings.access$showDateErrorToast(this.this$0, GuildScheduledEventSettingsViewModel.DateError.END_DATE_BEFORE_START_DATE);
} else {
WidgetPreviewGuildScheduledEvent.Companion companion = WidgetPreviewGuildScheduledEvent.Companion;
Context requireContext = this.this$0.requireContext();
GuildScheduledEventModel eventModel = access$getCurrentViewState$p.getEventModel();
Long access$getExistingGuildScheduledEventId$p = WidgetGuildScheduledEventSettings.access$getExistingGuildScheduledEventId$p(this.this$0);
companion.launch(requireContext, eventModel, access$getExistingGuildScheduledEventId$p != null ? new WidgetPreviewGuildScheduledEvent.Companion.ExistingEventData(access$getExistingGuildScheduledEventId$p.longValue(), WidgetPreviewGuildScheduledEvent.Companion.Action.EDIT_EVENT) : null, WidgetGuildScheduledEventSettings.access$getPreviewLauncher$p(this.this$0));
}
}
}

View file

@ -151,30 +151,30 @@ public final class WidgetGuildScheduledEventSettings extends AppFragment {
private final void configureEndDateTime(GuildScheduledEventSettingsViewModel.ViewState.Initialized initialized) {
String str;
if (initialized.getEventModel().getEntityType() != GuildScheduledEventEntityType.EXTERNAL) {
TextView textView = getBinding().f1878c;
TextView textView = getBinding().d;
m.checkNotNullExpressionValue(textView, "binding.endDateHeader");
textView.setVisibility(8);
TextView textView2 = getBinding().f;
TextView textView2 = getBinding().g;
m.checkNotNullExpressionValue(textView2, "binding.endTimeHeader");
textView2.setVisibility(8);
TextInputLayout textInputLayout = getBinding().e;
TextInputLayout textInputLayout = getBinding().f;
m.checkNotNullExpressionValue(textInputLayout, "binding.endDateLayout");
textInputLayout.setVisibility(8);
TextInputLayout textInputLayout2 = getBinding().h;
TextInputLayout textInputLayout2 = getBinding().i;
m.checkNotNullExpressionValue(textInputLayout2, "binding.endTimeLayout");
textInputLayout2.setVisibility(8);
return;
}
TextView textView3 = getBinding().f1878c;
TextView textView3 = getBinding().d;
m.checkNotNullExpressionValue(textView3, "binding.endDateHeader");
textView3.setVisibility(0);
TextView textView4 = getBinding().f;
TextView textView4 = getBinding().g;
m.checkNotNullExpressionValue(textView4, "binding.endTimeHeader");
textView4.setVisibility(0);
TextInputLayout textInputLayout3 = getBinding().e;
TextInputLayout textInputLayout3 = getBinding().f;
m.checkNotNullExpressionValue(textInputLayout3, "binding.endDateLayout");
textInputLayout3.setVisibility(0);
TextInputLayout textInputLayout4 = getBinding().h;
TextInputLayout textInputLayout4 = getBinding().i;
m.checkNotNullExpressionValue(textInputLayout4, "binding.endTimeLayout");
textInputLayout4.setVisibility(0);
GuildScheduledEventPickerDate endDate = initialized.getEventModel().getEndDate();
@ -194,18 +194,18 @@ public final class WidgetGuildScheduledEventSettings extends AppFragment {
str2 = format;
}
}
getBinding().d.setText(str);
getBinding().g.setText(str2);
getBinding().e.setText(str);
getBinding().h.setText(str2);
}
private final void configureStartDateTime(GuildScheduledEventSettingsViewModel.ViewState.Initialized initialized) {
long millis = GuildScheduledEventPickerDateTime.INSTANCE.toMillis(initialized.getEventModel().getStartDate(), initialized.getEventModel().getStartTime());
GuildScheduledEvent existingEvent = initialized.getExistingEvent();
boolean z2 = (existingEvent != null ? GuildScheduledEventUtilitiesKt.getEventTiming(existingEvent) : null) == GuildScheduledEventTiming.LIVE;
TextInputEditText textInputEditText = getBinding().k;
TextInputEditText textInputEditText = getBinding().l;
ViewExtensions.setEnabledAndAlpha$default(textInputEditText, !z2, 0.0f, 2, null);
textInputEditText.setText(new SimpleDateFormat("MMM dd, yyyy", Locale.getDefault()).format(Long.valueOf(millis)));
TextInputEditText textInputEditText2 = getBinding().l;
TextInputEditText textInputEditText2 = getBinding().m;
ViewExtensions.setEnabledAndAlpha$default(textInputEditText2, !z2, 0.0f, 2, null);
textInputEditText2.setText(new SimpleDateFormat("h:mm a", Locale.getDefault()).format(Long.valueOf(millis)));
}
@ -223,13 +223,13 @@ public final class WidgetGuildScheduledEventSettings extends AppFragment {
GuildScheduledEventSettingsViewModel.ViewState.Initialized initialized = (GuildScheduledEventSettingsViewModel.ViewState.Initialized) viewState;
this.currentViewState = initialized;
GuildScheduledEventModel eventModel = initialized.getEventModel();
TextInputEditText textInputEditText = getBinding().n;
TextInputEditText textInputEditText = getBinding().o;
Editable text = textInputEditText.getText();
String str = null;
if (!m.areEqual(text != null ? text.toString() : null, eventModel.getName())) {
textInputEditText.setText(eventModel.getName());
}
TextInputEditText textInputEditText2 = getBinding().i;
TextInputEditText textInputEditText2 = getBinding().j;
Editable text2 = textInputEditText2.getText();
if (text2 != null) {
str = text2.toString();
@ -239,7 +239,7 @@ public final class WidgetGuildScheduledEventSettings extends AppFragment {
}
configureStartDateTime(initialized);
configureEndDateTime(initialized);
MaterialButton materialButton = getBinding().j;
MaterialButton materialButton = getBinding().k;
m.checkNotNullExpressionValue(materialButton, "binding.guildScheduledEventSettingsNextButton");
materialButton.setEnabled(getViewModel().isNextButtonEnabled());
}
@ -281,20 +281,21 @@ public final class WidgetGuildScheduledEventSettings extends AppFragment {
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
TextView textView = getBinding().m;
TextView textView = getBinding().n;
m.checkNotNullExpressionValue(textView, "binding.guildScheduledEventSettingsStepText");
b.n(textView, R.string.guild_event_step_label, new Object[]{2, 3}, null, 4);
getBinding().b.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$1(this));
TextInputEditText textInputEditText = getBinding().n;
getBinding().f1878c.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$2(this));
TextInputEditText textInputEditText = getBinding().o;
m.checkNotNullExpressionValue(textInputEditText, "binding.guildScheduledEventSettingsTopicInput");
textInputEditText.addTextChangedListener(new WidgetGuildScheduledEventSettings$onViewBound$$inlined$addTextChangedListener$1(this));
TextInputEditText textInputEditText2 = getBinding().i;
TextInputEditText textInputEditText2 = getBinding().j;
m.checkNotNullExpressionValue(textInputEditText2, "binding.guildScheduledEv…tSettingsDescriptionInput");
textInputEditText2.addTextChangedListener(new WidgetGuildScheduledEventSettings$onViewBound$$inlined$addTextChangedListener$2(this));
getBinding().l.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$4(this));
getBinding().k.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$5(this));
getBinding().g.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$6(this));
getBinding().d.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$7(this));
getBinding().j.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$8(this));
getBinding().m.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$5(this));
getBinding().l.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$6(this));
getBinding().h.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$7(this));
getBinding().e.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$8(this));
getBinding().k.setOnClickListener(new WidgetGuildScheduledEventSettings$onViewBound$9(this));
}
}

View file

@ -21,31 +21,35 @@ public final /* synthetic */ class WidgetPreviewGuildScheduledEvent$binding$2 ex
public final WidgetPreviewGuildScheduledEventBinding invoke(View view) {
m.checkNotNullParameter(view, "p1");
int i = R.id.close_button;
ImageView imageView = (ImageView) view.findViewById(R.id.close_button);
int i = R.id.back_button;
ImageView imageView = (ImageView) view.findViewById(R.id.back_button);
if (imageView != null) {
i = R.id.confirm_guild_scheduled_event_notify;
CheckedSetting checkedSetting = (CheckedSetting) view.findViewById(R.id.confirm_guild_scheduled_event_notify);
if (checkedSetting != null) {
i = R.id.confirm_guild_scheduled_event_preview;
GuildScheduledEventItemView guildScheduledEventItemView = (GuildScheduledEventItemView) view.findViewById(R.id.confirm_guild_scheduled_event_preview);
if (guildScheduledEventItemView != null) {
i = R.id.confirm_guild_scheduled_event_step_text;
TextView textView = (TextView) view.findViewById(R.id.confirm_guild_scheduled_event_step_text);
if (textView != null) {
i = R.id.close_button;
ImageView imageView2 = (ImageView) view.findViewById(R.id.close_button);
if (imageView2 != null) {
i = R.id.confirm_guild_scheduled_event_notify;
CheckedSetting checkedSetting = (CheckedSetting) view.findViewById(R.id.confirm_guild_scheduled_event_notify);
if (checkedSetting != null) {
i = R.id.confirm_guild_scheduled_event_preview;
GuildScheduledEventItemView guildScheduledEventItemView = (GuildScheduledEventItemView) view.findViewById(R.id.confirm_guild_scheduled_event_preview);
if (guildScheduledEventItemView != null) {
i = R.id.confirm_guild_scheduled_event_subtitle;
TextView textView2 = (TextView) view.findViewById(R.id.confirm_guild_scheduled_event_subtitle);
if (textView2 != null) {
TextView textView = (TextView) view.findViewById(R.id.confirm_guild_scheduled_event_subtitle);
if (textView != null) {
i = R.id.confirm_guild_scheduled_event_title;
TextView textView3 = (TextView) view.findViewById(R.id.confirm_guild_scheduled_event_title);
if (textView3 != null) {
TextView textView2 = (TextView) view.findViewById(R.id.confirm_guild_scheduled_event_title);
if (textView2 != null) {
i = R.id.confirm_guild_scheduled_event_toolbar;
ConstraintLayout constraintLayout = (ConstraintLayout) view.findViewById(R.id.confirm_guild_scheduled_event_toolbar);
if (constraintLayout != null) {
i = R.id.guild_scheduled_event_settings_next_button;
MaterialButton materialButton = (MaterialButton) view.findViewById(R.id.guild_scheduled_event_settings_next_button);
if (materialButton != null) {
return new WidgetPreviewGuildScheduledEventBinding((ConstraintLayout) view, imageView, checkedSetting, guildScheduledEventItemView, textView, textView2, textView3, constraintLayout, materialButton);
i = R.id.step_text;
TextView textView3 = (TextView) view.findViewById(R.id.step_text);
if (textView3 != null) {
return new WidgetPreviewGuildScheduledEventBinding((ConstraintLayout) view, imageView, imageView2, checkedSetting, guildScheduledEventItemView, textView, textView2, constraintLayout, materialButton, textView3);
}
}
}
}

View file

@ -14,7 +14,6 @@ public final class WidgetPreviewGuildScheduledEvent$onViewBound$1 implements Vie
public final void onClick(View view) {
FragmentActivity activity = this.this$0.getActivity();
if (activity != null) {
activity.setResult(2);
activity.finish();
}
}

View file

@ -1,54 +1,21 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Intent;
import android.view.View;
import androidx.fragment.app.FragmentActivity;
import com.discord.views.CheckedSetting;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
public final class WidgetPreviewGuildScheduledEvent$onViewBound$2 implements View.OnClickListener {
public final /* synthetic */ WidgetPreviewGuildScheduledEvent this$0;
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
/* renamed from: com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent$onViewBound$2$2 reason: invalid class name */
public static final class AnonymousClass2 extends o implements Function0<Unit> {
public final /* synthetic */ WidgetPreviewGuildScheduledEvent$onViewBound$2 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass2(WidgetPreviewGuildScheduledEvent$onViewBound$2 widgetPreviewGuildScheduledEvent$onViewBound$2) {
super(0);
this.this$0 = widgetPreviewGuildScheduledEvent$onViewBound$2;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
FragmentActivity activity = this.this$0.this$0.getActivity();
if (activity != null) {
Intent intent = new Intent();
intent.putExtra("com.discord.intent.extra.EXTRA_CHANNEL_ID", WidgetPreviewGuildScheduledEvent.access$getEventModel$p(this.this$0.this$0).getChannelId());
activity.setResult(-1, intent);
activity.finish();
}
}
}
public WidgetPreviewGuildScheduledEvent$onViewBound$2(WidgetPreviewGuildScheduledEvent widgetPreviewGuildScheduledEvent) {
this.this$0 = widgetPreviewGuildScheduledEvent;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
PreviewGuildScheduledEventViewModel access$getViewModel$p = WidgetPreviewGuildScheduledEvent.access$getViewModel$p(this.this$0);
CheckedSetting checkedSetting = WidgetPreviewGuildScheduledEvent.access$getBinding$p(this.this$0).f1927c;
m.checkNotNullExpressionValue(checkedSetting, "checkedSetting");
boolean z2 = true;
if (!(checkedSetting.getVisibility() == 0) || !checkedSetting.isChecked()) {
z2 = false;
FragmentActivity activity = this.this$0.getActivity();
if (activity != null) {
activity.setResult(2);
activity.finish();
}
access$getViewModel$p.onBottomButtonClicked(this.this$0.requireContext(), z2, new AnonymousClass2(this));
}
}

View file

@ -0,0 +1,54 @@
package com.discord.widgets.guildscheduledevent;
import android.content.Intent;
import android.view.View;
import androidx.fragment.app.FragmentActivity;
import com.discord.views.CheckedSetting;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
public final class WidgetPreviewGuildScheduledEvent$onViewBound$3 implements View.OnClickListener {
public final /* synthetic */ WidgetPreviewGuildScheduledEvent this$0;
/* compiled from: WidgetPreviewGuildScheduledEvent.kt */
/* renamed from: com.discord.widgets.guildscheduledevent.WidgetPreviewGuildScheduledEvent$onViewBound$3$2 reason: invalid class name */
public static final class AnonymousClass2 extends o implements Function0<Unit> {
public final /* synthetic */ WidgetPreviewGuildScheduledEvent$onViewBound$3 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass2(WidgetPreviewGuildScheduledEvent$onViewBound$3 widgetPreviewGuildScheduledEvent$onViewBound$3) {
super(0);
this.this$0 = widgetPreviewGuildScheduledEvent$onViewBound$3;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
FragmentActivity activity = this.this$0.this$0.getActivity();
if (activity != null) {
Intent intent = new Intent();
intent.putExtra("com.discord.intent.extra.EXTRA_CHANNEL_ID", WidgetPreviewGuildScheduledEvent.access$getEventModel$p(this.this$0.this$0).getChannelId());
activity.setResult(-1, intent);
activity.finish();
}
}
}
public WidgetPreviewGuildScheduledEvent$onViewBound$3(WidgetPreviewGuildScheduledEvent widgetPreviewGuildScheduledEvent) {
this.this$0 = widgetPreviewGuildScheduledEvent;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
PreviewGuildScheduledEventViewModel access$getViewModel$p = WidgetPreviewGuildScheduledEvent.access$getViewModel$p(this.this$0);
CheckedSetting checkedSetting = WidgetPreviewGuildScheduledEvent.access$getBinding$p(this.this$0).d;
m.checkNotNullExpressionValue(checkedSetting, "checkedSetting");
boolean z2 = true;
if (!(checkedSetting.getVisibility() == 0) || !checkedSetting.isChecked()) {
z2 = false;
}
access$getViewModel$p.onBottomButtonClicked(this.this$0.requireContext(), z2, new AnonymousClass2(this));
}
}

View file

@ -4,10 +4,11 @@ import a0.a.a.b;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
@ -19,6 +20,7 @@ import c.d.b.a.a;
import com.discord.R;
import com.discord.app.AppFragment;
import com.discord.databinding.WidgetPreviewGuildScheduledEventBinding;
import com.discord.utilities.dimen.DimenUtils;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
@ -29,6 +31,7 @@ import d0.g;
import d0.z.d.a0;
import d0.z.d.m;
import java.io.Serializable;
import java.util.Objects;
import kotlin.Lazy;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
@ -215,6 +218,26 @@ public final class WidgetPreviewGuildScheduledEvent extends AppFragment {
return widgetPreviewGuildScheduledEvent.getViewModel();
}
private final void configureTextForCreation() {
TextView textView = getBinding().f;
m.checkNotNullExpressionValue(textView, "binding.confirmGuildScheduledEventSubtitle");
textView.setVisibility(8);
TextView textView2 = getBinding().g;
ViewGroup.LayoutParams layoutParams = textView2.getLayoutParams();
Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams");
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams;
marginLayoutParams.setMargins(DimenUtils.dpToPixels(16), DimenUtils.dpToPixels(24), DimenUtils.dpToPixels(16), 0);
textView2.setLayoutParams(marginLayoutParams);
textView2.setText(c.a.k.b.j(textView2, R.string.guild_event_preview_title, new Object[0], null, 4));
}
private final void configureTextForStart(PreviewGuildScheduledEventViewModel.ViewState.Initialized initialized) {
TextView textView = getBinding().f;
textView.setVisibility(0);
textView.setText(getString(R.string.start_event_confirmation_no_hook));
getBinding().g.setText(initialized.getEventModel().getName());
}
private final void configureUi(PreviewGuildScheduledEventViewModel.ViewState viewState) {
int i;
if (viewState instanceof PreviewGuildScheduledEventViewModel.ViewState.Invalid) {
@ -224,8 +247,8 @@ public final class WidgetPreviewGuildScheduledEvent extends AppFragment {
}
} else if (viewState instanceof PreviewGuildScheduledEventViewModel.ViewState.Initialized) {
PreviewGuildScheduledEventViewModel.ViewState.Initialized initialized = (PreviewGuildScheduledEventViewModel.ViewState.Initialized) viewState;
getBinding().d.configureAsPreview(initialized.getEventModel(), initialized.getChannel());
MaterialButton materialButton = getBinding().i;
getBinding().e.configureAsPreview(initialized.getEventModel(), initialized.getChannel());
MaterialButton materialButton = getBinding().h;
materialButton.setEnabled(!initialized.getRequestProcessing());
materialButton.setBackgroundTintList(ContextCompat.getColorStateList(materialButton.getContext(), initialized.isStartingEvent() ? R.color.uikit_btn_bg_color_selector_green : R.color.uikit_btn_bg_color_selector_brand));
Context context = materialButton.getContext();
@ -245,16 +268,18 @@ public final class WidgetPreviewGuildScheduledEvent extends AppFragment {
}
int i2 = 0;
materialButton.setText(c.a.k.b.h(context, i, new Object[0], null, 4));
ConstraintLayout constraintLayout = getBinding().h;
m.checkNotNullExpressionValue(constraintLayout, "binding.confirmGuildScheduledEventToolbar");
constraintLayout.setVisibility(initialized.isStartingEvent() ^ true ? 0 : 8);
TextView textView = getBinding().f;
m.checkNotNullExpressionValue(textView, "binding.confirmGuildScheduledEventSubtitle");
textView.setVisibility(initialized.isStartingEvent() ? 0 : 8);
TextView textView2 = getBinding().g;
m.checkNotNullExpressionValue(textView2, "binding.confirmGuildScheduledEventTitle");
textView2.setText(initialized.isStartingEvent() ? initialized.getEventModel().getName() : c.a.k.b.k(this, R.string.guild_event_preview_title, new Object[0], null, 4));
CheckedSetting checkedSetting = getBinding().f1927c;
ImageView imageView = getBinding().b;
m.checkNotNullExpressionValue(imageView, "binding.backButton");
imageView.setVisibility(initialized.isStartingEvent() ^ true ? 0 : 8);
TextView textView = getBinding().i;
m.checkNotNullExpressionValue(textView, "binding.stepText");
textView.setVisibility(initialized.isStartingEvent() ^ true ? 0 : 8);
if (initialized.isStartingEvent()) {
configureTextForStart(initialized);
} else {
configureTextForCreation();
}
CheckedSetting checkedSetting = getBinding().d;
m.checkNotNullExpressionValue(checkedSetting, "binding.confirmGuildScheduledEventNotify");
if (!initialized.getCanNotifyEveryone()) {
i2 = 8;
@ -285,10 +310,11 @@ public final class WidgetPreviewGuildScheduledEvent extends AppFragment {
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
TextView textView = getBinding().e;
m.checkNotNullExpressionValue(textView, "binding.confirmGuildScheduledEventStepText");
TextView textView = getBinding().i;
m.checkNotNullExpressionValue(textView, "binding.stepText");
c.a.k.b.n(textView, R.string.guild_event_step_label, new Object[]{3, 3}, null, 4);
getBinding().b.setOnClickListener(new WidgetPreviewGuildScheduledEvent$onViewBound$1(this));
getBinding().i.setOnClickListener(new WidgetPreviewGuildScheduledEvent$onViewBound$2(this));
getBinding().f1927c.setOnClickListener(new WidgetPreviewGuildScheduledEvent$onViewBound$2(this));
getBinding().h.setOnClickListener(new WidgetPreviewGuildScheduledEvent$onViewBound$3(this));
}
}

Some files were not shown because too many files have changed in this diff Show more