what-the-bank/sources/o/Bsy.java

68 lines
2.4 KiB
Java

package o;
import android.os.Bundle;
import androidx.core.graphics.drawable.IconCompat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Set;
import o.rvM;
import org.bouncycastle.i18n.MessageBundle;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public class Bsy {
private static final Object a = new Object();
private static final Object d = new Object();
/* JADX INFO: Access modifiers changed from: package-private */
public static Bundle nb_(rvM.RVV rvv) {
Bundle bundle;
Bundle bundle2 = new Bundle();
IconCompat d2 = rvv.d();
bundle2.putInt("icon", d2 != null ? d2.e() : 0);
bundle2.putCharSequence(MessageBundle.TITLE_ENTRY, rvv.h());
bundle2.putParcelable("actionIntent", rvv.mw_());
if (rvv.mx_() != null) {
bundle = new Bundle(rvv.mx_());
} else {
bundle = new Bundle();
}
bundle.putBoolean("android.support.allowGeneratedReplies", rvv.b());
bundle2.putBundle("extras", bundle);
bundle2.putParcelableArray("remoteInputs", nd_(rvv.e()));
bundle2.putBoolean("showsUserInterface", rvv.i());
bundle2.putInt("semanticAction", rvv.j());
return bundle2;
}
private static Bundle nc_(C17360wCa c17360wCa) {
Bundle bundle = new Bundle();
bundle.putString("resultKey", c17360wCa.i);
bundle.putCharSequence("label", c17360wCa.j);
bundle.putCharSequenceArray("choices", c17360wCa.d);
bundle.putBoolean("allowFreeFormInput", c17360wCa.c);
bundle.putBundle("extras", c17360wCa.a);
Set<String> set = c17360wCa.e;
if (set != null && !set.isEmpty()) {
ArrayList<String> arrayList = new ArrayList<>(set.size());
Iterator<String> it = set.iterator();
while (it.hasNext()) {
arrayList.add(it.next());
}
bundle.putStringArrayList("allowedDataTypes", arrayList);
}
return bundle;
}
private static Bundle[] nd_(C17360wCa[] c17360wCaArr) {
if (c17360wCaArr == null) {
return null;
}
Bundle[] bundleArr = new Bundle[c17360wCaArr.length];
for (int i = 0; i < c17360wCaArr.length; i++) {
bundleArr[i] = nc_(c17360wCaArr[i]);
}
return bundleArr;
}
}