use context.getApplicationContext in MediaLibrary.
This ensures that we are not handing an Activity to our children
This commit is contained in:
parent
6bbc3800c2
commit
6bc3976dbb
@ -108,8 +108,8 @@ public class MediaLibrary {
|
||||
// -> unlikely
|
||||
synchronized(sWait) {
|
||||
if (sBackend == null) {
|
||||
sBackend = new MediaLibraryBackend(context);
|
||||
sScanner = new MediaScanner(context, sBackend);
|
||||
sBackend = new MediaLibraryBackend(context.getApplicationContext());
|
||||
sScanner = new MediaScanner(context.getApplicationContext(), sBackend);
|
||||
sScanner.startQuickScan(50);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user