package com.fyber.inneractive.sdk.config.enums; import android.text.TextUtils; import java.util.HashMap; import java.util.Map; /* loaded from: classes2.dex */ public enum Orientation { LANDSCAPE("landscape", false), PORTRAIT("portrait", false), USER("user", true), NONE("none", true); private static final Map CONSTANTS = new HashMap(); public boolean allowOrientationChange; private final String value; static { for (Orientation orientation : values()) { CONSTANTS.put(orientation.value, orientation); } } Orientation(String str, boolean z) { this.value = str; this.allowOrientationChange = z; } public static Orientation fromValue(String str) { if (TextUtils.isEmpty(str)) { return null; } return CONSTANTS.get(str); } @Override // java.lang.Enum public String toString() { return this.value; } public String value() { return this.value; } }