NSCv3: small fixes
This commit is contained in:
parent
7346ae3dd1
commit
1399348c3b
2 changed files with 2 additions and 3 deletions
|
@ -121,8 +121,8 @@ class NSClientFragment : DaggerFragment(), MenuProvider, PluginFragment {
|
||||||
ID_MENU_CLEAR_LOG -> {
|
ID_MENU_CLEAR_LOG -> {
|
||||||
nsClientPlugin?.listLog?.let {
|
nsClientPlugin?.listLog?.let {
|
||||||
synchronized(it) {
|
synchronized(it) {
|
||||||
logAdapter.notifyItemRangeRemoved(0, it.size)
|
|
||||||
it.clear()
|
it.clear()
|
||||||
|
_binding?.recyclerview?.swapAdapter(RecyclerViewAdapter(it), true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
|
|
|
@ -67,7 +67,6 @@ class LoadTreatmentsWorker(
|
||||||
nsClientV3Plugin.storeLastLoadedSrvModified()
|
nsClientV3Plugin.storeLastLoadedSrvModified()
|
||||||
}
|
}
|
||||||
rxBus.send(EventNSClientNewLog("◄ RCV TR END", "No data from ${dateUtil.dateAndTimeAndSecondsString(lastLoaded)}"))
|
rxBus.send(EventNSClientNewLog("◄ RCV TR END", "No data from ${dateUtil.dateAndTimeAndSecondsString(lastLoaded)}"))
|
||||||
storeDataForDb.storeTreatmentsToDb()
|
|
||||||
continueLoading = false
|
continueLoading = false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,7 +76,6 @@ class LoadTreatmentsWorker(
|
||||||
nsClientV3Plugin.storeLastLoadedSrvModified()
|
nsClientV3Plugin.storeLastLoadedSrvModified()
|
||||||
}
|
}
|
||||||
rxBus.send(EventNSClientNewLog("◄ RCV TR END", "No new data from ${dateUtil.dateAndTimeAndSecondsString(lastLoaded)}"))
|
rxBus.send(EventNSClientNewLog("◄ RCV TR END", "No new data from ${dateUtil.dateAndTimeAndSecondsString(lastLoaded)}"))
|
||||||
storeDataForDb.storeTreatmentsToDb()
|
|
||||||
continueLoading = false
|
continueLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,6 +86,7 @@ class LoadTreatmentsWorker(
|
||||||
return Result.failure(workDataOf("Error" to error.localizedMessage))
|
return Result.failure(workDataOf("Error" to error.localizedMessage))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
storeDataForDb.storeTreatmentsToDb()
|
||||||
nsClientV3Plugin.lastOperationError = null
|
nsClientV3Plugin.lastOperationError = null
|
||||||
return Result.success()
|
return Result.success()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue