Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
11699ba
check if data from activity result is empty when picking a single ima…
Sep 2, 2023
3662c52
update version and CHANGELOG
Sep 4, 2023
434b3bd
add documentation
Sep 4, 2023
17e094e
fix formatting
Sep 5, 2023
68183bb
add test to verify the code
Sep 6, 2023
97c9e60
fix formatting
Sep 6, 2023
bb9d0f1
updates according to feedback
Sep 8, 2023
c976373
Merge branch 'main' into main
aldee Sep 8, 2023
ec9f733
Merge branch 'main' into main
aldee Sep 11, 2023
4bfc605
Merge commit '06cd9e967b9f17da3eea812a6f85394f62278aec'
Sep 13, 2023
efa3083
add check for null uri from clipdata.item
Sep 13, 2023
c30cc59
update changelog and pubspec.yaml
Sep 13, 2023
dd71b39
update the changelog
Sep 13, 2023
bfd10ce
fix the video pick from gallery
Sep 13, 2023
f783a22
fix formatting
Sep 13, 2023
685b95c
check if data from activity result is empty when picking a single ima…
Sep 2, 2023
6fd33a9
add documentation
Sep 4, 2023
f0a2011
fix formatting
Sep 5, 2023
53c2eb9
add test to verify the code
Sep 6, 2023
ac828b3
fix formatting
Sep 6, 2023
8b0a9f1
updates according to feedback
Sep 8, 2023
2343e5b
add check for null uri from clipdata.item
Sep 13, 2023
36e5758
update changelog and pubspec.yaml
Sep 13, 2023
4077868
fix the video pick from gallery
Sep 13, 2023
73874c9
fix formatting
Sep 13, 2023
d4f63b5
Merge branch 'main' of github.com:aldee/packages
Sep 13, 2023
646d678
update version to 0.8.9
Sep 13, 2023
faa641b
Merge branch 'main' into main
aldee Sep 15, 2023
196da1b
fix null check logic to perfection
Sep 19, 2023
84e5221
change version to 0.8.8+1
Sep 19, 2023
15c4e5c
Merge branch 'main' of github.com:aldee/packages
Sep 19, 2023
bb68a08
Merge branch 'main' into main
aldee Sep 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
check if data from activity result is empty when picking a single ima…
…ge, if empty, then get clipdata instead
  • Loading branch information
Geraldi Kusuma Arnanto committed Sep 13, 2023
commit 685b95cd64d434162de28fa629061816ff8a5ca7
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,13 @@ public boolean onActivityResult(

private void handleChooseImageResult(int resultCode, Intent data) {
if (resultCode == Activity.RESULT_OK && data != null) {
String path = fileUtils.getPathFromUri(activity, data.getData());
String path;
if (data.getData() != null) {
path = fileUtils.getPathFromUri(activity, data.getData());
} else {
Uri uri = data.getClipData().getItemAt(0).getUri();
path = fileUtils.getPathFromUri(activity, uri);
}
handleImageResult(path, false);
return;
}
Expand Down