mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
add OTG path to the included paths initially
This commit is contained in:
parent
1ed6176f0d
commit
4b546b6d52
@ -375,7 +375,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||
if (!config.wasOTGHandled && hasPermission(PERMISSION_WRITE_STORAGE) && hasOTGConnected() && config.OTGPath.isEmpty()) {
|
||||
config.wasOTGHandled = true
|
||||
getStorageDirectories().firstOrNull { it.trimEnd('/') != internalStoragePath && it.trimEnd('/') != sdCardPath }?.apply {
|
||||
config.OTGPath = trimEnd('/')
|
||||
val otgPath = trimEnd('/')
|
||||
config.OTGPath = otgPath
|
||||
config.addIncludedFolder(otgPath)
|
||||
}
|
||||
}
|
||||
}.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user