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

Commit a3639da4 authored by Kenny Root's avatar Kenny Root
Browse files

Fix cast to String[] in FullBackupAgent

obj.toArray() can't return anything more specific than Object[], so use
obj.toArray(new String[obj.size()]) to do this instead.

Change-Id: I87a0a2bb10206a37b28a535652a8f81f94c1f06f
parent be6079a7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -48,7 +48,8 @@ public class FullBackupAgent extends BackupAgent {
        }

        // That's the file set; now back it all up
        FileBackupHelper helper = new FileBackupHelper(this, (String[])allFiles.toArray());
        FileBackupHelper helper = new FileBackupHelper(this,
                allFiles.toArray(new String[allFiles.size()]));
        helper.performBackup(oldState, data, newState);
    }