mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 07:13:56 +01:00
invoke callbacks when cancelled
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
3a892a561a
commit
7a1090911f
1 changed files with 4 additions and 0 deletions
|
|
@ -276,6 +276,8 @@ public class FilePicker implements Constants {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
callbacks.onImagePickerError(e, ImageSource.CUSTOM_SELECTOR, restoreType(activity));
|
callbacks.onImagePickerError(e, ImageSource.CUSTOM_SELECTOR, restoreType(activity));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
callbacks.onCanceled(ImageSource.CUSTOM_SELECTOR, restoreType(activity));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -367,6 +369,8 @@ public class FilePicker implements Constants {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
callbacks.onImagePickerError(e, FilePicker.ImageSource.CAMERA_IMAGE, restoreType(activity));
|
callbacks.onImagePickerError(e, FilePicker.ImageSource.CAMERA_IMAGE, restoreType(activity));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
callbacks.onCanceled(FilePicker.ImageSource.CAMERA_IMAGE, restoreType(activity));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue