From a5fbfb5b92a230ad0c5783ab14aa0db6e30add43 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 7 Jan 2023 22:17:25 +0100 Subject: [PATCH] refresh menu items after toggling a folders favorite status --- app/build.gradle | 2 +- .../filemanager/pro/activities/MainActivity.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 22903926..bb74bc9d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -64,7 +64,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:a6c22de9d6' + implementation 'com.github.SimpleMobileTools:Simple-Commons:71f9297e2e' implementation 'com.github.tibbi:PdfViewPager:d2af24208d' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' 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 7ec07d0f..a61dec86 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 @@ -548,10 +548,12 @@ class MainActivity : SimpleActivity() { private fun addFavorite() { config.addFavorite(getCurrentFragment()!!.currentPath) + refreshMenuItems() } private fun removeFavorite() { config.removeFavorite(getCurrentFragment()!!.currentPath) + refreshMenuItems() } private fun toggleFilenameVisibility() {