|
|
@ -142,8 +142,8 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application), |
|
|
|
?.writeBytes(context, biteArray) |
|
|
|
?.writeBytes(context, biteArray) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
val file = |
|
|
|
val dir = File(uri.path ?: uri.toString()) |
|
|
|
FileUtils.createFileIfNotExist(File(uri.path ?: uri.toString()), fileName) |
|
|
|
val file = FileUtils.createFileIfNotExist(dir, fileName) |
|
|
|
file.writeBytes(biteArray) |
|
|
|
file.writeBytes(biteArray) |
|
|
|
} |
|
|
|
} |
|
|
|
} ?: throw Throwable("NULL") |
|
|
|
} ?: throw Throwable("NULL") |
|
|
|