@@ -0,0 +1,1552 @@
+package org.ccci.gto.android.common.stetho.db;%0A%0Aimport android.database.sqlite.SQLiteDatabase;%0Aimport android.database.sqlite.SQLiteException;%0A%0Aimport com.facebook.stetho.inspector.database.DatabaseConnectionProvider;%0Aimport com.facebook.stetho.inspector.database.DatabaseFilesProvider;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Apublic final class AggregatingStethoDatabaseProvider extends BaseStethoDatabaseProvider %7B%0A    private final List%3C? extends DatabaseFilesProvider%3E mFilesProviders;%0A    private final List%3C? extends DatabaseConnectionProvider%3E mConnectionProviders;%0A%0A    public %3CT extends DatabaseFilesProvider & DatabaseConnectionProvider%3E AggregatingStethoDatabaseProvider(%0A            final T... providers) %7B%0A        final List%3CT%3E list = Arrays.asList(providers);%0A        mFilesProviders = list;%0A        mConnectionProviders = list;%0A    %7D%0A%0A    @Override%0A    public List%3CFile%3E getDatabaseFiles() %7B%0A        final List%3CFile%3E files = new ArrayList%3C%3E();%0A        for (final DatabaseFilesProvider provider : mFilesProviders) %7B%0A            files.addAll(provider.getDatabaseFiles());%0A        %7D%0A        return files;%0A    %7D%0A%0A    @Override%0A    public SQLiteDatabase openDatabase(final File databaseFile) throws SQLiteException %7B%0A        for (final DatabaseConnectionProvider provider : mConnectionProviders) %7B%0A            final SQLiteDatabase db = provider.openDatabase(databaseFile);%0A            if (db != null) %7B%0A                return db;%0A            %7D%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

create an AggregatingDatabaseProvider that will support aggregating multiple database providers together