Fix export dialog to close instead of auto-sharing when clicked outside

- Change default close action from 0 (share) to -1 (no action)
- This prevents the dialog from automatically sharing when users click outside
- Users must now explicitly choose Share or Save to Device to proceed
- Improves user experience by preventing accidental sharing
This commit is contained in:
Trevor
2025-08-20 10:59:22 -05:00
parent 42040e5f3d
commit d8a0781d10
@@ -285,7 +285,7 @@ class PolycentricBackupActivity : AppCompatActivity() {
getString(R.string.export_profile),
getString(R.string.choose_export_option),
null,
0,
-1,
UIDialogs.Action(getString(R.string.share), {
// Share the file
val shareIntent = Intent(Intent.ACTION_SEND).apply {