Skip to content

Commit f1f5067

Browse files
committed
speed up the fastscroller hint text fetching too
1 parent d55dc21 commit f1f5067

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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.26.23'
61+
implementation 'com.simplemobiletools:commons:5.26.24'
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/adapters/ItemsAdapter.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,11 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
720720

721721
val itemToLoad = getImagePathToLoad(listItem.path)
722722
if (!activity.isDestroyed) {
723-
Glide.with(activity).load(itemToLoad).transition(DrawableTransitionOptions.withCrossFade()).apply(options).into(item_icon)
723+
Glide.with(activity)
724+
.load(itemToLoad)
725+
.transition(DrawableTransitionOptions.withCrossFade())
726+
.apply(options)
727+
.into(item_icon)
724728
}
725729
}
726730
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
175175

176176
items_fastscroller.allowBubbleDisplay = true
177177
items_fastscroller.setViews(items_list, mView.items_swipe_refresh) {
178-
items_fastscroller.updateBubbleText(storedItems.getOrNull(it)?.getBubbleText(context) ?: "")
178+
items_fastscroller.updateBubbleText(storedItems.getOrNull(it)?.getBubbleText(context, storedDateFormat, storedTimeFormat) ?: "")
179179
}
180180

181181
getRecyclerLayoutManager().onRestoreInstanceState(scrollStates[currentPath])
@@ -186,7 +186,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
186186
}
187187
}
188188

189-
fun getScrollState() = getRecyclerLayoutManager().onSaveInstanceState()
189+
private fun getScrollState() = getRecyclerLayoutManager().onSaveInstanceState()
190190

191191
private fun getRecyclerLayoutManager() = (mView.items_list.layoutManager as MyLinearLayoutManager)
192192

0 commit comments

Comments
 (0)