mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Give CommonsApplicationComponent access to DirectUpload
This commit is contained in:
parent
cb0179cb54
commit
9354c1c93e
2 changed files with 4 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ import fr.free.nrw.commons.CommonsApplication;
|
||||||
import fr.free.nrw.commons.MediaWikiImageView;
|
import fr.free.nrw.commons.MediaWikiImageView;
|
||||||
import fr.free.nrw.commons.contributions.ContributionsSyncAdapter;
|
import fr.free.nrw.commons.contributions.ContributionsSyncAdapter;
|
||||||
import fr.free.nrw.commons.modifications.ModificationsSyncAdapter;
|
import fr.free.nrw.commons.modifications.ModificationsSyncAdapter;
|
||||||
|
import fr.free.nrw.commons.nearby.DirectUpload;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
@Component(modules = {
|
@Component(modules = {
|
||||||
|
|
@ -30,6 +31,8 @@ public interface CommonsApplicationComponent extends AndroidInjector<CommonsAppl
|
||||||
|
|
||||||
void inject(MediaWikiImageView mediaWikiImageView);
|
void inject(MediaWikiImageView mediaWikiImageView);
|
||||||
|
|
||||||
|
void inject(DirectUpload directUpload);
|
||||||
|
|
||||||
@Component.Builder
|
@Component.Builder
|
||||||
@SuppressWarnings({"WeakerAccess", "unused"})
|
@SuppressWarnings({"WeakerAccess", "unused"})
|
||||||
interface Builder {
|
interface Builder {
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
||||||
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
||||||
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
|
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
|
||||||
|
|
||||||
class DirectUpload {
|
public class DirectUpload {
|
||||||
|
|
||||||
private String title;
|
private String title;
|
||||||
private String desc;
|
private String desc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue