Merge "GmsCore is casting to a concrete subclass, sigh."

This commit is contained in:
Jeff Sharkey
2016-01-07 16:49:02 +00:00
committed by Android (Google) Code Review

View File

@@ -144,7 +144,12 @@ public class ContentProviderClient implements AutoCloseable {
}
final Cursor cursor = mContentProvider.query(mPackageName, url, projection, selection,
selectionArgs, sortOrder, remoteCancellationSignal);
return new CursorWrapperInner(cursor);
if ("com.google.android.gms".equals(mPackageName)) {
// They're casting to a concrete subclass, sigh
return cursor;
} else {
return new CursorWrapperInner(cursor);
}
} catch (DeadObjectException e) {
if (!mStable) {
mContentResolver.unstableProviderDied(mContentProvider);