Skip to content

Commit fa06141

Browse files
committed
Update Breadcrumbs and commons library version
1 parent 6ab6f50 commit fa06141

File tree

4 files changed

+8
-4
lines changed

4 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.github.SimpleMobileTools:Simple-Commons:16ae1d2c03'
61+
implementation 'com.github.SimpleMobileTools:Simple-Commons:8979ca8187'
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/activities/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class MainActivity : SimpleActivity() {
547547
return
548548
}
549549

550-
if (getCurrentFragment()!!.breadcrumbs.childCount <= 1) {
550+
if (getCurrentFragment()!!.breadcrumbs.itemsCount <= 1) {
551551
if (!wasBackJustPressed && config.pressBackTwice) {
552552
wasBackJustPressed = true
553553
toast(R.string.press_back_again)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
494494
openPath(it)
495495
}
496496
} else {
497-
val item = breadcrumbs.getChildAt(id).tag as FileDirItem
497+
val item = breadcrumbs.getItem(id)
498498
openPath(item.path)
499499
}
500500
}

app/src/main/res/layout/items_fragment.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
android:id="@+id/breadcrumbs"
2525
android:layout_width="match_parent"
2626
android:layout_height="wrap_content"
27-
android:padding="@dimen/activity_margin" />
27+
android:paddingStart="@dimen/activity_margin"
28+
android:paddingEnd="@dimen/small_margin"
29+
android:paddingTop="@dimen/small_margin"
30+
android:paddingBottom="@dimen/small_margin"
31+
/>
2832

2933
<com.simplemobiletools.commons.views.MyTextView
3034
android:id="@+id/items_placeholder"

0 commit comments

Comments
 (0)