Extracted and tested the database interactions from Contribution.

This commit is contained in:
Paul Hawke 2017-12-20 20:50:05 -06:00 committed by Paul Hawke
parent d45ff218f5
commit 7c80991049
11 changed files with 687 additions and 256 deletions

View file

@ -21,7 +21,7 @@ import javax.inject.Named;
import dagger.android.AndroidInjector;
import dagger.android.DaggerApplication;
import fr.free.nrw.commons.auth.SessionManager;
import fr.free.nrw.commons.contributions.Contribution;
import fr.free.nrw.commons.contributions.ContributionDao;
import fr.free.nrw.commons.data.Category;
import fr.free.nrw.commons.data.DBOpenHelper;
import fr.free.nrw.commons.di.CommonsApplicationComponent;
@ -142,7 +142,7 @@ public class CommonsApplication extends DaggerApplication {
ModifierSequence.Table.onDelete(db);
Category.Table.onDelete(db);
Contribution.Table.onDelete(db);
ContributionDao.Table.onDelete(db);
}
public interface LogoutListener {