mirror of
https://github.com/PhilKes/NotallyX.git
synced 2025-06-28 20:29:54 +00:00
Merge pull request #572 from PhilKes/fix/backup-logs-duplicates
Fix checking for existing backup logs file
This commit is contained in:
commit
771546a0cb
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ fun Context.logToFile(
|
|||
stackTrace?.let { Log.e(tag, "Exception occurred: $it") }
|
||||
|
||||
val logFile =
|
||||
folder.findFile(fileName).let {
|
||||
folder.findFile("$fileName.txt").let {
|
||||
if (it == null || !it.exists()) {
|
||||
folder.createFile("text/plain", fileName)
|
||||
} else if (it.isLargerThanKb(MAX_LOGS_FILE_SIZE_KB)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue