酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319
以下内容为反编译后的 h.java 源代码,内容仅作参考
package com.kugou.android.mymusic.c;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.kugou.android.app.NavigationUtils;
import com.kugou.android.app.player.comment.MeetByAccidentWebFragment;
import com.kugou.android.common.delegate.DelegateFragment;
import com.kugou.android.common.utils.KGSystemUtil;
import com.kugou.android.mymusic.meetByAccident.MeetByAccidentFragment;
import com.kugou.android.useraccount.ModifyUserInfoActivity;
import com.kugou.common.base.AbsFrameworkFragment;
import com.kugou.common.utils.as;
import org.json.JSONException;
import org.json.JSONObject;
public class h {
public static void a(AbsFrameworkFragment absFrameworkFragment) {
Intent intent = new Intent(absFrameworkFragment.getActivity(), (Class<?>) ModifyUserInfoActivity.class);
intent.putExtra("show_change_avatar_dialog", true);
absFrameworkFragment.startActivity(intent);
}
public static void b(AbsFrameworkFragment absFrameworkFragment) {
NavigationUtils.a(absFrameworkFragment, com.kugou.common.environment.a.Y());
}
public static void a(DelegateFragment delegateFragment) {
delegateFragment.startActivity(new Intent(delegateFragment.getActivity(), (Class<?>) ModifyUserInfoActivity.class));
}
public static void a(AbsFrameworkFragment absFrameworkFragment, String str) {
if (TextUtils.isEmpty(str)) {
return;
}
Bundle bundle = new Bundle();
bundle.putString("app_ver", "1");
Bundle bundle2 = new Bundle();
bundle2.putString("web_url", com.kugou.android.share.countersign.d.h.a(str, bundle));
bundle2.putBoolean("felxo_fragment_has_menu", false);
bundle2.putBoolean("felxo_fragment_has_playing_bar", false);
bundle2.putBoolean("felxo_fragment_has_title_menu", false);
bundle2.putBoolean(AbsFrameworkFragment.FLAG_NEW_INSTANCE, true);
bundle2.putBoolean("is_user_info_page", true);
absFrameworkFragment.startFragment(MeetByAccidentWebFragment.class, bundle2);
}
public static void a(MeetByAccidentWebFragment meetByAccidentWebFragment, int i) {
if (as.f54365e) {
as.b("log.test", "returnMeetSettingResult");
}
try {
meetByAccidentWebFragment.loadUrl("javascript:KgWebMobileCall.returnMeet(" + new JSONObject().put("status", 1).put("key", i).toString() + ")");
} catch (JSONException unused) {
}
}
public static void a(MeetByAccidentWebFragment meetByAccidentWebFragment, String str) {
meetByAccidentWebFragment.loadUrl("javascript:KgWebMobileCall.returnAuthMeet(" + str + ")");
}
public static void a(DelegateFragment delegateFragment, int i) {
a(delegateFragment, "", "", i);
}
public static void a(DelegateFragment delegateFragment, String str, int i) {
a(delegateFragment, str, "", i);
}
public static void a(DelegateFragment delegateFragment, String str, String str2, int i) {
if (com.kugou.common.environment.a.u()) {
if (TextUtils.isEmpty(str)) {
str = a();
}
Bundle bundle = new Bundle();
bundle.putString("web_url", str);
bundle.putBoolean("felxo_fragment_has_menu", false);
bundle.putBoolean("felxo_fragment_has_playing_bar", false);
bundle.putBoolean("felxo_fragment_has_title_menu", false);
bundle.putBoolean("extra_kg_meet_by_accident", true);
bundle.putInt("extra_from", i);
delegateFragment.startFragment(MeetByAccidentFragment.class, bundle);
return;
}
if (!TextUtils.isEmpty(str2)) {
KGSystemUtil.startLoginFragment((Context) delegateFragment.aN_(), false, str2);
} else {
KGSystemUtil.startLoginFragment((Context) delegateFragment.aN_(), false, "login_from_meet_by_accident_by_home_page");
}
}
public static String a() {
return a(true);
}
public static String a(boolean z) {
String b2 = com.kugou.common.config.c.a().b(com.kugou.android.app.a.a.AE);
if (TextUtils.isEmpty(b2)) {
b2 = "http://m.kugou.com/webapp/meet/index.html";
}
Bundle bundle = new Bundle();
bundle.putString("app_ver", "1");
if (z) {
bundle.putBoolean("pType", true);
}
String a2 = com.kugou.android.share.countersign.d.h.a(b2, bundle);
if (as.f54365e) {
as.f("MeetByAccident", "getMeetByAccidentUrl url: " + a2);
}
return a2;
}
}