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()) {
|
||||
deleteFromMediaStore(file)
|
||||
if (!file.exists() && file.length() == 0L) {
|
||||
Thread {
|
||||
deleteFromMediaStore(file)
|
||||
}.start()
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue