Download to proper filename

This commit is contained in:
topjohnwu
2019-07-25 01:54:42 -07:00
parent 971cd73fb3
commit c3a89f589e
4 changed files with 8 additions and 9 deletions
@@ -70,12 +70,6 @@ object Utils {
return info.loadLabel(pm).toString()
}
fun getLegalFilename(filename: CharSequence): String {
return filename.toString().replace(" ", "_").replace("'", "").replace("\"", "")
.replace("$", "").replace("`", "").replace("*", "").replace("/", "_")
.replace("#", "").replace("@", "").replace("\\", "_")
}
@WorkerThread
fun loadModulesLeanback(): Map<String, OldModule> {
val moduleMap = ValueSortedMap<String, OldModule>()