From 987e65f46cb68010fc1203a0550f7aab251f6d9a Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Wed, 7 Jun 2023 14:16:31 +0200 Subject: [PATCH] Prevent memory leak Use a static inner class in case inner class leaves longer than the outter class. --- .../java/foundation/e/drive/contentScanner/LocalFileLister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/drive/contentScanner/LocalFileLister.java b/app/src/main/java/foundation/e/drive/contentScanner/LocalFileLister.java index 36679f1b..80a9fa8e 100644 --- a/app/src/main/java/foundation/e/drive/contentScanner/LocalFileLister.java +++ b/app/src/main/java/foundation/e/drive/contentScanner/LocalFileLister.java @@ -74,7 +74,7 @@ public class LocalFileLister extends AbstractFileLister { } @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) - public class LocalFolderLoader implements FolderLoader { + public static class LocalFolderLoader implements FolderLoader { private FolderWrapper folder; @Override -- GitLab