Center the export dialog buttons

- Add center: true parameter to both Share and Save to Device Action constructors
- This centers the buttons horizontally in the dialog layout
- Buttons are now both equal size and properly centered for better visual balance
- Improves the overall UI appearance and user experience
This commit is contained in:
Trevor
2025-08-20 10:52:28 -05:00
parent f00e71522f
commit 42040e5f3d
@@ -296,11 +296,11 @@ class PolycentricBackupActivity : AppCompatActivity() {
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
}
startActivity(Intent.createChooser(shareIntent, getString(R.string.share_profile)))
}, UIDialogs.ActionStyle.NONE),
}, UIDialogs.ActionStyle.NONE, true),
UIDialogs.Action(getString(R.string.save_to_device), {
// Save to device
saveToDevice(fileName)
}, UIDialogs.ActionStyle.NONE)
}, UIDialogs.ActionStyle.NONE, true)
)
} catch (e: Exception) {
Logger.e(TAG, "Failed to export to file", e)