Add a temporary way to select download directory

This commit is contained in:
inorichi
2015-11-03 20:04:07 +01:00
parent 13ff612ce0
commit 62ae572c72
9 changed files with 92 additions and 13 deletions

View File

@@ -19,6 +19,7 @@ import eu.kanade.mangafeed.presenter.SourcePresenter;
import eu.kanade.mangafeed.sources.base.Source;
import eu.kanade.mangafeed.ui.activity.ReaderActivity;
import eu.kanade.mangafeed.ui.fragment.SettingsAccountsFragment;
import eu.kanade.mangafeed.ui.fragment.SettingsDownloadsFragment;
@Singleton
@Component(
@@ -39,6 +40,7 @@ public interface AppComponent {
void inject(ReaderActivity readerActivity);
void inject(SettingsAccountsFragment settingsAccountsFragment);
void inject(SettingsDownloadsFragment settingsDownloadsFragment);
void inject(Source source);

View File

@@ -51,8 +51,9 @@ public class DataModule {
@Provides
@Singleton
DownloadManager provideDownloadManager(Application app, SourceManager sourceManager) {
return new DownloadManager(app, sourceManager);
DownloadManager provideDownloadManager(
Application app, SourceManager sourceManager, PreferencesHelper preferences) {
return new DownloadManager(app, sourceManager, preferences);
}
}