From 8313fc7e94e46e5cc09f457a15a771a325b9f74f Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Sun, 26 Sep 2010 18:34:53 -0700 Subject: Allow all apps to call ContentResolver.getType(). I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2 --- test-runner/src/android/test/mock/MockContentResolver.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-runner') diff --git a/test-runner/src/android/test/mock/MockContentResolver.java b/test-runner/src/android/test/mock/MockContentResolver.java index ab511f8..26eb8e4 100644 --- a/test-runner/src/android/test/mock/MockContentResolver.java +++ b/test-runner/src/android/test/mock/MockContentResolver.java @@ -75,6 +75,12 @@ public class MockContentResolver extends ContentResolver { /** @hide */ @Override protected IContentProvider acquireProvider(Context context, String name) { + return acquireExistingProvider(context, name); + } + + /** @hide */ + @Override + protected IContentProvider acquireExistingProvider(Context context, String name) { /* * Gets the content provider from the local map -- cgit v1.1