mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
add OTG path to the included paths initially
This commit is contained in:
parent
1ed6176f0d
commit
4b546b6d52
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue