We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用该函数时报错,修改如下:
@OverRide protected boolean beforeInvoke(Object receiver, Method method, Object[] args) throws Throwable {
if (!mLocalProvider && mStubProvider != null) { final int index = 1; if (index >= 0) { ArrayList<ContentProviderOperation> ops=(ArrayList<ContentProviderOperation>)args[index]; for (int i=0;i<ops.size();i++) { ContentProviderOperation co=ops.get(i); Uri uri = (Uri) FieldUtils.readField(co,"mUri"); String authority = uri.getAuthority(); if (!TextUtils.equals(authority, mStubProvider.authority)) { Uri.Builder b = new Builder(); b.scheme(uri.getScheme()); b.authority(mStubProvider.authority); b.path(uri.getPath()); b.query(uri.getQuery()); b.appendQueryParameter(Env.EXTRA_TARGET_AUTHORITY, authority); b.fragment(uri.getFragment()); FieldUtils.writeField(co, "mUri", b.build()); } } args[index] = ops; } } return super.beforeInvoke(receiver, method, args); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
调用该函数时报错,修改如下:
@OverRide
protected boolean beforeInvoke(Object receiver, Method method, Object[] args) throws Throwable {
The text was updated successfully, but these errors were encountered: