mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 14:18:26 +00:00
parent
954b2f22f6
commit
34ed55d3ac
@ -85,7 +85,7 @@ public class FullBackupExporter extends FullBackupBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (BackupProtos.SharedPreference preference : IdentityKeyUtil.getBackupRecord(context)) {
|
for (BackupProtos.SharedPreference preference : IdentityKeyUtil.getBackupRecord(context)) {
|
||||||
if (++count % 100 == 0) EventBus.getDefault().post(new BackupEvent(BackupEvent.Type.PROGRESS, count));
|
EventBus.getDefault().post(new BackupEvent(BackupEvent.Type.PROGRESS, count));
|
||||||
outputStream.write(preference);
|
outputStream.write(preference);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ public class FullBackupExporter extends FullBackupBase {
|
|||||||
|
|
||||||
try (Cursor cursor = input.rawQuery("SELECT * FROM " + table, null)) {
|
try (Cursor cursor = input.rawQuery("SELECT * FROM " + table, null)) {
|
||||||
while (cursor != null && cursor.moveToNext()) {
|
while (cursor != null && cursor.moveToNext()) {
|
||||||
if (++count % 100 == 0) EventBus.getDefault().post(new BackupEvent(BackupEvent.Type.PROGRESS, count));
|
EventBus.getDefault().post(new BackupEvent(BackupEvent.Type.PROGRESS, count));
|
||||||
|
|
||||||
if (predicate == null || predicate.test(cursor)) {
|
if (predicate == null || predicate.test(cursor)) {
|
||||||
StringBuilder statement = new StringBuilder(template);
|
StringBuilder statement = new StringBuilder(template);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user