diff --git a/app/src/main/kotlin/jackall/overlaymulticounter/db/CounterRealmHelper.kt b/app/src/main/kotlin/jackall/overlaymulticounter/db/CounterRealmHelper.kt index c5c58c3..ae0ed05 100644 --- a/app/src/main/kotlin/jackall/overlaymulticounter/db/CounterRealmHelper.kt +++ b/app/src/main/kotlin/jackall/overlaymulticounter/db/CounterRealmHelper.kt @@ -44,6 +44,14 @@ } } + fun resetAll() { + realm.executeTransaction { + findAll().forEach { + it.count = 0 + } + } + } + fun removeLast() { realm.executeTransaction { findAll().apply {