Merge branch 'master' into fix/android-data-dir-access

# Conflicts:
#	app/build.gradle
This commit is contained in:
Paul Akhamiogu
2021-09-12 23:14:02 +01:00
7 changed files with 20 additions and 9 deletions

View File

@ -1,6 +1,12 @@
Changelog 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)* Version 6.9.3 *(2021-06-14)*
---------------------------- ----------------------------

View File

@ -16,8 +16,8 @@ android {
applicationId "com.simplemobiletools.filemanager.pro" applicationId "com.simplemobiletools.filemanager.pro"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 107 versionCode 108
versionName "6.9.3" versionName "6.9.4"
multiDexEnabled true multiDexEnabled true
setProperty("archivesBaseName", "file-manager") setProperty("archivesBaseName", "file-manager")
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
@ -58,8 +58,7 @@ android {
} }
dependencies { dependencies {
// implementation 'com.github.SimpleMobileTools:Simple-Commons:e56c724d04' implementation 'com.github.SimpleMobileTools:Simple-Commons:649211e294'
implementation project(":commons")
implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootTools:df729dcb13'
implementation 'com.github.Stericson:RootShell:1.6' implementation 'com.github.Stericson:RootShell:1.6'
implementation 'com.alexvasilkov:gesture-views:2.5.2' implementation 'com.alexvasilkov:gesture-views:2.5.2'

View File

@ -547,7 +547,7 @@ class MainActivity : SimpleActivity() {
return return
} }
if (getCurrentFragment()!!.breadcrumbs.childCount <= 1) { if (getCurrentFragment()!!.breadcrumbs.itemsCount <= 1) {
if (!wasBackJustPressed && config.pressBackTwice) { if (!wasBackJustPressed && config.pressBackTwice) {
wasBackJustPressed = true wasBackJustPressed = true
toast(R.string.press_back_again) toast(R.string.press_back_again)

View File

@ -525,7 +525,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
openPath(it) openPath(it)
} }
} else { } else {
val item = breadcrumbs.getChildAt(id).tag as FileDirItem val item = breadcrumbs.getItem(id)
openPath(item.path) openPath(item.path)
} }
} }

View File

@ -24,7 +24,11 @@
android:id="@+id/breadcrumbs" android:id="@+id/breadcrumbs"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" 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" />
<com.simplemobiletools.commons.views.MyTextView <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/items_placeholder" android:id="@+id/items_placeholder"

View File

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.5.10' ext.kotlin_version = '1.5.30'
repositories { repositories {
google() google()
@ -9,7 +9,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.2.1' classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong

View File

@ -0,0 +1,2 @@
* Rewrote the current folder path into a 1 liner
* Show a save/discard prompt when exiting file editor with unsaved changes