- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
package com.fyber.inneractive.sdk.config.remote;
|
|
|
|
import android.text.TextUtils;
|
|
import com.fyber.inneractive.sdk.config.enums.Track;
|
|
import java.util.LinkedHashSet;
|
|
import java.util.Set;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class e {
|
|
public Set<Track> a = null;
|
|
|
|
public static e a(JSONObject jSONObject) {
|
|
Track fromValue;
|
|
e eVar = null;
|
|
if (jSONObject == null) {
|
|
return null;
|
|
}
|
|
JSONArray optJSONArray = jSONObject.optJSONArray("track");
|
|
if (optJSONArray != null) {
|
|
eVar = new e();
|
|
LinkedHashSet linkedHashSet = new LinkedHashSet();
|
|
for (int i = 0; i < optJSONArray.length(); i++) {
|
|
String optString = optJSONArray.optString(i);
|
|
if (!TextUtils.isEmpty(optString) && (fromValue = Track.fromValue(optString)) != null) {
|
|
linkedHashSet.add(fromValue);
|
|
}
|
|
}
|
|
eVar.a = linkedHashSet;
|
|
}
|
|
return eVar;
|
|
}
|
|
}
|