星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 c.java 源代码,内容仅作参考
package f.h.b.e;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.RippleDrawable;
import android.graphics.drawable.StateListDrawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.RadioButton;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import com.iqiyi.passportsdk.m.d;
import com.iqiyi.passportsdk.m.e;
import com.iqiyi.passportsdk.v.f;
import com.iqiyi.psdk.base.j.k;
import com.iqiyi.psdk.baseui.R$string;
import org.json.JSONException;
import org.json.JSONObject;
import org.qiyi.android.video.ui.account.base.PBActivity;
import org.qiyi.android.video.ui.account.inspection.PWebViewActivity;
import org.qiyi.android.video.ui.account.lite.LiteAccountActivity;
public class c {
public static void A(Context context, int i2, Bundle bundle, boolean z, int i3) {
B(context, i2, bundle, z, i3, true);
}
public static void B(Context context, int i2, Bundle bundle, boolean z, int i3, boolean z2) {
if (context == null) {
context = com.iqiyi.psdk.base.a.b();
}
Intent intent = new Intent();
intent.setClassName(context, "org.qiyi.android.video.ui.account.PhoneAccountActivity");
intent.putExtra("actionid", i2);
intent.putExtra("loginType", i3);
intent.putExtra("toastLoginFailed", z);
intent.putExtra("key_bundle", bundle);
intent.putExtra("key_check_finger", z2);
intent.setFlags(268435456);
context.startActivity(intent);
}
public static void C(Context context, int i2, boolean z, int i3) {
A(context, i2, null, z, i3);
}
public static void D(Context context, String str) {
boolean z;
JSONObject jSONObject;
int i2 = -1;
int i3 = 17;
boolean z2 = false;
try {
jSONObject = new JSONObject(str);
i3 = jSONObject.optInt("actionid", 17);
i2 = jSONObject.optInt("loginType", -1);
z = jSONObject.optBoolean("toastLoginFailed", false);
} catch (JSONException unused) {
z = false;
}
try {
z2 = jSONObject.optBoolean("key_check_finger", true);
} catch (JSONException unused2) {
com.iqiyi.psdk.base.j.b.a("PBUIHelper--->", "toAccountActivity params error");
Intent intent = new Intent();
intent.setClassName(context, "org.qiyi.android.video.ui.account.PhoneAccountActivity");
intent.putExtra("actionid", i3);
intent.putExtra("loginType", i2);
intent.putExtra("toastLoginFailed", z);
intent.putExtra("key_check_finger", z2);
if (!(context instanceof Activity)) {
}
}
Intent intent2 = new Intent();
intent2.setClassName(context, "org.qiyi.android.video.ui.account.PhoneAccountActivity");
intent2.putExtra("actionid", i3);
intent2.putExtra("loginType", i2);
intent2.putExtra("toastLoginFailed", z);
intent2.putExtra("key_check_finger", z2);
if (!(context instanceof Activity)) {
((Activity) context).startActivityForResult(intent2, 666);
} else {
context.startActivity(intent2);
}
}
public static void E(PBActivity pBActivity, Fragment fragment, int i2, String str, int i3) {
boolean e0 = k.e0(pBActivity);
Intent intent = new Intent(pBActivity, (Class<?>) PWebViewActivity.class);
if (pBActivity instanceof LiteAccountActivity) {
intent.putExtra("H5TYPE", pBActivity.k0() ? 5 : 2);
String str2 = "https://security.iqiyi.com/static/v2/verifycenter/page/native-slide.html?nobar=1&token=" + str;
if (e0) {
str2 = k.b(str2, "mode=dark&showHelp=false");
}
intent.putExtra("H5URL", str2);
} else {
intent.putExtra("H5TYPE", 3);
String str3 = "https://security.iqiyi.com/static/v2/verifycenter/page/native-slide.html?token=" + str;
if (e0) {
str3 = k.b(str3, "mode=dark&showHelp=false");
}
intent.putExtra("H5URL", str3);
}
intent.putExtra("H5TITLE", pBActivity.getString(R$string.psdk_slide_to_secure_detect));
intent.putExtra("inspect_request_type", i3);
if (fragment != null) {
fragment.startActivityForResult(intent, i2);
} else {
pBActivity.startActivityForResult(intent, i2);
}
}
@Deprecated
public static void F(Activity activity, Fragment fragment, int i2) {
String str;
String str2;
int i3;
f.d g2 = com.iqiyi.psdk.base.a.D().g();
String str3 = "";
if (com.iqiyi.psdk.base.a.m()) {
str3 = g2.d();
str = g2.m;
} else {
str = "";
}
String f2 = com.iqiyi.psdk.base.i.a.d().f();
String a = com.iqiyi.psdk.base.j.f.a();
String T = k.T();
String M = com.iqiyi.psdk.base.i.b.F().M();
if (i2 > 1500 && i2 < 1900) {
str2 = "https://www.iqiyi.com/login/mobile/captcha?nobar=1" + ("&uid=" + str3 + "&username=" + str + "&api=" + f2 + "&dfp=" + a + "&device_id=" + T + "&qc5=" + M);
i3 = 2;
} else {
str2 = "https://www.iqiyi.com/login/mobile/captcha" + ("?uid=" + str3 + "&username=" + str + "&api=" + f2 + "&dfp=" + a + "&device_id=" + T + "&qc5=" + M);
i3 = 1;
}
Intent intent = new Intent(activity, (Class<?>) PWebViewActivity.class);
intent.putExtra("H5TYPE", i3);
intent.putExtra("H5URL", str2);
intent.putExtra("H5TITLE", activity.getString(R$string.psdk_slide_to_verify));
if (fragment != null) {
fragment.startActivityForResult(intent, i2);
} else {
activity.startActivityForResult(intent, i2);
}
}
public static void G(Context context, Bundle bundle) {
if (context == null) {
context = com.iqiyi.psdk.base.a.b();
}
Intent intent = new Intent();
intent.setClassName(context, "com.iqiyi.pui.verify.PhoneUpSmsDirectActivity");
intent.putExtra("key_bundle", bundle);
context.startActivity(intent);
}
public static void a(Activity activity, TextView textView) {
String string = activity.getString(R$string.psdk_default_protocol);
String l2 = com.iqiyi.psdk.base.a.C().l();
if (k.h0(l2)) {
l2 = e.a().b().f0;
}
k.c(textView, string, k.B0(l2));
}
public static String b(String str, String str2) {
return c(str, str2, "****");
}
public static String c(String str, String str2, String str3) {
return k.E(str, str2, str3);
}
public static String d(String str) {
return k.F(str, "*");
}
public static int e(Context context) {
return context.getResources().getDisplayMetrics().heightPixels;
}
public static void f(Activity activity) {
k.b0(activity);
}
public static void g(View view) {
if (view == null) {
return;
}
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setCornerRadius(k.i(8.0f));
gradientDrawable.setColor(k.B0(e.a().b().q0));
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(gradientDrawable);
} else {
view.setBackgroundDrawable(gradientDrawable);
}
}
public static void h(View view) {
if (view == null) {
return;
}
GradientDrawable gradientDrawable = new GradientDrawable();
float i2 = k.i(8.0f);
gradientDrawable.setCornerRadii(new float[]{i2, i2, i2, i2, 0.0f, 0.0f, 0.0f, 0.0f});
gradientDrawable.setColor(k.B0(k.e0(com.iqiyi.psdk.base.a.b()) ? "#FF1E2126" : "#FFFFFFFF"));
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(gradientDrawable);
} else {
view.setBackgroundDrawable(gradientDrawable);
}
}
public static void i(View view) {
if (view == null) {
return;
}
d b2 = e.a().b();
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setCornerRadius(k.i(8.0f));
gradientDrawable.setColor(k.C0(b2.f6796b, -1));
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(gradientDrawable);
} else {
view.setBackgroundDrawable(gradientDrawable);
}
}
public static void j(View view) {
if (view == null) {
return;
}
d b2 = e.a().b();
GradientDrawable gradientDrawable = new GradientDrawable();
float i2 = k.i(8.0f);
gradientDrawable.setCornerRadii(new float[]{i2, i2, i2, i2, 0.0f, 0.0f, 0.0f, 0.0f});
gradientDrawable.setColor(k.C0(b2.f6796b, -1));
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(gradientDrawable);
} else {
view.setBackgroundDrawable(gradientDrawable);
}
}
private static void k(TextView textView) {
if (textView == null) {
return;
}
d b2 = e.a().b();
textView.setTextColor(new ColorStateList(new int[][]{new int[]{R.attr.state_checked}, new int[0]}, new int[]{k.B0(b2.f6803i), k.B0(b2.f6799e)}));
}
public static void l(RadioButton radioButton, boolean z) {
if (radioButton == null) {
return;
}
StateListDrawable stateListDrawable = new StateListDrawable();
d b2 = e.a().b();
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(k.B0(b2.f6796b));
float i2 = k.i(8.0f);
float[] fArr = {i2, i2, i2, i2, 0.0f, 0.0f, 0.0f, 0.0f};
if (z) {
gradientDrawable.setCornerRadii(fArr);
}
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(k.B0(b2.e0));
if (z) {
gradientDrawable2.setCornerRadii(fArr);
}
stateListDrawable.addState(new int[]{R.attr.state_pressed}, gradientDrawable2);
stateListDrawable.addState(new int[0], gradientDrawable);
radioButton.setBackground(stateListDrawable);
k(radioButton);
}
public static void m(View view) {
if (view == null) {
return;
}
view.setBackgroundColor(k.C0(e.a().b().a, -1));
}
public static void n(View view) {
if (view == null) {
return;
}
view.setBackgroundColor(k.C0(e.a().b().f6796b, -1));
}
public static void o(View view) {
if (view == null) {
return;
}
view.setBackgroundColor(k.C0(e.a().b().f6797c, -1));
}
public static void p(View view, int i2) {
switch (i2) {
case 1:
case 7:
w(view);
return;
case 2:
x(view);
return;
case 3:
u(view);
return;
case 4:
s(view);
return;
case 5:
j(view);
return;
case 6:
i(view);
return;
case 8:
v(view, 4, 1);
return;
case 9:
v(view, 4, 2);
return;
case 10:
t(view, 4);
return;
case 11:
r(view, 4);
return;
case 12:
g(view);
return;
case 13:
h(view);
return;
default:
return;
}
}
public static void q(View view, Activity activity) {
k.M0(view, activity);
}
private static void r(View view, int i2) {
if (view == null) {
return;
}
int i3 = k.i(i2);
GradientDrawable gradientDrawable = new GradientDrawable();
String str = e.a().b().q0;
float f2 = i3;
gradientDrawable.setCornerRadii(new float[]{f2, f2, f2, f2, f2, f2, f2, f2});
gradientDrawable.setColor(k.C0(str, -854534));
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(k.B0("#1A000000"));
gradientDrawable2.setCornerRadius(f2);
LayerDrawable layerDrawable = new LayerDrawable(new Drawable[]{gradientDrawable, gradientDrawable2});
StateListDrawable stateListDrawable = new StateListDrawable();
stateListDrawable.addState(new int[]{R.attr.state_pressed}, layerDrawable);
stateListDrawable.addState(new int[]{R.attr.state_enabled}, gradientDrawable);
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(stateListDrawable);
} else {
view.setBackgroundDrawable(stateListDrawable);
}
}
private static void s(View view) {
m(view);
}
public static void t(View view, int i2) {
if (view == null) {
return;
}
int i3 = k.i(1.0f);
int i4 = k.i(i2);
d b2 = e.a().b();
GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.BL_TR, new int[]{k.B0(b2.m0), k.B0(b2.n0), k.B0(b2.n0)});
float f2 = i4;
gradientDrawable.setCornerRadius(f2);
gradientDrawable.setGradientType(0);
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setCornerRadius(f2);
gradientDrawable2.setColor(k.B0(b2.f6796b));
LayerDrawable layerDrawable = new LayerDrawable(new Drawable[]{gradientDrawable, gradientDrawable2});
layerDrawable.setLayerInset(1, i3, i3, i3, i3);
GradientDrawable gradientDrawable3 = new GradientDrawable();
gradientDrawable3.setColor(k.B0(b2.F));
gradientDrawable3.setCornerRadius(f2);
LayerDrawable layerDrawable2 = new LayerDrawable(new Drawable[]{layerDrawable, gradientDrawable3});
StateListDrawable stateListDrawable = new StateListDrawable();
stateListDrawable.addState(new int[]{R.attr.state_pressed}, layerDrawable2);
stateListDrawable.addState(new int[]{R.attr.state_enabled}, layerDrawable);
stateListDrawable.addState(new int[0], layerDrawable);
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(stateListDrawable);
} else {
view.setBackgroundDrawable(stateListDrawable);
}
}
private static void u(View view) {
n(view);
}
public static void v(View view, int i2, int i3) {
String str;
if (view == null) {
return;
}
d b2 = e.a().b();
if (i3 == 2) {
str = b2.l0;
} else {
str = b2.k0;
}
GradientDrawable gradientDrawable = new GradientDrawable();
float i4 = k.i(i2);
gradientDrawable.setCornerRadii(new float[]{i4, i4, i4, i4, i4, i4, i4, i4});
gradientDrawable.setColor(k.C0(str, -1));
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(k.B0(b2.z));
gradientDrawable2.setCornerRadius(i4);
LayerDrawable layerDrawable = new LayerDrawable(new Drawable[]{gradientDrawable, gradientDrawable2});
StateListDrawable stateListDrawable = new StateListDrawable();
stateListDrawable.addState(new int[]{R.attr.state_pressed}, layerDrawable);
stateListDrawable.addState(new int[]{R.attr.state_enabled}, gradientDrawable);
if (Build.VERSION.SDK_INT >= 16) {
view.setBackground(stateListDrawable);
} else {
view.setBackgroundDrawable(stateListDrawable);
}
}
public static void w(View view) {
if (view == null) {
return;
}
StateListDrawable stateListDrawable = new StateListDrawable();
d b2 = e.a().b();
ColorDrawable colorDrawable = new ColorDrawable(k.B0(b2.a));
if (Build.VERSION.SDK_INT >= 21) {
view.setBackground(new RippleDrawable(ColorStateList.valueOf(k.B0(b2.j0)), colorDrawable, null));
return;
}
ColorDrawable colorDrawable2 = new ColorDrawable(k.B0(b2.i0));
stateListDrawable.addState(new int[]{R.attr.state_pressed}, colorDrawable2);
stateListDrawable.addState(new int[]{R.attr.state_focused}, colorDrawable2);
stateListDrawable.addState(new int[0], colorDrawable);
view.setBackground(stateListDrawable);
}
private static void x(View view) {
if (view == null) {
return;
}
view.setBackgroundColor(k.B0(e.a().b().f6797c));
}
public static void y(Context context, int i2) {
C(context, i2, false, -1);
}
public static void z(Context context, int i2, Bundle bundle) {
A(context, i2, bundle, false, -1);
}
}