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

Commit dcce07d2 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Fix settings restore even harder"

parents b90a83c2 f12fbcd6
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) {