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