Merge pull request #10424 from JosJuice/android-export-empty-folders

Android: Include empty folders when exporting user data
This commit is contained in:
JMC47 2022-02-01 01:12:17 -05:00 committed by GitHub
commit 44dabc6c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -320,6 +320,10 @@ public class UserDataActivity extends AppCompatActivity
{
exportUserData(zos, child, new File(pathRelativeToRoot, child.getName()));
}
if (children.length == 0 && pathRelativeToRoot != null)
{
zos.putNextEntry(new ZipEntry(pathRelativeToRoot.getPath() + '/'));
}
}
else
{