Confirm navigation during File Manager operations

Description:
- Ask for confirmation when Exit, Return to start, Android Back, or the parent-folder controls are used while a file operation is active.
- Accept cancels the active job and waits for it to finish before navigating; Decline keeps the File Manager open and lets the operation continue.
- Track single-file operations as jobs and handle Back from the file picker root through the same navigation guard.
- Translate the existing Exit, Return, and unavailable-folder labels plus the new confirmation dialog in all 32 supported locale resource sets.

Why it was needed:
- Leaving the File Manager while a batch copy, move, or delete is running cancels its composition-bound coroutine, which can stop the batch after only some files are processed without a clear result.
- The new File Manager controls previously appeared in English when the app was set to another supported language.
This commit is contained in:
K11MCH1 committed 2026-10-22 20:27:07 +09:00
1 parent 3f2aea4d08
commit 1eb1e154ab
35 files changed
+309 -21

No files matched your search

+4
View File
@@ -1546,6 +1546,10 @@
<string name="fm_exit">Exit</string>
<string name="fm_return_to_start">Return to start</string>
<string name="fm_start_unavailable">Starting folder is no longer available</string>
<string name="fm_cancel_operation_title">Cancel operation?</string>
<string name="fm_cancel_operation_confirmation">The operation will be cancelled. Are you sure?</string>
<string name="fm_accept">Accept</string>
<string name="fm_decline">Decline</string>
<string name="fm_drive_not_readable">%1$s is mounted but not readable right now</string>
<string name="fm_list_view">List view</string>
<string name="fm_grid_view">Grid view</string>