mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 11:15:44 +00:00
Update to latest Backup.proto and fix various backup bugs.
This commit is contained in:
committed by
mtang-signal
parent
e2e6a73e8d
commit
5ffb7b07da
@@ -202,6 +202,15 @@ inline fun Cursor.forEach(operation: (Cursor) -> Unit) {
|
||||
}
|
||||
}
|
||||
|
||||
inline fun Cursor.forEachIndexed(operation: (Int, Cursor) -> Unit) {
|
||||
use {
|
||||
var i = 0
|
||||
while (moveToNext()) {
|
||||
operation(i++, this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun Cursor.iterable(): Iterable<Cursor> {
|
||||
return CursorIterable(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user