Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f12fbcd6 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix settings restore even harder

Change-Id: If6920743ae92dcf811a87a1eefd357f849c03a23
parent cde73245
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -531,7 +531,12 @@ public class SettingsBackupAgent extends BackupAgentHelper {
    private void restoreFileData(String filename, BackupDataInput data) {
        byte[] bytes = new byte[data.getDataSize()];
        if (bytes.length <= 0) return;
        try {
            data.readEntityData(bytes, 0, data.getDataSize());
            restoreFileData(filename, bytes, bytes.length);
        } catch (IOException e) {
            Log.w(TAG, "Unable to read file data for " + filename);
        }
    }

    private void restoreFileData(String filename, byte[] bytes, int size) {