fix: do not hide extension if is hidden file
This commit is contained in:
parent
be15a90b82
commit
56216de51b
3 changed files with 11 additions and 11 deletions
|
@ -170,7 +170,6 @@ class FileColumn(val context: Context) {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (!isOkay) {
|
||||
Column(
|
||||
|
@ -529,7 +528,8 @@ class FileColumn(val context: Context) {
|
|||
.fillMaxWidth(0.8f)
|
||||
) {
|
||||
Text(
|
||||
text = forceName ?: if (settingStorage.get(settingStorage.showExtension) == false || file.type == Type.DIRECTORY){
|
||||
text = forceName
|
||||
?: if (settingStorage.get(settingStorage.showExtension) == false && !file.name.startsWith('.')) {
|
||||
file.nameWithoutExt
|
||||
} else {
|
||||
file.name
|
||||
|
|
|
@ -14,7 +14,7 @@ class DocumentLister : Lister {
|
|||
val regex = "\\.((xls|doc|ppt)(x|)|txt|htm(l|)|pdf)".toRegex()
|
||||
}
|
||||
|
||||
val documentList = mutableListOf<String>()
|
||||
private val documentList = mutableListOf<String>()
|
||||
|
||||
fun initialize(onFinished: (() -> Unit)? = null) {
|
||||
documentList.clear()
|
||||
|
|
|
@ -14,7 +14,7 @@ class VideoLister : Lister {
|
|||
val regex = "\\.(mp4|avi|video|webm)$".toRegex()
|
||||
}
|
||||
|
||||
val videoList = mutableListOf<String>()
|
||||
private val videoList = mutableListOf<String>()
|
||||
|
||||
fun initialize(onFinished: (() -> Unit)? = null) {
|
||||
videoList.clear()
|
||||
|
|
Loading…
Reference in a new issue