Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -973,13 +973,10 @@ public String getJsonObject(IWebview pWebViewImpl) {
}

private boolean hasWXEntryActivity(Context context) {
String clsName = context.getPackageName() + ".wxapi.WXEntryActivity";
try {
Class.forName(clsName);
return true;
} catch (ClassNotFoundException e) {
return false;
}
String pkgName = context.getPackageName();
Intent intent = new Intent();
intent.setClassName(pkgName, pkgName + ".wxapi.WXEntryActivity");
return context.getPackageManager().resolveActivity(intent, 0) != null;
}

/**
Expand Down