1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

Fix missing path separator in folder copy target (#883)

* Fix missing path separator in folder copy target

* Update to use direct File constructor
This commit is contained in:
anrp 2017-05-01 05:09:15 -07:00 committed by Felix Ableitner
parent f5a581ccce
commit 9399762ed9

View file

@ -228,9 +228,8 @@ public class ShareActivity extends SyncthingActivity
boolean isError = false; boolean isError = false;
for (Map.Entry<Uri, String> entry : mFiles.entrySet()) { for (Map.Entry<Uri, String> entry : mFiles.entrySet()) {
InputStream inputStream = null; InputStream inputStream = null;
String outPath = mFolder.path + entry.getValue();
try { try {
File outFile = new File(outPath); File outFile = new File(mFolder.path, entry.getValue());
if (outFile.isFile()) { if (outFile.isFile()) {
mIgnored++; mIgnored++;
continue; continue;