v1.0.57: restore custom browser as primary local folder picker

Tap on local folder opens the custom browser again (not system picker).
The custom browser already shows the All files access banner if needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 01:24:35 +00:00
parent 0ba4fd7eb9
commit e59564ac07
2 changed files with 13 additions and 22 deletions
@@ -120,26 +120,17 @@ fun AddPairScreen(onDone: () -> Unit, vm: AddPairViewModel = hiltViewModel()) {
Spacer(Modifier.height(4.dp)) Spacer(Modifier.height(4.dp))
// Local folder — tap opens Android system picker (SAF), same as Autosync // Local folder
Column { Box(modifier = Modifier.fillMaxWidth()) {
Box(modifier = Modifier.fillMaxWidth()) { OutlinedTextField(
OutlinedTextField( value = uriToDisplay(s.localPath), onValueChange = {},
value = uriToDisplay(s.localPath), onValueChange = {}, label = { Text("Local folder") },
label = { Text("Local folder") }, leadingIcon = { Icon(Icons.Default.PhoneAndroid, null) },
leadingIcon = { Icon(Icons.Default.PhoneAndroid, null) }, trailingIcon = { Icon(Icons.Default.FolderOpen, null) },
trailingIcon = { Icon(Icons.Default.FolderOpen, null) }, readOnly = true, singleLine = true, modifier = Modifier.fillMaxWidth(),
readOnly = true, singleLine = true, modifier = Modifier.fillMaxWidth(), placeholder = { Text("Tap to choose folder…") },
placeholder = { Text("Tap to choose folder…") }, )
) Box(modifier = Modifier.matchParentSize().clickable { showLocalBrowser = true })
Box(modifier = Modifier.matchParentSize().clickable { safLauncher.launch(null) })
}
TextButton(
onClick = { showLocalBrowser = true },
modifier = Modifier.align(Alignment.End),
contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp),
) {
Text("Browse manually", style = MaterialTheme.typography.labelSmall)
}
} }
// Remote folder // Remote folder
+2 -2
View File
@@ -1,2 +1,2 @@
VERSION_NAME=1.0.56 VERSION_NAME=1.0.57
VERSION_CODE=57 VERSION_CODE=58