summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorLatinSuD <latinsud@gmail.com>2013-03-24 18:18:35 +0100
committerLatinSuD <latinsud@gmail.com>2013-03-24 18:18:35 +0100
commit5c794ce09951d337c91e206fa437bbafeb136e95 (patch)
tree9b683951c282f972f81fbfef5b72a83d672b273d /src/de
parent1e58e41ba7f1d0a497856395057e798109e8d351 (diff)
downloadAntennaPod-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.java4
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) {