1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Prevent empty file name

This commit is contained in:
M66B 2020-04-28 07:57:35 +02:00
parent 6a2477b94d
commit c1078a91d8

View file

@ -186,6 +186,9 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
if (TextUtils.isEmpty(fname))
fname = uri.getLastPathSegment();
if (TextUtils.isEmpty(fname))
return uri;
File dir = new File(getCacheDir(), "shared");
if (!dir.exists())
dir.mkdir();