diff --git a/app/build.gradle b/app/build.gradle index 4ef941fa..c6b09cf5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,7 +32,7 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.22.4' + compile 'com.simplemobiletools:commons:2.22.7' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt index 5b1d657b..61fe405b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt @@ -123,10 +123,10 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { R.id.go_home -> goHome() + R.id.go_to_favorite -> goToFavorite() R.id.sort -> showSortingDialog() R.id.add_favorite -> addFavorite() R.id.remove_favorite -> removeFavorite() - R.id.go_to_favorite -> goToFavorite() R.id.set_as_home -> setAsHome() R.id.temporarily_show_hidden -> temporarilyShowHidden() R.id.settings -> startActivity(Intent(this, SettingsActivity::class.java)) @@ -173,7 +173,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br } } - RadioGroupDialog(this, items, currFavoriteIndex) { + RadioGroupDialog(this, items, currFavoriteIndex, R.string.go_to_favorite) { openPath(it.toString()) } } diff --git a/app/src/main/res/menu/menu.xml b/app/src/main/res/menu/menu.xml index 3333e753..71c39382 100644 --- a/app/src/main/res/menu/menu.xml +++ b/app/src/main/res/menu/menu.xml @@ -6,6 +6,11 @@ android:icon="@drawable/ic_home" android:title="@string/go_to_home_folder" app:showAsAction="ifRoom"/> + -