khalidkhan020 / transdroid

Automatically exported from code.google.com/p/transdroid
GNU General Public License v3.0
0 stars 0 forks source link

Should use Uri.getPath() instead of Uri.toString().substring("file://".length()) #496

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PreferencesMain uses Uri.toString().substring("file://".length()) to get the 
path of the preferences from OI File Manager. Using Uri.toString() returns the 
raw encoded String of the URI's path, which will break if the path contains 
special chars (e.g. '+'). Uri.getPath() should be used instead.

See attached patch.

Original issue reported on code.google.com by fschm...@gmail.com on 12 Oct 2013 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
Hi. Thanks for your work. Did you know I have stopped development of Transdroid 
1 and am now working on Transdroid 2 at GtHub? 
https://github.com/erickok/transdroid

Original comment by erickok@gmail.com on 14 Oct 2013 at 6:14

GoogleCodeExporter commented 9 years ago
I noticed after submitting the patch...

Original comment by fschm...@gmail.com on 14 Oct 2013 at 7:47