diff options
author | LatinSuD <latinsud@gmail.com> | 2013-03-24 17:47:13 +0100 |
---|---|---|
committer | LatinSuD <latinsud@gmail.com> | 2013-03-24 17:47:13 +0100 |
commit | 1e58e41ba7f1d0a497856395057e798109e8d351 (patch) | |
tree | a4b8b9c2ace24a983b741153a816783da3dc2b9e /src/de | |
parent | 498d8dbf1eed1e9a5b4d1ebf6400ec6612a26812 (diff) | |
download | AntennaPod-1e58e41ba7f1d0a497856395057e798109e8d351.zip |
Remove trailing spaces in filenames
FAT does not support trailing spaces, so we must remove them
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/util/FileNameGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/util/FileNameGenerator.java b/src/de/danoeh/antennapod/util/FileNameGenerator.java index 3bc193080..37fac28a2 100644 --- a/src/de/danoeh/antennapod/util/FileNameGenerator.java +++ b/src/de/danoeh/antennapod/util/FileNameGenerator.java @@ -24,7 +24,7 @@ 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); + builder.append(c).replaceFirst(" *$",""); } } return builder.toString(); |