42 lines
1.4 KiB
Java
42 lines
1.4 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.models.phone.PhoneCountryCode;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.Iterator;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: StorePhone.kt */
|
|
public final class StorePhone$updateDefaultCountryCode$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ String $alpha2;
|
|
public final /* synthetic */ StorePhone this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StorePhone$updateDefaultCountryCode$1(StorePhone storePhone, String str) {
|
|
super(0);
|
|
this.this$0 = storePhone;
|
|
this.$alpha2 = str;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
Object obj;
|
|
Iterator<T> it = this.this$0.getCountryCodes().iterator();
|
|
while (true) {
|
|
if (!it.hasNext()) {
|
|
obj = null;
|
|
break;
|
|
}
|
|
obj = it.next();
|
|
if (m.areEqual(((PhoneCountryCode) obj).getAlpha2(), this.$alpha2)) {
|
|
break;
|
|
}
|
|
}
|
|
PhoneCountryCode phoneCountryCode = (PhoneCountryCode) obj;
|
|
if (phoneCountryCode != null) {
|
|
StorePhone.access$setDefaultCountryCode$p(this.this$0, phoneCountryCode);
|
|
this.this$0.markChanged();
|
|
}
|
|
}
|
|
}
|