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

Commit 987e65f4 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Prevent memory leak

Use a static inner class in case inner class leaves longer
than the outter class.
parent e9f28b02
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -74,7 +74,7 @@ public class LocalFileLister extends AbstractFileLister<File> {
    }
    }


    @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
    @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
    public class LocalFolderLoader implements FolderLoader<File> {
    public static class LocalFolderLoader implements FolderLoader<File> {
        private FolderWrapper<File> folder;
        private FolderWrapper<File> folder;


        @Override
        @Override