diff --git a/CHANGELOG.md b/CHANGELOG.md index 21567f84..e636b643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Changelog ========== +Version 6.10.0 *(2021-08-27)* +---------------------------- + + * Rewrote the current folder path into a 1 liner + * Show a save/discard prompt when exiting file editor with unsaved changes + Version 6.9.3 *(2021-06-14)* ---------------------------- diff --git a/app/build.gradle b/app/build.gradle index 3efe573d..88cc1fee 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,8 +16,8 @@ android { applicationId "com.simplemobiletools.filemanager.pro" minSdkVersion 21 targetSdkVersion 29 - versionCode 107 - versionName "6.9.3" + versionCode 108 + versionName "6.9.4" multiDexEnabled true setProperty("archivesBaseName", "file-manager") vectorDrawables.useSupportLibrary = true @@ -58,8 +58,7 @@ android { } dependencies { -// implementation 'com.github.SimpleMobileTools:Simple-Commons:e56c724d04' - implementation project(":commons") + implementation 'com.github.SimpleMobileTools:Simple-Commons:649211e294' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.alexvasilkov:gesture-views:2.5.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt index 4f806260..da278734 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt @@ -547,7 +547,7 @@ class MainActivity : SimpleActivity() { return } - if (getCurrentFragment()!!.breadcrumbs.childCount <= 1) { + if (getCurrentFragment()!!.breadcrumbs.itemsCount <= 1) { if (!wasBackJustPressed && config.pressBackTwice) { wasBackJustPressed = true toast(R.string.press_back_again) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt index 4e6d22b3..55d4187b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt @@ -525,7 +525,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF openPath(it) } } else { - val item = breadcrumbs.getChildAt(id).tag as FileDirItem + val item = breadcrumbs.getItem(id) openPath(item.path) } } diff --git a/app/src/main/res/layout/items_fragment.xml b/app/src/main/res/layout/items_fragment.xml index cda96fa8..19834892 100644 --- a/app/src/main/res/layout/items_fragment.xml +++ b/app/src/main/res/layout/items_fragment.xml @@ -24,7 +24,11 @@ android:id="@+id/breadcrumbs" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="@dimen/activity_margin" /> + android:layout_marginTop="@dimen/medium_margin" + android:paddingStart="@dimen/activity_margin" + android:paddingTop="@dimen/small_margin" + android:paddingEnd="@dimen/small_margin" + android:paddingBottom="@dimen/small_margin" />