mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 12:30:36 +01:00
delete file from mediastore on ViewPagerActivity in the background
This commit is contained in:
parent
2ca0bded2d
commit
42faaf51c1
@ -181,8 +181,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
}
|
||||
|
||||
val file = File(mPath)
|
||||
if (!file.exists()) {
|
||||
if (!file.exists() && file.length() == 0L) {
|
||||
Thread {
|
||||
deleteFromMediaStore(file)
|
||||
}.start()
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user