2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.notice;
|
|
|
|
|
|
|
|
import android.os.Build;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.g0.t;
|
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.models.domain.ModelOAuth2Token;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.List;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetNoticeNuxSamsungLink.kt */
|
|
|
|
public final class WidgetNoticeNuxSamsungLink$onViewBound$1 extends o implements Function1<List<? extends ModelOAuth2Token>, Unit> {
|
|
|
|
public final /* synthetic */ WidgetNoticeNuxSamsungLink this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetNoticeNuxSamsungLink$onViewBound$1(WidgetNoticeNuxSamsungLink widgetNoticeNuxSamsungLink) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetNoticeNuxSamsungLink;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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(List<? extends ModelOAuth2Token> list) {
|
|
|
|
invoke((List<ModelOAuth2Token>) list);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARNING: Removed duplicated region for block: B:22:0x0051 A[EDGE_INSN: B:22:0x0051->B:20:0x0051 ?: BREAK , SYNTHETIC] */
|
|
|
|
public final void invoke(List<ModelOAuth2Token> list) {
|
|
|
|
boolean z2;
|
|
|
|
m.checkNotNullExpressionValue(list, "authedApps");
|
|
|
|
boolean z3 = true;
|
|
|
|
if (!(list instanceof Collection) || !list.isEmpty()) {
|
|
|
|
Iterator<T> it = list.iterator();
|
|
|
|
while (true) {
|
|
|
|
if (!it.hasNext()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (m.areEqual(String.valueOf(((ModelOAuth2Token) it.next()).getApplication().f()), "591317049637339146")) {
|
|
|
|
if (Build.VERSION.SDK_INT >= 28 && t.equals(Build.MANUFACTURER, "samsung", true)) {
|
|
|
|
z2 = true;
|
|
|
|
continue;
|
|
|
|
if (z2) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
z2 = false;
|
|
|
|
continue;
|
|
|
|
if (z2) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
z3 = false;
|
|
|
|
if (z3) {
|
|
|
|
this.this$0.dismiss();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|