mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
pass context instead of whole activity to scanFile
This commit is contained in:
@ -356,7 +356,7 @@ public class MainActivity extends SimpleActivity
|
||||
}
|
||||
|
||||
final String[] deletedPaths = updatedFiles.toArray(new String[updatedFiles.size()]);
|
||||
MediaScannerConnection.scanFile(this, deletedPaths, null, null);
|
||||
MediaScannerConnection.scanFile(getApplicationContext(), deletedPaths, null, null);
|
||||
mToBeDeleted.clear();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user