Commit 4ce06ecb authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Exported query offset has to be set to zero after clearing all queries

parent 4214fedb
Pipeline #5971 passed with stage
in 2 minutes and 59 seconds
......@@ -86,7 +86,7 @@ class DnsQueryRepository(private val dnsQueryDao: DnsQueryDao) {
builder.append(query.type.name).append(",")
builder.append(query.type.value).append(",")
builder.append(query.askedServer).append(",")
builder.append(query.responseSource?.name ?: "").append(",")
builder.append(query.responseSource.name).append(",")
builder.append(query.questionTime).append(",")
builder.append(query.responseTime).append(",")
builder.append("\"").append(responseConverter.someObjectListToString(query.responses).replace(",", ";").replace("\"", "'")).append("\"")
......
......@@ -223,6 +223,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
dialog.setTitle(R.string.dialog_clearqueries_title)
dialog.setPositiveButton(R.string.all_yes) { d, _ ->
requireContext().getDatabase().dnsQueryDao().deleteAll()
getPreferences().exportedQueryCount = 0
exportQueries.summary =
getString(R.string.summary_export_queries, 0)
d.dismiss()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment