Files
rr3-apk/decompiled/sources/com/mbridge/msdk/dycreator/baseview/GradientOrientationUtils.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

42 lines
1.9 KiB
Java

package com.mbridge.msdk.dycreator.baseview;
import android.graphics.drawable.GradientDrawable;
import android.text.TextUtils;
/* loaded from: classes4.dex */
public class GradientOrientationUtils {
public static GradientDrawable.Orientation getOrientation(String str) {
try {
GradientDrawable.Orientation orientation = GradientDrawable.Orientation.TOP_BOTTOM;
if (TextUtils.equals(str, orientation.name())) {
return orientation;
}
GradientDrawable.Orientation orientation2 = GradientDrawable.Orientation.BL_TR;
if (!TextUtils.equals(str, orientation2.name())) {
orientation2 = GradientDrawable.Orientation.BOTTOM_TOP;
if (!TextUtils.equals(str, orientation2.name())) {
orientation2 = GradientDrawable.Orientation.BR_TL;
if (!TextUtils.equals(str, orientation2.name())) {
GradientDrawable.Orientation orientation3 = GradientDrawable.Orientation.LEFT_RIGHT;
if (!TextUtils.equals(str, orientation3.name())) {
orientation3 = GradientDrawable.Orientation.RIGHT_LEFT;
if (!TextUtils.equals(str, orientation3.name())) {
orientation3 = GradientDrawable.Orientation.TL_BR;
if (!TextUtils.equals(str, orientation3.name())) {
if (!TextUtils.equals(str, orientation2.name())) {
return orientation;
}
}
}
}
return orientation3;
}
}
}
return orientation2;
} catch (Exception unused) {
return GradientDrawable.Orientation.TOP_BOTTOM;
}
}
}