Add missing filename remap to RenamingDelegatingContext

This makes ProviderTestCase2 work better by enabling code under test
to make calls to context.getDatabasePath().  Without this fix the call
throws an exception.

It would be reasonable (and useful) to backport this to donut, but I'm
not even building donut these days.
This commit is contained in:
Andrew Stadler
2009-06-24 22:32:40 -07:00
parent afed82bca9
commit b09296dbd8

View File

@@ -136,6 +136,11 @@ public class RenamingDelegatingContext extends ContextWrapper {
return false;
}
}
@Override
public File getDatabasePath(String name) {
return mFileContext.getDatabasePath(renamedFileName(name));
}
@Override
public String[] databaseList() {