diff options
author | LatinSuD <latinsud@gmail.com> | 2013-03-24 18:18:35 +0100 |
---|---|---|
committer | LatinSuD <latinsud@gmail.com> | 2013-03-24 18:18:35 +0100 |
commit | 5c794ce09951d337c91e206fa437bbafeb136e95 (patch) | |
tree | 9b683951c282f972f81fbfef5b72a83d672b273d /src/de | |
parent | 1e58e41ba7f1d0a497856395057e798109e8d351 (diff) | |
download | AntennaPod-5c794ce09951d337c91e206fa437bbafeb136e95.zip |
Fixed last commit
Fixed last commit. Which consisted in removing trailing spaces in filenames, as they are not supported in FAT filesystem.
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/util/FileNameGenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/util/FileNameGenerator.java b/src/de/danoeh/antennapod/util/FileNameGenerator.java index 37fac28a2..702df62b8 100644 --- a/src/de/danoeh/antennapod/util/FileNameGenerator.java +++ b/src/de/danoeh/antennapod/util/FileNameGenerator.java @@ -24,10 +24,10 @@ public class FileNameGenerator { for (int i = 0; i < string.length(); i++) { char c = string.charAt(i); if (Arrays.binarySearch(ILLEGAL_CHARACTERS, c) < 0) { - builder.append(c).replaceFirst(" *$",""); + builder.append(c); } } - return builder.toString(); + return builder.toString().replaceFirst(" *$",""); } public static long generateLong(final String str) { |