delete the empty folder itself too

This commit is contained in:
tibbi
2016-03-06 21:51:29 +01:00
parent e03cf07761
commit b880912ecb
3 changed files with 5 additions and 0 deletions

View File

@ -173,10 +173,13 @@ public class MainActivity extends AppCompatActivity
updatedFiles.add(f.getAbsolutePath());
f.delete();
}
updatedFiles.add(dir.getAbsolutePath());
dir.delete();
}
final String[] deletedPaths = updatedFiles.toArray(new String[updatedFiles.size()]);
MediaScannerConnection.scanFile(this, deletedPaths, null, null);
toBeDeleted.clear();
}
private View.OnClickListener undoDeletion = new View.OnClickListener() {