Skip to content

Commit a5fbfb5

Browse files
committed
refresh menu items after toggling a folders favorite status
1 parent c45b6f1 commit a5fbfb5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ android {
6464
}
6565

6666
dependencies {
67-
implementation 'com.github.SimpleMobileTools:Simple-Commons:a6c22de9d6'
67+
implementation 'com.github.SimpleMobileTools:Simple-Commons:71f9297e2e'
6868
implementation 'com.github.tibbi:PdfViewPager:d2af24208d'
6969
implementation 'com.github.Stericson:RootTools:df729dcb13'
7070
implementation 'com.github.Stericson:RootShell:1.6'

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,12 @@ class MainActivity : SimpleActivity() {
548548

549549
private fun addFavorite() {
550550
config.addFavorite(getCurrentFragment()!!.currentPath)
551+
refreshMenuItems()
551552
}
552553

553554
private fun removeFavorite() {
554555
config.removeFavorite(getCurrentFragment()!!.currentPath)
556+
refreshMenuItems()
555557
}
556558

557559
private fun toggleFilenameVisibility() {

0 commit comments

Comments
 (0)