diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-29 19:27:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 19:27:53 +0100 |
commit | 2fd73b148d012fba7308c86494689103b8aaace4 (patch) | |
tree | 75782c565600eadd67d0fca46acf637370fcf4a3 /ui/preferences/src | |
parent | 6f3a9b16764a57e43994ccbeeada5224dee93f44 (diff) | |
download | AntennaPod-2fd73b148d012fba7308c86494689103b8aaace4.zip |
Move download service to module (#7041)
Diffstat (limited to 'ui/preferences/src')
-rw-r--r-- | ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java index 53f620fc3..204287207 100644 --- a/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java +++ b/ui/preferences/src/main/java/de/danoeh/antennapod/ui/preferences/screen/synchronization/GpodderAuthenticationFragment.java @@ -24,7 +24,6 @@ import de.danoeh.antennapod.net.sync.serviceinterface.SynchronizationProviderVie import de.danoeh.antennapod.net.sync.serviceinterface.SynchronizationQueueSink; import de.danoeh.antennapod.storage.preferences.SynchronizationCredentials; import de.danoeh.antennapod.storage.preferences.SynchronizationSettings; -import de.danoeh.antennapod.core.util.FileNameGenerator; import de.danoeh.antennapod.net.sync.gpoddernet.GpodnetService; import de.danoeh.antennapod.net.sync.gpoddernet.model.GpodnetDevice; import de.danoeh.antennapod.ui.preferences.R; @@ -215,7 +214,7 @@ public class GpodderAuthenticationFragment extends DialogFragment { private String generateDeviceId(String name) { // devices names must be of a certain form: // https://gpoddernet.readthedocs.org/en/latest/api/reference/general.html#devices - return FileNameGenerator.generateFileName(name).replaceAll("\\W", "_").toLowerCase(Locale.US); + return name.replaceAll("[^a-zA-Z0-9]", "_").toLowerCase(Locale.US); } private boolean isDeviceInList(String name) { |