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
84e8693525
commit
351c3f2534
2 changed files with 3 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import fr.free.nrw.commons.auth.LoginActivity;
|
|||
import fr.free.nrw.commons.contributions.ContributionsSyncAdapter;
|
||||
import fr.free.nrw.commons.modifications.ModificationsSyncAdapter;
|
||||
import fr.free.nrw.commons.settings.SettingsFragment;
|
||||
import fr.free.nrw.commons.nearby.DirectUpload;
|
||||
|
||||
@Singleton
|
||||
@Component(modules = {
|
||||
|
|
@ -38,6 +39,7 @@ public interface CommonsApplicationComponent extends AndroidInjector<Application
|
|||
|
||||
@Override
|
||||
void inject(ApplicationlessInjection instance);
|
||||
void inject(DirectUpload directUpload);
|
||||
|
||||
@Component.Builder
|
||||
@SuppressWarnings({"WeakerAccess", "unused"})
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
|||
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
||||
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
|
||||
|
||||
class DirectUpload {
|
||||
public class DirectUpload {
|
||||
|
||||
private String title;
|
||||
private String desc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue