@@ -77,14 +77,14 @@ public boolean isDummy() {
77
77
}
78
78
79
79
@ SuppressLint ("CheckResult" )
80
- public void receive (List <Uri > mediaUri , String mimeType , String source ) {
80
+ public void receive (List <Uri > mediaUri , String mimeType , String source , SimilarImageInterface similarImageInterface ) {
81
81
currentStepIndex = 0 ;
82
82
Observable <UploadItem > itemObservable = Observable .fromIterable (mediaUri )
83
83
.map (this ::cacheFileUpload )
84
84
.map (filePath -> {
85
85
Uri uri = Uri .fromFile (new File (filePath ));
86
86
FileProcessor fp = new FileProcessor (filePath , context .getContentResolver (), context );
87
- UploadItem item = new UploadItem (uri , mimeType , source , fp .processFileCoordinates (),
87
+ UploadItem item = new UploadItem (uri , mimeType , source , fp .processFileCoordinates (similarImageInterface ),
88
88
FileUtils .getFileExt (filePath ), null );
89
89
Single .zip (
90
90
Single .fromCallable (() ->
@@ -107,13 +107,13 @@ public void receive(List<Uri> mediaUri, String mimeType, String source) {
107
107
}
108
108
109
109
@ SuppressLint ("CheckResult" )
110
- public void receiveDirect (Uri media , String mimeType , String source , String wikidataEntityIdPref , String title , String desc ) {
110
+ public void receiveDirect (Uri media , String mimeType , String source , String wikidataEntityIdPref , String title , String desc , SimilarImageInterface similarImageInterface ) {
111
111
currentStepIndex = 0 ;
112
112
items = new ArrayList <>();
113
113
String filePath = this .cacheFileUpload (media );
114
114
Uri uri = Uri .fromFile (new File (filePath ));
115
115
FileProcessor fp = new FileProcessor (filePath , context .getContentResolver (), context );
116
- UploadItem item = new UploadItem (uri , mimeType , source , fp .processFileCoordinates (),
116
+ UploadItem item = new UploadItem (uri , mimeType , source , fp .processFileCoordinates (similarImageInterface ),
117
117
FileUtils .getFileExt (filePath ), wikidataEntityIdPref );
118
118
item .title .setTitleText (title );
119
119
item .descriptions .get (0 ).setDescriptionText (desc );
0 commit comments