File tree 1 file changed +6
-3
lines changed
library/src/main/java/com/rain/library/ui
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,16 @@ public void onPageSelected(int position) {
192
192
} else {
193
193
checkbox .setChecked (false );
194
194
}
195
+ if (!originalPicture ) {
196
+ radioButton .setVisibility (View .GONE );
197
+ return ;
198
+ }
195
199
196
200
if (originalPicture && radioButton .isChecked ()) {
197
201
radioButton .setText (getString (R .string .image_size , UtilsHelper .formatFileSize (photos .get (pos ).getOriginalSize ())));
198
202
} else {
199
203
radioButton .setText (getString (R .string .original_image ));
200
204
}
201
-
202
205
if (MimeType .isPictureType (photos .get (position ).getImageType ()) == MimeType .ofVideo ()) {
203
206
radioButton .setVisibility (View .GONE );
204
207
} else {
@@ -277,7 +280,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
277
280
private void sendImage () {
278
281
if (callback != null ) {
279
282
callback .selectResult (selectPhotosInfo );
280
- } else {
283
+ setResult (RESULT_OK , new Intent ());
284
+ } else {
281
285
Intent intent = new Intent ();
282
286
intent .putParcelableArrayListExtra (PhotoPickConfig .EXTRA_SELECT_PHOTOS , selectPhotosInfo );
283
287
setResult (Activity .RESULT_OK , intent );
@@ -346,7 +350,6 @@ public void onSuccess(File file, boolean success) {
346
350
};
347
351
348
352
349
-
350
353
private void backTo () {
351
354
if (isChecked ) {
352
355
PhotoPickConfig .getInstance ().setStartCompression (false );
You can’t perform that action at this time.
0 commit comments