Skip to content

Commit 112b816

Browse files
committed
recalculate recyclerview height at using Search
1 parent fad3697 commit 112b816

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ android {
5858
}
5959

6060
dependencies {
61-
implementation 'com.simplemobiletools:commons:5.32.24'
61+
implementation 'com.simplemobiletools:commons:5.32.27'
6262
implementation 'com.github.Stericson:RootTools:df729dcb13'
6363
implementation 'com.github.Stericson:RootShell:1.6'
6464
implementation 'com.alexvasilkov:gesture-views:2.5.2'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
369369
items_list.beVisibleIf(listItems.isNotEmpty())
370370
items_placeholder.beVisibleIf(listItems.isEmpty())
371371
items_placeholder_2.beGone()
372+
373+
items_list.onGlobalLayout {
374+
items_fastscroller.setScrollToY(items_list.computeVerticalScrollOffset())
375+
calculateContentHeight(listItems)
376+
}
372377
}
373378
}
374379
}

0 commit comments

Comments
 (0)