[fix, Android] Crash on startup when no homedir is set (#5548)

By calling the function instead of returning it. Fixes #5547.
pull/5549/head
Frans de Jonge 5 years ago committed by GitHub
parent 21c5d58685
commit 34090c2f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ local filemanagerutil = {}
function filemanagerutil.getDefaultDir()
if Device:isAndroid() then
return Device.external_storage
return Device.external_storage()
elseif Device:isCervantes() then
return "/mnt/public"
elseif Device:isKindle() then

Loading…
Cancel
Save