Large cliff crusher block / Erekir ammo tweaks / Android file chooser fixes

This commit is contained in:
Anuken
2025-01-07 20:35:35 -05:00
parent 6c1952c674
commit a84a99aed6
17 changed files with 178 additions and 19 deletions

View File

@@ -110,6 +110,7 @@ public class AndroidLauncher extends AndroidApplication{
Intent intent = new Intent(open ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_CREATE_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType(extension.equals("zip") && !open && extensions.length == 1 ? "application/zip" : "*/*");
intent.putExtra(Intent.EXTRA_TITLE, "export." + extension);
addResultListener(i -> startActivityForResult(intent, i), (code, in) -> {
if(code == Activity.RESULT_OK && in != null && in.getData() != null){