Skip to content

Commit

Permalink
android: updated java ShowFileChooserResponse fromMap method
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Dec 2, 2024
1 parent 48a9734 commit 1ba712b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public ShowFileChooserResponse(boolean handledByClient, @Nullable List<String> f
this.filePaths = filePaths;
}

public static ShowFileChooserResponse fromMap(Map<String, Object> map) {
@Nullable
public static ShowFileChooserResponse fromMap(@Nullable Map<String, Object> map) {
if (map == null) {
return null;
}
boolean handledByClient = (boolean) map.get("handledByClient");
List<String> filePaths = (List<String>) map.get("filePaths");
return new ShowFileChooserResponse(handledByClient, filePaths);
Expand Down

0 comments on commit 1ba712b

Please sign in to comment.