properly URI-decode file:// URIs, so the files can be found

Fixes issues 63
This commit is contained in:
Thialfihar
2010-08-17 12:50:42 +00:00
parent 6e9146c91a
commit 96162b6608
4 changed files with 4 additions and 4 deletions

View File

@@ -349,7 +349,7 @@ public class EncryptActivity extends BaseActivity {
}
} else if (Apg.Intent.ENCRYPT_FILE.equals(mIntent.getAction())) {
if ("file".equals(mIntent.getScheme())) {
mInputFilename = mIntent.getDataString().replace("file://", "");
mInputFilename = Uri.decode(mIntent.getDataString().replace("file://", ""));
mFilename.setText(mInputFilename);
guessOutputFilename();
}