1
0
mirror of https://github.com/etesync/android synced 2025-01-05 05:11:00 +00:00

Fix potential crash in migration script.

This commit is contained in:
Tom Hacohen 2020-11-08 17:35:00 +02:00
parent dfc1e78543
commit 9fd370ff6e

View File

@ -766,7 +766,7 @@ class MigrateCollectionsDoFragment : DialogFragment() {
if (toPush.size == CHUNK_SIZE) { if (toPush.size == CHUNK_SIZE) {
uiThread { uiThread {
progress.setMessage(getString(R.string.migrate_v2_wizard_migrate_progress, i, total) + "\n" + progress.setMessage(context?.getString(R.string.migrate_v2_wizard_migrate_progress, i, total) + "\n" +
getString(R.string.migrate_v2_wizard_migrate_progress_entries, itemDone, entries.size)) getString(R.string.migrate_v2_wizard_migrate_progress_entries, itemDone, entries.size))
} }
itemMgr.batch(toPush.toTypedArray()) itemMgr.batch(toPush.toTypedArray())