2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.settings.account;
|
|
|
|
|
|
|
|
import android.widget.LinearLayout;
|
|
|
|
import android.widget.TextView;
|
|
|
|
import androidx.core.widget.NestedScrollView;
|
|
|
|
import c.q.a.k.a;
|
|
|
|
import com.discord.utilities.view.extensions.ViewExtensions;
|
|
|
|
import d0.l;
|
|
|
|
import d0.w.g.c;
|
|
|
|
import d0.w.h.a.e;
|
|
|
|
import d0.w.h.a.k;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
|
|
/* compiled from: WidgetSettingsAccount.kt */
|
2021-07-03 23:36:06 +00:00
|
|
|
@e(c = "com.discord.widgets.settings.account.WidgetSettingsAccount$onViewBound$1", f = "WidgetSettingsAccount.kt", l = {90}, m = "invokeSuspend")
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class WidgetSettingsAccount$onViewBound$1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
|
|
public int label;
|
|
|
|
public final /* synthetic */ WidgetSettingsAccount this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetSettingsAccount$onViewBound$1(WidgetSettingsAccount widgetSettingsAccount, Continuation continuation) {
|
|
|
|
super(2, continuation);
|
|
|
|
this.this$0 = widgetSettingsAccount;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // d0.w.h.a.a
|
|
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
|
|
return new WidgetSettingsAccount$onViewBound$1(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(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
|
|
return ((WidgetSettingsAccount$onViewBound$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // d0.w.h.a.a
|
|
|
|
public final Object invokeSuspend(Object obj) {
|
|
|
|
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
|
|
|
|
int i = this.label;
|
|
|
|
if (i == 0) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
this.label = 1;
|
2021-06-27 20:53:42 +00:00
|
|
|
if (a.n(500, this) == coroutine_suspended) {
|
2021-06-27 20:44:35 +00:00
|
|
|
return coroutine_suspended;
|
|
|
|
}
|
|
|
|
} else if (i == 1) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
} else {
|
|
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
|
|
}
|
2021-07-03 23:36:06 +00:00
|
|
|
NestedScrollView nestedScrollView = WidgetSettingsAccount.access$getBinding$p(this.this$0).D;
|
2021-07-21 07:37:17 +00:00
|
|
|
LinearLayout linearLayout = WidgetSettingsAccount.access$getBinding$p(this.this$0).f1925z;
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullExpressionValue(linearLayout, "binding.settingsAccountPrivateDataWrap");
|
|
|
|
nestedScrollView.smoothScrollTo(0, linearLayout.getBottom());
|
2021-07-21 07:37:17 +00:00
|
|
|
TextView textView = WidgetSettingsAccount.access$getBinding$p(this.this$0).f1924y;
|
2021-06-27 20:44:35 +00:00
|
|
|
m.checkNotNullExpressionValue(textView, "binding.settingsAccountPrivateDataDisable");
|
|
|
|
ViewExtensions.hintWithRipple$default(textView, 0, 1, null);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
}
|